workflow-editor 0.0.6-up → 0.0.7-up
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/lib/vite.svg +1 -0
- package/lib/workflow-editor.css +1 -0
- package/lib/workflow-editor.umd.cjs +55 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e["workflow-editor"]=t(e.Vue))})(this,function(Vue){"use strict";(function(e){var t,o='<svg><symbol id="icon-switch" viewBox="0 0 1024 1024"><path d="M701.74225 917.574059c-7.419408 0-14.960447-2.675852-20.9203-8.149187-12.649483-11.554816-13.500891-31.13719-2.067704-43.786673l119.318684-130.75187L679.119135 608.634755c-11.798076-12.527854-11.189928-32.110227 1.337926-43.786673 12.527854-11.798076 32.110227-11.189928 43.786673 1.337926l138.657798 147.171873c11.068298 11.798076 11.311557 30.164153 0.364889 42.205488l-138.657798 152.037059c-6.081482 6.568001-14.473928 9.973631-22.866373 9.973631z" fill="" ></path><path d="M806.343746 786.21404h-581.389713c-82.100012 0-148.996318-66.896306-148.996318-148.996318v-245.691888c0-17.14978 13.86578-31.01556 31.01556-31.01556s31.01556 13.86578 31.01556 31.01556v245.691888c0 47.922081 39.043117 86.965198 86.965198 86.965198h581.389713c17.14978 0 31.01556 13.86578 31.01556 31.01556s-13.86578 31.01556-31.01556 31.01556z" fill="" ></path><path d="M322.25775 468.76066c-8.270816 0-16.420002-3.284-22.623114-9.730371l-138.657798-147.171874c-11.068298-11.798076-11.311557-30.164153-0.364889-42.205487l138.657798-152.037059c11.554816-12.649483 31.13719-13.500891 43.786673-2.067704 12.649483 11.554816 13.500891 31.13719 2.067704 43.786673l-119.197054 130.8735 118.953795 126.251574c11.798076 12.527854 11.189928 32.110227-1.337926 43.786673-5.959853 5.716593-13.62252 8.514075-21.285189 8.514075z" fill="" ></path><path d="M917.026725 664.584392c-17.14978 0-31.01556-13.86578-31.01556-31.01556v-245.691887c0-47.922081-39.043117-86.965198-86.965198-86.965198h-581.389713c-17.14978 0-31.01556-13.86578-31.01556-31.01556s13.86578-31.01556 31.01556-31.01556h581.389713c82.100012 0 148.996318 66.896306 148.996318 148.996318v245.691887c0 17.14978-13.86578 31.01556-31.01556 31.01556z" fill="" ></path></symbol><symbol id="icon-properties" viewBox="0 0 1024 1024"><path d="M512.980327 64.636113c-246.706845 0-447.421192 200.714348-447.421192 447.421192 0 246.700705 200.714348 447.415053 447.421192 447.415053s447.421192-200.714348 447.421193-447.415053c0-246.706845-200.715371-447.421192-447.421193-447.421192z m0 833.54532c-212.913181 0-386.130268-173.21811-386.130267-386.125151 0-212.913181 173.21811-386.130268 386.130267-386.130268s386.130268 173.21811 386.130268 386.130268c0 212.908064-173.21811 386.125151-386.130268 386.125151z" ></path><path d="M606.931093 640.392182c-11.621688 0-55.209416 68.771293-79.423911 68.771293-6.780427 0-9.685593-5.813403-9.685593-11.624758 0-13.558807 8.715499-33.899064 13.558807-45.520753l57.147558-156.913773c28.088732-77.487815-8.717546-98.795097-42.617633-98.795097-46.491871 0-88.142479 23.245424-120.105449 54.240345-10.654664 10.654664-45.523823 44.554752-45.523823 59.083654 0 4.844332 4.843308 10.655687 10.655688 10.655687 14.528901 0 52.302203-69.739341 82.328053-69.739341 5.814426 0 13.561877 6.780427 7.751545 21.309329L426.773943 612.304474c-5.811356 13.558807-32.93204 79.423911-32.93204 118.167306 0 30.994921 19.373233 44.554752 48.432059 44.554752 80.391958 0 174.34477-99.765191 174.34477-123.009591-0.002047-6.780427-5.814426-11.624758-9.687639-11.624759zM590.464049 249.081938c-35.836183 0-65.86408 28.088732-65.86408 63.927985 0 32.93204 21.310352 55.210439 54.242392 54.239322 36.805254 0 66.832128-27.120684 66.832128-63.927985 0-32.92897-23.24747-54.239322-55.21044-54.239322z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M409.6 163.84h163.84v40.96h-163.84zM532.48 368.64h40.96v368.64h-40.96zM409.6 368.64h40.96v368.64h-40.96z" ></path><path d="M286.72 245.76v614.4h409.6V245.76H286.72z m450.56 0v655.36H245.76V245.76H204.8V204.8h573.44v40.96h-40.96z" ></path></symbol><symbol id="icon-custom-task" viewBox="0 0 1024 1024"><path d="M756.63132445 483.81952l220.74709333-209.7152a112.86755555 112.86755555 0 0 0 0-159.61656889l-55.08664889-55.08664889a112.86755555 112.86755555 0 0 0-157.54126222-2.00248889L549.13706667 262.12579555 339.71313778 38.39317333l-1.71121778-1.78403555a73.76440889 73.76440889 0 0 0-104.34787555-0.43690667L76.44046222 193.38581333a73.728 73.728 0 0 0-1.27431111 102.56384L281.49532445 516.36906667 86.41649778 701.69031111A112.94037333 112.94037333 0 0 0 54.26744889 757.76L21.28099555 898.55317333a74.67463111 74.67463111 0 0 0 93.7528889 88.65564445L250.76622222 947.23185778a113.48650667 113.48650667 0 0 0 45.8752-26.43285333l192.34816-182.73621334 231.66976 247.50762667 1.71121778 1.78403555a73.76440889 73.76440889 0 0 0 104.34787555 0.43690667L983.93201778 830.57777778a73.728 73.728 0 0 0 1.27431111-102.56384L756.63132445 483.81952zM292.89130667 823.95136l-102.52743112-102.52743111a35.82634667 35.82634667 0 0 0-11.14112-7.39100444l509.2511289-483.80131556 107.26058666 107.26058666c1.60199111 1.60199111 3.60448 2.36657778 5.42492444 3.60448l-508.26808888 482.85468445z m521.99424-713.83267555a40.04977778 40.04977778 0 0 1 55.88764444 0.72817777l55.08664889 55.08664889c15.65582222 15.65582222 15.65582222 40.99640889-0.72817778 57.344l-73.32750222 69.65020444c-1.45635555-2.36657778-2.54862222-4.87879111-4.62392889-6.95409777l-105.94986666-105.94986667 73.65518222-69.90506666z m-557.16522667 274.34097777c9.10222222-0.14563555 18.20444445-3.60448 25.15854222-10.55857777l54.61333333-54.61333334a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-10.15808 23.04682667L128.35953778 246.21511111c-0.58254222-0.58254222-0.58254222-1.16508445-0.40049778-1.31072L285.17262222 87.6544c0.14563555-0.14563555 0.76458667-0.14563555 1.41994667 0.47331555l209.78801778 224.13312L334.32462222 466.23402667l-76.60430222-81.77436445zM94.46286222 917.37656889a1.82044445 1.82044445 0 0 1-2.29376-2.18453334L125.15555555 774.39886222c1.12867555-4.73315555 3.34961778-9.06581333 6.04387556-13.07079111a36.19043555 36.19043555 0 0 0 7.68227556 11.54161778l100.45212444 100.45212444a39.90414222 39.90414222 0 0 1-9.10222222 4.04138667l-135.76874667 40.01336889zM775.23626667 936.3456c-0.14563555 0.14563555-0.76458667 0.14563555-1.41994667-0.47331555l-142.90488889-152.66247112a35.53507555 35.53507555 0 0 0 16.01991111-8.77454222l54.61333333-54.61333333a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-8.30122666 13.54410667l-45.40188445-48.53304889 162.05596445-153.97319111 228.21091555 243.83032889c0.54613333 0.58254222 0.54613333 1.16508445 0.40049778 1.31072L775.23626667 936.3456z" ></path></symbol><symbol id="icon-join" viewBox="0 0 1024 1024"><path d="M987.136 552.96c5.46133333-5.46133333 10.92266667-13.65333333 10.92266667-24.576 0-8.192-2.73066667-16.384-10.92266667-24.576L817.83466667 329.04533333c-5.46133333-2.73066667-13.65333333-8.192-24.576-8.192-8.192 0-19.11466667 2.73066667-24.576 10.92266667l-177.49333334 174.76266667C585.728 512 580.26666667 520.192 580.26666667 531.11466667s2.73066667 19.11466667 10.92266666 24.576l177.49333334 172.032c5.46133333 5.46133333 13.65333333 10.92266667 24.576 10.92266666 8.192 0 16.384-2.73066667 24.576-10.92266666L987.136 552.96zM25.94133333 970.752c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h270.336c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-68.26666667h152.91733333c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-682.66666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H367.27466667V47.78666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v221.184c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266666h270.336c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V252.58666667h68.26666666c8.192 0 16.384 2.73066667 24.576 10.92266666 5.46133333 5.46133333 10.92266667 16.384 10.92266667 24.576V785.06666667c0 8.192-2.73066667 16.384-10.92266667 24.576-5.46133333 5.46133333-16.384 10.92266667-24.576 10.92266666h-68.26666666v-68.26666666c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v218.45333333z" ></path></symbol><symbol id="icon-fork" viewBox="0 0 1024 1024"><path d="M36.864 471.04c-5.46133333 5.46133333-10.92266667 13.65333333-10.92266667 24.576 0 8.192 2.73066667 16.384 10.92266667 24.576l169.30133333 174.76266667c5.46133333 2.73066667 13.65333333 8.192 24.576 8.192 8.192 0 19.11466667-2.73066667 24.576-10.92266667l177.49333334-174.76266667c5.46133333-5.46133333 10.92266667-13.65333333 10.92266666-24.576s-2.73066667-19.11466667-10.92266666-24.576l-177.49333334-172.032c-5.46133333-5.46133333-13.65333333-10.92266667-24.576-10.92266666-8.192 0-16.384 2.73066667-24.576 10.92266666L36.864 471.04zM998.05866667 53.248c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v68.26666667H503.808c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v682.66666667c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h152.91733333v101.03466666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V755.02933333c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266666H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v16.384h-68.26666666c-8.192 0-16.384-2.73066667-24.576-10.92266666-5.46133333-5.46133333-10.92266667-16.384-10.92266667-24.576V238.93333333c0-8.192 2.73066667-16.384 10.92266667-24.576 5.46133333-5.46133333 16.384-10.92266667 24.576-10.92266666h68.26666666v68.26666666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V53.248z" ></path></symbol><symbol id="icon-copy-task" viewBox="0 0 1024 1024"><path d="M636.30222222 513.25155555c11.71911111-6.82666667 21.16266667-26.39644445 1.36533334-35.72622222-6.71288889-3.072-13.65333333-5.91644445-20.59377778-8.64711111C666.45333334 424.61866667 697.74222222 360.56177778 697.74222222 288.99555555c0-133.34755555-108.20266667-241.55022222-241.55022222-241.55022222S214.64177778 155.648 214.64177778 288.99555555c0 71.56622222 31.28888889 135.62311111 80.66844444 179.88266667-146.31822222 57.45777778-254.29333333 191.03288889-275.34222222 352.02844445-0.22755555 1.93422222-0.34133333 3.86844445-0.34133333 5.80266666 0 30.37866667 24.576 55.06844445 55.06844445 55.06844445H532.76444445c-21.04888889-38.912-33.10933333-83.51288889-33.10933333-130.84444445 0.11377778-101.48977778 55.06844445-190.00888889 136.6471111-237.68177778z m31.63022223 227.8968889l78.05155555 37.09155555 98.98666667-98.98666667z m133.91644444 133.91644444l56.88888889-171.23555556-94.09422222 94.09422222z" ></path><path d="M774.76977778 524.97066667c-124.47288889 0-225.84888889 101.26222222-225.84888889 225.84888888 0 124.47288889 101.26222222 225.84888889 225.84888889 225.8488889s225.84888889-101.26222222 225.84888889-225.8488889c0-124.47288889-101.26222222-225.84888889-225.84888889-225.84888888z m129.47911111 128l-87.15377777 262.25777778c-1.70666667 5.23377778-6.48533333 8.87466667-11.94666667 9.216h-0.91022223c-5.12 0-10.01244445-2.95822222-12.17422222-7.62311112l-54.49955555-112.64-110.93333333-52.90666666c-3.29955555-1.59288889-5.80266667-4.32355555-6.94044445-7.73688889-2.50311111-7.05422222 1.25155555-14.79111111 8.30577778-17.29422223l258.95822222-90.45333333c1.47911111-0.45511111 2.95822222-0.79644445 4.43733333-0.79644444 3.64088889 0 6.94044445 1.36533333 9.55733334 3.86844444 3.52711111 3.75466667 4.89244445 9.216 3.29955555 14.10844445z" ></path></symbol><symbol id="icon-subprocess" viewBox="0 0 1024 1024"><path d="M1023.78666667 129.49333333c-0.32-6.93333333-1.28-13.86666667-2.56-20.48s-3.2-13.12-5.54666667-19.41333333c-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.73333333-8.85333333-8.42666667-17.28-13.86666667-25.06666666-0.32-0.53333333-0.74666667-1.06666667-1.06666667-1.49333334-0.96-1.28-1.92-2.66666667-2.98666666-3.94666666-0.32-0.32-0.53333333-0.74666667-0.85333334-1.06666667-2.56-3.2-5.22666667-6.29333333-8-9.28l-0.21333333-0.21333333c-5.97333333-6.29333333-12.58666667-12.05333333-19.73333333-17.06666667-1.49333333-1.06666667-2.98666667-2.02666667-4.48-3.09333333-1.6-1.06666667-3.2-2.02666667-4.90666667-3.09333334-0.85333333-0.53333333-1.81333333-1.06666667-2.66666667-1.6-1.28-0.74666667-2.45333333-1.38666667-3.73333333-2.02666666-0.64-0.32-1.28-0.64-2.02666667-1.06666667-1.28-0.64-2.66666667-1.28-4.05333333-1.92-2.56-1.17333333-5.22666667-2.34666667-7.89333333-3.41333333-1.49333333-0.64-3.09333333-1.17333333-4.58666667-1.70666667-2.34666667-0.85333333-4.8-1.6-7.25333333-2.24-3.2-0.96-6.50666667-1.70666667-9.81333334-2.45333333-5.54666667-1.17333333-11.2-1.92-16.96-2.34666667-3.52-0.21333333-6.93333333-0.42666667-10.45333333-0.42666667s-7.04 0.10666667-10.45333333 0.42666667c-5.76 0.42666667-11.41333333 1.28-16.96 2.34666667-3.30666667 0.64-6.61333333 1.49333333-9.81333334 2.45333333-2.45333333 0.64-4.8 1.49333333-7.25333333 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666667-1.28 0.64-2.56 1.38666667-3.73333333 2.02666666-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333334-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-7.14666667 5.01333333-13.76 10.77333333-19.73333333 17.06666667l-0.21333333 0.21333333c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333334 1.06666667-0.96 1.28-2.02666667 2.56-2.98666666 3.94666666-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333334-5.44 7.78666667-10.13333333 16.21333333-13.86666667 25.06666666-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666667 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333333 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333334 0.42666667 5.76 1.28 11.41333333 2.34666666 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333334 9.81333333 5.22666667 18.34666667 14.18666667 35.09333333 26.02666666 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333334 2.45333334 4.16 4.8 8.74666667 9.38666667 13.54666666 13.65333333l-105.81333333 306.98666667c-3.09333333-0.21333333-6.18666667-0.32-9.28-0.32-14.93333333 0-29.33333333 2.45333333-42.77333333 6.82666666-0.64 0.21333333-1.28 0.42666667-1.81333334 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666667-2.34666667 0.96-4.69333333 1.92-7.04 2.98666667L466.56 395.62666667c2.34666667-5.44 4.37333333-11.2 6.08-16.96 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666667-10.45333333 0-2.34666667-0.10666667-4.69333333-0.21333334-7.04-0.32-6.93333333-1.28-13.86666667-2.56-20.48-7.04-34.45333333-27.09333333-64.10666667-54.72-83.84-0.85333333-0.64-1.81333333-1.28-2.66666666-1.92-6.4-4.26666667-13.12-8.10666667-20.16-11.30666667-2.02666667-0.96-4.05333333-1.81333333-6.08-2.56s-4.16-1.6-6.29333334-2.34666666c-13.76-4.69333333-28.48-7.14666667-43.84-7.14666667-3.52 0-7.04 0.10666667-10.45333333 0.42666667-5.76 0.42666667-11.41333333 1.28-16.96 2.34666666-3.30666667 0.64-6.61333333 1.49333333-9.81333333 2.45333334-2.45333333 0.64-4.8 1.49333333-7.25333334 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666666-2.66666667 1.06666667-5.33333333 2.13333333-7.89333334 3.41333334-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666666-1.28 0.64-2.56 1.38666667-3.73333333 2.02666667-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666666 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333334-7.14666667 5.01333333-13.76 10.77333333-19.73333334 17.06666666l-0.21333333 0.21333334c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333333 1.06666666-0.96 1.28-2.02666667 2.56-2.98666667 3.94666667-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333333-5.44 7.78666667-10.13333333 16.21333333-13.86666666 25.06666667-0.85333333 2.02666667-1.70666667 4.16-2.45333334 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666666 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333334 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333333 0.42666667 5.76 1.28 11.41333333 2.34666667 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333333 9.81333334 5.22666667 18.34666667 14.18666667 35.09333333 26.02666667 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333333 2.45333333 0.64 0.74666667 1.28 1.49333333 1.92 2.13333334L129.6 751.04c-12.48 0.64-24.53333333 2.88-35.84 6.61333333-0.64 0.21333333-1.28 0.42666667-1.81333333 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-3.30666667 1.49333333-6.61333333 3.2-9.81333334 5.01333334-0.96 0.53333333-1.81333333 1.06666667-2.66666666 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-1.81333333 1.28-3.52 2.56-5.22666667 3.94666667-0.85333333 0.64-1.70666667 1.38666667-2.56 2.02666667-2.56 2.13333333-5.01333333 4.26666667-7.36 6.50666666-0.74666667 0.74666667-1.6 1.49333333-2.34666666 2.24-1.49333333 1.49333333-3.09333333 3.09333333-4.48 4.69333334-1.49333333 1.6-2.88 3.30666667-4.26666667 4.90666666-2.77333333 3.41333333-5.44 6.82666667-7.89333333 10.56-4.90666667 7.25333333-9.17333333 15.04-12.58666667 23.14666667-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-0.74666667 2.13333333-1.49333333 4.16-2.13333334 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666666 13.97333333 0 75.41333333 61.12 136.53333333 136.53333333 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666666-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666667-13.54666667s-2.02666667-8.85333333-3.41333333-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333334-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.38666667-1.70666667-2.77333333-3.30666667-4.26666667-4.90666666s-2.98666667-3.2-4.48-4.69333334c-0.74666667-0.74666667-1.6-1.49333333-2.34666666-2.24-1.38666667-1.38666667-2.88-2.66666667-4.37333334-3.94666666l106.45333334-307.2c2.77333333 0.21333333 5.65333333 0.32 8.42666666 0.32 16.53333333 0 32.32-2.88 46.93333334-8.32 1.81333333-0.64 3.52-1.38666667 5.33333333-2.13333334l162.13333333 164.8c-0.42666667 1.17333333-0.85333333 2.24-1.28 3.41333334-0.74666667 2.13333333-1.49333333 4.16-2.13333333 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666667 13.97333333 0 75.41333333 61.12 136.53333333 136.53333334 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666667-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666666-13.54666667s-2.02666667-8.85333333-3.41333334-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333333-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.06666667-1.38666667-2.24-2.66666667-3.41333334-3.94666666l109.97333334-318.93333334c1.17333333-0.10666667 2.24-0.10666667 3.41333333-0.21333333 5.76-0.42666667 11.41333333-1.28 16.96-2.34666667 3.30666667-0.64 6.61333333-1.49333333 9.81333333-2.45333333 18.34666667-5.22666667 35.09333333-14.18666667 49.49333334-26.02666667 0.85333333-0.74666667 1.70666667-1.38666667 2.45333333-2.13333333 4.90666667-4.26666667 9.6-8.96 13.86666667-13.86666667 0.74666667-0.85333333 1.38666667-1.70666667 2.13333333-2.45333333 11.84-14.29333333 20.8-31.14666667 26.02666667-49.49333333 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666666-10.45333333 0.10666667-2.45333333 0-4.8-0.10666666-7.14666667z" ></path></symbol><symbol id="icon-human-decision" viewBox="0 0 1024 1024"><path d="M519.5 594.47733333c-4.1 10.399-6.1 21.398-6.1 32.197 0 23.198 8.899 46.395 26.497 64.294l29.897 29.997 1.7 1.4c17.398 16.798 39.996 24.997 62.494 24.997 22.998 0 46.396-8.7 63.794-26.397h0.2l176.883-176.983 1.6-1.5c16.698-17.598 24.797-40.196 24.797-62.794 0-23.197-8.8-46.195-26.397-63.794h0.1l0.1-0.4-29.898-29.797c-17.598-17.498-40.796-26.297-64.293-26.297-11 0-21.998 1.9-32.497 5.9L557.696 174.41733333c4.2-10.399 6.099-21.498 6.099-32.497 0-23.198-9-46.395-26.697-64.293L507.2 47.83033333C489.602 30.23333333 466.404 21.33333333 443.107 21.33333333c-23.198 0-46.696 8.9-64.294 26.497L201.93 224.81333333l-1.5 1.5c-16.398 17.698-24.797 40.296-24.797 62.494 0 23.398 8.799 46.595 26.397 64.394l29.897 29.897 1.7 1.4c17.598 16.898 40.096 25.097 62.494 25.097 10.999 0 21.898-2.2 32.497-6l18.898 18.999L31.546 738.86333333C10.55 759.86133333 0.05 787.45833333 0.05 814.95533333c0 27.798 10.499 55.495 31.497 76.393 21.198 21.098 48.795 31.597 76.392 31.597 27.698 0 55.195-10.499 76.293-31.597l315.97-316.07 19.297 19.199zM959.956 981.33933333H512c-35.197 0-63.994-28.797-63.994-63.994 0-35.196 28.797-63.993 63.994-63.993h447.956c35.197 0 63.994 28.797 63.994 63.993 0 35.197-28.797 63.994-63.994 63.994z" ></path></symbol><symbol id="icon-human-task" viewBox="0 0 1024 1024"><path d="M924.33066667 123.33511111H776.87466667v163.84h-546.13333334v-163.84H99.66933333c-19.11466667 0-32.768 19.11466667-32.768 38.22933334v813.73866666c0 21.84533333 16.384 38.22933333 35.49866667 38.22933334h816.46933333c19.11466667 0 35.49866667-16.384 35.49866667-38.22933334V161.56444445c0-21.84533333-16.384-38.22933333-35.49866667-38.22933334h5.46133334zM790.528 445.55377778L471.04 838.76977778c2.73066667 5.46133333-5.46133333 5.46133333-10.92266667 2.73066667l-232.10666666-191.14666667c-5.46133333-2.73066667-5.46133333-10.92266667-2.73066667-16.384l38.22933333-49.152c2.73066667-5.46133333 10.92266667-5.46133333 16.384-2.73066667l174.76266667 147.456 273.06666667-338.60266666c2.73066667-8.192 10.92266667-8.192 16.384-2.73066667l43.69066666 38.22933333c8.192 2.73066667 10.92266667 8.192 2.73066667 19.11466667zM643.072 74.18311111V41.41511111c0-30.03733333-27.30666667-49.152-57.344-49.152H419.15733333c-30.03733333 0-57.344 19.11466667-57.344 49.152v32.768h-65.536v163.84h412.33066667v-163.84h-65.536z m-139.264 98.304c-32.768 0-60.07466667-27.30666667-60.07466667-60.07466666s27.30666667-60.07466667 60.07466667-60.07466667 60.07466667 27.30666667 60.07466667 60.07466667c0 38.22933333-27.30666667 60.07466667-60.07466667 60.07466666z m0 0" ></path></symbol><symbol id="icon-decision" viewBox="0 0 1024 1024"><path d="M580.175027 28.57919l414.065896 414.065896a97.58526 97.58526 0 0 1 0 138.00065l-414.065896 414.065896a97.58526 97.58526 0 0 1-138.000649 0l-414.065897-414.065896a97.58526 97.58526 0 0 1 0-138.00065l414.065897-414.065896a97.58526 97.58526 0 0 1 138.000649 0z" ></path></symbol><symbol id="icon-end" viewBox="0 0 1024 1024"><path d="M512 25.6C243.2 25.6 25.6 243.2 25.6 512S243.2 998.4 512 998.4 998.4 780.8 998.4 512 780.8 25.6 512 25.6z m162.304 615.936c0 17.92-14.336 32.256-32.256 32.256H382.464c-17.92 0-32.256-14.336-32.256-32.256V381.952c0-17.92 14.336-32.256 32.256-32.256h259.584c17.92 0 32.256 14.336 32.256 32.256v259.584z m0 0" ></path></symbol><symbol id="icon-start" viewBox="0 0 1024 1024"><path d="M960.62577778 322.33244445c-24.46222222-57.91288889-59.61955555-110.02311111-104.33422223-154.73777778s-96.82488889-79.872-154.73777777-104.33422222C641.59288889 37.888 577.87733333 25.03111111 512.11377778 25.03111111c-65.64977778 0-129.47911111 12.85688889-189.44 38.22933334-57.91288889 24.46222222-110.02311111 59.61955555-154.73777778 104.33422222s-79.872 96.82488889-104.33422222 154.73777778C38.22933333 382.29333333 25.37244445 446.00888889 25.37244445 511.77244445c0 65.64977778 12.85688889 129.47911111 38.22933333 189.44 24.46222222 57.91288889 59.61955555 110.02311111 104.33422222 154.73777777s96.82488889 79.872 154.73777778 104.33422223c59.96088889 25.37244445 123.67644445 38.22933333 189.44 38.22933333 65.64977778 0 129.47911111-12.97066667 189.44-38.22933333 57.91288889-24.46222222 110.02311111-59.61955555 154.73777777-104.33422223s79.872-96.82488889 104.33422223-154.73777777c25.37244445-59.96088889 38.22933333-123.67644445 38.22933333-189.44 0-65.64977778-12.85688889-129.47911111-38.22933333-189.44z m-236.65777778 233.13066666L464.09955555 755.14311111C422.11555555 797.01333333 350.43555555 767.31733333 350.43555555 708.03911111V308.79288889c0-59.27822222 71.68-88.97422222 113.664-47.104l259.86844445 199.56622222c26.05511111 26.05511111 26.05511111 68.15288889 0 94.208z" ></path></symbol><symbol id="icon-virtual-human-task" viewBox="0 0 1496 1024"><path d="M864 1024H160C70.4 1024 0 953.6 0 864V160C0 70.4 70.4 0 160 0h704c89.6 0 160 70.4 160 160v704c0 89.6-70.4 160-160 160zM160 64c-51.2 0-96 44.8-96 96v704c0 51.2 44.8 96 96 96h704c51.2 0 96-44.8 96-96V160c0-51.2-44.8-96-96-96H160z" fill="#C9CED6" ></path></symbol></svg>',i=(t=document.getElementsByTagName("script"))[t.length-1].getAttribute("data-injectcss");if(i&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(n){console&&console.log(n)}}(function(n){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(n,0);else{var r=function(){document.removeEventListener("DOMContentLoaded",r,!1),n()};document.addEventListener("DOMContentLoaded",r,!1)}else document.attachEvent&&(l=n,s=e.document,a=!1,u=function(){a||(a=!0,l())},(d=function(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(d,50)}u()})(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,u())});var l,s,a,u,d})(function(){var n,r;(n=document.createElement("div")).innerHTML=o,o=null,(r=n.getElementsByTagName("svg")[0])&&(r.setAttribute("aria-hidden","true"),r.style.position="absolute",r.style.width=0,r.style.height=0,r.style.overflow="hidden",function(l,s){s.firstChild?function(a,u){u.parentNode.insertBefore(a,u)}(l,s.firstChild):s.appendChild(l)}(r,document.body))})})(window);function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const isProxyAvailable=typeof Proxy=="function",HOOK_SETUP="devtools-plugin:setup",HOOK_PLUGIN_SETTINGS_SET="plugin:settings:set";let supported,perf;function isPerformanceSupported(){var e;return supported!==void 0||(typeof window<"u"&&window.performance?(supported=!0,perf=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(supported=!0,perf=global.perf_hooks.performance):supported=!1),supported}function now(){return isPerformanceSupported()?perf.now():Date.now()}class ApiProxy{constructor(t,o){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=o;const i={};if(t.settings)for(const l in t.settings){const s=t.settings[l];i[l]=s.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const l=localStorage.getItem(n),s=JSON.parse(l);Object.assign(r,s)}catch{}this.fallbacks={getSettings(){return r},setSettings(l){try{localStorage.setItem(n,JSON.stringify(l))}catch{}r=l},now(){return now()}},o&&o.on(HOOK_PLUGIN_SETTINGS_SET,(l,s)=>{l===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(l,s)=>this.target?this.target.on[s]:(...a)=>{this.onQueue.push({method:s,args:a})}}),this.proxiedTarget=new Proxy({},{get:(l,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...a)=>(this.targetQueue.push({method:s,args:a,resolve:()=>{}}),this.fallbacks[s](...a)):(...a)=>new Promise(u=>{this.targetQueue.push({method:s,args:a,resolve:u})})})}async setRealTarget(t){this.target=t;for(const o of this.onQueue)this.target.on[o.method](...o.args);for(const o of this.targetQueue)o.resolve(await this.target[o.method](...o.args))}}function setupDevtoolsPlugin(e,t){const o=e,i=getTarget(),n=getDevtoolsGlobalHook(),r=isProxyAvailable&&o.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(HOOK_SETUP,e,t);else{const l=r?new ApiProxy(o,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:o,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*!
|
|
2
|
+
* vuex v4.1.0
|
|
3
|
+
* (c) 2022 Evan You
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/var storeKey="store";function forEachValue(e,t){Object.keys(e).forEach(function(o){return t(e[o],o)})}function isObject$2(e){return e!==null&&typeof e=="object"}function isPromise(e){return e&&typeof e.then=="function"}function assert(e,t){if(!e)throw new Error("[vuex] "+t)}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,o){return t.indexOf(e)<0&&(o&&o.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function resetStore(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;installModule(e,o,[],e._modules.root,!0),resetStoreState(e,o,t)}function resetStoreState(e,t,o){var i=e._state,n=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,l={},s={},a=Vue.effectScope(!0);a.run(function(){forEachValue(r,function(u,d){l[d]=partial(u,e),s[d]=Vue.computed(function(){return l[d]()}),Object.defineProperty(e.getters,d,{get:function(){return s[d].value},enumerable:!0})})}),e._state=Vue.reactive({data:t}),e._scope=a,e.strict&&enableStrictMode(e),i&&o&&e._withCommit(function(){i.data=null}),n&&n.stop()}function installModule(e,t,o,i,n){var r=!o.length,l=e._modules.getNamespace(o);if(i.namespaced&&(e._modulesNamespaceMap[l]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+l+" for the namespaced module "+o.join("/")),e._modulesNamespaceMap[l]=i),!r&&!n){var s=getNestedState(t,o.slice(0,-1)),a=o[o.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&a in s&&console.warn('[vuex] state field "'+a+'" was overridden by a module with the same name at "'+o.join(".")+'"'),s[a]=i.state})}var u=i.context=makeLocalContext(e,l,o);i.forEachMutation(function(d,c){var m=l+c;registerMutation(e,m,d,u)}),i.forEachAction(function(d,c){var m=d.root?c:l+c,w=d.handler||d;registerAction(e,m,w,u)}),i.forEachGetter(function(d,c){var m=l+c;registerGetter(e,m,d,u)}),i.forEachChild(function(d,c){installModule(e,t,o.concat(c),d,n)})}function makeLocalContext(e,t,o){var i=t==="",n={dispatch:i?e.dispatch:function(r,l,s){var a=unifyObjectStyle(r,l,s),u=a.payload,d=a.options,c=a.type;if((!d||!d.root)&&(c=t+c,process.env.NODE_ENV!=="production"&&!e._actions[c])){console.error("[vuex] unknown local action type: "+a.type+", global type: "+c);return}return e.dispatch(c,u)},commit:i?e.commit:function(r,l,s){var a=unifyObjectStyle(r,l,s),u=a.payload,d=a.options,c=a.type;if((!d||!d.root)&&(c=t+c,process.env.NODE_ENV!=="production"&&!e._mutations[c])){console.error("[vuex] unknown local mutation type: "+a.type+", global type: "+c);return}e.commit(c,u,d)}};return Object.defineProperties(n,{getters:{get:i?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,o)}}}),n}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var o={},i=t.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,i)===t){var r=n.slice(i);Object.defineProperty(o,r,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[t]=o}return e._makeLocalGettersCache[t]}function registerMutation(e,t,o,i){var n=e._mutations[t]||(e._mutations[t]=[]);n.push(function(l){o.call(e,i.state,l)})}function registerAction(e,t,o,i){var n=e._actions[t]||(e._actions[t]=[]);n.push(function(l){var s=o.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},l);return isPromise(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):s})}function registerGetter(e,t,o,i){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(r){return o(i.state,i.getters,r.state,r.getters)}}function enableStrictMode(e){Vue.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&assert(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function getNestedState(e,t){return t.reduce(function(o,i){return o[i]},e)}function unifyObjectStyle(e,t,o){return isObject$2(e)&&e.type&&(o=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&assert(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:o}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(e,t){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[LABEL_VUEX_BINDINGS]},function(o){o.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),o.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),o.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(i){if(i.app===e&&i.inspectorId===INSPECTOR_ID)if(i.filter){var n=[];flattenStoreForInspectorTree(n,t._modules.root,i.filter,""),i.rootNodes=n}else i.rootNodes=[formatStoreForInspectorTree(t._modules.root,"")]}),o.on.getInspectorState(function(i){if(i.app===e&&i.inspectorId===INSPECTOR_ID){var n=i.nodeId;makeLocalGetters(t,n),i.state=formatStoreForInspectorState(getStoreModule(t._modules,n),n==="root"?t.getters:t._makeLocalGettersCache,n)}}),o.on.editInspectorState(function(i){if(i.app===e&&i.inspectorId===INSPECTOR_ID){var n=i.nodeId,r=i.path;n!=="root"&&(r=n.split("/").filter(Boolean).concat(r)),t._withCommit(function(){i.set(t._state.data,r,i.state.value)})}}),t.subscribe(function(i,n){var r={};i.payload&&(r.payload=i.payload),r.state=n,o.notifyComponentUpdate(),o.sendInspectorTree(INSPECTOR_ID),o.sendInspectorState(INSPECTOR_ID),o.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:i.type,data:r}})}),t.subscribeAction({before:function(i,n){var r={};i.payload&&(r.payload=i.payload),i._id=actionId++,i._time=Date.now(),r.state=n,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:r}})},after:function(i,n){var r={},l=Date.now()-i._time;r.duration={_custom:{type:"duration",display:l+"ms",tooltip:"Action duration",value:l}},i.payload&&(r.payload=i.payload),r.state=n,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:r}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(e,t){return{id:t||"root",label:extractNameFromPath(t),tags:e.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(e._children).map(function(o){return formatStoreForInspectorTree(e._children[o],t+o+"/")})}}function flattenStoreForInspectorTree(e,t,o,i){i.includes(o)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(t._children).forEach(function(n){flattenStoreForInspectorTree(e,t._children[n],o,i+n+"/")})}function formatStoreForInspectorState(e,t,o){t=o==="root"?t:t[o];var i=Object.keys(t),n={state:Object.keys(e.state).map(function(l){return{key:l,editable:!0,value:e.state[l]}})};if(i.length){var r=transformPathsToObjectTree(t);n.getters=Object.keys(r).map(function(l){return{key:l.endsWith("/")?extractNameFromPath(l):l,editable:!1,value:canThrow(function(){return r[l]})}})}return n}function transformPathsToObjectTree(e){var t={};return Object.keys(e).forEach(function(o){var i=o.split("/");if(i.length>1){var n=t,r=i.pop();i.forEach(function(l){n[l]||(n[l]={_custom:{value:{},display:l,tooltip:"Module",abstract:!0}}),n=n[l]._custom.value}),n[r]=canThrow(function(){return e[o]})}else t[o]=canThrow(function(){return e[o]})}),t}function getStoreModule(e,t){var o=t.split("/").filter(function(i){return i});return o.reduce(function(i,n,r){var l=i[n];if(!l)throw new Error('Missing module "'+n+'" for path "'+t+'".');return r===o.length-1?l:l._children},t==="root"?e:e.root._children)}function canThrow(e){try{return e()}catch(t){return t}}var Module=function(t,o){this.runtime=o,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=(typeof i=="function"?i():i)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(t,o){this._children[t]=o},Module.prototype.removeChild=function(t){delete this._children[t]},Module.prototype.getChild=function(t){return this._children[t]},Module.prototype.hasChild=function(t){return t in this._children},Module.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Module.prototype.forEachChild=function(t){forEachValue(this._children,t)},Module.prototype.forEachGetter=function(t){this._rawModule.getters&&forEachValue(this._rawModule.getters,t)},Module.prototype.forEachAction=function(t){this._rawModule.actions&&forEachValue(this._rawModule.actions,t)},Module.prototype.forEachMutation=function(t){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,t)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(t){this.register([],t,!1)};ModuleCollection.prototype.get=function(t){return t.reduce(function(o,i){return o.getChild(i)},this.root)},ModuleCollection.prototype.getNamespace=function(t){var o=this.root;return t.reduce(function(i,n){return o=o.getChild(n),i+(o.namespaced?n+"/":"")},"")},ModuleCollection.prototype.update=function(t){update([],this.root,t)},ModuleCollection.prototype.register=function(t,o,i){var n=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&assertRawModule(t,o);var r=new Module(o,i);if(t.length===0)this.root=r;else{var l=this.get(t.slice(0,-1));l.addChild(t[t.length-1],r)}o.modules&&forEachValue(o.modules,function(s,a){n.register(t.concat(a),s,i)})},ModuleCollection.prototype.unregister=function(t){var o=this.get(t.slice(0,-1)),i=t[t.length-1],n=o.getChild(i);if(!n){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}n.runtime&&o.removeChild(i)},ModuleCollection.prototype.isRegistered=function(t){var o=this.get(t.slice(0,-1)),i=t[t.length-1];return o?o.hasChild(i):!1};function update(e,t,o){if(process.env.NODE_ENV!=="production"&&assertRawModule(e,o),t.update(o),o.modules)for(var i in o.modules){if(!t.getChild(i)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+i+"' on hot reloading, manual reload is needed");return}update(e.concat(i),t.getChild(i),o.modules[i])}}var functionAssert={assert:function(e){return typeof e=="function"},expected:"function"},objectAssert={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},assertTypes={getters:functionAssert,mutations:functionAssert,actions:objectAssert};function assertRawModule(e,t){Object.keys(assertTypes).forEach(function(o){if(t[o]){var i=assertTypes[o];forEachValue(t[o],function(n,r){assert(i.assert(n),makeAssertionMessage(e,o,r,n,i.expected))})}})}function makeAssertionMessage(e,t,o,i,n){var r=t+" should be "+n+' but "'+t+"."+o+'"';return e.length>0&&(r+=' in module "'+e.join(".")+'"'),r+=" is "+JSON.stringify(i)+".",r}var Store=function e(t){var o=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(assert(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),assert(this instanceof e,"store must be called with the new operator."));var i=t.plugins;i===void 0&&(i=[]);var n=t.strict;n===void 0&&(n=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var l=this,s=this,a=s.dispatch,u=s.commit;this.dispatch=function(m,w){return a.call(l,m,w)},this.commit=function(m,w,_){return u.call(l,m,w,_)},this.strict=n;var d=this._modules.root.state;installModule(this,d,[],this._modules.root),resetStoreState(this,d),i.forEach(function(c){return c(o)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function(t,o){t.provide(o||storeKey,this),t.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&addDevtools(t,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(e){process.env.NODE_ENV!=="production"&&assert(!1,"use store.replaceState() to explicit replace store state.")},Store.prototype.commit=function(t,o,i){var n=this,r=unifyObjectStyle(t,o,i),l=r.type,s=r.payload,a=r.options,u={type:l,payload:s},d=this._mutations[l];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+l);return}this._withCommit(function(){d.forEach(function(m){m(s)})}),this._subscribers.slice().forEach(function(c){return c(u,n.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+l+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Store.prototype.dispatch=function(t,o){var i=this,n=unifyObjectStyle(t,o),r=n.type,l=n.payload,s={type:r,payload:l},a=this._actions[r];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+r);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(s,i.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var u=a.length>1?Promise.all(a.map(function(d){return d(l)})):a[0](l);return new Promise(function(d,c){u.then(function(m){try{i._actionSubscribers.filter(function(w){return w.after}).forEach(function(w){return w.after(s,i.state)})}catch(w){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(w))}d(m)},function(m){try{i._actionSubscribers.filter(function(w){return w.error}).forEach(function(w){return w.error(s,i.state,m)})}catch(w){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(w))}c(m)})})},Store.prototype.subscribe=function(t,o){return genericSubscribe(t,this._subscribers,o)},Store.prototype.subscribeAction=function(t,o){var i=typeof t=="function"?{before:t}:t;return genericSubscribe(i,this._actionSubscribers,o)},Store.prototype.watch=function(t,o,i){var n=this;return process.env.NODE_ENV!=="production"&&assert(typeof t=="function","store.watch only accepts a function."),Vue.watch(function(){return t(n.state,n.getters)},o,Object.assign({},i))},Store.prototype.replaceState=function(t){var o=this;this._withCommit(function(){o._state.data=t})},Store.prototype.registerModule=function(t,o,i){i===void 0&&(i={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(assert(Array.isArray(t),"module path must be a string or an Array."),assert(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,o),installModule(this,this.state,t,this._modules.get(t),i.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function(t){var o=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&assert(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var i=getNestedState(o.state,t.slice(0,-1));delete i[t[t.length-1]]}),resetStore(this)},Store.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&assert(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},Store.prototype.hotUpdate=function(t){this._modules.update(t),resetStore(this,!0)},Store.prototype._withCommit=function(t){var o=this._committing;this._committing=!0,t(),this._committing=o},Object.defineProperties(Store.prototype,prototypeAccessors);var mapMutations=normalizeNamespace(function(e,t){var o={};return process.env.NODE_ENV!=="production"&&!isValidMap(t)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),normalizeMap(t).forEach(function(i){var n=i.key,r=i.val;o[n]=function(){for(var s=[],a=arguments.length;a--;)s[a]=arguments[a];var u=this.$store.commit;if(e){var d=getModuleByNamespace(this.$store,"mapMutations",e);if(!d)return;u=d.context.commit}return typeof r=="function"?r.apply(this,[u].concat(s)):u.apply(this.$store,[r].concat(s))}}),o}),mapGetters=normalizeNamespace(function(e,t){var o={};return process.env.NODE_ENV!=="production"&&!isValidMap(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),normalizeMap(t).forEach(function(i){var n=i.key,r=i.val;r=e+r,o[n]=function(){if(!(e&&!getModuleByNamespace(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(r in this.$store.getters)){console.error("[vuex] unknown getter: "+r);return}return this.$store.getters[r]}},o[n].vuex=!0}),o});function normalizeMap(e){return isValidMap(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function isValidMap(e){return Array.isArray(e)||isObject$2(e)}function normalizeNamespace(e){return function(t,o){return typeof t!="string"?(o=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,o)}}function getModuleByNamespace(e,t,o){var i=e._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!i&&console.error("[vuex] module namespace not found in "+t+"(): "+o),i}/*!
|
|
6
|
+
* shared v9.6.5
|
|
7
|
+
* (c) 2023 kazuya kawaguchi
|
|
8
|
+
* Released under the MIT License.
|
|
9
|
+
*/const inBrowser=typeof window<"u";let mark,measure;if(process.env.NODE_ENV!=="production"){const e=inBrowser&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(mark=t=>{e.mark(t)},measure=(t,o,i)=>{e.measure(t,o,i),e.clearMarks(o),e.clearMarks(i)})}const RE_ARGS$1=/\{([0-9a-zA-Z]+)\}/g;function format$3(e,...t){return t.length===1&&isObject$1(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS$1,(o,i)=>t.hasOwnProperty(i)?t[i]:"")}const makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,o)=>friendlyJSONstringify({l:e,k:t,s:o}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$1=e=>typeof e=="number"&&isFinite(e),isDate$1=e=>toTypeString(e)==="[object Date]",isRegExp=e=>toTypeString(e)==="[object RegExp]",isEmptyObject=e=>isPlainObject(e)&&Object.keys(e).length===0,assign$2=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray$3=Array.isArray,isFunction=e=>typeof e=="function",isString$2=e=>typeof e=="string",isBoolean=e=>typeof e=="boolean",isObject$1=e=>e!==null&&typeof e=="object",objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject$1(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},toDisplayString=e=>e==null?"":isArray$3(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join$1(e,t=""){return e.reduce((o,i,n)=>n===0?o+i:o+t+i,"")}const RANGE=2;function generateCodeFrame(e,t=0,o=e.length){const i=e.split(/\r?\n/);let n=0;const r=[];for(let l=0;l<i.length;l++)if(n+=i[l].length+1,n>=t){for(let s=l-RANGE;s<=l+RANGE||o>n;s++){if(s<0||s>=i.length)continue;const a=s+1;r.push(`${a}${" ".repeat(3-String(a).length)}| ${i[s]}`);const u=i[s].length;if(s===l){const d=t-(n-u)+1,c=Math.max(1,o>n?u-d:o-t);r.push(" | "+" ".repeat(d)+"^".repeat(c))}else if(s>l){if(o>n){const d=Math.max(Math.min(o-n,u),1);r.push(" | "+"^".repeat(d))}n+=u+1}}break}return r.join(`
|
|
10
|
+
`)}function incrementer(e){let t=e;return()=>++t}function warn(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const hasWarned={};function warnOnce(e){hasWarned[e]||(hasWarned[e]=!0,warn(e))}function createEmitter(){const e=new Map;return{events:e,on(o,i){const n=e.get(o);n&&n.push(i)||e.set(o,[i])},off(o,i){const n=e.get(o);n&&n.splice(n.indexOf(i)>>>0,1)},emit(o,i){(e.get(o)||[]).slice().map(n=>n(i)),(e.get("*")||[]).slice().map(n=>n(o,i))}}}/*!
|
|
11
|
+
* message-compiler v9.6.5
|
|
12
|
+
* (c) 2023 kazuya kawaguchi
|
|
13
|
+
* Released under the MIT License.
|
|
14
|
+
*/function createPosition(e,t,o){return{line:e,column:t,offset:o}}function createLocation(e,t,o){const i={start:e,end:t};return o!=null&&(i.source=o),i}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$2(e,...t){return t.length===1&&isObject(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS,(o,i)=>t.hasOwnProperty(i)?t[i]:"")}const assign$1=Object.assign,isString$1=e=>typeof e=="string",isObject=e=>e!==null&&typeof e=="object";function join(e,t=""){return e.reduce((o,i,n)=>n===0?o+i:o+t+i,"")}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},errorMessages$2={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(e,t,o={}){const{domain:i,messages:n,args:r}=o,l=format$2((n||errorMessages$2)[e]||"",...r||[]),s=new SyntaxError(String(l));return s.code=e,t&&(s.location=t),s.domain=i,s}function defaultOnError(e){throw e}const RE_HTML_TAG=/<\/?[\w\s="/.':;#-\/]+>/,detectHtmlTag=e=>RE_HTML_TAG.test(e),CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
|
|
15
|
+
`,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let o=0,i=1,n=1,r=0;const l=N=>t[N]===CHAR_CR&&t[N+1]===CHAR_LF,s=N=>t[N]===CHAR_LF,a=N=>t[N]===CHAR_PS,u=N=>t[N]===CHAR_LS,d=N=>l(N)||s(N)||a(N)||u(N),c=()=>o,m=()=>i,w=()=>n,_=()=>r,b=N=>l(N)||a(N)||u(N)?CHAR_LF:t[N],E=()=>b(o),f=()=>b(o+r);function p(){return r=0,d(o)&&(i++,n=0),l(o)&&o++,o++,n++,t[o]}function g(){return l(o+r)&&r++,r++,t[o+r]}function v(){o=0,i=1,n=1,r=0}function T(N=0){r=N}function O(){const N=o+r;for(;N!==o;)p();r=0}return{index:c,line:m,column:w,peekOffset:_,charAt:b,currentChar:E,currentPeek:f,next:p,peek:g,reset:v,resetPeek:T,skipToPeek:O}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(e,t={}){const o=t.location!==!1,i=createScanner(e),n=()=>i.index(),r=()=>createPosition(i.line(),i.column(),i.index()),l=r(),s=n(),a={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},u=()=>a,{onError:d}=t;function c(k,C,I,...A){const x=u();if(C.column+=I,C.offset+=I,d){const B=o?createLocation(x.startLoc,C):null,re=createCompileError(k,B,{domain:ERROR_DOMAIN$3,args:A});d(re)}}function m(k,C,I){k.endLoc=r(),k.currentType=C;const A={type:C};return o&&(A.loc=createLocation(k.startLoc,k.endLoc)),I!=null&&(A.value=I),A}const w=k=>m(k,14);function _(k,C){return k.currentChar()===C?(k.next(),C):(c(CompileErrorCodes.EXPECTED_TOKEN,r(),0,C),"")}function b(k){let C="";for(;k.currentPeek()===CHAR_SP||k.currentPeek()===CHAR_LF;)C+=k.currentPeek(),k.peek();return C}function E(k){const C=b(k);return k.skipToPeek(),C}function f(k){if(k===EOF)return!1;const C=k.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C===95}function p(k){if(k===EOF)return!1;const C=k.charCodeAt(0);return C>=48&&C<=57}function g(k,C){const{currentType:I}=C;if(I!==2)return!1;b(k);const A=f(k.currentPeek());return k.resetPeek(),A}function v(k,C){const{currentType:I}=C;if(I!==2)return!1;b(k);const A=k.currentPeek()==="-"?k.peek():k.currentPeek(),x=p(A);return k.resetPeek(),x}function T(k,C){const{currentType:I}=C;if(I!==2)return!1;b(k);const A=k.currentPeek()===LITERAL_DELIMITER;return k.resetPeek(),A}function O(k,C){const{currentType:I}=C;if(I!==8)return!1;b(k);const A=k.currentPeek()===".";return k.resetPeek(),A}function N(k,C){const{currentType:I}=C;if(I!==9)return!1;b(k);const A=f(k.currentPeek());return k.resetPeek(),A}function P(k,C){const{currentType:I}=C;if(!(I===8||I===12))return!1;b(k);const A=k.currentPeek()===":";return k.resetPeek(),A}function y(k,C){const{currentType:I}=C;if(I!==10)return!1;const A=()=>{const B=k.currentPeek();return B==="{"?f(k.peek()):B==="@"||B==="%"||B==="|"||B===":"||B==="."||B===CHAR_SP||!B?!1:B===CHAR_LF?(k.peek(),A()):f(B)},x=A();return k.resetPeek(),x}function R(k){b(k);const C=k.currentPeek()==="|";return k.resetPeek(),C}function H(k){const C=b(k),I=k.currentPeek()==="%"&&k.peek()==="{";return k.resetPeek(),{isModulo:I,hasSpace:C.length>0}}function $(k,C=!0){const I=(x=!1,B="",re=!1)=>{const ie=k.currentPeek();return ie==="{"?B==="%"?!1:x:ie==="@"||!ie?B==="%"?!0:x:ie==="%"?(k.peek(),I(x,"%",!0)):ie==="|"?B==="%"||re?!0:!(B===CHAR_SP||B===CHAR_LF):ie===CHAR_SP?(k.peek(),I(!0,CHAR_SP,re)):ie===CHAR_LF?(k.peek(),I(!0,CHAR_LF,re)):!0},A=I();return C&&k.resetPeek(),A}function j(k,C){const I=k.currentChar();return I===EOF?EOF:C(I)?(k.next(),I):null}function te(k){return j(k,I=>{const A=I.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A>=48&&A<=57||A===95||A===36})}function ne(k){return j(k,I=>{const A=I.charCodeAt(0);return A>=48&&A<=57})}function ee(k){return j(k,I=>{const A=I.charCodeAt(0);return A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102})}function U(k){let C="",I="";for(;C=ne(k);)I+=C;return I}function K(k){E(k);const C=k.currentChar();return C!=="%"&&c(CompileErrorCodes.EXPECTED_TOKEN,r(),0,C),k.next(),"%"}function J(k){let C="";for(;;){const I=k.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if($(k))C+=I,k.next();else break;else if(I===CHAR_SP||I===CHAR_LF)if($(k))C+=I,k.next();else{if(R(k))break;C+=I,k.next()}else C+=I,k.next()}return C}function q(k){E(k);let C="",I="";for(;C=te(k);)I+=C;return k.currentChar()===EOF&&c(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,r(),0),I}function Q(k){E(k);let C="";return k.currentChar()==="-"?(k.next(),C+=`-${U(k)}`):C+=U(k),k.currentChar()===EOF&&c(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,r(),0),C}function z(k){E(k),_(k,"'");let C="",I="";const A=B=>B!==LITERAL_DELIMITER&&B!==CHAR_LF;for(;C=j(k,A);)C==="\\"?I+=se(k):I+=C;const x=k.currentChar();return x===CHAR_LF||x===EOF?(c(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),x===CHAR_LF&&(k.next(),_(k,"'")),I):(_(k,"'"),I)}function se(k){const C=k.currentChar();switch(C){case"\\":case"'":return k.next(),`\\${C}`;case"u":return Z(k,C,4);case"U":return Z(k,C,6);default:return c(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,r(),0,C),""}}function Z(k,C,I){_(k,C);let A="";for(let x=0;x<I;x++){const B=ee(k);if(!B){c(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${C}${A}${k.currentChar()}`);break}A+=B}return`\\${C}${A}`}function oe(k){E(k);let C="",I="";const A=x=>x!=="{"&&x!=="}"&&x!==CHAR_SP&&x!==CHAR_LF;for(;C=j(k,A);)I+=C;return I}function le(k){let C="",I="";for(;C=te(k);)I+=C;return I}function V(k){const C=(I=!1,A)=>{const x=k.currentChar();return x==="{"||x==="%"||x==="@"||x==="|"||x==="("||x===")"||!x||x===CHAR_SP?A:x===CHAR_LF||x===DOT?(A+=x,k.next(),C(I,A)):(A+=x,k.next(),C(!0,A))};return C(!1,"")}function h(k){E(k);const C=_(k,"|");return E(k),C}function M(k,C){let I=null;switch(k.currentChar()){case"{":return C.braceNest>=1&&c(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),k.next(),I=m(C,2,"{"),E(k),C.braceNest++,I;case"}":return C.braceNest>0&&C.currentType===2&&c(CompileErrorCodes.EMPTY_PLACEHOLDER,r(),0),k.next(),I=m(C,3,"}"),C.braceNest--,C.braceNest>0&&E(k),C.inLinked&&C.braceNest===0&&(C.inLinked=!1),I;case"@":return C.braceNest>0&&c(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,r(),0),I=S(k,C)||w(C),C.braceNest=0,I;default:let x=!0,B=!0,re=!0;if(R(k))return C.braceNest>0&&c(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,r(),0),I=m(C,1,h(k)),C.braceNest=0,C.inLinked=!1,I;if(C.braceNest>0&&(C.currentType===5||C.currentType===6||C.currentType===7))return c(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,r(),0),C.braceNest=0,L(k,C);if(x=g(k,C))return I=m(C,5,q(k)),E(k),I;if(B=v(k,C))return I=m(C,6,Q(k)),E(k),I;if(re=T(k,C))return I=m(C,7,z(k)),E(k),I;if(!x&&!B&&!re)return I=m(C,13,oe(k)),c(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,I.value),E(k),I;break}return I}function S(k,C){const{currentType:I}=C;let A=null;const x=k.currentChar();switch((I===8||I===9||I===12||I===10)&&(x===CHAR_LF||x===CHAR_SP)&&c(CompileErrorCodes.INVALID_LINKED_FORMAT,r(),0),x){case"@":return k.next(),A=m(C,8,"@"),C.inLinked=!0,A;case".":return E(k),k.next(),m(C,9,".");case":":return E(k),k.next(),m(C,10,":");default:return R(k)?(A=m(C,1,h(k)),C.braceNest=0,C.inLinked=!1,A):O(k,C)||P(k,C)?(E(k),S(k,C)):N(k,C)?(E(k),m(C,12,le(k))):y(k,C)?(E(k),x==="{"?M(k,C)||A:m(C,11,V(k))):(I===8&&c(CompileErrorCodes.INVALID_LINKED_FORMAT,r(),0),C.braceNest=0,C.inLinked=!1,L(k,C))}}function L(k,C){let I={type:14};if(C.braceNest>0)return M(k,C)||w(C);if(C.inLinked)return S(k,C)||w(C);switch(k.currentChar()){case"{":return M(k,C)||w(C);case"}":return c(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,r(),0),k.next(),m(C,3,"}");case"@":return S(k,C)||w(C);default:if(R(k))return I=m(C,1,h(k)),C.braceNest=0,C.inLinked=!1,I;const{isModulo:x,hasSpace:B}=H(k);if(x)return B?m(C,0,J(k)):m(C,4,K(k));if($(k))return m(C,0,J(k));break}return I}function G(){const{currentType:k,offset:C,startLoc:I,endLoc:A}=a;return a.lastType=k,a.lastOffset=C,a.lastStartLoc=I,a.lastEndLoc=A,a.offset=n(),a.startLoc=r(),i.currentChar()===EOF?m(a,14):L(i,a)}return{nextToken:G,currentOffset:n,currentPosition:r,context:u}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(t||o,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function createParser(e={}){const t=e.location!==!1,{onError:o}=e;function i(f,p,g,v,...T){const O=f.currentPosition();if(O.offset+=v,O.column+=v,o){const N=t?createLocation(g,O):null,P=createCompileError(p,N,{domain:ERROR_DOMAIN$2,args:T});o(P)}}function n(f,p,g){const v={type:f};return t&&(v.start=p,v.end=p,v.loc={start:g,end:g}),v}function r(f,p,g,v){v&&(f.type=v),t&&(f.end=p,f.loc&&(f.loc.end=g))}function l(f,p){const g=f.context(),v=n(3,g.offset,g.startLoc);return v.value=p,r(v,f.currentOffset(),f.currentPosition()),v}function s(f,p){const g=f.context(),{lastOffset:v,lastStartLoc:T}=g,O=n(5,v,T);return O.index=parseInt(p,10),f.nextToken(),r(O,f.currentOffset(),f.currentPosition()),O}function a(f,p){const g=f.context(),{lastOffset:v,lastStartLoc:T}=g,O=n(4,v,T);return O.key=p,f.nextToken(),r(O,f.currentOffset(),f.currentPosition()),O}function u(f,p){const g=f.context(),{lastOffset:v,lastStartLoc:T}=g,O=n(9,v,T);return O.value=p.replace(KNOWN_ESCAPES,fromEscapeSequence),f.nextToken(),r(O,f.currentOffset(),f.currentPosition()),O}function d(f){const p=f.nextToken(),g=f.context(),{lastOffset:v,lastStartLoc:T}=g,O=n(8,v,T);return p.type!==12?(i(f,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,g.lastStartLoc,0),O.value="",r(O,v,T),{nextConsumeToken:p,node:O}):(p.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,getTokenCaption(p)),O.value=p.value||"",r(O,f.currentOffset(),f.currentPosition()),{node:O})}function c(f,p){const g=f.context(),v=n(7,g.offset,g.startLoc);return v.value=p,r(v,f.currentOffset(),f.currentPosition()),v}function m(f){const p=f.context(),g=n(6,p.offset,p.startLoc);let v=f.nextToken();if(v.type===9){const T=d(f);g.modifier=T.node,v=T.nextConsumeToken||f.nextToken()}switch(v.type!==10&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(v)),v=f.nextToken(),v.type===2&&(v=f.nextToken()),v.type){case 11:v.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(v)),g.key=c(f,v.value||"");break;case 5:v.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(v)),g.key=a(f,v.value||"");break;case 6:v.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(v)),g.key=s(f,v.value||"");break;case 7:v.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(v)),g.key=u(f,v.value||"");break;default:i(f,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,p.lastStartLoc,0);const T=f.context(),O=n(7,T.offset,T.startLoc);return O.value="",r(O,T.offset,T.startLoc),g.key=O,r(g,T.offset,T.startLoc),{nextConsumeToken:v,node:g}}return r(g,f.currentOffset(),f.currentPosition()),{node:g}}function w(f){const p=f.context(),g=p.currentType===1?f.currentOffset():p.offset,v=p.currentType===1?p.endLoc:p.startLoc,T=n(2,g,v);T.items=[];let O=null;do{const y=O||f.nextToken();switch(O=null,y.type){case 0:y.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(y)),T.items.push(l(f,y.value||""));break;case 6:y.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(y)),T.items.push(s(f,y.value||""));break;case 5:y.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(y)),T.items.push(a(f,y.value||""));break;case 7:y.value==null&&i(f,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,getTokenCaption(y)),T.items.push(u(f,y.value||""));break;case 8:const R=m(f);T.items.push(R.node),O=R.nextConsumeToken||null;break}}while(p.currentType!==14&&p.currentType!==1);const N=p.currentType===1?p.lastOffset:f.currentOffset(),P=p.currentType===1?p.lastEndLoc:f.currentPosition();return r(T,N,P),T}function _(f,p,g,v){const T=f.context();let O=v.items.length===0;const N=n(1,p,g);N.cases=[],N.cases.push(v);do{const P=w(f);O||(O=P.items.length===0),N.cases.push(P)}while(T.currentType!==14);return O&&i(f,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,g,0),r(N,f.currentOffset(),f.currentPosition()),N}function b(f){const p=f.context(),{offset:g,startLoc:v}=p,T=w(f);return p.currentType===14?T:_(f,g,v,T)}function E(f){const p=createTokenizer(f,assign$1({},e)),g=p.context(),v=n(0,g.offset,g.startLoc);return t&&v.loc&&(v.loc.source=f),v.body=b(p),e.onCacheKey&&(v.cacheKey=e.onCacheKey(f)),g.currentType!==14&&i(p,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,f[g.offset]||""),r(v,p.currentOffset(),p.currentPosition()),v}return{parse:E}}function getTokenCaption(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function createTransformer(e,t={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:r=>(o.helpers.add(r),r)}}function traverseNodes(e,t){for(let o=0;o<e.length;o++)traverseNode(e[o],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:traverseNode(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function transform(e,t={}){const o=createTransformer(e);o.helper("normalize"),e.body&&traverseNode(e.body,o);const i=o.context();e.helpers=Array.from(i.helpers)}function optimize(e){const t=e.body;return t.type===2?optimizeMessageNode(t):t.cases.forEach(o=>optimizeMessageNode(o)),e}function optimizeMessageNode(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;o<e.items.length;o++){const i=e.items[o];if(!(i.type===3||i.type===9)||i.value==null)break;t.push(i.value)}if(t.length===e.items.length){e.static=join(t);for(let o=0;o<e.items.length;o++){const i=e.items[o];(i.type===3||i.type===9)&&delete i.value}}}}const ERROR_DOMAIN$1="minifier";function minify(e){switch(e.t=e.type,e.type){case 0:const t=e;minify(t.body),t.b=t.body,delete t.body;break;case 1:const o=e,i=o.cases;for(let d=0;d<i.length;d++)minify(i[d]);o.c=i,delete o.cases;break;case 2:const n=e,r=n.items;for(let d=0;d<r.length;d++)minify(r[d]);n.i=r,delete n.items,n.static&&(n.s=n.static,delete n.static);break;case 3:case 9:case 8:case 7:const l=e;l.value&&(l.v=l.value,delete l.value);break;case 6:const s=e;minify(s.key),s.k=s.key,delete s.key,s.modifier&&(minify(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const a=e;a.i=a.index,delete a.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[e.type]})}delete e.type}const ERROR_DOMAIN="parser";function createCodeGenerator(e,t){const{sourceMap:o,filename:i,breakLineCode:n,needIndent:r}=t,l=t.location!==!1,s={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:r,indentLevel:0};l&&e.loc&&(s.source=e.loc.source);const a=()=>s;function u(E,f){s.code+=E}function d(E,f=!0){const p=f?n:"";u(r?p+" ".repeat(E):p)}function c(E=!0){const f=++s.indentLevel;E&&d(f)}function m(E=!0){const f=--s.indentLevel;E&&d(f)}function w(){d(s.indentLevel)}return{context:a,push:u,indent:c,deindent:m,newline:w,helper:E=>`_${E}`,needIndent:()=>s.needIndent}}function generateLinkedNode(e,t){const{helper:o}=e;e.push(`${o("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(e,t){const{helper:o,needIndent:i}=e;e.push(`${o("normalize")}([`),e.indent(i());const n=t.items.length;for(let r=0;r<n&&(generateNode(e,t.items[r]),r!==n-1);r++)e.push(", ");e.deindent(i()),e.push("])")}function generatePluralNode(e,t){const{helper:o,needIndent:i}=e;if(t.cases.length>1){e.push(`${o("plural")}([`),e.indent(i());const n=t.cases.length;for(let r=0;r<n&&(generateNode(e,t.cases[r]),r!==n-1);r++)e.push(", ");e.deindent(i()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:o}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${o("interpolate")}(${o("list")}(${t.index}))`,t);break;case 4:e.push(`${o("interpolate")}(${o("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[t.type]})}}const generate=(e,t={})=>{const o=isString$1(t.mode)?t.mode:"normal",i=isString$1(t.filename)?t.filename:"message.intl",n=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:o==="arrow"?";":`
|
|
16
|
+
`,l=t.needIndent?t.needIndent:o!=="arrow",s=e.helpers||[],a=createCodeGenerator(e,{mode:o,filename:i,sourceMap:n,breakLineCode:r,needIndent:l});a.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(l),s.length>0&&(a.push(`const { ${join(s.map(c=>`${c}: _${c}`),", ")} } = ctx`),a.newline()),a.push("return "),generateNode(a,e),a.deindent(l),a.push("}"),delete e.helpers;const{code:u,map:d}=a.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function baseCompile$1(e,t={}){const o=assign$1({},t),i=!!o.jit,n=!!o.minify,r=o.optimize==null?!0:o.optimize,s=createParser(o).parse(e);return i?(r&&optimize(s),n&&minify(s),{ast:s,code:""}):(transform(s,o),generate(s,o))}/*!
|
|
17
|
+
* core-base v9.6.5
|
|
18
|
+
* (c) 2023 kazuya kawaguchi
|
|
19
|
+
* Released under the MIT License.
|
|
20
|
+
*/function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return t===o&&(t===34||t===39)?e.slice(1,-1):e}function getPathCharType(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:isLiteral(t)?stripQuotes(t):"*"+t}function parse(e){const t=[];let o=-1,i=0,n=0,r,l,s,a,u,d,c;const m=[];m[0]=()=>{l===void 0?l=s:l+=s},m[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},m[2]=()=>{m[0](),n++},m[3]=()=>{if(n>0)n--,i=4,m[0]();else{if(n=0,l===void 0||(l=formatSubPath(l),l===!1))return!1;m[1]()}};function w(){const _=e[o+1];if(i===5&&_==="'"||i===6&&_==='"')return o++,s="\\"+_,m[0](),!0}for(;i!==null;)if(o++,r=e[o],!(r==="\\"&&w())){if(a=getPathCharType(r),c=pathStateMachine[i],u=c[a]||c.l||8,u===8||(i=u[0],u[1]!==void 0&&(d=m[u[1]],d&&(s=r,d()===!1))))return;if(i===7)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject$1(e)?e[t]:null}function resolveValue(e,t){if(!isObject$1(e))return null;let o=cache.get(t);if(o||(o=parse(t),o&&cache.set(t,o)),!o)return null;const i=o.length;let n=e,r=0;for(;r<i;){const l=n[o[r]];if(l===void 0||isFunction(n))return null;n=l,r++}return n}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>e.length===0?"":join$1(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber$1(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber$1(e.named.count)||isNumber$1(e.named.n))?isNumber$1(e.named.count)?e.named.count:isNumber$1(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,o=getPluralIndex(e),i=isObject$1(e.pluralRules)&&isString$2(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,n=isObject$1(e.pluralRules)&&isString$2(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,r=f=>f[i(o,f.length,n)],l=e.list||[],s=f=>l[f],a=e.named||{};isNumber$1(e.pluralIndex)&&normalizeNamed(o,a);const u=f=>a[f];function d(f){const p=isFunction(e.messages)?e.messages(f):isObject$1(e.messages)?e.messages[f]:!1;return p||(e.parent?e.parent.message(f):DEFAULT_MESSAGE)}const c=f=>e.modifiers?e.modifiers[f]:DEFAULT_MODIFIER,m=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,w=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,_=isPlainObject(e.processor)&&isString$2(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,E={list:s,named:u,plural:r,linked:(f,...p)=>{const[g,v]=p;let T="text",O="";p.length===1?isObject$1(g)?(O=g.modifier||O,T=g.type||T):isString$2(g)&&(O=g||O):p.length===2&&(isString$2(g)&&(O=g||O),isString$2(v)&&(T=v||T));const N=d(f)(E),P=T==="vnode"&&isArray$3(N)&&O?N[0]:N;return O?c(O)(P,T):P},message:d,type:_,interpolate:w,normalize:m,values:assign$2({},l,a)};return E}let devtools=null;function setDevToolsHook(e){devtools=e}function initI18nDevTools(e,t,o){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(e){return t=>devtools&&devtools.emit(e,t)}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},warnMessages$1={[CoreWarnCodes.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[CoreWarnCodes.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function getWarnMessage$1(e,...t){return format$3(warnMessages$1[e],...t)}function getLocale(e,t){return t.locale!=null?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){return isString$2(e)?e:_resolveLocale!=null&&e.resolvedOnce?_resolveLocale:_resolveLocale=e()}function fallbackWithSimple(e,t,o){return[...new Set([o,...isArray$3(t)?t:isObject$1(t)?Object.keys(t):isString$2(t)?[t]:[o]])]}function fallbackWithLocaleChain(e,t,o){const i=isString$2(o)?o:DEFAULT_LOCALE,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let r=n.__localeChainCache.get(i);if(!r){r=[];let l=[o];for(;isArray$3(l);)l=appendBlockToChain(r,l,t);const s=isArray$3(t)||!isPlainObject(t)?t:t.default?t.default:null;l=isString$2(s)?[s]:s,isArray$3(l)&&appendBlockToChain(r,l,!1),n.__localeChainCache.set(i,r)}return r}function appendBlockToChain(e,t,o){let i=!0;for(let n=0;n<t.length&&isBoolean(i);n++){const r=t[n];isString$2(r)&&(i=appendLocaleToChain(e,t[n],o))}return i}function appendLocaleToChain(e,t,o){let i;const n=t.split("-");do{const r=n.join("-");i=appendItemToChain(e,r,o),n.splice(-1,1)}while(n.length&&i===!0);return i}function appendItemToChain(e,t,o){let i=!1;if(!e.includes(t)&&(i=!0,t)){i=t[t.length-1]!=="!";const n=t.replace(/!/g,"");e.push(n),(isArray$3(o)||isPlainObject(o))&&o[n]&&(i=o[n])}return i}const VERSION$1="9.6.5",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>t==="text"&&isString$2(e)?e.toUpperCase():t==="vnode"&&isObject$1(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&isString$2(e)?e.toLowerCase():t==="vnode"&&isObject$1(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&isString$2(e)?capitalize(e):t==="vnode"&&isObject$1(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler;function registerMessageCompiler(e){_compiler=e}let _resolver;function registerMessageResolver(e){_resolver=e}let _fallbacker;function registerLocaleFallbacker(e){_fallbacker=e}let _additionalMeta=null;const setAdditionalMeta=e=>{_additionalMeta=e},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,o=isString$2(e.version)?e.version:VERSION$1,i=isString$2(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,n=isFunction(i)?DEFAULT_LOCALE:i,r=isArray$3(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString$2(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,l=isPlainObject(e.messages)?e.messages:{[n]:{}},s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},u=assign$2({},e.modifiers||{},getDefaultLinkedModifiers()),d=e.pluralRules||{},c=isFunction(e.missing)?e.missing:null,m=isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,w=isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,_=!!e.fallbackFormat,b=!!e.unresolving,E=isFunction(e.postTranslation)?e.postTranslation:null,f=isPlainObject(e.processor)?e.processor:null,p=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,v=isFunction(e.messageCompiler)?e.messageCompiler:_compiler;process.env.NODE_ENV!=="production"&&isFunction(e.messageCompiler)&&warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const T=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,O=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,N=isObject$1(e.fallbackContext)?e.fallbackContext:void 0,P=e,y=isObject$1(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,R=isObject$1(P.__numberFormatters)?P.__numberFormatters:new Map,H=isObject$1(P.__meta)?P.__meta:{};_cid++;const $={version:o,cid:_cid,locale:i,fallbackLocale:r,messages:l,modifiers:u,pluralRules:d,missing:c,missingWarn:m,fallbackWarn:w,fallbackFormat:_,unresolving:b,postTranslation:E,processor:f,warnHtmlMessage:p,escapeParameter:g,messageCompiler:v,messageResolver:T,localeFallbacker:O,fallbackContext:N,onWarn:t,__meta:H};return $.datetimeFormats=s,$.numberFormats=a,$.__datetimeFormatters=y,$.__numberFormatters=R,process.env.NODE_ENV!=="production"&&($.__v_emitter=P.__v_emitter!=null?P.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&initI18nDevTools($,o,H),$}function isTranslateFallbackWarn(e,t){return e instanceof RegExp?e.test(t):e}function isTranslateMissingWarn(e,t){return e instanceof RegExp?e.test(t):e}function handleMissing(e,t,o,i,n){const{missing:r,onWarn:l}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:t,type:n,groupId:`${n}:${t}`})}if(r!==null){const s=r(e,o,t,n);return isString$2(s)?s:t}else return process.env.NODE_ENV!=="production"&&isTranslateMissingWarn(i,t)&&l(getWarnMessage$1(CoreWarnCodes.NOT_FOUND_KEY,{key:t,locale:o})),t}function updateFallbackLocale(e,t,o){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function format$1(e){return o=>formatParts(o,e)}function formatParts(e,t){const o=t.b||t.body;if((o.t||o.type)===1){const i=o,n=i.c||i.cases;return e.plural(n.reduce((r,l)=>[...r,formatMessageParts(e,l)],[]))}else return formatMessageParts(e,o)}function formatMessageParts(e,t){const o=t.s||t.static;if(o)return e.type==="text"?o:e.normalize([o]);{const i=(t.i||t.items).reduce((n,r)=>[...n,formatMessagePart(e,r)],[]);return e.normalize(i)}}function formatMessagePart(e,t){const o=t.t||t.type;switch(o){case 3:const i=t;return i.v||i.value;case 9:const n=t;return n.v||n.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const l=t;return e.interpolate(e.list(l.i!=null?l.i:l.index));case 6:const s=t,a=s.m||s.modifier;return e.linked(formatMessagePart(e,s.k||s.key),a?formatMessagePart(e,a):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const d=t;return d.v||d.value;default:throw new Error(`unhandled node type on format message part: ${o}`)}}const code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(e){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages$1}:void 0)}const errorMessages$1={[CoreErrorCodes.INVALID_ARGUMENT]:"Invalid arguments",[CoreErrorCodes.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message"},WARN_MESSAGE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function checkHtmlMessage(e,t){t&&detectHtmlTag(e)&&warn(format$3(WARN_MESSAGE,{source:e}))}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject$1(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function baseCompile(e,t={}){let o=!1;const i=t.onError||defaultOnError;return t.onError=n=>{o=!0,i(n)},{...baseCompile$1(e,t),detectError:o}}const compileToFunction=(e,t)=>{if(!isString$2(e))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);{const o=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,o);const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;const{code:l,detectError:s}=baseCompile(e,t),a=new Function(`return ${l}`)();return s?a:compileCache[n]=a}};function compile(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$2(e)){const o=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,o);const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;const{ast:l,detectError:s}=baseCompile(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),a=format$1(l);return s?a:compileCache[n]=a}else{if(process.env.NODE_ENV!=="production"&&!isMessageAST(e))return warn(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const o=e.cacheKey;if(o){const i=compileCache[o];return i||(compileCache[o]=format$1(e))}else return format$1(e)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:o,postTranslation:i,unresolving:n,messageCompiler:r,fallbackLocale:l,messages:s}=e,[a,u]=parseTranslateArgs(...t),d=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,c=isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter,w=!!u.resolvedMessage,_=isString$2(u.default)||isBoolean(u.default)?isBoolean(u.default)?r?a:()=>a:u.default:o?r?a:()=>a:"",b=o||_!=="",E=getLocale(e,u);m&&escapeParams(u);let[f,p,g]=w?[a,E,s[E]||{}]:resolveMessageFormat(e,a,E,l,c,d),v=f,T=a;if(!w&&!(isString$2(v)||isMessageAST(v)||isMessageFunction(v))&&b&&(v=_,T=v),!w&&(!(isString$2(v)||isMessageAST(v)||isMessageFunction(v))||!isString$2(p)))return n?NOT_REOSLVED:a;if(process.env.NODE_ENV!=="production"&&isString$2(v)&&e.messageCompiler==null)return warn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${a}'.`),a;let O=!1;const N=()=>{O=!0},P=isMessageFunction(v)?v:compileMessageFormat(e,a,p,v,T,N);if(O)return v;const y=getMessageContextOptions(e,p,g,u),R=createMessageContext(y),H=evaluateMessage(e,P,R),$=i?i(H,a):H;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:isString$2(a)?a:isMessageFunction(v)?v.key:"",locale:p||(isMessageFunction(v)?v.locale:""),format:isString$2(v)?v:isMessageFunction(v)?v.source:"",message:$};j.meta=assign$2({},e.__meta,getAdditionalMeta()||{}),translateDevTools(j)}return $}function escapeParams(e){isArray$3(e.list)?e.list=e.list.map(t=>isString$2(t)?escapeHtml(t):t):isObject$1(e.named)&&Object.keys(e.named).forEach(t=>{isString$2(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))})}function resolveMessageFormat(e,t,o,i,n,r){const{messages:l,onWarn:s,messageResolver:a,localeFallbacker:u}=e,d=u(e,i,o);let c={},m,w=null,_=o,b=null;const E="translate";for(let f=0;f<d.length;f++){if(m=b=d[f],process.env.NODE_ENV!=="production"&&o!==m&&isTranslateFallbackWarn(n,t)&&s(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE,{key:t,target:m})),process.env.NODE_ENV!=="production"&&o!==m){const O=e.__v_emitter;O&&O.emit("fallback",{type:E,key:t,from:_,to:b,groupId:`${E}:${t}`})}c=l[m]||{};let p=null,g,v;if(process.env.NODE_ENV!=="production"&&inBrowser&&(p=window.performance.now(),g="intlify-message-resolve-start",v="intlify-message-resolve-end",mark&&mark(g)),(w=a(c,t))===null&&(w=c[t]),process.env.NODE_ENV!=="production"&&inBrowser){const O=window.performance.now(),N=e.__v_emitter;N&&p&&w&&N.emit("message-resolve",{type:"message-resolve",key:t,message:w,time:O-p,groupId:`${E}:${t}`}),g&&v&&mark&&measure&&(mark(v),measure("intlify message resolve",g,v))}if(isString$2(w)||isMessageAST(w)||isMessageFunction(w))break;const T=handleMissing(e,t,m,r,E);T!==t&&(w=T),_=b}return[w,m,c]}function compileMessageFormat(e,t,o,i,n,r){const{messageCompiler:l,warnHtmlMessage:s}=e;if(isMessageFunction(i)){const m=i;return m.locale=m.locale||o,m.key=m.key||t,m}if(l==null){const m=()=>i;return m.locale=o,m.key=t,m}let a=null,u,d;process.env.NODE_ENV!=="production"&&inBrowser&&(a=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",mark&&mark(u));const c=l(i,getCompileContext(e,o,n,i,s,r));if(process.env.NODE_ENV!=="production"&&inBrowser){const m=window.performance.now(),w=e.__v_emitter;w&&a&&w.emit("message-compilation",{type:"message-compilation",message:i,time:m-a,groupId:`translate:${t}`}),u&&d&&mark&&measure&&(mark(d),measure("intlify message compilation",u,d))}return c.locale=o,c.key=t,c.source=i,c}function evaluateMessage(e,t,o){let i=null,n,r;process.env.NODE_ENV!=="production"&&inBrowser&&(i=window.performance.now(),n="intlify-message-evaluation-start",r="intlify-message-evaluation-end",mark&&mark(n));const l=t(o);if(process.env.NODE_ENV!=="production"&&inBrowser){const s=window.performance.now(),a=e.__v_emitter;a&&i&&a.emit("message-evaluation",{type:"message-evaluation",value:l,time:s-i,groupId:`translate:${t.key}`}),n&&r&&mark&&measure&&(mark(r),measure("intlify message evaluation",n,r))}return l}function parseTranslateArgs(...e){const[t,o,i]=e,n={};if(!isString$2(t)&&!isNumber$1(t)&&!isMessageFunction(t)&&!isMessageAST(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const r=isNumber$1(t)?String(t):(isMessageFunction(t),t);return isNumber$1(o)?n.plural=o:isString$2(o)?n.default=o:isPlainObject(o)&&!isEmptyObject(o)?n.named=o:isArray$3(o)&&(n.list=o),isNumber$1(i)?n.plural=i:isString$2(i)?n.default=i:isPlainObject(i)&&assign$2(n,i),[r,n]}function getCompileContext(e,t,o,i,n,r){return{locale:t,key:o,warnHtmlMessage:n,onError:l=>{if(r&&r(l),process.env.NODE_ENV!=="production"){const s=getSourceForCodeFrame(i),a=`Message compilation error: ${l.message}`,u=l.location&&s&&generateCodeFrame(s,l.location.start.offset,l.location.end.offset),d=e.__v_emitter;d&&s&&d.emit("compile-error",{message:s,error:l.message,start:l.location&&l.location.start.offset,end:l.location&&l.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${a}
|
|
21
|
+
${u}`:a)}else throw l},onCacheKey:l=>generateFormatCacheKey(t,o,l)}}function getSourceForCodeFrame(e){if(isString$2(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function getMessageContextOptions(e,t,o,i){const{modifiers:n,pluralRules:r,messageResolver:l,fallbackLocale:s,fallbackWarn:a,missingWarn:u,fallbackContext:d}=e,m={locale:t,modifiers:n,pluralRules:r,messages:w=>{let _=l(o,w);if(_==null&&d){const[,,b]=resolveMessageFormat(d,w,t,s,a,u);_=l(b,w)}if(isString$2(_)||isMessageAST(_)){let b=!1;const f=compileMessageFormat(e,w,t,_,w,()=>{b=!0});return b?NOOP_MESSAGE_FUNCTION:f}else return isMessageFunction(_)?_:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),i.list&&(m.list=i.list),i.named&&(m.named=i.named),isNumber$1(i.plural)&&(m.pluralIndex=i.plural),m}const intlDefined=typeof Intl<"u",Availabilities={dateTimeFormat:intlDefined&&typeof Intl.DateTimeFormat<"u",numberFormat:intlDefined&&typeof Intl.NumberFormat<"u"};function datetime(e,...t){const{datetimeFormats:o,unresolving:i,fallbackLocale:n,onWarn:r,localeFallbacker:l}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.dateTimeFormat)return r(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)),MISSING_RESOLVE_VALUE;const[a,u,d,c]=parseDateTimeArgs(...t),m=isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,w=isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,_=!!d.part,b=getLocale(e,d),E=l(e,n,b);if(!isString$2(a)||a==="")return new Intl.DateTimeFormat(b,c).format(u);let f={},p,g=null,v=b,T=null;const O="datetime format";for(let y=0;y<E.length;y++){if(p=T=E[y],process.env.NODE_ENV!=="production"&&b!==p&&isTranslateFallbackWarn(w,a)&&r(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT,{key:a,target:p})),process.env.NODE_ENV!=="production"&&b!==p){const R=e.__v_emitter;R&&R.emit("fallback",{type:O,key:a,from:v,to:T,groupId:`${O}:${a}`})}if(f=o[p]||{},g=f[a],isPlainObject(g))break;handleMissing(e,a,p,m,O),v=T}if(!isPlainObject(g)||!isString$2(p))return i?NOT_REOSLVED:a;let N=`${p}__${a}`;isEmptyObject(c)||(N=`${N}__${JSON.stringify(c)}`);let P=s.get(N);return P||(P=new Intl.DateTimeFormat(p,assign$2({},g,c)),s.set(N,P)),_?P.formatToParts(u):P.format(u)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,o,i,n]=e,r={};let l={},s;if(isString$2(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const u=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();s=new Date(u);try{s.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$1(t)){if(isNaN(t.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else if(isNumber$1(t))s=t;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$2(o)?r.key=o:isPlainObject(o)&&Object.keys(o).forEach(a=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(a)?l[a]=o[a]:r[a]=o[a]}),isString$2(i)?r.locale=i:isPlainObject(i)&&(l=i),isPlainObject(n)&&(l=n),[r.key||"",s,r,l]}function clearDateTimeFormat(e,t,o){const i=e;for(const n in o){const r=`${t}__${n}`;i.__datetimeFormatters.has(r)&&i.__datetimeFormatters.delete(r)}}function number$1(e,...t){const{numberFormats:o,unresolving:i,fallbackLocale:n,onWarn:r,localeFallbacker:l}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.numberFormat)return r(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)),MISSING_RESOLVE_VALUE;const[a,u,d,c]=parseNumberArgs(...t),m=isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,w=isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,_=!!d.part,b=getLocale(e,d),E=l(e,n,b);if(!isString$2(a)||a==="")return new Intl.NumberFormat(b,c).format(u);let f={},p,g=null,v=b,T=null;const O="number format";for(let y=0;y<E.length;y++){if(p=T=E[y],process.env.NODE_ENV!=="production"&&b!==p&&isTranslateFallbackWarn(w,a)&&r(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT,{key:a,target:p})),process.env.NODE_ENV!=="production"&&b!==p){const R=e.__v_emitter;R&&R.emit("fallback",{type:O,key:a,from:v,to:T,groupId:`${O}:${a}`})}if(f=o[p]||{},g=f[a],isPlainObject(g))break;handleMissing(e,a,p,m,O),v=T}if(!isPlainObject(g)||!isString$2(p))return i?NOT_REOSLVED:a;let N=`${p}__${a}`;isEmptyObject(c)||(N=`${N}__${JSON.stringify(c)}`);let P=s.get(N);return P||(P=new Intl.NumberFormat(p,assign$2({},g,c)),s.set(N,P)),_?P.formatToParts(u):P.format(u)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,o,i,n]=e,r={};let l={};if(!isNumber$1(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const s=t;return isString$2(o)?r.key=o:isPlainObject(o)&&Object.keys(o).forEach(a=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(a)?l[a]=o[a]:r[a]=o[a]}),isString$2(i)?r.locale=i:isPlainObject(i)&&(l=i),isPlainObject(n)&&(l=n),[r.key||"",s,r,l]}function clearNumberFormat(e,t,o){const i=e;for(const n in o){const r=`${t}__${n}`;i.__numberFormatters.has(r)&&i.__numberFormatters.delete(r)}}initFeatureFlags$1();/*!
|
|
22
|
+
* vue-i18n v9.6.5
|
|
23
|
+
* (c) 2023 kazuya kawaguchi
|
|
24
|
+
* Released under the MIT License.
|
|
25
|
+
*/const VERSION="9.6.5";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function getWarnMessage(e,...t){return format$3(warnMessages[e],...t)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:t}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject$1(e))return e;for(const t in e)if(hasOwn(e,t))if(!t.includes("."))isObject$1(e[t])&&handleFlatJson(e[t]);else{const o=t.split("."),i=o.length-1;let n=e,r=!1;for(let l=0;l<i;l++){if(o[l]in n||(n[o[l]]={}),!isObject$1(n[o[l]])){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:o[l]})),r=!0;break}n=n[o[l]]}r||(n[o[i]]=e[t],delete e[t]),isObject$1(n[o[i]])&&handleFlatJson(n[o[i]])}return e}function getLocaleMessages(e,t){const{messages:o,__i18n:i,messageResolver:n,flatJson:r}=t,l=isPlainObject(o)?o:isArray$3(i)?{}:{[e]:{}};if(isArray$3(i)&&i.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:a,resource:u}=s;a?(l[a]=l[a]||{},deepCopy$1(u,l[a])):deepCopy$1(u,l)}else isString$2(s)&&deepCopy$1(JSON.parse(s),l)}),n==null&&r)for(const s in l)hasOwn(l,s)&&handleFlatJson(l[s]);return l}const isNotObjectOrIsArray=e=>!isObject$1(e)||isArray$3(e);function deepCopy$1(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const o in e)hasOwn(e,o)&&(isNotObjectOrIsArray(e[o])||isNotObjectOrIsArray(t[o])?t[o]=e[o]:deepCopy$1(e[o],t[o]))}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,o){let i=isObject$1(t.messages)?t.messages:{};"__i18nGlobal"in o&&(i=getLocaleMessages(e.locale.value,{messages:i,__i18n:o.__i18nGlobal}));const n=Object.keys(i);n.length&&n.forEach(r=>{e.mergeLocaleMessage(r,i[r])});{if(isObject$1(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(isObject$1(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function createTextNode(e){return Vue.createVNode(Vue.Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,o,i,n)=>e(o,i,Vue.getCurrentInstance()||void 0,n)}const getMetaInfo=()=>{const e=Vue.getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:o,__injectWithOption:i}=e,n=o===void 0,r=e.flatJson;let l=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const s=Vue.ref(o&&l?o.locale.value:isString$2(e.locale)?e.locale:DEFAULT_LOCALE),a=Vue.ref(o&&l?o.fallbackLocale.value:isString$2(e.fallbackLocale)||isArray$3(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=Vue.ref(getLocaleMessages(s.value,e)),d=Vue.ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=Vue.ref(isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let m=o?o.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,w=o?o.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,_=o?o.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,E=isFunction(e.missing)?e.missing:null,f=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,p=isFunction(e.postTranslation)?e.postTranslation:null,g=o?o.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const T=o?o.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let O=e.pluralRules||o&&o.pluralRules,N;N=(()=>{n&&setFallbackContext(null);const F={version:VERSION,locale:s.value,fallbackLocale:a.value,messages:u.value,modifiers:T,pluralRules:O,missing:f===null?void 0:f,missingWarn:m,fallbackWarn:w,fallbackFormat:b,unresolving:!0,postTranslation:p===null?void 0:p,warnHtmlMessage:g,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};F.datetimeFormats=d.value,F.numberFormats=c.value,F.__datetimeFormatters=isPlainObject(N)?N.__datetimeFormatters:void 0,F.__numberFormatters=isPlainObject(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(F.__v_emitter=isPlainObject(N)?N.__v_emitter:void 0);const D=createCoreContext(F);return n&&setFallbackContext(D),D})(),updateFallbackLocale(N,s.value,a.value);function y(){return[s.value,a.value,u.value,d.value,c.value]}const R=Vue.computed({get:()=>s.value,set:F=>{s.value=F,N.locale=s.value}}),H=Vue.computed({get:()=>a.value,set:F=>{a.value=F,N.fallbackLocale=a.value,updateFallbackLocale(N,s.value,F)}}),$=Vue.computed(()=>u.value),j=Vue.computed(()=>d.value),te=Vue.computed(()=>c.value);function ne(){return isFunction(p)?p:null}function ee(F){p=F,N.postTranslation=F}function U(){return E}function K(F){F!==null&&(f=defineCoreMissingHandler(F)),E=F,N.missing=f}function J(F,D){return F!=="translate"||!D.resolvedMessage}const q=(F,D,W,Y,ae,pe)=>{y();let de;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(N.fallbackContext=o?getFallbackContext():void 0),de=F(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(N.fallbackContext=void 0)}if(W!=="translate exists"&&isNumber$1(de)&&de===NOT_REOSLVED||W==="translate exists"&&!de){const[ue,ge]=D();if(process.env.NODE_ENV!=="production"&&o&&isString$2(ue)&&J(W,ge)&&(_&&(isTranslateFallbackWarn(w,ue)||isTranslateMissingWarn(m,ue))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:ue,type:W})),process.env.NODE_ENV!=="production")){const{__v_emitter:fe}=N;fe&&_&&fe.emit("fallback",{type:W,key:ue,to:"global",groupId:`${W}:${ue}`})}return o&&_?Y(o):ae(ue)}else{if(pe(de))return de;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Q(...F){return q(D=>Reflect.apply(translate,null,[D,...F]),()=>parseTranslateArgs(...F),"translate",D=>Reflect.apply(D.t,D,[...F]),D=>D,D=>isString$2(D))}function z(...F){const[D,W,Y]=F;if(Y&&!isObject$1(Y))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Q(D,W,assign$2({resolvedMessage:!0},Y||{}))}function se(...F){return q(D=>Reflect.apply(datetime,null,[D,...F]),()=>parseDateTimeArgs(...F),"datetime format",D=>Reflect.apply(D.d,D,[...F]),()=>MISSING_RESOLVE_VALUE,D=>isString$2(D))}function Z(...F){return q(D=>Reflect.apply(number$1,null,[D,...F]),()=>parseNumberArgs(...F),"number format",D=>Reflect.apply(D.n,D,[...F]),()=>MISSING_RESOLVE_VALUE,D=>isString$2(D))}function oe(F){return F.map(D=>isString$2(D)||isNumber$1(D)||isBoolean(D)?createTextNode(String(D)):D)}const V={normalize:oe,interpolate:F=>F,type:"vnode"};function h(...F){return q(D=>{let W;const Y=D;try{Y.processor=V,W=Reflect.apply(translate,null,[Y,...F])}finally{Y.processor=null}return W},()=>parseTranslateArgs(...F),"translate",D=>D[TranslateVNodeSymbol](...F),D=>[createTextNode(D)],D=>isArray$3(D))}function M(...F){return q(D=>Reflect.apply(number$1,null,[D,...F]),()=>parseNumberArgs(...F),"number format",D=>D[NumberPartsSymbol](...F),NOOP_RETURN_ARRAY,D=>isString$2(D)||isArray$3(D))}function S(...F){return q(D=>Reflect.apply(datetime,null,[D,...F]),()=>parseDateTimeArgs(...F),"datetime format",D=>D[DatetimePartsSymbol](...F),NOOP_RETURN_ARRAY,D=>isString$2(D)||isArray$3(D))}function L(F){O=F,N.pluralRules=O}function G(F,D){return q(()=>{if(!F)return!1;const W=isString$2(D)?D:s.value,Y=I(W),ae=N.messageResolver(Y,F);return isMessageAST(ae)||isMessageFunction(ae)||isString$2(ae)},()=>[F],"translate exists",W=>Reflect.apply(W.te,W,[F,D]),NOOP_RETURN_FALSE,W=>isBoolean(W))}function k(F){let D=null;const W=fallbackWithLocaleChain(N,a.value,s.value);for(let Y=0;Y<W.length;Y++){const ae=u.value[W[Y]]||{},pe=N.messageResolver(ae,F);if(pe!=null){D=pe;break}}return D}function C(F){const D=k(F);return D??(o?o.tm(F)||{}:{})}function I(F){return u.value[F]||{}}function A(F,D){if(r){const W={[F]:D};for(const Y in W)hasOwn(W,Y)&&handleFlatJson(W[Y]);D=W[F]}u.value[F]=D,N.messages=u.value}function x(F,D){u.value[F]=u.value[F]||{};const W={[F]:D};for(const Y in W)hasOwn(W,Y)&&handleFlatJson(W[Y]);D=W[F],deepCopy$1(D,u.value[F]),N.messages=u.value}function B(F){return d.value[F]||{}}function re(F,D){d.value[F]=D,N.datetimeFormats=d.value,clearDateTimeFormat(N,F,D)}function ie(F,D){d.value[F]=assign$2(d.value[F]||{},D),N.datetimeFormats=d.value,clearDateTimeFormat(N,F,D)}function ce(F){return c.value[F]||{}}function me(F,D){c.value[F]=D,N.numberFormats=c.value,clearNumberFormat(N,F,D)}function he(F,D){c.value[F]=assign$2(c.value[F]||{},D),N.numberFormats=c.value,clearNumberFormat(N,F,D)}composerID++,o&&inBrowser&&(Vue.watch(o.locale,F=>{l&&(s.value=F,N.locale=F,updateFallbackLocale(N,s.value,a.value))}),Vue.watch(o.fallbackLocale,F=>{l&&(a.value=F,N.fallbackLocale=F,updateFallbackLocale(N,s.value,a.value))}));const X={id:composerID,locale:R,fallbackLocale:H,get inheritLocale(){return l},set inheritLocale(F){l=F,F&&o&&(s.value=o.locale.value,a.value=o.fallbackLocale.value,updateFallbackLocale(N,s.value,a.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:$,get modifiers(){return T},get pluralRules(){return O||{}},get isGlobal(){return n},get missingWarn(){return m},set missingWarn(F){m=F,N.missingWarn=m},get fallbackWarn(){return w},set fallbackWarn(F){w=F,N.fallbackWarn=w},get fallbackRoot(){return _},set fallbackRoot(F){_=F},get fallbackFormat(){return b},set fallbackFormat(F){b=F,N.fallbackFormat=b},get warnHtmlMessage(){return g},set warnHtmlMessage(F){g=F,N.warnHtmlMessage=F},get escapeParameter(){return v},set escapeParameter(F){v=F,N.escapeParameter=F},t:Q,getLocaleMessage:I,setLocaleMessage:A,mergeLocaleMessage:x,getPostTranslationHandler:ne,setPostTranslationHandler:ee,getMissingHandler:U,setMissingHandler:K,[SetPluralRulesSymbol]:L};return X.datetimeFormats=j,X.numberFormats=te,X.rt=z,X.te=G,X.tm=C,X.d=se,X.n=Z,X.getDateTimeFormat=B,X.setDateTimeFormat=re,X.mergeDateTimeFormat=ie,X.getNumberFormat=ce,X.setNumberFormat=me,X.mergeNumberFormat=he,X[InejctWithOptionSymbol]=i,X[TranslateVNodeSymbol]=h,X[DatetimePartsSymbol]=S,X[NumberPartsSymbol]=M,process.env.NODE_ENV!=="production"&&(X[EnableEmitter]=F=>{N.__v_emitter=F},X[DisableEmitter]=()=>{N.__v_emitter=void 0}),X}function convertComposerOptions(e){const t=isString$2(e.locale)?e.locale:DEFAULT_LOCALE,o=isString$2(e.fallbackLocale)||isArray$3(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,i=isFunction(e.missing)?e.missing:void 0,n=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,a=isPlainObject(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=isFunction(e.postTranslation)?e.postTranslation:void 0,c=isString$2(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,w=isBoolean(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let _=e.messages;if(isPlainObject(e.sharedMessages)){const T=e.sharedMessages;_=Object.keys(T).reduce((N,P)=>{const y=N[P]||(N[P]={});return assign$2(y,T[P]),N},_||{})}const{__i18n:b,__root:E,__injectWithOption:f}=e,p=e.datetimeFormats,g=e.numberFormats,v=e.flatJson;return{locale:t,fallbackLocale:o,messages:_,flatJson:v,datetimeFormats:p,numberFormats:g,missing:i,missingWarn:n,fallbackWarn:r,fallbackRoot:l,fallbackFormat:s,modifiers:a,pluralRules:u,postTranslation:d,warnHtmlMessage:c,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:w,__i18n:b,__root:E,__injectWithOption:f}}function createVueI18n(e={},t){{const o=createComposer(convertComposerOptions(e)),{__extender:i}=e,n={id:o.id,get locale(){return o.locale.value},set locale(r){o.locale.value=r},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(r){o.fallbackLocale.value=r},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return o.getMissingHandler()},set missing(r){o.setMissingHandler(r)},get silentTranslationWarn(){return isBoolean(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(r){o.missingWarn=isBoolean(r)?!r:r},get silentFallbackWarn(){return isBoolean(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(r){o.fallbackWarn=isBoolean(r)?!r:r},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(r){o.fallbackFormat=r},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(r){o.setPostTranslationHandler(r)},get sync(){return o.inheritLocale},set sync(r){o.inheritLocale=r},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){o.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(r){o.escapeParameter=r},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...r){const[l,s,a]=r,u={};let d=null,c=null;if(!isString$2(l))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const m=l;return isString$2(s)?u.locale=s:isArray$3(s)?d=s:isPlainObject(s)&&(c=s),isArray$3(a)?d=a:isPlainObject(a)&&(c=a),Reflect.apply(o.t,o,[m,d||c||{},u])},rt(...r){return Reflect.apply(o.rt,o,[...r])},tc(...r){const[l,s,a]=r,u={plural:1};let d=null,c=null;if(!isString$2(l))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const m=l;return isString$2(s)?u.locale=s:isNumber$1(s)?u.plural=s:isArray$3(s)?d=s:isPlainObject(s)&&(c=s),isString$2(a)?u.locale=a:isArray$3(a)?d=a:isPlainObject(a)&&(c=a),Reflect.apply(o.t,o,[m,d||c||{},u])},te(r,l){return o.te(r,l)},tm(r){return o.tm(r)},getLocaleMessage(r){return o.getLocaleMessage(r)},setLocaleMessage(r,l){o.setLocaleMessage(r,l)},mergeLocaleMessage(r,l){o.mergeLocaleMessage(r,l)},d(...r){return Reflect.apply(o.d,o,[...r])},getDateTimeFormat(r){return o.getDateTimeFormat(r)},setDateTimeFormat(r,l){o.setDateTimeFormat(r,l)},mergeDateTimeFormat(r,l){o.mergeDateTimeFormat(r,l)},n(...r){return Reflect.apply(o.n,o,[...r])},getNumberFormat(r){return o.getNumberFormat(r)},setNumberFormat(r,l){o.setNumberFormat(r,l)},mergeNumberFormat(r,l){o.mergeNumberFormat(r,l)},getChoiceIndex(r,l){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return n.__extender=i,process.env.NODE_ENV!=="production"&&(n.__enableEmitter=r=>{const l=o;l[EnableEmitter]&&l[EnableEmitter](r)},n.__disableEmitter=()=>{const r=o;r[DisableEmitter]&&r[DisableEmitter]()}),n}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((i,n)=>[...i,...n.type===Vue.Fragment?n.children:[n]],[]):t.reduce((o,i)=>{const n=e[i];return n&&(o[i]=n()),o},{})}function getFragmentableTag(e){return Vue.Fragment}const TranslationImpl=Vue.defineComponent({name:"i18n-t",props:assign$2({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber$1(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:o,attrs:i}=t,n=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(o).filter(c=>c!=="_"),l={};e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=isString$2(e.plural)?+e.plural:e.plural);const s=getInterpolateArg(t,r),a=n[TranslateVNodeSymbol](e.keypath,s,l),u=assign$2({},i),d=isString$2(e.tag)||isObject$1(e.tag)?e.tag:getFragmentableTag();return Vue.h(d,u,a)}}}),Translation=TranslationImpl;function isVNode(e){return isArray$3(e)&&!isString$2(e[0])}function renderFormatter(e,t,o,i){const{slots:n,attrs:r}=t;return()=>{const l={part:!0};let s={};e.locale&&(l.locale=e.locale),isString$2(e.format)?l.key=e.format:isObject$1(e.format)&&(isString$2(e.format.key)&&(l.key=e.format.key),s=Object.keys(e.format).reduce((m,w)=>o.includes(w)?assign$2({},m,{[w]:e.format[w]}):m,{}));const a=i(e.value,l,s);let u=[l.key];isArray$3(a)?u=a.map((m,w)=>{const _=n[m.type],b=_?_({[m.type]:m.value,index:w,parts:a}):[m.value];return isVNode(b)&&(b[0].key=`${m.type}-${w}`),b}):isString$2(a)&&(u=[a]);const d=assign$2({},r),c=isString$2(e.tag)||isObject$1(e.tag)?e.tag:getFragmentableTag();return Vue.h(c,d,u)}}const NumberFormatImpl=Vue.defineComponent({name:"i18n-n",props:assign$2({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const o=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,(...i)=>o[NumberPartsSymbol](...i))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=Vue.defineComponent({name:"i18n-d",props:assign$2({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const o=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,(...i)=>o[DatetimePartsSymbol](...i))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const o=e;if(e.mode==="composition")return o.__getInstance(t)||e.global;{const i=o.__getInstance(t);return i!=null?i.__composer:e.global.__composer}}function vTDirective(e){const t=l=>{const{instance:s,modifiers:a,value:u}=l;if(!s||!s.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const d=getComposer$2(e,s.$);process.env.NODE_ENV!=="production"&&a.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const c=parseValue(u);return[Reflect.apply(d.t,d,[...makeParams(c)]),d]};return{created:(l,s)=>{const[a,u]=t(s);inBrowser&&e.global===u&&(l.__i18nWatcher=Vue.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),l.__composer=u,l.textContent=a},unmounted:l=>{inBrowser&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:s})=>{if(l.__composer){const a=l.__composer,u=parseValue(s);l.textContent=Reflect.apply(a.t,a,[...makeParams(u)])}},getSSRProps:l=>{const[s]=t(l);return{textContent:s}}}}function parseValue(e){if(isString$2(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return e}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:o,args:i,choice:n,plural:r}=e,l={},s=i||{};return isString$2(o)&&(l.locale=o),isNumber$1(n)&&(l.plural=n),isNumber$1(r)&&(l.plural=r),[t,s,l]}function apply(e,t,...o){const i=isPlainObject(o[0])?o[0]:{},n=!!i.useI18nComponentName,r=isBoolean(i.globalInstall)?i.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&n&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),r&&([n?"i18n":Translation.name,"I18nT"].forEach(l=>e.component(l,Translation)),[NumberFormat.name,"I18nN"].forEach(l=>e.component(l,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(l=>e.component(l,DatetimeFormat))),e.directive("t",vTDirective(t))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(e,t){return new Promise((o,i)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:e},n=>{devtoolsApi=n,n.on.visitComponentTree(({componentInstance:l,treeNode:s})=>{updateComponentTreeTags(l,s,t)}),n.on.inspectComponent(({componentInstance:l,instanceData:s})=>{l.vnode.el&&l.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?l.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(s,l.vnode.el.__VUE_I18N__):inspectComposer(s,l.vnode.el.__VUE_I18N__))}),n.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),n.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&®isterScope(l,t)});const r=new Map;n.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(n.unhighlightElement(),inspectScope(l,t),l.nodeId==="global"){if(!r.has(l.app)){const[s]=await n.getComponentInstances(l.app);r.set(l.app,s)}n.highlightElement(r.get(l.app))}else{const s=getComponentInstance(l.nodeId,t);s&&n.highlightElement(s)}}),n.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&editScope(l,t)}),n.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),o(!0)})}catch(n){console.error(n),i(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,o){const i=o.mode==="composition"?o.global:o.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const n={label:`i18n (${getI18nScopeLable(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}function inspectComposer(e,t){const o=VUE_I18N_COMPONENT_TYPES;e.state.push({type:o,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:o,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:o,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:o,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:o,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}),e.state.push({type:o,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:o,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function getLocaleMessageValue(e){const t={};return Object.keys(e).forEach(o=>{const i=e[o];isFunction(i)&&"source"in i?t[o]=getMessageFunctionDetails(i):isMessageAST(i)&&i.loc&&i.loc.source?t[o]=i.loc.source:isObject$1(i)?t[o]=getLocaleMessageValue(i):t[o]=i}),t}const ESC={"<":"<",">":">",'"':""","&":"&"};function escape$1(e){return e.replace(/[<>"&]/g,escapeChar)}function escapeChar(e){return ESC[e]||e}function getMessageFunctionDetails(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${escape$1(e.source)}")`:"(?)"}`}}}function registerScope(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const o=t.mode==="composition"?t.global:t.global.__composer;for(const[i,n]of t.__instances){const r=t.mode==="composition"?n:n.__composer;o!==r&&e.rootNodes.push({id:r.id.toString(),label:`${getI18nScopeLable(i)} Scope`})}}function getComponentInstance(e,t){let o=null;if(e!=="global"){for(const[i,n]of t.__instances.entries())if(n.id.toString()===e){o=i;break}}return o}function getComposer$1(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const o=Array.from(t.__instances.values()).find(i=>i.id.toString()===e);return o?t.mode==="composition"?o:o.__composer:null}}function inspectScope(e,t){const o=getComposer$1(e.nodeId,t);return o&&(e.state=makeScopeInspectState(o)),null}function makeScopeInspectState(e){const t={},o="Locale related info",i=[{type:o,key:"locale",editable:!0,value:e.locale.value},{type:o,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:o,key:"availableLocales",editable:!1,value:e.availableLocales},{type:o,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[o]=i;const n="Locale messages info",r=[{type:n,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[n]=r;{const l="Datetime formats info",s=[{type:l,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[l]=s;const a="Datetime formats info",u=[{type:a,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[a]=u}return t}function addTimelineEvent(e,t){if(devtoolsApi){let o;t&&"groupId"in t&&(o=t.groupId,delete t.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:o,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function editScope(e,t){const o=getComposer$1(e.nodeId,t);if(o){const[i]=e.path;i==="locale"&&isString$2(e.state.value)?o.locale.value=e.state.value:i==="fallbackLocale"&&(isString$2(e.state.value)||isArray$3(e.state.value)||isObject$1(e.state.value))?o.fallbackLocale.value=e.state.value:i==="inheritLocale"&&isBoolean(e.state.value)&&(o.inheritLocale=e.state.value)}}function defineMixin(e,t,o){return{beforeCreate(){const i=Vue.getCurrentInstance();if(!i)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const n=this.$options;if(n.i18n){const r=n.i18n;if(n.__i18n&&(r.__i18n=n.__i18n),r.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,r);else{r.__injectWithOption=!0,r.__extender=o.__vueI18nExtend,this.$i18n=createVueI18n(r);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(n.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,n);else{this.$i18n=createVueI18n({__i18n:n.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;n.__i18nGlobal&&adjustI18nResources(t,n,n),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,l)=>this.$i18n.te(r,l),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),o.__setInstance(i,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const i=this.$i18n;this.$el.__VUE_I18N__=i.__composer;const n=this.__v_emitter=createEmitter();i.__enableEmitter&&i.__enableEmitter(n),n.on("*",addTimelineEvent)}},unmounted(){const i=Vue.getCurrentInstance();if(!i)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const n=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(n.__disableEmitter&&n.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),o.__deleteInstance(i),delete this.$i18n}}}function mergeToGlobal(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const o=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(o).forEach(i=>e.mergeLocaleMessage(i,o[i])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,t.datetimeFormats[i])),t.numberFormats&&Object.keys(t.numberFormats).forEach(i=>e.mergeNumberFormat(i,t.numberFormats[i])),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const o=__VUE_I18N_LEGACY_API__&&isBoolean(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=isBoolean(e.globalInjection)?e.globalInjection:!0,n=__VUE_I18N_LEGACY_API__&&o?!!e.allowComposition:!0,r=new Map,[l,s]=createGlobal(e,o),a=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&o&&n&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function u(m){return r.get(m)||null}function d(m,w){r.set(m,w)}function c(m){r.delete(m)}{const m={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return n},async install(w,..._){if(process.env.NODE_ENV!=="production"&&(w.__VUE_I18N__=m),w.__VUE_I18N_SYMBOL__=a,w.provide(w.__VUE_I18N_SYMBOL__,m),isPlainObject(_[0])){const f=_[0];m.__composerExtend=f.__composerExtend,m.__vueI18nExtend=f.__vueI18nExtend}let b=null;!o&&i&&(b=injectGlobalFields(w,m.global)),__VUE_I18N_FULL_INSTALL__&&apply(w,m,..._),__VUE_I18N_LEGACY_API__&&o&&w.mixin(defineMixin(s,s.__composer,m));const E=w.unmount;if(w.unmount=()=>{b&&b(),m.dispose(),E()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(w,m))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const p=createEmitter();if(o){const g=s;g.__enableEmitter&&g.__enableEmitter(p)}else{const g=s;g[EnableEmitter]&&g[EnableEmitter](p)}p.on("*",addTimelineEvent)}},get global(){return s},dispose(){l.stop()},__instances:r,__getInstance:u,__setInstance:d,__deleteInstance:c};return m}}function useI18n(e={}){const t=Vue.getCurrentInstance();if(t==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const o=getI18nInstance(t),i=getGlobalComposer(o),n=getComponentOptions(t),r=getScope(e,n);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!e.__useComponent){if(!o.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,r,i,e)}if(r==="global")return adjustI18nResources(i,e,n),i;if(r==="parent"){let a=getComposer(o,t,e.__useComponent);return a==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),a=i),a}const l=o;let s=l.__getInstance(t);if(s==null){const a=assign$2({},e);"__i18n"in n&&(a.__i18n=n.__i18n),i&&(a.__root=i),s=createComposer(a),l.__composerExtend&&(s[DisposeSymbol]=l.__composerExtend(s)),setupLifeCycle(l,t,s),l.__setInstance(t,s)}return s}function createGlobal(e,t,o){const i=Vue.effectScope();{const n=__VUE_I18N_LEGACY_API__&&t?i.run(()=>createVueI18n(e)):i.run(()=>createComposer(e));if(n==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[i,n]}}function getI18nInstance(e){{const t=Vue.inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.mode==="composition"?e.global:e.global.__composer}function getComposer(e,t,o=!1){let i=null;const n=t.root;let r=getParentComponentInstance(t,o);for(;r!=null;){const l=e;if(e.mode==="composition")i=l.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=l.__getInstance(r);s!=null&&(i=s.__composer,o&&i&&!i[InejctWithOptionSymbol]&&(i=null))}if(i!=null||n===r)break;r=r.parent}return i}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,o){let i=null;Vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=o,i=createEmitter();const n=o;n[EnableEmitter]&&n[EnableEmitter](i),i.on("*",addTimelineEvent)}},t),Vue.onUnmounted(()=>{const n=o;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(i&&i.off("*",addTimelineEvent),n[DisableEmitter]&&n[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=n[DisposeSymbol];r&&(r(),delete n[DisposeSymbol])},t)}function useI18nForLegacy(e,t,o,i={}){const n=t==="local",r=Vue.shallowRef(null);if(n&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=isBoolean(i.inheritLocale)?i.inheritLocale:!isString$2(i.locale),s=Vue.ref(!n||l?o.locale.value:isString$2(i.locale)?i.locale:DEFAULT_LOCALE),a=Vue.ref(!n||l?o.fallbackLocale.value:isString$2(i.fallbackLocale)||isArray$3(i.fallbackLocale)||isPlainObject(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:s.value),u=Vue.ref(getLocaleMessages(s.value,i)),d=Vue.ref(isPlainObject(i.datetimeFormats)?i.datetimeFormats:{[s.value]:{}}),c=Vue.ref(isPlainObject(i.numberFormats)?i.numberFormats:{[s.value]:{}}),m=n?o.missingWarn:isBoolean(i.missingWarn)||isRegExp(i.missingWarn)?i.missingWarn:!0,w=n?o.fallbackWarn:isBoolean(i.fallbackWarn)||isRegExp(i.fallbackWarn)?i.fallbackWarn:!0,_=n?o.fallbackRoot:isBoolean(i.fallbackRoot)?i.fallbackRoot:!0,b=!!i.fallbackFormat,E=isFunction(i.missing)?i.missing:null,f=isFunction(i.postTranslation)?i.postTranslation:null,p=n?o.warnHtmlMessage:isBoolean(i.warnHtmlMessage)?i.warnHtmlMessage:!0,g=!!i.escapeParameter,v=n?o.modifiers:isPlainObject(i.modifiers)?i.modifiers:{},T=i.pluralRules||n&&o.pluralRules;function O(){return[s.value,a.value,u.value,d.value,c.value]}const N=Vue.computed({get:()=>r.value?r.value.locale.value:s.value,set:C=>{r.value&&(r.value.locale.value=C),s.value=C}}),P=Vue.computed({get:()=>r.value?r.value.fallbackLocale.value:a.value,set:C=>{r.value&&(r.value.fallbackLocale.value=C),a.value=C}}),y=Vue.computed(()=>r.value?r.value.messages.value:u.value),R=Vue.computed(()=>d.value),H=Vue.computed(()=>c.value);function $(){return r.value?r.value.getPostTranslationHandler():f}function j(C){r.value&&r.value.setPostTranslationHandler(C)}function te(){return r.value?r.value.getMissingHandler():E}function ne(C){r.value&&r.value.setMissingHandler(C)}function ee(C){return O(),C()}function U(...C){return r.value?ee(()=>Reflect.apply(r.value.t,null,[...C])):ee(()=>"")}function K(...C){return r.value?Reflect.apply(r.value.rt,null,[...C]):""}function J(...C){return r.value?ee(()=>Reflect.apply(r.value.d,null,[...C])):ee(()=>"")}function q(...C){return r.value?ee(()=>Reflect.apply(r.value.n,null,[...C])):ee(()=>"")}function Q(C){return r.value?r.value.tm(C):{}}function z(C,I){return r.value?r.value.te(C,I):!1}function se(C){return r.value?r.value.getLocaleMessage(C):{}}function Z(C,I){r.value&&(r.value.setLocaleMessage(C,I),u.value[C]=I)}function oe(C,I){r.value&&r.value.mergeLocaleMessage(C,I)}function le(C){return r.value?r.value.getDateTimeFormat(C):{}}function V(C,I){r.value&&(r.value.setDateTimeFormat(C,I),d.value[C]=I)}function h(C,I){r.value&&r.value.mergeDateTimeFormat(C,I)}function M(C){return r.value?r.value.getNumberFormat(C):{}}function S(C,I){r.value&&(r.value.setNumberFormat(C,I),c.value[C]=I)}function L(C,I){r.value&&r.value.mergeNumberFormat(C,I)}const G={get id(){return r.value?r.value.id:-1},locale:N,fallbackLocale:P,messages:y,datetimeFormats:R,numberFormats:H,get inheritLocale(){return r.value?r.value.inheritLocale:l},set inheritLocale(C){r.value&&(r.value.inheritLocale=C)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(u.value)},get modifiers(){return r.value?r.value.modifiers:v},get pluralRules(){return r.value?r.value.pluralRules:T},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:m},set missingWarn(C){r.value&&(r.value.missingWarn=C)},get fallbackWarn(){return r.value?r.value.fallbackWarn:w},set fallbackWarn(C){r.value&&(r.value.missingWarn=C)},get fallbackRoot(){return r.value?r.value.fallbackRoot:_},set fallbackRoot(C){r.value&&(r.value.fallbackRoot=C)},get fallbackFormat(){return r.value?r.value.fallbackFormat:b},set fallbackFormat(C){r.value&&(r.value.fallbackFormat=C)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:p},set warnHtmlMessage(C){r.value&&(r.value.warnHtmlMessage=C)},get escapeParameter(){return r.value?r.value.escapeParameter:g},set escapeParameter(C){r.value&&(r.value.escapeParameter=C)},t:U,getPostTranslationHandler:$,setPostTranslationHandler:j,getMissingHandler:te,setMissingHandler:ne,rt:K,d:J,n:q,tm:Q,te:z,getLocaleMessage:se,setLocaleMessage:Z,mergeLocaleMessage:oe,getDateTimeFormat:le,setDateTimeFormat:V,mergeDateTimeFormat:h,getNumberFormat:M,setNumberFormat:S,mergeNumberFormat:L};function k(C){C.locale.value=s.value,C.fallbackLocale.value=a.value,Object.keys(u.value).forEach(I=>{C.mergeLocaleMessage(I,u.value[I])}),Object.keys(d.value).forEach(I=>{C.mergeDateTimeFormat(I,d.value[I])}),Object.keys(c.value).forEach(I=>{C.mergeNumberFormat(I,c.value[I])}),C.escapeParameter=g,C.fallbackFormat=b,C.fallbackRoot=_,C.fallbackWarn=w,C.missingWarn=m,C.warnHtmlMessage=p}return Vue.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const C=r.value=e.proxy.$i18n.__composer;t==="global"?(s.value=C.locale.value,a.value=C.fallbackLocale.value,u.value=C.messages.value,d.value=C.datetimeFormats.value,c.value=C.numberFormats.value):n&&k(C)}),G}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const o=Object.create(null);return globalExportProps.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const l=Vue.isRef(r.value)?{get(){return r.value.value},set(s){r.value.value=s}}:{get(){return r.get&&r.get()}};Object.defineProperty(o,n,l)}),e.config.globalProperties.$i18n=o,globalExportMethods.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach(n=>{delete e.config.globalProperties[`$${n}`]})}}if(initFeatureFlags(),__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const en$1={imatrixUIPublicModel:{sure:"Sure",cancel:"Cancel",allDepartments:"All Departments",allUsers:"All Users",reset:"Reset",to:"To",edit:"Edit",clear:"Clear",download:"Download",delete:"Delete",preview:"Preview",add:"Add",graphView:"Graphic view",listView:"List View",fieldName:"Field Name",operator:"Operator",value:"Value",andOr:"And/Or",whenTheVariableIsEmpty:"When The Variable Is Empty",perhaps:"Perhaps",also:"Also",greaterThan:"Greater Than",lessThan:"Less Than",beEqualTo:"Be Equal To",notGreaterThan:"Not Greater Than",notLessThan:"Not Less Than",notEqualTo:"Not Equal To",contain:"Contain",notIncluded:"Not Included",laterThan:"Later Than",earlierThan:"Earlier Than",noLaterThan:"No Later Than",noEarlierThan:"No Earlier Than",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",switchToNormalQuery:"Switch To Normal Query",switchToAdvancedQuery:"Switch To Advanced Query",isNull:"Is Null",isNotNull:"Is Not Null",previewImage:"Preview image",fullScreen:"Full Screen"},imatrixUIMessage:{whetherToConfirmDeletion:"Whether To Confirm Deletion",tips:"Tips",pleaseEnterContent:"Please Enter Content",internalServerError:"Server error",pleaseSelectDepartment:"Please Select Department",pleaseSelectPersonnel:"Please Select Personnel",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"Please Remove All Personnel Before Selecting Specific Personnel",queryResultIsEmpty:"Query Result Is Empty",pleaseSelectATeam:"Please Select A Team",pleaseEnterTeamName:"Please Enter Team Name",validationFailed:"Validation Failed",selectionDate:"Selection Date",selectTime:"Select Time",pleaseEnterATimePoint:"Please Enter A Time Point",pleaseSelect:"Please Select",startDate:"Start Date",endDate:"End Date",noExportColumnsConfigured:"No Export Columns Configured",organizationTreeNoResultNotRemove:"No information selected, no need to remove",exceedFileSize:"File size limit {filesize} M exceeded",upload:"Upload",invalideDoubleValue:"{num} is not a legal decimal",noJumpPage:"Jump page not configured",saveSuccessfully:"Savee successfully",pleaseInputSearchCondition:"Please enter the query criteria",fileUpload:"File Upload",selectYear:"Select Year",search:"Search",forbiddenException:"You do not have permission to access this resource",theButtonIsNotBoundToAResource:"The button is not bound to a resource, Bind the resource first",asyncExport:"Asynchronous export, please wait for message notification!",selectedWorkingGroup:"Selected working group"},superGrid:{columnConfig:"Column Config",pleaseSaveOrCancelEditingLine:"Please Save Or Cancel Editing Line {row} Data First",pleaseSaveLine:"Please Save Line {row} Data First",noNeedToSaveRow:"No Need To Save Row {row} Data",pleaseSetURLToSaveRowInformation:'Please set "URL to save row information"',lineSavedSuccessfully:"Line {row} Saved Successfully",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"The Return Value Of The Beforesave Callback Method Is False",lineNoNeedToUndoEdit:"Line {row} No Need To Undo Edit",lineCancelledSuccessfully:"Line {row} cancelled successfully",label:"Label",isShow:"Is Show",isExportable:"Is Exportable",recordLine:"Record line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",fileName:"File Name",deleteSuccessful:"Deleted successfully",index:"No.",searchConditionName:"Search Condition Name",pleaseInputSearchConditionName:"Please enter the name of the query criteria",saveCondition:"Save Condition",saveConditionTitle:"Save Condition",displayOrder:"Display Order",width:"Column Width",default:"Default",custom:"Custom",show:"Show",hidden:"Hidden",export:"Export",unExport:"Not Export",whetherToConfirmReset:"Are you sure you want to reset?",resetSuccessful:"Reset successfully",dragColumnOrderMessage:"Supports dragging to change column order",selectAll:"Select All",viewImage:"View Image",previewTitleWhenNotImg:"Non picture format, preview in other ways",refresh:"Refresh",open:"Open",fold:"Fold"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"Please Enter Department Name",name:"Department Name",code:"Department Code",removeDepartment:"Remove Department",selectedDept:"Selected Departments",namePath:"Name Path"},departmentUserTree:{pleaseEnterUserInformation:"Please Enter User Information",selectedPeople:"Selected People",searchFieldUserName:"Name",searchFieldLoginName:"Login Name",searchFieldEmail:"Email",searchFieldTelephone:"Telephone",searchFieldJobNumber:"Job Number",searchFieldHonorificName:"Honorific"},departmentUserTreeInline:{name:"Name",department:"Department",branch:"Branch",removeUser:"Remove User",email:"Email",loginName:"Login Name"},workgroupTree:{allTeamMembers:"All Team Members",name:"Workgroup Name",code:"Workgroup Code",removeWorkgroup:"Remove Workgroup",workingGroupName:"Working Group Name",workingGroupNumber:"Working Group Number",workgroupDescription:"Workgroup Description"},workflowButton:{save:"Save",submit:"Submit",approve:"Approve",refuse:"Refuse",agreement:"Agree",oppose:"Opposition",kiken:"Abstention",get_back_button:"Retrieve",copy:"Copy",draw:"Draw",abandon_draw:"Give Up Draw",add_sign:"Additional Signature",remove_sign:"Reduction Of Signature",signoff:"Sign For",assign:"Hand over",assign_task:"Transfer",readed:"Readed",export_report:"Export Report",draw_dept_task:"Draw Department",abandon_draw_dept_task:"Give Up Draw Department"},workflowHistoryList:{specailText:"specail",index:"Index",taskName:"Task Name",operation:"Operation",opinion:"Opinion",processStart:"Process Start",processEnd:"Process End",process_start:"[{1}] process start",prcoess_end:"[{1}] process End",force_end_process:"{1}forced to end the process, and the task of [{2}] was canceled",history_jump:"Process {3} to [{1}], [{2}] task cancelled",history_back:"{1} returned to task,process returned to [{2}]",history_removesign:"{1} minus [{2}]",history_changetransactor_and_delegate:"{1} changed the handler [{2}] to [{3}], [{4}] delegated the task to [{5}]",history_changetransactor:"{1} changed handler [{2}] to [{3}]",history_addsign:"{1} sign [{2}]",history_addtransactor:"{1} add handler [{2}]",history_removetransactor:"{1} decrease handler [{2}]",history_delegate_and_assign:"{1} assigned tasks to [{2}], [{3}] delegated tasks to [{4}]",history_assign:"{1} assigned task to [{2}]",transfer:"{1} transferred to [{2}]",history_complete_transfer:"{1} execute [{2}] operation and canceled the task of other receivers [{3}]",history_delegate_receive:"{1} retracts the task entrusted to [{2}]",history_delegate:"{1} has delegated task [{2}] to [{3}]",history_quit_transfer:"{1} Resignation, has transferred task [{2}] to [{3}",history_change_job_transfer:"{1} Change job,has transferred task [{2}] to [{3}",commonButtonOperation:"{1} execute [{2}] operation",history_draw_task:"{1} received the task and cancelled the task of the candidate [{2}]",history_abandon_draw:"{1} gives up the task and restores the task of candidate [{2}]",create_copy_task:"{1} The task was copied to [{2}",toDoText:"Todo",operator:"Operator",operatorLg:"Operator Login Name",operatorDept:"Operator Dept",operationTime:"Operation Time",history_draw_dept_task:"{1} Received tasks from department [{2}]",history_abandon_draw_dept_task:"{1} Abandon the task of receiving department [{2}]"},gateway:{timeout:"Interface call timeout",callFailed:"Interface call failed"},superNineGrid:{add:"Create"},fsUpload:{upload:"Upload",download:"Download",delete:"Delete",preview:"Preview",name:"Name",picture:"Picture",operating:"Operating",uploadSucceeded:"Upload succeeded",theNumberOfUploadsExceedsTheLimitTheLimitIs:"The number of uploads exceeds the limit. The limit is"},messageVideo:{attemptingToIdentify:"Attempting to identify",callingRearCamera:"Calling rear camera",identificationFailed:"Identification failed"},IntervalSelection:{year:"year",quarter:"quarter",auxiliary:"auxiliary word for ordinal numbers",week:"week"}},cn$1={imatrixUIPublicModel:{sure:"确定",cancel:"取消",allDepartments:"所有部门",allUsers:"所有用户",reset:"重置",to:"至",edit:"操作",clear:"清空",download:"下载",delete:"删除",preview:"预览",add:"增加",graphView:"图形视图",listView:"列表视图",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",andOr:"并且/或者",whenTheVariableIsEmpty:"变量为空时",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",switchToNormalQuery:"切换为普通查询",switchToAdvancedQuery:"切换为高级查询",isNull:"等于Null",isNotNull:"不等于Null",previewImage:"预览图片",fullScreen:"全屏"},imatrixUIMessage:{whetherToConfirmDeletion:"是否确认删除",tips:"提示",pleaseEnterContent:"请输入内容",internalServerError:"请求失败",pleaseSelectDepartment:"请选择部门",pleaseSelectPersonnel:"请选择人员",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"请先移除所有人员,再选择具体人员",queryResultIsEmpty:"查询结果为空",pleaseSelectATeam:"请选择工作组",pleaseEnterTeamName:"请输入工作组名称",validationFailed:"验证失败",selectionDate:"选择日期",selectTime:"选择时间",pleaseEnterATimePoint:"请输入时间点",pleaseSelect:"请选择",startDate:"开始日期",endDate:"结束日期",noExportColumnsConfigured:"没有配置导出列",organizationTreeNoResultNotRemove:"未选择任何信息,无需移除",exceedFileSize:"超过文件大小限制{fileSize}M",upload:"上传",invalideDoubleValue:"{num} 不是合法的小数",noJumpPage:"未配置跳转页面",saveSuccessfully:"保存成功",pleaseInputSearchCondition:"请输入查询条件",fileUpload:"文件上传",selectYear:"选择年",search:"查询",forbiddenException:"您没有权限访问该资源",theButtonIsNotBoundToAResource:"该按钮未绑定资源,请先绑定资源",asyncExport:"正在异步导出,请等待消息通知!",selectedWorkingGroup:"已选工作组"},superGrid:{columnConfig:"字段配置",pleaseSaveOrCancelEditingLine:"请先保存或撤销编辑第 {row} 行数据",pleaseSaveLine:"请先保存第 {row} 行数据",noNeedToSaveRow:"无需保存第 {row} 行数据",pleaseSetURLToSaveRowInformation:"请设置“保存行信息的url”",lineSavedSuccessfully:"第 {row} 行保存成功",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"beforeSave回调方法返回值为false",lineNoNeedToUndoEdit:"第 {row} 行无需撤销编辑",lineCancelledSuccessfully:"第 {row} 行撤销成功",label:"字段名",isShow:"是否显示",isExportable:"是否导出",recordLine:"第 {row} 行记录",pageRecordLine:"第 {pageNum} 页第 {row} 行记录",fileName:"文件名称",deleteSuccessful:"删除成功",index:"序号",searchConditionName:"查询条件名称",pleaseInputSearchConditionName:"请输入查询条件名称",saveCondition:"保存条件",saveConditionTitle:"保存查询条件",displayOrder:"显示顺序",width:"列宽",default:"默认",custom:"自定义",show:"显示",hidden:"隐藏",export:"导出",unExport:"不导出",whetherToConfirmReset:"是否确认重置?",resetSuccessful:"重置成功",dragColumnOrderMessage:"支持拖动改变列顺序",selectAll:"全选",viewImage:"查看图片",previewTitleWhenNotImg:"非图片格式,使用其它方式预览",refresh:"刷新",open:"展开",fold:"收起"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"请输入部门名称",name:"部门名称",code:"部门编码",removeDepartment:"移除部门",selectedDept:"已选部门",namePath:"名称路径"},departmentUserTree:{pleaseEnterUserInformation:"请输入用户信息",selectedPeople:"已选人员",searchFieldUserName:"姓名",searchFieldLoginName:"登录名",searchFieldEmail:"邮箱",searchFieldTelephone:"手机号",searchFieldJobNumber:"工号",searchFieldHonorificName:"尊称"},departmentUserTreeInline:{name:"姓名",department:"所属部门",branch:"所属分支",removeUser:"移除用户",email:"邮箱",loginName:"登录名"},workgroupTree:{allTeamMembers:"所有工作组人员",name:"工作组名称",code:"工作组编码",removeWorkgroup:"移除工作组",workingGroupName:"工作组名称",workingGroupNumber:"工作组编号",workgroupDescription:"工作组描述"},workflowButton:{save:"暂存",submit:"提交",approve:"同意",refuse:"不同意",agreement:"赞成",oppose:"反对",kiken:"弃权",get_back_button:"取回",copy:"抄送",draw:"领取",abandon_draw:"放弃领取",add_sign:"加签",remove_sign:"减签",signoff:"签收",assign:"交办",assign_task:"转办",readed:"已阅",export_report:"导出报告",draw_dept_task:"部门领取",abandon_draw_dept_task:"放弃部门领取"},workflowHistoryList:{specailText:"特",index:"序号",taskName:"环节名称",operation:"流转操作",opinion:"办理意见",processStart:"流程开始",processEnd:"流程结束",process_start:"[{1}]流程开始",prcoess_end:"[{1}]流程结束",force_end_process:"{1}强制结束了该流程,[{2}]的任务被取消",history_jump:"流程{3}到[{1}],[{2}]的任务被取消",history_back:"{1}退回任务,流程退回到[{2}]",history_removesign:"{1}给[{2}]减签",history_changetransactor_and_delegate:"{1}把办理人[{2}]更改成[{3})],{4}把任务委托给了[{5}]",history_changetransactor:"{1}把办理人[{2}]更改成[{3}]",history_addsign:"{1}给[{2}]加签",history_addtransactor:"{1}增加办理人[{2}]",history_removetransactor:"{1}减少办理人[{2}]",history_delegate_and_assign:"{1}把任务指派给了[{2}],[{3}]把任务委托给了[{4}]",history_assign:"{1}把任务指派给了[{2}]",transfer:"{1}移交给[{2}]",history_complete_transfer:"{1}执行了[{2}]操作,取消了其它接收人[{3}]的任务",history_delegate_receive:"{1}收回委托给[{2}]的任务",history_delegate:"{1}已把任务[{2}]委托给[{3}]",history_quit_transfer:"{1}离职,已把任务[{2}]移交给了[{3}]",history_change_job_transfer:"{1}换岗,已把任务[{2}]移交给了[{3}]",commonButtonOperation:"{1}执行了[{2}]操作",history_draw_task:"{1}领取了任务,取消了候选人[{2}]的任务",history_abandon_draw:"{1}放弃领取该任务,还原了候选人[{2}]的任务",create_copy_task:"{1}把任务抄送给了[{2}]",toDoText:"待处理",operator:"操作人",operatorLg:"操作人登录名",operatorDept:"操作人部门",operationTime:"操作时间",history_draw_dept_task:"{1}领取了部门[{2}]的任务",history_abandon_draw_dept_task:"{1}放弃领取部门[{2}]的任务"},gateway:{timeout:"接口调用超时",callFailed:"接口调用失败"},superNineGrid:{add:"新建"},fsUpload:{upload:"上传",download:"下载",delete:"删除",preview:"预览",name:"名称",picture:"图片",operating:"操作",uploadSucceeded:"上传成功",theNumberOfUploadsExceedsTheLimitTheLimitIs:"上传数量超过限制,限制数量为"},messageVideo:{attemptingToIdentify:"正在尝试识别....",callingRearCamera:"正在调用后置摄像头...",identificationFailed:"识别失败"},IntervalSelection:{year:"年",quarter:"季度",auxiliary:"第",week:"周"}},messages$2={en:en$1,cn:cn$1},i18n$1=createI18n({locale:"cn",messages:messages$2,legacy:!1});class CalculatorFactoryWf{constructor(){if(new.target===CalculatorFactoryWf)throw new Error("抽象类不能实例化!")}isEQEmptyValue(t,o,i){const n="operator.number.eq",r="operator.text.eq",l="operator.text.contain";return(t==null||t+""=="")&&(i==null||i+""=="")&&(o===n||o===r||o===l)}}class AmountCalculator extends CalculatorFactoryWf{constructor(t){super();const o="operator.number.ge",i="operator.number.le",n="operator.number.gt",r="operator.number.lt",l="operator.number.ne",s="operator.number.eq",a="operator.text.neq",u="operator.text.eq";if(t.indexOf(o)>0){const d=o,c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim(),w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w>=_}else if(t.indexOf(i)>0){const d=i,c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim(),w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w<=_}else if(t.indexOf(n)>0){const d=n,c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim(),w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w>_}else if(t.indexOf(r)>0){const d=r,c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim(),w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w<_}else if(t.indexOf(l)>0||t.indexOf(a)>0){let d=l;t.indexOf(a)>0&&(d=a);const c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim(),w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w!==_}else if(t.indexOf(s)>0||t.indexOf(u)>0){let d=s;t.indexOf(u)>0&&(d=u);const c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim(),w=Number(c),_=Number(m);this.isEQEmptyValue(w,d,_)?this.result=!0:w===null?this.result=!1:this.result=w===_}}}class NumberCalculator extends CalculatorFactoryWf{constructor(t){super();const o="operator.number.ge",i="operator.number.le",n="operator.number.gt",r="operator.number.lt",l="operator.number.ne",s="operator.number.eq",a="operator.text.neq",u="operator.text.eq";if(t.indexOf(o)>0){const d=o;let c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim();c||(c="0"),m?m=m.replaceAll("'",""):m="0";const w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w>=_}else if(t.indexOf(i)>0){const d=i;let c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim();c||(c="0"),m?m=m.replaceAll("'",""):m="0";const w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w<=_}else if(t.indexOf(n)>0){const d=n;let c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim();c||(c="0"),m?m=m.replaceAll("'",""):m="0";const w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w>_}else if(t.indexOf(r)>0){const d=r;let c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim();c||(c="0"),m?m=m.replaceAll("'",""):m="0";const w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w<_}else if(t.indexOf(l)>0||t.indexOf(a)>0){let d=l;t.indexOf(a)>0&&(d=a);let c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim();c||(c="0"),m?m=m.replaceAll("'",""):m="0";const w=Number(c),_=Number(m);w===null?this.result=!1:this.result=w!==_}else if(t.indexOf(s)>0||t.indexOf(u)>0){let d=s;t.indexOf(u)>0&&(d=u);let c=t.substring(0,t.indexOf(d)).trim(),m=t.substring(t.indexOf(d)+d.length).trim();c||(c="0"),m?m=m.replaceAll("'",""):m="0";const w=Number(c),_=Number(m);this.isEQEmptyValue(w,d,_)?this.result=!0:w===null?this.result=!1:this.result=w===_}}}class DateCalculator extends CalculatorFactoryWf{constructor(t,o){super();const i="operator.date.ge",n="operator.date.le",r="operator.date.gt",l="operator.date.lt",s="operator.date.ne",a="operator.date.et";if(t.indexOf(i)>0){const u=i;let d=t.substring(0,t.indexOf(u)).trim(),c=t.substring(t.indexOf(u)+u.length).trim();o&&o==="DATE"&&d.indexOf(":")>0&&(d=d.substring(0,d.indexOf(":"))),o&&o==="DATE"&&c.indexOf(":")>0&&(c=c.substring(0,c.indexOf(":")));const m=new Date(d).getTime(),w=new Date(c).getTime();m===null?this.result=!1:this.result=m>=w}else if(t.indexOf(n)>0){const u=n;let d=t.substring(0,t.indexOf(u)).trim(),c=t.substring(t.indexOf(u)+u.length).trim();o&&o==="DATE"&&d.indexOf(":")>0&&(d=d.substring(0,d.indexOf(":"))),o&&o==="DATE"&&c.indexOf(":")>0&&(c=c.substring(0,c.indexOf(":")));const m=new Date(d).getTime(),w=new Date(c).getTime();m===null?this.result=!1:this.result=m<=w}else if(t.indexOf(r)>0){const u=r;let d=t.substring(0,t.indexOf(u)).trim(),c=t.substring(t.indexOf(u)+u.length).trim();o&&o==="DATE"&&d.indexOf(":")>0&&(d=d.substring(0,d.indexOf(":"))),o&&o==="DATE"&&c.indexOf(":")>0&&(c=c.substring(0,c.indexOf(":")));const m=new Date(d).getTime(),w=new Date(c).getTime();m===null?this.result=!1:this.result=m>w}else if(t.indexOf(l)>0){const u=l;let d=t.substring(0,t.indexOf(u)).trim(),c=t.substring(t.indexOf(u)+u.length).trim();o&&o==="DATE"&&d.indexOf(":")>0&&(d=d.substring(0,d.indexOf(":"))),o&&o==="DATE"&&c.indexOf(":")>0&&(c=c.substring(0,c.indexOf(":")));const m=new Date(d).getTime(),w=new Date(c).getTime();m===null?this.result=!1:this.result=m<w}else if(t.indexOf(s)>0){const u=s;let d=t.substring(0,t.indexOf(u)).trim(),c=t.substring(t.indexOf(u)+u.length).trim();o&&o==="DATE"&&d.indexOf(":")>0&&(d=d.substring(0,d.indexOf(":"))),o&&o==="DATE"&&c.indexOf(":")>0&&(c=c.substring(0,c.indexOf(":")));const m=new Date(d).getTime(),w=new Date(c).getTime();m===null?this.result=!1:this.result=m!==w}else if(t.indexOf(a)>0){const u=a;let d=t.substring(0,t.indexOf(u)).trim(),c=t.substring(t.indexOf(u)+u.length).trim();o&&o==="DATE"&&d.indexOf(":")>0&&(d=d.substring(0,d.indexOf(":"))),o&&o==="DATE"&&c.indexOf(":")>0&&(c=c.substring(0,c.indexOf(":")));const m=new Date(d).getTime(),w=new Date(c).getTime();this.isEQEmptyValue(m,u,w)?this.result=!0:m===null?this.result=!1:this.result=m===w}}}class TextCalculator extends CalculatorFactoryWf{constructor(t){super();const o="operator.text.neq",i="operator.text.eq",n="operator.text.contain.not",r="operator.text.contain";if(t.indexOf(o)>0){const l=o,s=t.substring(0,t.indexOf(l)).trim(),a=t.substring(t.indexOf(l)+l.length).trim();s===null?this.result=!1:this.result=s!==a}else if(t.indexOf(i)>0){const l=i,s=t.substring(0,t.indexOf(l)).trim(),a=t.substring(t.indexOf(l)+l.length).trim();this.isEQEmptyValue(s,l,a)?this.result=!0:s===null?this.result=!1:this.result=s===a}else if(t.indexOf(n)>0){const l=n,s=t.substring(0,t.indexOf(l)).trim(),a=t.substring(t.indexOf(l)+l.length).trim();s===null?this.result=!1:this.result=!s.includes(a)}else if(t.indexOf(r)>0){const l=r,s=t.substring(0,t.indexOf(l)).trim(),a=t.substring(t.indexOf(l)+l.length).trim();this.isEQEmptyValue(s,l,a)?this.result=!0:s===null?this.result=!1:this.result=s.includes(a)}}}function getAbstractUserFactoryWf(e){switch(e){case"TEXT":return TextCalculator;case"DOUBLE":return AmountCalculator;case"FLOAT":return AmountCalculator;case"INTEGER":return NumberCalculator;case"LONG":return NumberCalculator;case"DATE":return DateCalculator;case"TIME":return DateCalculator;default:return TextCalculator}}function parseSubTablePermissionCondition(express,dataTypeMap,parentEntity,subEntity,additionalParamMap,task,contextParameterMap){const expressTrueVal="true";if(!express||expressTrueVal.toLowerCase()===express.trim())return!0;const SQUARE_BRACKETS_LEFT="[",SQUARE_BRACKETS_RIGHT="]",AND="&&",OR="||";let temp=express;const strs=splitExpression(express);console.log("分割后的原子表达式为:",strs);let result=!1;for(let e=0;e<strs.length;e++){console.log("开始分析原子表达式:",strs[e]);const t=strs[e];if(t&&t.trim()){const o=t.substring(t.indexOf(SQUARE_BRACKETS_LEFT)+SQUARE_BRACKETS_LEFT.length,t.indexOf(SQUARE_BRACKETS_RIGHT));let i="TEXT";dataTypeMap!=null&&dataTypeMap[o]!=null&&(i=dataTypeMap[o]),result=parseFieldCondition(t,i,parentEntity,subEntity,additionalParamMap,task,contextParameterMap),console.log("原子表达式:",t,"的分析结果为 ",result),temp=temp.replace(t.trim(),result+""),console.log("将原子表达式替换为它的结果后:",temp)}}return temp=temp.replace(/condition.operator.and/g,AND),temp=temp.replace(/condition.operator.or/g,OR),temp.trim().endsWith(OR)&&(temp=temp.substring(0,temp.lastIndexOf(OR))),temp.trim().endsWith(AND)&&(temp=temp.substring(0,temp.lastIndexOf(AND))),console.log("最终该流向的表达式为:",temp),eval("("+temp+")")}function parseFieldCondition(e,t,o,i,n,r,l){if(!e)return!1;const s="[",a="]";e=e.trim();const u=e.substring(e.indexOf(s)+s.length,e.indexOf(a)),d=e.substring(0,e.indexOf(" ")),c=e.substring(e.indexOf(" ")+1),m=c.substring(c.indexOf(" ")+1).trim(),w=getPropValue(m,o,n,l,null,i,r);w!=null&&(e=e.replace(m,w.toString()));const _=getValue$1(i,u);if((_==null||_==="")&&(t==="DATE"||t==="TIME"))return!1;console.log("对应值为:",_);const b=getAbstractUserFactoryWf(t),E=e.replace(d,_),p=new b(E).result;return console.log("判断结果为:",p),p}function splitExpression(e){const t="\\*",o="";return e=e.replace(/condition.operator.and/g,t),e=e.replace(/condition.operator.or/g,t),e=e.replace(/\(/g,o),e=e.replace(/\)/g,o),e.split(t)}function getValue$1(e,t){const o=getEntityFieldValue(e,t);return o===void 0||o==null?"":o+""}/*! js-cookie v3.0.5 | MIT */function assign(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)e[i]=o[i]}return e}var defaultConverter={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(e,t){function o(n,r,l){if(!(typeof document>"u")){l=assign({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in l)l[a]&&(s+="; "+a,l[a]!==!0&&(s+="="+l[a].split(";")[0]));return document.cookie=n+"="+e.write(r,n)+s}}function i(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var r=document.cookie?document.cookie.split("; "):[],l={},s=0;s<r.length;s++){var a=r[s].split("="),u=a.slice(1).join("=");try{var d=decodeURIComponent(a[0]);if(l[d]=e.read(u,d),n===d)break}catch{}}return n?l[n]:l}}return Object.create({set:o,get:i,remove:function(n,r){o(n,"",assign({},r,{expires:-1}))},withAttributes:function(n){return init(this.converter,assign({},this.attributes,n))},withConverter:function(n){return init(assign({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var api=init(defaultConverter,{path:"/"});const jwtKey="JWT",currentUserNameKey="USERNAME",currentUserInfoKey="CURRENT_USER",currentSystemUrlKey="CURRENT_SYSTEM_URL_";function getToken(){let e=getCookieCache(jwtKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache(jwtKey)),e}function setToken(e){setCookieCache(jwtKey,e),setSessionCache(jwtKey,e)}function removeToken(){removeCookieCache(jwtKey),removeSessionCache(jwtKey)}function getUsername$1(){let e=getCookieCache(currentUserNameKey);return e||(e=getSessionCache(currentUserNameKey)),e}function setUsername(e){setSessionCache(currentUserNameKey,e),setCookieCache(currentUserNameKey,e)}function removeUsername(){removeSessionCache(currentUserNameKey),removeCookieCache(currentUserNameKey)}function getCurrentUser(){let e=getCookieCache(currentUserInfoKey);if(e||(e=getSessionCache(currentUserInfoKey)),e)return JSON.parse(e)}function setCurrentUser(e){if(e){e.password&&(e.password=null);const t=JSON.stringify(e);setSessionCache(currentUserInfoKey,t),setCookieCache(currentUserInfoKey,t)}}function removeCurrentUser(){removeSessionCache(currentUserInfoKey),removeCookieCache(currentUserInfoKey)}function getCookieCache(e){return api.get(e)}function setCookieCache(e,t){api.set(e,t,{path:"/"})}function removeCookieCache(e){api.remove(e,{path:"/"})}function getSessionCache(e){return window.sessionStorage.getItem(e)}function setSessionCache(e,t){return window.sessionStorage.setItem(e,t)}function removeSessionCache(e){window.sessionStorage.removeItem(e)}function getSystemCacheUrlByCode(e){if(e||(e=window.$vueApp.config.globalProperties.customSystem),e||(e=window.$vueApp.config.globalProperties.systemCode),e){const t=getSystemCacheUrl();if(t)return t[e]}}function getSystemCacheUrl(){let e=getCookieCache(currentSystemUrlKey);if(e||(e=getSessionCache(currentSystemUrlKey)),e)return JSON.parse(e)}function setSystemCacheUrl(e){if(e){const t=JSON.stringify(e);setSessionCache(currentSystemUrlKey,t),setCookieCache(currentSystemUrlKey,t)}}function removeSystemCacheUrl(){removeSessionCache(currentSystemUrlKey),removeCookieCache(currentSystemUrlKey)}const authApi={getToken,setToken,removeToken,getUsername:getUsername$1,setUsername,removeUsername,getCurrentUser,setCurrentUser,removeCurrentUser,getCookieCache,setCookieCache,removeCookieCache,getSessionCache,setSessionCache,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl};function getUsername(){return authApi.getUsername()}const langKey="AMB_LANG_INFO";function getLangs(){return authApi.getCookieCache(langKey)}function getLangByShort(e){let t;const o=getLangs();return o&&(t=JSON.parse(o)[e]),t||(t="zh_CN"),t}function getI18n$1(){return window.$locale?i18n$1.locale=window.$locale:i18n$1.locale="cn",i18n$1.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function getContextValue(e,t){if(e)return e[t]}function getPropValue(e,t,o,i,n,r,l){let s=null;if(e&&e!==null&&e!=="")if(e==="null")s=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),s=getContextValue(i,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),o&&o!=null&&Object.keys(o).indexOf(e)>=0&&o[e]&&o[e]!==null?s=o[e]:s=null;else if(e.includes("${obj."))if(t===void 0||t==null)s=null;else{const a=e.replace("${obj.","").replace("}","");s=getEntityFieldValue(t,a)}}else if(e.includes("${parent."))if(n===void 0||n==null)s=null;else{const a=e.replace("${parent.","").replace("}","");s=getEntityFieldValue(n,a)}else if(e.includes("${task."))if(l===void 0||l==null)s=null;else{const a=e.replace("${task.","").replace("}","");s=getEntityFieldValue(l,a)}else if(e.includes("${subObj."))if(r===void 0||r==null)s=null;else{const a=e.replace("${subObj.","").replace("}","");s=getEntityFieldValue(r,a)}else e.includes("${input.")?s=e.replace("${input.","").replace("}",""):s=e;return s}function getEntityFieldValue(e,t,o){let i=getEntityFieldValueWithCase(e,t);return i==null&&(i=getEntityFieldValueWithCase(e,t.toLowerCase())),(i===void 0||i===null&&o===void 0)&&(i=getEntityFieldValueWithCase(e,t.toUpperCase())),i}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const o=getParentObjectUtil(t,e),i=t.substring(t.lastIndexOf(".")+1);return o[i]}else return e[t]}function getParentObjectUtil(e,t){const o=e.split(".");if(o.length===1)return t;{let i;for(let n=0;n<o.length-1;n++)n===0?i=getParentModelProp(o[n],t):i=getParentModelProp(o[n],i);return i}}function getParentModelProp(e,t){let o=getParentModelPropWithCase(e,t);return o===void 0&&(o=getParentModelPropWithCase(e.toLowerCase(),t)),o===void 0&&(o=getParentModelPropWithCase(e.toUpperCase(),t)),o}function getParentModelPropWithCase(e,t){return t||(t={}),!t[e]&&!t[e.toUpperCase()]&&(t[e]={}),t[e]}const en={workflowEditorPublicModel:{add:"Add",insert:"Insert",delete:"Delete",viewConditions:"View Conditions",agree:"Agree",disagree:"Disagree",andOr:"And / Or",mail:"Mail",message:"Message",App:"App",dingding:"Dingding",determine:"Determine",cancel:"Cancel",choice:"Choice",empty:"Empty",save:"Save",export:"Export",open:"Open",return:"Return",flowChart:"Flow Chart",close:"Close",selectPage:"Select Page",search:"Search",adminSave:"Admin Save",tipTitle:"Tip",i18nSet:"I18n Setting",i18nZh:"Chinese",i18nEn:"English",i18nKey:"I18n Key",subprocessTitle:"Subprocess History",custom:"Custom"},workflowEditorMessage:{requiredAndMustBeADate:"Required And Must Be A Date",requiredAndMustBeAnInteger:"Required And Must Be An Integer",requiredAndMustBeDecimal:"Required And Must Be Decimal",mustFill:"Must Fill",recordLine:"Record Line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",currentHandlingPersonnel:"Current Handling Personnel",pleaseSelect:"Please Select",pleaseSelectARow:"Please Select A Row",conditionsHaveNotBeenSet:"Conditions Have Not Been Set",viewConditions:"View Conditions",fieldSettings:"Field Settings",valueSetting:"Value Setting",pleaseEnterContent:"Please Enter Content",theFieldNameOrFieldValueInLineCannotBeEmpty:"The Field Name Or Field Value In Line {row} Cannot Be Empty",fieldNameCannotBeEmpty:"Field Name Cannot Be Empty",fieldValueCannotBeEmpty:"Field Value Cannot Be Empty",pleaseEnterASubject:"Please Enter A Subject",selectStandardFields:"Select Standard Fields",pleaseEnterTheRoleName:"Please Enter The Role Name",queryResultIsEmpty:"Query Result Is Empty",selectRole:"Select Role",enterText:"Enter Text",selectField:"Select Field",pleaseSelectPersonnel:"Please Select Personnel",pleaseSelectAValue:"Please Select A Value",pleaseSelectAValueInTheCurrentTab:"Please Select A Value In The Current Tab",variableNameCannotBeEmpty:"Variable Name Cannot Be Empty",variableValueCannotBeEmpty:"Variable Value Cannot Be Empty",variableNameOrValueOnLineCannotBeEmpty:"Variable Name Or Value On Line {row} Cannot Be Empty",whenThereAreMultipleManagers:"When There Are Multiple Managers",duplicateOperationTypeWithLinePleaseReselect:"Duplicate Operation Type With Line {row}, Please Reselect",theOperationTypeOrNameInLineIsEmpty:"The Operation Type Or Name In Line {row} Is Empty",readOnly:"Read Only",pleaseEnterFieldName:"Please Enter Field Name",dataInLineCannotBeEmpty:"{data1} Or {data2} In Line {row} Cannot Be Empty",dataCannotBeEmpty:"{data} Cannot Be Empty",theStartAndEndOfTheFlowDirectionCannotBeTheSame:"The Start And End Of The Flow Direction Cannot Be The Same",onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows:"Only Condition Judgment, Branch And Manual Judgment Can Have Multiple Outbound Flows",startAndEndNodesCannotBeConnectedDirectly:"Start And End Nodes Cannot Be Connected Directly",endNodeCannotHaveOutFlowDirection:"End Node Cannot Have Out Flow Direction",itIsTheSameAsTheExistingLink:"It Is The Same As The Existing Link: {name}",updateSuccessful:"Update Successful",savedSuccessfully:"Saved Successfully",exportSucceeded:"Export Succeeded",pleaseSelectRole:"Please select role",subTableMustInputDatas:"The [{subtable}] subtable must enter data",pleaseEnterTheNameOrCode:"Please Enter The Name Or Describe",updateVersionSuccessful:"Version updated successfully",addVersionSuccessful:"Version added successfully",adminSaveTip:"The version must be added in the following cases:",adminSaveTip1:"1.The process name or code has been modified",adminSaveTip2:"2.The node name or code has been modified",adminSaveTip3:"3.Added node or flow direction",adminSaveTip4:"4.Node or flow direction removed",adminSaveTip5:'Please select "Add Version" or "Update Current Version"?',updateVersion:"Update Current Version",addVersion:"Add Version",pleaseInputCode:"Please input the code first, and then do the international configuration",blankFieldNameOrValue:"Blank Field Name Or Value"},workflowEditor:{main:{tacheType:"Tache Type",straightLine:"Straight Line",curveLine:"Curve Line",brokenLine:"Broken Line"},common:{remove:"Remove",attribute:"Attribute",fieldName:"Field Name(*)",operator:"Operator",value:"Value(*)",name:"Name",fieldValue:"Field Value",separator:"Separator",fillInMethod:"Fill In Method",cover:"Cover",append:"Append",insertToFront:"Insert To Front",fillInTime:"Fill In Time",fillInBeforeHandling:"Fill In Before Handling",fillInAfterHandling:"Fill In After Handling",type:"Type(*)",user:"User",role:"Role",department:"Department",workgroup:"Workgroup",selectFormField:"Select Form Field",notificationMethod:"Notification Method",addressee:"Addressee",theme:"Theme",content:"Content",notifyPersonnel:"Notify Personnel",selectusers:"Select Users",selectDepartment:"Select Department",selectTeam:"Select Team",selectRole:"Select Role",organizationStructure:"Organization Structure",formField:"Form Field",variableName:"Variable Name",variableValue:"Variable Value",selectField:"Select Field",taskNotice:"Task Notice",reminderNotice:"Reminder Notice",customMsg:"Custom Notice Message"},process:{processInitiator:"Process Initiator",processInitiatorRole:"Process Initiator Role",processInitiatorDepartment:"ProcessInitiator Department",processInitiatorSuperiorDepartment:"Process Initiator Superior Ddepartment",processInitiatorTopDepartment:"Process Initiator Top Department",processInitiatorWorkingGroup:"Process Initiator Working Group",nameOfTheDirectSuperiorOfTheProcessInitiator:"Name Of The Direct Superior Of The Process Initiator",processInitiatorsDirectSuperiorDepartment:"Process initiator`s Direct Superior Department",directSuperiorRoleOfProcessInitiator:"Direct Superior Role Of Process Initiator",ProcessInitiatorsImmediateSuperiorWorkingGroup:"Process Initiator`s Immediate Superior Working Group",nameOfCurrentHandler:"Name Of Current Handler",currentHandlerRole:"Current Handler Role",currentHandlerDepartment:"Current Handler Department",currentHandlerSuperiorDepartment:"Current Handler`s Superior Department",topDepartmentOfCurrentHandler:"Top Department Of current Handler",currentHandlerWorkingGroup:"Current Handler Working Group",nameOfTheImmediateSuperiorOfTheCurrentHandler:"Name Of The Immediate Superior Of The Current Handler",currentHandlerDirectSuperiorDepartment:"Current handler`s Direct Superior Department",currentManagerDirectSuperiorRole:"Current Manager`s Direct Superior Role",workingGroupDirectlyUnderTheCurrentHandler:"Working Group Directly Under The Current Handler",topDepartments:"Top Departments",approvalResults:"Approval Results",totalNnumberOfPersonsWhoDisagreeWithTheCountersignature:"Total Number O Persons Who Disagree With The Countersignature",totalNumberOfCountersignedAndAgreedPersonnel:"Total Number Of Countersigned And Agreed Personnel",percentageOfPersonsWhoDisagreeWithTheCountersignature:"Percntage Of Persons Who Disagree With The Countersignature",percentageOfCountersignedAndAgreedPersonnel:"Percentage Of Countersigned And Agreed Personnel",percentageOfAbstentions:"Percentage Of Abstentions",percentageOfVotesAgainst:"Percentage Of Votes Against",percentageOfAffirmativeVotes:"Percentage Of Affirmative Votes",totalNumberOfAbstentions:"Total Number Of Abstentions",totalVotesAgainst:"Total Votes Against",totalNumberOfAffirmativeVotes:"Total Number Of Affirmative Votes",standardFields:"Standard Fields",perhaps:"Perhaps",also:"Also",greaterThan:"Greater Than",lessThan:"Less Than",beEqualTo:"Be Equal To",notGreaterThan:"Not Greater Than",notLessThan:"Not Less Than",notEqualTo:"Not Equal To",contain:"Contain",notIncluded:"Not Included",laterThan:"Later Than",earlierThan:"Earlier Than",noLaterThan:"No Later Than",noEarlierThan:"No Earlier Than",handlingTimeOfThisLink:"Handling Time Of This Link",handlerIDOfThisLink:"Handler ID Of This Link",currentHandlerPrincipalDepartmentID:"Current Handler Principal Department ID",iDOfTheImmediateSuperiorOfTheCurrentHandler:"ID Of The Immediate Superior Of The Current Handler",iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler:"ID Of The Superior Department Directly Under The Current Handler",loginNameOfTheHandlerInThisLink:"Login Name Of The Handler In This Link",NameOfCurrentHandler:"Name Of Current Handler",CurrentHandlerDepartment:"Current Handler Department",CurrentHandlerDepartmentID:"Current Handler Department ID",CurrentManagersPrincipalDepartment:"Current Manager`s Principal Department",iDOfSsuperiorDepartmentOfCurrentHandler:"ID Of Superior Department Of Current Handler",CurrentHandlersSuperiorDepartment:"Current Handler`s Superior Department",TopDepartmentOfCurrentHandler:"Top Department Of Current Handler",TopDepartmentIDOfCurrentHandler:"Top Department ID Of Current Handler",CurrentHandlerRole:"Current Handler Role",CurrentHandlerRoleID:"Current Handler Role ID",CurrentHandlerWorkingGroupID:"Current Handler Working Group ID",LoginNameOfTheImmediateSuperiorOfTheCurrentHandler:"Login Name Of The Immediate Superior Of The Current Handler",currentHandlersDirectSuperiorDepartment:"Current handler`s Direct Superior Department",currentManagersDirectSuperiorDepartment:"Current Manager`s Direct Superior Department",currentManagersDirectSuperiorRole:"Current manager`s Direct Superior Role",currentHandlersDirectSuperiorRoleID:"Current Handler`s Direct Superior Role ID",currentManagersDirectSuperiorWork:"Current Manager`s Direct Superior Work",iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler:"ID Of The Working Group Directly Under The Current Handler",operationsPerformedInThisPhase:"Operations Performed In This Phase",handlerIDOfThePreviousLink:"Handler ID Of The Previous Link",lastLinkHandlerLogin:"Last Link Handler Login",nameOfHandlerInThePreviousLink:"Name Of Handler In The Previous Link",currentManagersIdDirectlyUnderTheSuperior:"Current Manager`s Id Directly Under The Ssuperior",appointmentOfHandlerInThePreviousLink:"Appointment Of Handler In The Previous Link",personSpecifiedInFormField:"Person Specified In Form Field",filterByCriteria:"Filter by Criteria",additionalConditions:"Additional Conditions",handlingYyThePersonnelOfTheDepartmentOfTheInitiator:"Handling By The Personnel Of The Department Of The Initiator",personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling:"Personnel Of The Department Where The Initiator Works Participate In The Handling",selectSpecificHandler:"Select Specific Handler",selectOneFromDept:"Only one person is required to handle the same department",generateOneInstanceFromDept:"Generate an instance from the same department",selectionMethod:"Selection Method",manualSelection:"Manual Selection",autoSelect:"Auto Select",callbackURL:"Callback URL",cannotBeEmpty:"Cannot Be Empty",selectURL:"Select URL",fieldName:"Field Name",processAdministrator:"Process Administrator",currentHandler:"Current Handler",allHandlingPersonnel:"All Handling Personnel",designatedPersonnel:"Designated Personnel",listOfDesignatedPersons:"List Of Designated Persons",processName:"Process Name",processCode:"Process Code",creater:"Creater",correspondingForm:"Corresponding Form",processType:"Process Type",system:"System",affiliatedBranch:"Affiliated Branch",customCategory:"Custom Category",initiationProcess:"Initiation Process",deleteProcess:"Delete Process",cancelProcess:"Cancel Process",endProcess:"End Process",pauseProcess:"Pause Process",continueTheProcess:"Continue The Process",jumpLink:"Jump Link",modificationHandler:"Modification Handler",addHandler:"Add Handler",decreaseOofHandler:"Decrease Of Handler",appointedTask:"Appointed Task",returnTask:"Return Task",retrieveTask:"Retrieve Task",processTaskParameterSettings:"Process Task Parameter Settings",uRLForProcessingTask:"URL For Processing Task",parametersForReceivingTaskID:"Parameters For Receiving Task ID",viewFormParameterSettings:"View Form Parameter Settings",viewTheURLOfTheForm:"View The URL Of The Form",parametersOfReceivingEntityID:"Parameters Of Receiving Entity ID",emergencyTreatmentParameterSetting:"Emergency Treatment Parameter Setting",uRLOfEmergencyHandling:"URL Of Emergency Handling",initiateProcessParameterSettings:"Initiate Process Parameter Settings",uRLOfTheInitiatingProcess:"URL Of The Initiating Process",parametersForReceivingProcessName:"Parameters For Receiving Process Name",customParameterValue:"Custom Parameter Value",ViewFlowHistoryPersonnel:"View Flow History Personnel",ViewCountersignatureResultPersonnel:"View Countersignature Result Personnel",ViewVotingResultsBy:"View Voting Results By",name:"Name",code:"Code",subprocess:"Subprocess",transferValueFromMainFormToSubForm:"Transfer Value From Main Form To Sub Form",fieldsOfTheMainForm:"Fields Of The Main Form",fieldsOfSubform:"Fields Of Subform",subformReturnsResultsToMainForm:"Subform Returns Results To Main Form",eventsTriggeredBeforeStartingASubprocess:"Events Triggered Before Starting A Subprocess",triggerSubprocessEndEvent:"Trigger Subprocess End Event",setTheHandlerOfTheFirstPhaseOfTheSubProcess:"Set The Handler Of The First Phase Of The Sub Process",keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly:"Keep The Handler Unchanged When The Target Link Is Handled Repeatedly",branchingCondition:"Branching Condition",processProperties:"Process Properties",basicProperties:"Basic Properties",permissionSettings:"Permission Settings",notificationSettings:"Notification Settings",sendNotificationAfterProcessEnds:"Send Notification After Process Ends",reminderSettings:"Notice And Reminder Settings",parameterSsetting:"Parameter Setting",event:"Event",processVariables:"Process Variables",propertiesOfSubprocesses:"Properties Of Subprocesses",settingOfHandler:"Setting Of Handler",eventProcessing:"Event Processing",sponsorsImmediateSuperior:"Sponsor`s Immediate Superior",sponsorsSuperiorDepartment:"Sponsor`s Superior Department",sponsorTopDepartment:"Sponsor Top Department",superiorDepartmentDirectlyUnderTheInitiator:"Superior Department Directly Under The Initiator",sponsorsImmediateSuperiorWorkingGroup:"Sponsor`s Immediate Superior Working Group",lastLinkHandlerDepartment:"Last Link Handler Department",previousLinkHandlerSuperiorDepartment:"Previous Link Handler Superior Department",topDepartmentOfHandlerInThePreviousLink:"Top Department Of Handler In The Previous Link",previousLinkHandlersDirectSuperiorDepartment:"Previous Link Handler`s Direct Superior Department",previousLinkHandlerWorkingGroup:"Previous Link Handler Working Group",workingGroupDirectlyUnderTheManagerInThePreviousLink:"Working Group Directly Under The Manager In The Previous Link",getSubprocessEntityBean:"Get subprocess entity bean",getSubprocessEntityBeanPlaceholder:"The format is:xxxServiceImpl,for example:exampleServiceImpl",getSubprocessEntityBeanInfo:'The bean needs to implement the interface "tech.imatrix.wf.core.OnStartingSubProcess"',isNull:"Is Null",isNotNull:"Is Not Null",defaultMailTemplate:"Default Mail Template",trustTask:"Trust Task",subprocessIsSharedForm:"Main process and subprocess shared form"},task:{newCc:"New Cc",judge:"Judge",end:"End",branch:"Branch",manualJudgment:"Manual Judgment",newTask:"New Task",converge:"Converge",newProcess:"New Process",start:"Start",subprocess:"Subprocess",needToBeUrged:"Need To Be Urged",urgingMethod:"Urging Method",timeLimitForHandling:"Time Limit For Handling",day:"Day",urgingInterval:"Urging Interval",hour:"Hour",alwaysUrging:"Always Urging",limitedUrging:"Limited Urging",timesOfUrging:"Times Of Urging",includingHandoverPersonnel:"Including Handover Personnel",handoverPersonnel:"Handover Personnel",includeNotifyPeople:"Include Notify People",name:"Name",code:"Code",taskTitle:"Task Title",emailNotification:"Email Notification",handlingPage:"Handling Page",remarks:"Remarks",allowViews:"Allow Views",allowToViewCountersignatureResults:"Allow To View Countersignature Results",allowToViewVotingResults:"Allow To View Voting Results",allowToViewFlowHistory:"Allow To View Flow History",allowFormsToPrint:"Allow Forms To Print",attachmentAuthority:"Attachment Authority",downloadAttachment:"Download Attachment",bodyPermission:"Body Permission(Temporarily Closed)",additionalConditions:"Additional Conditions",setConditions:"Set Conditions",HandlingMethod:"Handling Method",editorial:"Editorial",approvalType:"Approval Type",countersign:"Countersign",voting:"Voting",anyOneCanHandleIt:"Any One Can Handle It",forAll:"For All",passRate:"Pass Rate",modifyOperationName:"Modify Operation Name",operationType:"Operation Type",visibleOrNot:"Visible Or Not",save:"Save",submission:"Submission",agree:"Agree",disagree:"Disagree",favor:"Favor",opposition:"Opposition",waiver:"Waiver",receive:"Receive",giveUp:"Give Up",additionalSignature:"Additional Signature",reductionOfSignature:"Reduction Of Signature",assignTask:"Assign Task",copyTask:"Copy Task",retrieveTask:"Retrieve Task",exportReport:"Export Report",readTask:"Read",selectEditableField:"Select Editable Field",optionalField:"Optional Field",selectedFields:"Selected Fields",editingMethod:"Editing Method",propertyName:"Property Name",condition:"Condition",nothing:"Nothing",beforeSubmission:"Before Submission",executionURL:"Execution URL",errorMessage:"Error Message",afterSubmission:"After Submission",allowEditingForms:"Allow Editing Forms",commentsAllowed:"Comments Allowed",commentsAreRequired:"Comments Are Required",deletePermission:"Delete Permission",addAttachment:"Add Attachment",deleteAttachment:"Delete Attachment",propertiesOfCCTask:"Properties Of CC Task",basicProperties:"Basic Properties",settingOfHandler:"Setting Of Handler",permissionSettings:"Permission Settings",attributeOfConditionJudgment:"Attribute Of Condition Judgment",allBranchFlows:"All Branch Flows",targetLink:"Target Link",propertiesOfBranches:"Properties Of Branches",attributesOfManualJudgment:"Attributes of manual Judgment",linkAttribute:"Link Attribute",autoFillInFieldSettings:"Auto Fill In Field Settings",reminderSettings:"Notice And Reminder Settings",eventProcessing:"Event Processing",linkVariable:"Link Variable",convergedProperties:"Converged Properties",humanTask:"Human Task",conditionJudgment:"Condition Judgment",cCtask:"CC Task",canItBeRejected:"Can It Be Rejected",selectMailTemplate:"Select Notice Template",selectTemplate:"Select Template",autoTask:"Auto Task",newAutoTask:"New Auto Task",propertiesOfAutoTask:"Properties Of Auto Task",custombeanName:"Custom Bean Name"},transition:{flowProperties:"Flow Properties",basicProperties:"Basic Properties",notificationSettings:"Notification Settings",sendNotificationAfterFlow:"Send Notification After Flow",autoFillInFieldSettings:"Auto Fill In Field Settings",eventProcessing:"Event Processing",triggerFlowThroughEvent:"Trigger Flow Through Event",beanName:"Bean Name"},condition:{combinationCondition:"Combination Condition",currentUserId:"Current User ID",currentUserLogin:"Current User Login",currentUserName:"Current User Name",fillInManually:"Fill In Manually",environmentVariable:"Environment Variable",databaseFields:"Database fields",requestParameters:"Request Parameters",currentTime:"Current Time",currentDate:"Current Date",currentTransactor:"Current Transactor",currentTransactorName:"Current Transactor Name",currentTransactorId:"Current Transactor Id",currentTransactorMainDepartmentId:"Current Transactor Main Department Id",currentTransactorMainDepartment:"Current Transactor Main Department",currentTransactorRoleId:"Current Transactor Role Id",currentTransactorRole:"Current Transactor Role",currentTransactorWorkGroupId:"Current Transactor Work Group Id",currentTransactorWorkGroup:"Current Transactor Work Group",whenTheVariableIsEmpty:"When The Variable Is Empty",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",currentHandler:"Current Handler",currentTaskClient:"Current Task Client",currentAssignor:"Current Assignor",rowsCanBeAdded:"Rows Can Be Added",deleteLine:"Delete Line",modifiableHistoricalData:"Modifiable Historical Data",controlByField:"Control By Field",allReadOnly:"All Read Only",allRequired:"All Required",mainTableField:"Main Table Field",linkName:"Link Name",linkCode:"Link Code",taskFields:"Task Fields",systemParameter:"System Parameter",personnelScope:"Personnel Scope",mainTableConditions:"Main Table Conditions",subtableCondition:"Subtable Condition",accessControl:"Access Control",formBindingModel:"Form Binding Model",allFields:"All Fields"}}},cn={workflowEditorPublicModel:{add:"添加",insert:"插入",delete:"删除",viewConditions:"查看条件",agree:"同意",disagree:"不同意",andOr:"并且/或者",mail:"邮件",message:"短信",App:"App",dingding:"钉钉",determine:"确定",cancel:"取消",choice:"选择",empty:"清空",save:"保存",export:"导出",open:"打开",return:"返回",flowChart:"流程图",close:"关闭",selectPage:"选择页面",search:"查询",adminSave:"管理员保存",tipTitle:"提示",i18nSet:"国际化设置",i18nZh:"中文",i18nEn:"英文",i18nKey:"国际化key",subprocessTitle:"子流程流转历史",custom:"自定义"},workflowEditorMessage:{requiredAndMustBeADate:"必填且必须为日期",requiredAndMustBeAnInteger:"必填且必须为整数",requiredAndMustBeDecimal:"必填且必须为小数",mustFill:"必填",recordLine:"第{row}行记录",pageRecordLine:"第{pageNum}页第{row}行记录",currentHandlingPersonnel:"当前办理人员",pleaseSelect:"请选择",pleaseSelectARow:"请选中一行",conditionsHaveNotBeenSet:"还未设置条件",viewConditions:"查看条件",fieldSettings:"字段设置",valueSetting:"值设置",pleaseEnterContent:"请输入内容",theFieldNameOrFieldValueInLineCannotBeEmpty:"第{row}行的字段名或者字段值不能为空",fieldNameCannotBeEmpty:"字段名不能为空",fieldValueCannotBeEmpty:"字段值不能为空",pleaseEnterASubject:"请输入主题",selectStandardFields:"选择标准字段",pleaseEnterTheRoleName:"请输入角色名称",queryResultIsEmpty:"查询结果为空",selectRole:"选择角色",enterText:"输入文字",selectField:"选择字段",pleaseSelectPersonnel:"请选择人员",pleaseSelectAValue:"请选择值",pleaseSelectAValueInTheCurrentTab:"请在当前页签中选中一个值",variableNameCannotBeEmpty:"变量名不能为空",variableValueCannotBeEmpty:"变量值不能为空",variableNameOrValueOnLineCannotBeEmpty:"第{row}行的变量名或者变量值不能为空",whenThereAreMultipleManagers:"多个办理人时",duplicateOperationTypeWithLinePleaseReselect:"与第{row}行的操作类型重复了,请重新选择",theOperationTypeOrNameInLineIsEmpty:"第{row}行的操作类型或者名称为空",readOnly:"只读",pleaseEnterFieldName:"请输入字段名",dataInLineCannotBeEmpty:"第{row}行的{data1}或{data2}不能为空",dataCannotBeEmpty:"{data}不能为空",theStartAndEndOfTheFlowDirectionCannotBeTheSame:"流向的起点和终点不能相同",onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows:"只有条件判断、分支以及人工判断才能有多条外出流向",startAndEndNodesCannotBeConnectedDirectly:"开始节点和结束节点不能直接相连",endNodeCannotHaveOutFlowDirection:"结束节点不能有外出流向",itIsTheSameAsTheExistingLink:"与已有环节:{name}的编码重复",updateSuccessful:"更新成功",savedSuccessfully:"保存成功",exportSucceeded:"导出成功",pleaseSelectRole:"请选择角色",subTableMustInputDatas:"[{subTable}] 子表必须录入数据",pleaseEnterTheNameOrCode:"请输入字段名或字段描述",updateVersionSuccessful:"成功更新版本",addVersionSuccessful:"成功增加版本",adminSaveTip:"有以下几种情况时必须增加版本:",adminSaveTip1:"1、修改了流程名称或编码",adminSaveTip2:"2、修改了节点名称或编码",adminSaveTip3:"3、增加了节点或流向",adminSaveTip4:"4、移除了节点或流向",adminSaveTip5:"请选择“增加版本”或“更新当前版本”?",updateVersion:"更新当前版本",addVersion:"增加版本",pleaseInputCode:"请先输入编码,再做国际化配置",blankFieldNameOrValue:"字段名或值有空白"},workflowEditor:{main:{tacheType:"环节类型",straightLine:"直线",curveLine:"曲线",brokenLine:"折线"},common:{remove:"移除",attribute:"属性",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",name:"字段名",fieldValue:"字段值",separator:"分隔符",fillInMethod:"填写方式",cover:"覆盖",append:"追加",insertToFront:"插入到最前",fillInTime:"填写时间",fillInBeforeHandling:"办理前填写",fillInAfterHandling:"办理后填写",type:"类别(*)",user:"用户",role:"角色",department:"部门",workgroup:"工作组",selectFormField:"选择表单字段",notificationMethod:"通知方式",addressee:"收件人",theme:"主题",content:"内容",notifyPersonnel:"通知人员",selectusers:"选择用户",selectDepartment:"选择部门",selectTeam:"选择工作组",selectRole:"选择角色",organizationStructure:"组织结构",formField:"表单字段",variableName:"变量名",variableValue:"变量值",selectField:"选择字段",taskNotice:"待办通知",reminderNotice:"催办通知",customMsg:"自定义消息内容"},process:{processInitiator:"流程发起人",processInitiatorRole:"流程发起人角色",processInitiatorDepartment:"流程发起人部门",processInitiatorSuperiorDepartment:"流程发起人上级部门",processInitiatorTopDepartment:"流程发起人顶级部门",processInitiatorWorkingGroup:"流程发起人工作组",nameOfTheDirectSuperiorOfTheProcessInitiator:"流程发起人直属上级姓名",processInitiatorsDirectSuperiorDepartment:"流程发起人直属上级部门",directSuperiorRoleOfProcessInitiator:"流程发起人直属上级角色",ProcessInitiatorsImmediateSuperiorWorkingGroup:"流程发起人直属上级工作组",nameOfCurrentHandler:"当前办理人姓名",currentHandlerRole:"当前办理人角色",currentHandlerDepartment:"当前办理人部门",currentHandlerSuperiorDepartment:"当前办理人上级部门",topDepartmentOfCurrentHandler:"当前办理人顶级部门",currentHandlerWorkingGroup:"当前办理人工作组",nameOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级姓名",currentHandlerDirectSuperiorDepartment:"当前办理人直属上级部门",currentManagerDirectSuperiorRole:"当前办理人直属上级角色",workingGroupDirectlyUnderTheCurrentHandler:"当前办理人直属上级工作组",topDepartments:"顶级部门",approvalResults:"审批结果",totalNnumberOfPersonsWhoDisagreeWithTheCountersignature:"会签不同意人员总数",totalNumberOfCountersignedAndAgreedPersonnel:"会签同意人员总数",percentageOfPersonsWhoDisagreeWithTheCountersignature:"会签不同意人员百分比",percentageOfCountersignedAndAgreedPersonnel:"会签同意人员百分比",percentageOfAbstentions:"弃权票百分比",percentageOfVotesAgainst:"反对票百分比",percentageOfAffirmativeVotes:"赞成票百分比",totalNumberOfAbstentions:"弃权票总数",totalVotesAgainst:"反对票总数",totalNumberOfAffirmativeVotes:"赞成票总数",standardFields:"标准字段",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",handlingTimeOfThisLink:"本环节办理时间",handlerIDOfThisLink:"本环节办理人id",currentHandlerPrincipalDepartmentID:"当前办理人正职部门id",iDOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级id",iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler:"当前办理人直属上级正职部门id",loginNameOfTheHandlerInThisLink:"本环节办理人登录名",NameOfCurrentHandler:"当前办理人姓名",CurrentHandlerDepartment:"当前办理人部门",CurrentHandlerDepartmentID:"当前办理人部门id",CurrentManagersPrincipalDepartment:"当前办理人正职部门",iDOfSsuperiorDepartmentOfCurrentHandler:"当前办理人上级部门id",CurrentHandlersSuperiorDepartment:"当前办理人上级部门",TopDepartmentOfCurrentHandler:"当前办理人顶级部门",TopDepartmentIDOfCurrentHandler:"当前办理人顶级部门id",CurrentHandlerRole:"当前办理人角色",CurrentHandlerRoleID:"当前办理人角色id",CurrentHandlerWorkingGroupID:"当前办理人工作组id",LoginNameOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级登录名",currentHandlersDirectSuperiorDepartment:"当前办理人直属上级部门",currentManagersDirectSuperiorDepartment:"当前办理人直属上级正职部门",currentManagersDirectSuperiorRole:"当前办理人直属上级角色",currentHandlersDirectSuperiorRoleID:"当前办理人直属上级角色id",currentManagersDirectSuperiorWork:"当前办理人直属上级工作",iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler:"当前办理人直属上级工作组id",operationsPerformedInThisPhase:"本环节执行的操作",handlerIDOfThePreviousLink:"上一环节办理人id",lastLinkHandlerLogin:"上一环节办理人登录名",nameOfHandlerInThePreviousLink:"上一环节办理人姓名",currentManagersIdDirectlyUnderTheSuperior:"当前办理人直属上级部门id",appointmentOfHandlerInThePreviousLink:"上一环节办理人指定",personSpecifiedInFormField:"表单字段中指定的人员",filterByCriteria:"按条件筛选",additionalConditions:"附加条件",handlingYyThePersonnelOfTheDepartmentOfTheInitiator:"发起人所在部门人员办理",personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling:"发起人所在部门人员参与办理",selectSpecificHandler:"选择具体办理人",selectOneFromDept:"同一部门仅需一人办理",generateOneInstanceFromDept:"同一部门生成一个实例",selectionMethod:"选择方式",manualSelection:"人工选择",autoSelect:"自动选择",callbackURL:"回调URL",cannotBeEmpty:"不能为空",selectURL:"选人URL",fieldName:"字段名称",processAdministrator:"流程管理员",currentHandler:"当前办理人",allHandlingPersonnel:"所有办理人员",designatedPersonnel:"指定人员",listOfDesignatedPersons:"指定人员列表",processName:"流程名称",processCode:"流程编码",creater:"创建人",correspondingForm:"对应表单",processType:"流程类型",system:"所属系统",affiliatedBranch:"所属分支机构",customCategory:"自定义类别",initiationProcess:"发起流程",deleteProcess:"删除流程",cancelProcess:"取消流程",endProcess:"结束流程",pauseProcess:"暂停流程",continueTheProcess:"继续流程",jumpLink:"跳转环节",modificationHandler:"修改办理人",addHandler:"增加办理人",decreaseOofHandler:"减少办理人",appointedTask:"指派任务",returnTask:"退回任务",retrieveTask:"取回任务",processTaskParameterSettings:"办理任务参数设置",uRLForProcessingTask:"办理任务的url",parametersForReceivingTaskID:"接收任务id的参数",viewFormParameterSettings:"查看表单参数设置",viewTheURLOfTheForm:"查看表单的url",parametersOfReceivingEntityID:"接收实体id的参数",emergencyTreatmentParameterSetting:"应急处理参数设置",uRLOfEmergencyHandling:"应急处理的url",initiateProcessParameterSettings:"发起流程参数设置",uRLOfTheInitiatingProcess:"发起流程的url",parametersForReceivingProcessName:"接收流程名称的参数",customParameterValue:"自定义参数值",ViewFlowHistoryPersonnel:"查看流转历史人员",ViewCountersignatureResultPersonnel:"查看会签结果人员",ViewVotingResultsBy:"查看投票结果人员",name:"名称",code:"编码",subprocess:"子流程",transferValueFromMainFormToSubForm:"主表单给子表单传值",fieldsOfTheMainForm:"主表单的字段",fieldsOfSubform:"子表单的字段",subformReturnsResultsToMainForm:"子表单返回结果给主表单",eventsTriggeredBeforeStartingASubprocess:"启动子流程前事件",triggerSubprocessEndEvent:"触发子流程结束事件",setTheHandlerOfTheFirstPhaseOfTheSubProcess:"设置子流程第一环节办理人",keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly:"目标环节重复办理时保持办理人不变",branchingCondition:"分支条件",processProperties:"流程属性",basicProperties:"基本属性",permissionSettings:"权限设置",notificationSettings:"通知设置",sendNotificationAfterProcessEnds:"流程结束后发送通知",reminderSettings:"通知与催办",parameterSsetting:"参数设置",event:"事件",processVariables:"流程变量",propertiesOfSubprocesses:"子流程的属性",settingOfHandler:"办理人设置",eventProcessing:"事件处理",sponsorsImmediateSuperior:"发起人直属上级",sponsorsSuperiorDepartment:"发起人上级部门",sponsorTopDepartment:"发起人顶级部门",superiorDepartmentDirectlyUnderTheInitiator:"发起人直属上级部门",sponsorsImmediateSuperiorWorkingGroup:"发起人直属上级工作组",lastLinkHandlerDepartment:"上一环节办理人部门",previousLinkHandlerSuperiorDepartment:"上一环节办理人上级部门",topDepartmentOfHandlerInThePreviousLink:"上一环节办理人顶级部门",previousLinkHandlersDirectSuperiorDepartment:"上一环节办理人直属上级部门",previousLinkHandlerWorkingGroup:"上一环节办理人工作组",workingGroupDirectlyUnderTheManagerInThePreviousLink:"上一环节办理人直属上级工作组",getSubprocessEntityBean:"获得子流程实体bean",getSubprocessEntityBeanPlaceholder:"格式为:xxxServiceImpl,例如:exampleServiceImpl",getSubprocessEntityBeanInfo:"该bean需要实现接口tech.imatrix.wf.core.OnStartingSubProcess",isNull:"等于Null",isNotNull:"不等于Null",defaultMailTemplate:"默认邮件模板",trustTask:"委托任务",subprocessIsSharedForm:"主子流程共用表单"},task:{newCc:"新抄送",judge:"判断",end:"结束",branch:"分支",manualJudgment:"人工判断",newTask:"新任务",converge:"汇聚",newProcess:"新流程",start:"开始",subprocess:"子流程",needToBeUrged:"需要催办",urgingMethod:"催办方式",timeLimitForHandling:"办理时限",day:"天",urgingInterval:"催办间隔",hour:"小时",alwaysUrging:"一直催办",limitedUrging:"限次催办",timesOfUrging:"催办次数",includingHandoverPersonnel:"包含移交人员",handoverPersonnel:"移交人员",includeNotifyPeople:"包含通知人员",name:"名称",code:"编码",taskTitle:"任务标题",emailNotification:"邮件通知",handlingPage:"办理页面",remarks:"备注",allowViews:"允许查看意见",allowToViewCountersignatureResults:"允许查看会签结果",allowToViewVotingResults:"允许查看投票结果",allowToViewFlowHistory:"允许查看流转历史",allowFormsToPrint:"允许打印表单",attachmentAuthority:"附件权限",downloadAttachment:"下载附件",bodyPermission:"正文权限(暂不开放)",additionalConditions:"附加条件",setConditions:"设置条件",HandlingMethod:"办理方式",editorial:"编辑式",approvalType:"审批式",countersign:"会签式",voting:"投票式",anyOneCanHandleIt:"任意一人办理即可",forAll:"所有人均需办理",passRate:"通过率",modifyOperationName:"修改操作名称",operationType:"操作类型",visibleOrNot:"是否可见",save:"保存",submission:"提交",agree:"同意",disagree:"不同意",favor:"赞成",opposition:"反对",waiver:"弃权",receive:"领取",giveUp:"放弃",additionalSignature:"加签",reductionOfSignature:"减签",assignTask:"指派",copyTask:"抄送",retrieveTask:"取回",exportReport:"导出报告",readTask:"阅",selectEditableField:"选择可编辑字段",optionalField:"可选字段",selectedFields:"已选字段",editingMethod:"编辑方式",propertyName:"属性名",condition:"条件",nothing:"无",beforeSubmission:"提交前",executionURL:"执行url",errorMessage:"出错信息",afterSubmission:"提交后",allowEditingForms:"允许编辑表单",commentsAllowed:"允许填写意见",commentsAreRequired:"必须填写意见",deletePermission:"删除权限",addAttachment:"添加附件",deleteAttachment:"删除附件",propertiesOfCCTask:"抄送任务的属性",basicProperties:"基本属性",settingOfHandler:"办理人设置",permissionSettings:"权限设置",attributeOfConditionJudgment:"条件判断的属性",allBranchFlows:"所有分支流向",targetLink:"目标环节",propertiesOfBranches:"分支的属性",attributesOfManualJudgment:"人工判断的属性",linkAttribute:"环节属性",autoFillInFieldSettings:"自动填写字段设置",reminderSettings:"通知与催办",eventProcessing:"事件处理",linkVariable:"环节变量",convergedProperties:"汇聚的属性",humanTask:"人工任务",conditionJudgment:"条件判断",cCtask:"抄送任务",canItBeRejected:"是否可驳回",selectMailTemplate:"选择通知模板",selectTemplate:"选择模板",autoTask:"自动任务",newAutoTask:"新自动任务",propertiesOfAutoTask:"自动任务的属性",custombeanName:"自定义bean"},transition:{flowProperties:"流向属性",basicProperties:"基本属性",notificationSettings:"通知设置",sendNotificationAfterFlow:"流过后发送通知",autoFillInFieldSettings:"自动填写字段设置",eventProcessing:"事件处理",triggerFlowThroughEvent:"触发流过事件",beanName:"bean名称"},condition:{combinationCondition:"组合条件",currentUserId:"当前用户ID",currentUserLogin:"当前用户登录名",currentUserName:"当前用户姓名",fillInManually:"手动填写",environmentVariable:"环境变量",databaseFields:"数据库字段",requestParameters:"请求参数",currentTime:"当前时间",currentDate:"当前日期",currentTransactor:"当前用户登录名",currentTransactorName:"当前用户姓名",currentTransactorId:"当前用户id",currentTransactorMainDepartmentId:"当前用户部门id",currentTransactorMainDepartment:"当前用户部门名称",currentTransactorRoleId:"当前用户角色id",currentTransactorRole:"当前用户角色名称",currentTransactorWorkGroupId:"当前用户工作组id",currentTransactorWorkGroup:"当前用户工作组名称",whenTheVariableIsEmpty:"变量为空时",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",currentHandler:"当前办理人",currentTaskClient:"当前任务委托人",currentAssignor:"当前指派人",rowsCanBeAdded:"可添加行",deleteLine:"可删除行",modifiableHistoricalData:"可修改历史数据",controlByField:"按字段控制",allReadOnly:"全部只读",allRequired:"全部必填",mainTableField:"主表字段",linkName:"环节名称",linkCode:"环节编码",taskFields:"任务字段",systemParameter:"系统参数",personnelScope:"人员范围",mainTableConditions:"主表条件",subtableCondition:"子表条件",accessControl:"进行权限控制",formBindingModel:"表单绑定model",allFields:"全部字段"}}},messages$1={en,cn},i18n=createI18n({locale:"cn",messages:messages$1,legacy:!1});function newAutoTask(){return{attr:{id:"",name:i18n.t("workflowEditor.task.newAutoTask")},g:{},taskNotice:{},basicProperties:{beanName:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},events:{},permissionSettings:{editForm:{permission:!1,field:[]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}}}}function newCopyTask(){return{attr:{id:"",name:i18n.t("workflowEditor.task.newCc")},g:{},taskNotice:{},basicProperties:{taskTitle:"",remark:"",taskUrl:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},events:{},permissionSettings:{editForm:{permission:!1,field:[]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}}}}function newDecision(){return{attr:{id:"t3",name:i18n.t("workflowEditor.task.judge")},g:{}}}function newEnd(){return{attr:{id:"",name:i18n.t("workflowEditor.task.end")},g:{}}}function newFork(){return{attr:{id:"",name:i18n.t("workflowEditor.task.branch")},g:{}}}function newHumanDecision(){return{attr:{name:i18n.t("workflowEditor.task.manualJudgment")},g:{}}}function newHumanTask(){return{attr:{id:"newHumanTask",name:i18n.t("workflowEditor.task.newTask")},g:{},basicProperties:{processingMode:{type:"EDIT",passRate:0,moreTransactor:!1,actions:{action:[]}},taskCode:"",taskTitle:"",remark:"",mailNotice:!1,taskUrl:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},permissionSettings:{editForm:{permission:!1,field:[],subTablePermission:[{tableName:"sub_table1",permission:!1,modelName:"model",action:[{name:"add",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"update",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"delete",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}],field:[{name:"all_fields",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"xxx",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}]},{tableName:"sub_table2",permission:!1,modelName:"model",action:[{name:"add",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"update",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"delete",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}],field:[{name:"all_fields",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"xxx",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}]}]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}},autoFilledFields:{field:[]},reminder:{dueDate:1,dueTimeUnit:"day",repeat:1,containTransferUser:!1,containNoticeUser:!1,remindType:"mail",timeUnit:"day",remindTimes:0,noticeType:"",noticeUserCondition:"",transferUserCondition:""},events:{afterComplete:!1},variables:{variable:[]}}}function newJoin(){return{attr:{id:"",name:i18n.t("workflowEditor.task.converge")},g:{}}}function newProcess(){const e=newHumanTask();return e.g={x:200,y:150,width:80,height:40},{attr:{name:i18n.t("workflowEditor.task.newProcess"),code:""},properties:{basicProperties:{admin:"",formVersion:1,formCode:"",processTypeCode:"",systemCode:"",creator:"",customType:"",branchCode:""},permissionSettings:{viewFlowHistory:"",viewSubscribeResult:"",viewVoteResult:""},reminder:{dueDate:1,dueTimeUnit:"day",repeat:1,containTransferUser:!1,containNoticeUser:!1,remindType:"mail",timeUnit:"day",remindTimes:1,noticeType:"",noticeUserCondition:"",transferUserCondition:""},parameterSettings:{doTask:{url:"",parameterName:""},viewForm:{url:"",parameterName:""},startProcess:{url:"",parameterName:"",parameterValue:""},handleEmergency:{url:"",parameterName:""}},events:{event:[]},variables:{variable:[]}},start:{attr:{id:"start"},g:{x:50,y:50,width:48,height:48}},humanTask:e,end:{attr:{id:"end"},g:{x:500,y:300,width:48,height:48}}}}function newStart(){return{attr:{id:"",name:i18n.t("workflowEditor.task.start")},g:{}}}function newSubprocess(){return{attr:{id:"",name:i18n.t("workflowEditor.task.subprocess"),taskTitle:""},g:{},processCode:"",processVersion:"",events:{beforeStart:"",end:!1},transactorSettings:{userCondition:"",additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},parameters:{field:[]},result:{field:[]}}}function newTransition(){return{attr:{id:"",from:"",to:""},g:{},basicProperties:{remark:"",isOriginalUser:!1,condition:""},inform:{informType:"mail",userCondition:"",subject:"",content:""},autoFilledFields:{field:[]},onTransit:!1}}function getStore$1(){return window.$store}function getI18n(){return window.$locale?i18n.locale=window.$locale:i18n.locale="cn",i18n.global}function getComponentList(){return[{name:"Start",label:getI18n().t("workflowEditor.task.start"),icon:"start",type:"success",round:!0,width:48,height:48,color:"#67C23A"},{name:"HumanTask",label:getI18n().t("workflowEditor.task.humanTask"),icon:"human-task",type:"",round:!1,width:80,height:40,color:"#000"},{name:"Decision",label:getI18n().t("workflowEditor.task.conditionJudgment"),icon:"decision",type:"",round:!1,width:48,height:48,color:"#999"},{name:"Fork",label:getI18n().t("workflowEditor.task.branch"),icon:"fork",type:"",round:!1,width:48,height:48,color:"#999"},{name:"Join",label:getI18n().t("workflowEditor.task.converge"),icon:"join",type:"",round:!1,width:48,height:48,color:"#999"},{name:"Subprocess",label:getI18n().t("workflowEditor.task.subprocess"),icon:"subprocess",type:"warning",round:!1,width:80,height:40,color:"#0777D4"},{name:"HumanDecision",label:getI18n().t("workflowEditor.task.manualJudgment"),icon:"human-decision",type:"",round:!1,width:48,height:48,color:"#999"},{name:"CopyTask",label:getI18n().t("workflowEditor.task.cCtask"),icon:"copy-task",type:"",round:!1,width:80,height:40,color:"#0777D4"},{name:"AutoTask",label:getI18n().t("workflowEditor.task.autoTask"),icon:"human-task",type:"",round:!1,width:80,height:40,color:"#0777D4"},{name:"End",label:getI18n().t("workflowEditor.task.end"),icon:"end",type:"danger",round:!0,width:48,height:48,color:"#F56C6C"}]}function getComponentInfo(e){const t=getComponentList().filter(o=>o.name===e);return t.length>0?t[0]:null}function getParent(e){return getStore$1().getters["wfEditor/taches"].filter(i=>i.id===e)[0]}function getJoint(e,t){switch(typeof e=="string"&&(e=getParent(e)),t){case"up":case"top":return{position:"up",x:e.x+e.width/2,y:e.y};case"right":return{position:"right",x:e.x+e.width,y:e.y+e.height/2};case"down":case"bottom":return{position:"down",x:e.x+e.width/2,y:e.y+e.height};case"left":return{position:"left",x:e.x,y:e.y+e.height/2};default:return{position:"",x:e.x,y:e.y}}}function getMousePosition(e){const t=document.getElementById("svg").getScreenCTM();return{x:(e.clientX-t.e)/t.a,y:(e.clientY-t.f)/t.d}}function getVirtualRegion(e,t){if(!e||!t)return{};const{x:o,y:i}=e,{x:n,y:r}=t;var l={x:0,y:0,width:Math.abs(n-o),height:Math.abs(r-i)};return o<=n?i<=r?(l.x=o,l.y=i):(l.x=o,l.y=r):i>=r?(l.x=n,l.y=r):(l.x=n,l.y=i),l}function getRealRegion(e){let t,o;t=o=1e4;let i,n;i=n=0;for(const r of e)t>r.x&&(t=r.x),o>r.y&&(o=r.y),i<r.x+r.width&&(i=r.x+r.width),n<r.y+r.height&&(n=r.y+r.height);return{x:t-10,y:o-10,width:i-t+20,height:n-o+20}}function startDragTache(e,t){clearAllSelectedComponents(),t.$parent.region=null,t.$parent.showHistory||(t.model.isSelected=!0),getStore$1().getters["wfEditor/selectedTaches"].push(t.model);const o=getMousePosition(e);getStore$1().commit("wfEditor/setMouseDownPosition",o),getStore$1().commit("wfEditor/setMovingTache",!0)}function endDragTache(){getStore$1().commit("wfEditor/setMovingTache",!1),getStore$1().commit("wfEditor/setMouseDownPosition",null)}function unselectTaches(){for(const e of getStore$1().getters["wfEditor/selectedTaches"])e.isSelected=!1;getStore$1().commit("wfEditor/setSelectedTaches",[])}function clearAllSelectedComponents(){unselectTaches(),getStore$1().getters["wfEditor/selectedTransition"]&&(getStore$1().getters["wfEditor/selectedTransition"].isSelected=!1),getStore$1().commit("wfEditor/setSelectedTransition",null)}function removeTextProperty(e){Object.getOwnPropertyNames(e).forEach(function(o){if(typeof e[o]=="object")if(e[o]._text!==void 0){e[o]=e[o]._text;return}else Object.keys(e[o]).length>0?removeTextProperty(e[o]):["variables","events","autoFilledFields"].indexOf(o)<0&&(e[o]="")})}function generateTaches(e,t){t||(t=[]),Array.isArray(t)||(t=[t]);const o=getStore$1().getters["wfEditor/taches"];for(const i of t){const n={id:i.attr.id,name:i.attr.name,x:i.g.x,y:i.g.y,width:i.g.width,height:i.g.height,type:e,isSelected:!1,ref:i};o.push(n)}}function generateTransitions(e,t){t||(t=[]),Array.isArray(t)||(t=[t]);const o=getStore$1().getters["wfEditor/transitions"];for(const i of t){const n=i.basicProperties.remark||"",r={id:i.attr.id,startJoint:{parent:findTacheById(i.attr.from),position:i.g.fromJoint},endJoint:{parent:findTacheById(i.attr.to),position:i.g.toJoint},isSelected:!1,remark:n,lineInfo:{type:i.g.lineType,controlPoint:null},ref:i};if(i.g.lineType==="CurveLine"&&i.g.coordinate){const l=i.g.coordinate.split(",");r.lineInfo.controlPoint={x:l[0],y:l[1]}}else if(i.g.lineType==="BrokenLine"&&i.g.coordinate){const l=i.g.coordinate.split(";"),s=[];l.forEach(a=>{if(a!==""){const u=a.split(",");s.push({x:u[0],y:u[1]})}}),r.lineInfo.controlPoint=s}o.push(r)}}function initializeProcessData(e){e&&(generateTaches("HumanTask",e.humanTask),generateTaches("Decision",e.decision),generateTaches("Fork",e.fork),generateTaches("Join",e.join),generateTaches("Subprocess",e.subprocess),generateTaches("HumanDecision",e.humanDecision),generateTaches("CopyTask",e.copyTask),generateTaches("AutoTask",e.autoTask),generateTaches("Start",e.start),generateTaches("End",e.end),generateTransitions("Transition",e.transition))}function findOutgoingTransitionsByTacheId(e){return getStore$1().getters["wfEditor/transitions"].filter(i=>i.startJoint.parent.id===e||i.ref.attr.from===e)}function findIncomingTransitionsByTacheId(e){return getStore$1().getters["wfEditor/transitions"].filter(i=>i.endJoint.parent.id===e||i.ref.attr.to===e)}function findTacheById(e){const o=getStore$1().getters["wfEditor/taches"].filter(i=>i.ref.attr.id===e);return o.length>0?o[0]:null}function deepCopy(e){return JSON.parse(JSON.stringify(e))}function updateTransitionsWhenTacheIdChanged(e,t){return findIncomingTransitionsByTacheId(t).map(n=>{n.ref.attr.to=e,n.ref.attr.id="flow_"+n.ref.attr.from+"_to_"+n.ref.attr.to,n.id=n.ref.attr.id}),findOutgoingTransitionsByTacheId(t).map(n=>{n.ref.attr.from=e,n.ref.attr.id="flow_"+n.ref.attr.from+"_to_"+n.ref.attr.to,n.id=n.ref.attr.id}),!0}function validateTacheCode(e){const t=findTacheById(e.formModel.id);if(t&&t.id!==e.id){e.$alert(getI18n().t("workflowEditorMessage.itIsTheSameAsTheExistingLink",{name:t.name})),e.formModel.id=e.id;return}updateTransitionsWhenTacheIdChanged(e.formModel.id,e.id),e.$emit("update:id",e.formModel.id)}function watchShowName(e,t){let o="";if(e.processI18n&&e.model.ref&&e.model.ref.basicProperties&&e.model.ref.basicProperties.i18nKey){const i=e.model.ref.basicProperties.i18nKey,n=getLanguageWithLocale();e.processI18n[i]&&(o=e.processI18n[i][n]),o||(o=t)}else o=t;return o}const processTemplate={newProcess,newHumanTask,newDecision,newStart,newEnd,newTransition,newSubprocess,newFork,newJoin,newHumanDecision,newCopyTask,newAutoTask},iconSvg_vue_vue_type_style_index_0_lang="",_export_sfc=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o},_sfc_main$1g={name:"IconSvg",props:{icon:{type:String,required:!0}},computed:{iconName(){return`#icon-${this.icon}`}}},_hoisted_1$S={class:"svg-icon","aria-hidden":"true"},_hoisted_2$D=["xlink:href"];function _sfc_render$1g(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1$S,[Vue.createElementVNode("use",{"xlink:href":r.iconName},null,8,_hoisted_2$D)])}const IconSvg=_export_sfc(_sfc_main$1g,[["render",_sfc_render$1g]]),toolbox_vue_vue_type_style_index_0_scoped_17339cf9_lang="",_sfc_main$1f={name:"Toolbox",components:{IconSvg},data(){return{componentList:getComponentList()}},computed:{...mapGetters("wfEditor",["componentToDraw"])},methods:{...mapMutations("wfEditor",["setComponentToDraw"]),select(e){this.setComponentToDraw(e)}}};function _sfc_render$1f(e,t,o,i,n,r){const l=Vue.resolveComponent("icon-svg"),s=Vue.resolveComponent("el-button");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createElementVNode("h3",null,Vue.toDisplayString(e.$t("workflowEditor.main.tacheType")),1),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.componentList,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a.name,type:a.type,size:"medium",round:a.round,onMousedown:u=>r.select(a.name)},{default:Vue.withCtx(()=>[Vue.createVNode(l,{icon:a.icon},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(a.label),1)]),_:2},1032,["type","round","onMousedown"]))),128))])}const Toolbox=_export_sfc(_sfc_main$1f,[["render",_sfc_render$1f],["__scopeId","data-v-17339cf9"]]),joint_vue_vue_type_style_index_0_lang="",_sfc_main$1e={name:"Joint",props:{parent:{type:Object,default:null},position:{type:String,default:null}},data(){return{isActivated:!1}},computed:{...mapGetters("wfEditor",["transitions","startJoint","endJoint","draggerToMove"]),joint(){return getJoint(this.parent,this.position)},jointContainer(){return{x:this.joint.x-10,y:this.joint.y-10}}},methods:{...mapMutations("wfEditor",["setStartJoint","setEndJoint","stopDrawingLine","setDraggerToMove","setContextMenuVisible"]),isValidTransition(e,t){if(!e)return!1;if(e.parent===t.parent)return this.$alert(this.$t("workflowEditorMessage.theStartAndEndOfTheFlowDirectionCannotBeTheSame")),!1;if(e.parent.type!=="Decision"&&e.parent.type!=="Fork"&&e.parent.type!=="HumanDecision"){let o=0;if(this.draggerToMove&&(o=1),findOutgoingTransitionsByTacheId(e.parent.id).length>o)return this.$alert(this.$t("workflowEditorMessage.onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows")),!1}return e.parent.type==="Start"&&t.parent.type==="End"?(this.$alert(this.$t("workflowEditorMessage.startAndEndNodesCannotBeConnectedDirectly")),!1):e.parent.type==="End"?(this.$alert(this.$t("workflowEditorMessage.endNodeCannotHaveOutFlowDirection")),!1):!0},mouseup(){if(console.log("joint mouseup"),this.draggerToMove){const e=this.draggerToMove.position,t={parent:this.parent,position:this.position};if(e==="start"?this.draggerToMove.owner.startJoint=t:this.draggerToMove.owner.endJoint=t,this.isValidTransition(this.draggerToMove.owner.startJoint,this.draggerToMove.owner.endJoint)){const o=this.draggerToMove.owner;o.id="flow_"+o.startJoint.parent.id+"_to_"+o.endJoint.parent.id,o.ref.attr={id:o.id,from:o.startJoint.parent.id,to:o.endJoint.parent.id}}else this.draggerToMove.owner.startJoint=this.draggerToMove.originStartJoint,this.draggerToMove.owner.endJoint=this.draggerToMove.originEndJoint;this.setDraggerToMove(null)}else this.addTransition()},addTransition(){const e={parent:this.parent,position:this.position};if(this.isValidTransition(this.startJoint,e)){this.setEndJoint(e);const t={id:"flow_"+this.startJoint.parent.id+"_to_"+this.endJoint.parent.id,startJoint:this.startJoint,endJoint:this.endJoint,isSelected:!1,lineInfo:{type:"StraightLine",controlPoint:null}};t.ref=processTemplate.newTransition(),t.ref.attr={id:t.id,from:this.startJoint.parent.id,to:this.endJoint.parent.id},this.transitions.push(t)}this.stopDrawingLine()},enterJoint(){this.isActivated=!0,this.$emit("enter-joint")},leaveJoint(){this.isActivated=!1,this.$emit("leave-joint")}}},_hoisted_1$R=["x","y"],_hoisted_2$C=["cx","cy"];function _sfc_render$1e(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[4]||(t[4]=Vue.withModifiers(()=>{},["stop"]))},[Vue.createElementVNode("rect",{x:r.jointContainer.x,y:r.jointContainer.y,class:Vue.normalizeClass({"joint-container":!0,"joint-activated":n.isActivated}),width:"20",height:"20",rx:"3",ry:"3",onMousemove:t[0]||(t[0]=Vue.withModifiers((...l)=>r.enterJoint&&r.enterJoint(...l),["stop"])),onMouseout:t[1]||(t[1]=Vue.withModifiers((...l)=>r.leaveJoint&&r.leaveJoint(...l),["stop"])),onMousedown:t[2]||(t[2]=Vue.withModifiers(l=>{e.setContextMenuVisible(!1),e.setStartJoint({parent:o.parent,position:o.position})},["stop"])),onMouseup:t[3]||(t[3]=(...l)=>r.mouseup&&r.mouseup(...l))},null,42,_hoisted_1$R),Vue.withDirectives(Vue.createElementVNode("circle",{cx:r.joint.x,cy:r.joint.y,r:"3",class:"joint"},null,8,_hoisted_2$C),[[Vue.vShow,!n.isActivated]])],32)}const Joint=_export_sfc(_sfc_main$1e,[["render",_sfc_render$1e]]),tacheMethods={startDrag(e){console.log(this.model.name+" mousedown"),this.setContextMenuVisible(!1),startDragTache(e,this)},endDrag(){console.log(this.model.name+" mouseup"),endDragTache()},showJoints(){this.$parent.showHistory||(this.jointPoints=["up","right","down","left"])},hideJoints(){this.jointPoints=[]}},start_vue_vue_type_style_index_0_lang="",_sfc_main$1d={name:"Start",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$Q=["width","height","x","y"],_hoisted_2$B=["x","y","width","height"];function _sfc_render$1d(e,t,o,i,n,r){const l=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>e.startDrag&&e.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=(...s)=>e.endDrag&&e.endDrag(...s)),onMouseenter:t[2]||(t[2]=(...s)=>e.showJoints&&e.showJoints(...s)),onMouseleave:t[3]||(t[3]=(...s)=>e.hideJoints&&e.hideJoints(...s)),onDblclick:t[4]||(t[4]=Vue.withModifiers(s=>e.setPropertiesEditorFor(""),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,start:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$Q),Vue.createElementVNode("use",{"xlink:href":"#icon-start",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#67C23A",class:"draggable"},null,8,_hoisted_2$B),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,s=>(Vue.openBlock(),Vue.createBlock(l,{key:s,parent:o.model,position:s},null,8,["parent","position"]))),128))],32)}const Start=_export_sfc(_sfc_main$1d,[["render",_sfc_render$1d]]),end_vue_vue_type_style_index_0_lang="",_sfc_main$1c={name:"End",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$P=["width","height","x","y"],_hoisted_2$A=["x","y","width","height"];function _sfc_render$1c(e,t,o,i,n,r){const l=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>e.startDrag&&e.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=(...s)=>e.endDrag&&e.endDrag(...s)),onMouseenter:t[2]||(t[2]=(...s)=>e.showJoints&&e.showJoints(...s)),onMouseleave:t[3]||(t[3]=(...s)=>e.hideJoints&&e.hideJoints(...s)),onDblclick:t[4]||(t[4]=Vue.withModifiers(s=>e.setPropertiesEditorFor(""),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,end:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$P),Vue.createElementVNode("use",{"xlink:href":"#icon-end",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#F56C6C",class:"draggable"},null,8,_hoisted_2$A),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,s=>(Vue.openBlock(),Vue.createBlock(l,{key:s,parent:o.model,position:s},null,8,["parent","position"]))),128))],32)}const End=_export_sfc(_sfc_main$1c,[["render",_sfc_render$1c]]),tacheResizer_vue_vue_type_style_index_0_lang="",_sfc_main$1b={name:"TacheResizer",props:{owner:{type:Object,default:null},position:{type:String,default:""}},computed:{...mapGetters("wfEditor",["selectedTaches"]),area(){let o,i;switch(this.position){case"NW":o=this.owner.x,i=this.owner.y;break;case"NE":o=this.owner.x+this.owner.width,i=this.owner.y;break;case"SW":o=this.owner.x,i=this.owner.y+this.owner.height;break;case"SE":o=this.owner.x+this.owner.width,i=this.owner.y+this.owner.height;break}o=o-8/2,i=i-8/2;const n=this.position.toLowerCase()+"-resize";return{x:o,y:i,width:8,height:8,cursor:n}}},methods:{...mapMutations("wfEditor",["setMovingResizer","setResizerToMove","setContextMenuVisible"])}},_hoisted_1$O=["x","y","width","height"];function _sfc_render$1b(e,t,o,i,n,r){return o.owner.isSelected&&e.selectedTaches.length==1?(Vue.openBlock(),Vue.createElementBlock("rect",{key:0,x:r.area.x,y:r.area.y,width:r.area.width,height:r.area.height,style:Vue.normalizeStyle({cursor:r.area.cursor}),class:"resizer",onMousedown:t[0]||(t[0]=Vue.withModifiers(l=>{e.setContextMenuVisible(!1),e.setResizerToMove({owner:o.owner,position:o.position})},["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers(l=>e.setResizerToMove(null),["stop"]))},null,44,_hoisted_1$O)):Vue.createCommentVNode("",!0)}const TacheResizer=_export_sfc(_sfc_main$1b,[["render",_sfc_render$1b]]),_sfc_main$1a={name:"HumanTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$N=["width","height","x","y"],_hoisted_2$z=["x","y"];function _sfc_render$1a(e,t,o,i,n,r){const l=Vue.resolveComponent("joint"),s=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("HumanTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass(["draggable","task-tache",{selected:o.model.isSelected}]),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$N),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$z),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const HumanTask=_export_sfc(_sfc_main$1a,[["render",_sfc_render$1a]]),decision_vue_vue_type_style_index_0_lang="",_sfc_main$19={name:"Decision",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$M=["width","height","x","y"],_hoisted_2$y=["x","y","width","height"],_hoisted_3$i=["x","y"];function _sfc_render$19(e,t,o,i,n,r){const l=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>e.startDrag&&e.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=(...s)=>e.endDrag&&e.endDrag(...s)),onMouseenter:t[2]||(t[2]=(...s)=>e.showJoints&&e.showJoints(...s)),onMouseleave:t[3]||(t[3]=(...s)=>e.hideJoints&&e.hideJoints(...s)),onDblclick:t[4]||(t[4]=Vue.withModifiers(s=>e.setPropertiesEditorFor("Decision"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$M),Vue.createElementVNode("use",{"xlink:href":"#icon-decision",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$y),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$i),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,s=>(Vue.openBlock(),Vue.createBlock(l,{key:s,parent:o.model,position:s},null,8,["parent","position"]))),128))],32)}const Decision=_export_sfc(_sfc_main$19,[["render",_sfc_render$19]]),_sfc_main$18={name:"Subprocess",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$L=["width","height","x","y"],_hoisted_2$x=["x","y"];function _sfc_render$18(e,t,o,i,n,r){const l=Vue.resolveComponent("joint"),s=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("Subprocess"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$L),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$x),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const Subprocess=_export_sfc(_sfc_main$18,[["render",_sfc_render$18]]),_sfc_main$17={name:"CustomTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"]}},computed:{...mapGetters("wfEditor",["selectedTaches"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$K=["width","height","x","y"],_hoisted_2$w=["x","y"];function _sfc_render$17(e,t,o,i,n,r){const l=Vue.resolveComponent("joint"),s=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("HumanTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$K),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(o.model.name),9,_hoisted_2$w),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const CustomTask=_export_sfc(_sfc_main$17,[["render",_sfc_render$17]]),fork_vue_vue_type_style_index_0_lang="",_sfc_main$16={name:"Fork",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$J=["width","height","x","y"],_hoisted_2$v=["x","y","width","height"],_hoisted_3$h=["x","y"];function _sfc_render$16(e,t,o,i,n,r){const l=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>e.startDrag&&e.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=(...s)=>e.endDrag&&e.endDrag(...s)),onMouseenter:t[2]||(t[2]=(...s)=>e.showJoints&&e.showJoints(...s)),onMouseleave:t[3]||(t[3]=(...s)=>e.hideJoints&&e.hideJoints(...s)),onDblclick:t[4]||(t[4]=Vue.withModifiers(s=>e.setPropertiesEditorFor("Fork"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$J),Vue.createElementVNode("use",{"xlink:href":"#icon-fork",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$v),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$h),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,s=>(Vue.openBlock(),Vue.createBlock(l,{key:s,parent:o.model,position:s},null,8,["parent","position"]))),128))],32)}const Fork=_export_sfc(_sfc_main$16,[["render",_sfc_render$16]]),join_vue_vue_type_style_index_0_lang="",_sfc_main$15={name:"Join",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$I=["width","height","x","y"],_hoisted_2$u=["x","y","width","height"],_hoisted_3$g=["x","y"];function _sfc_render$15(e,t,o,i,n,r){const l=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>e.startDrag&&e.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=(...s)=>e.endDrag&&e.endDrag(...s)),onMouseenter:t[2]||(t[2]=(...s)=>e.showJoints&&e.showJoints(...s)),onMouseleave:t[3]||(t[3]=(...s)=>e.hideJoints&&e.hideJoints(...s)),onDblclick:t[4]||(t[4]=Vue.withModifiers(s=>e.setPropertiesEditorFor("Join"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$I),Vue.createElementVNode("use",{"xlink:href":"#icon-join",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$u),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(o.model.name),9,_hoisted_3$g),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,s=>(Vue.openBlock(),Vue.createBlock(l,{key:s,parent:o.model,position:s},null,8,["parent","position"]))),128))],32)}const Join=_export_sfc(_sfc_main$15,[["render",_sfc_render$15]]),humanDecision_vue_vue_type_style_index_0_lang="",_sfc_main$14={name:"HumanDecision",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$H=["width","height","x","y"],_hoisted_2$t=["x","y","width","height"],_hoisted_3$f=["x","y"];function _sfc_render$14(e,t,o,i,n,r){const l=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>e.startDrag&&e.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=(...s)=>e.endDrag&&e.endDrag(...s)),onMouseenter:t[2]||(t[2]=(...s)=>e.showJoints&&e.showJoints(...s)),onMouseleave:t[3]||(t[3]=(...s)=>e.hideJoints&&e.hideJoints(...s)),onDblclick:t[4]||(t[4]=Vue.withModifiers(s=>e.setPropertiesEditorFor("HumanDecision"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"human-decision":!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$H),Vue.createElementVNode("use",{"xlink:href":"#icon-human-decision",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$t),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$f),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,s=>(Vue.openBlock(),Vue.createBlock(l,{key:s,parent:o.model,position:s},null,8,["parent","position"]))),128))],32)}const HumanDecision=_export_sfc(_sfc_main$14,[["render",_sfc_render$14]]),_sfc_main$13={name:"CopyTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$G=["width","height","x","y"],_hoisted_2$s=["x","y"];function _sfc_render$13(e,t,o,i,n,r){const l=Vue.resolveComponent("joint"),s=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("CopyTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$G),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$s),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const CopyTask=_export_sfc(_sfc_main$13,[["render",_sfc_render$13]]),_sfc_main$12={name:"AutoTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$F=["width","height","x","y"],_hoisted_2$r=["x","y"];function _sfc_render$12(e,t,o,i,n,r){const l=Vue.resolveComponent("joint"),s=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("AutoTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$F),Vue.createElementVNode("text",{x:r.text.x,y:r.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$r),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const AutoTask=_export_sfc(_sfc_main$12,[["render",_sfc_render$12]]),_sfc_main$11={name:"StraightLine",props:{owner:{type:Object,default:null}},computed:{path(){const e=getJoint(this.owner.startJoint.parent,this.owner.startJoint.position),t=getJoint(this.owner.endJoint.parent,this.owner.endJoint.position);return"M"+e.x+" "+e.y+" L"+t.x+" "+t.y}}},_hoisted_1$E=["d"];function _sfc_render$11(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("path",{d:r.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$E)}const StraightLine=_export_sfc(_sfc_main$11,[["render",_sfc_render$11]]),curveLine_vue_vue_type_style_index_0_scoped_0ff53a0a_lang="",_sfc_main$10={name:"CurveLine",props:{owner:{type:Object,default:null}},computed:{startPoint(){return getJoint(this.owner.startJoint.parent,this.owner.startJoint.position)},endPoint(){return getJoint(this.owner.endJoint.parent,this.owner.endJoint.position)},controlPoint(){return this.owner.lineInfo.controlPoint},path(){return"M "+this.startPoint.x+" "+this.startPoint.y+" Q "+this.controlPoint.x+" "+this.controlPoint.y+" "+this.endPoint.x+" "+this.endPoint.y},pathToStartPoint(){return"M "+this.controlPoint.x+" "+this.controlPoint.y+"L "+this.startPoint.x+" "+this.startPoint.y},pathToEndPoint(){return"M "+this.controlPoint.x+" "+this.controlPoint.y+"L "+this.endPoint.x+" "+this.endPoint.y}},created:function(){if(!this.owner.lineInfo.controlPoint){let e=this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2;(e+10<this.startPoint.x||e<this.startPoint.x+10)&&(e=this.startPoint.x+30),this.owner.lineInfo.controlPoint={x:e,y:this.endPoint.y}}},methods:{...mapMutations("wfEditor",["setControlPointToMove"]),startDrag(e){this.setControlPointToMove({owner:this.owner})},endDrag(){this.setControlPointToMove(null)}}},_hoisted_1$D=["d"],_hoisted_2$q=["d"],_hoisted_3$e=["d"],_hoisted_4$9=["cx","cy"];function _sfc_render$10(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.createElementVNode("path",{d:r.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$D),o.owner.isSelected?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createElementVNode("path",{d:r.pathToStartPoint,class:"control-line"},null,8,_hoisted_2$q),Vue.createElementVNode("path",{d:r.pathToEndPoint,class:"control-line"},null,8,_hoisted_3$e),Vue.createElementVNode("circle",{cx:r.controlPoint.x,cy:r.controlPoint.y,r:"3",class:"control-point",onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>r.startDrag&&r.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers((...l)=>r.endDrag&&r.endDrag(...l),["stop"]))},null,40,_hoisted_4$9)],64)):Vue.createCommentVNode("",!0)])}const CurveLine=_export_sfc(_sfc_main$10,[["render",_sfc_render$10],["__scopeId","data-v-0ff53a0a"]]),brokenLine_vue_vue_type_style_index_0_scoped_788fb0ae_lang="",_sfc_main$$={name:"BrokenLine",props:{owner:{type:Object,default:null}},computed:{startPoint(){return getJoint(this.owner.startJoint.parent,this.owner.startJoint.position)},endPoint(){return getJoint(this.owner.endJoint.parent,this.owner.endJoint.position)},controlPoint(){return this.owner.lineInfo.controlPoint},path(){let e="M "+this.startPoint.x+" "+this.startPoint.y+" ";return this.controlPoint&&this.controlPoint.forEach(t=>{e+="L "+t.x+" "+t.y}),e+="L "+this.endPoint.x+" "+this.endPoint.y,e}},created:function(){if(console.log("this.owner.lineInfo=",this.owner.lineInfo),!this.owner.lineInfo.controlPoint){const e=this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2,t=this.startPoint.y+(this.endPoint.y-this.startPoint.y)/2;this.owner.lineInfo.controlPoint=[{x:e,y:t}]}},methods:{...mapMutations("wfEditor",["setControlPointToMove"]),startDrag(e,t){console.log("brokenLine--startDrag-----"),this.setControlPointToMove({owner:this.owner,pointIndex:e})},endDrag(){this.setControlPointToMove(null)}}},_hoisted_1$C=["d"],_hoisted_2$p=["cx","cy","onMousedown"];function _sfc_render$$(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.createElementVNode("path",{d:r.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$C),o.owner.isSelected?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[r.controlPoint?(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:0},Vue.renderList(r.controlPoint,(l,s)=>(Vue.openBlock(),Vue.createElementBlock("circle",{key:l.x+l.y,cx:l.x,cy:l.y,r:"3",class:"control-point",onMousedown:Vue.withModifiers(a=>r.startDrag(s,a),["stop"]),onMouseup:t[0]||(t[0]=Vue.withModifiers((...a)=>r.endDrag&&r.endDrag(...a),["stop"]))},null,40,_hoisted_2$p))),128)):Vue.createCommentVNode("",!0)],64)):Vue.createCommentVNode("",!0)])}const BrokenLine=_export_sfc(_sfc_main$$,[["render",_sfc_render$$],["__scopeId","data-v-788fb0ae"]]),transition_vue_vue_type_style_index_0_scoped_275ae600_lang="",_sfc_main$_={name:"Transition",components:{StraightLine,CurveLine,BrokenLine},props:{model:{type:Object,default:null}},data(){const e=this.getTextPoint();return{text:{x:e.x,y:e.y},name:this.model.remark}},computed:{...mapGetters("wfEditor",["draggerToMove","processI18n"]),draggers(){const e=getJoint(this.model.startJoint.parent,this.model.startJoint.position);e.position="start";const t=getJoint(this.model.endJoint.parent,this.model.endJoint.position);return t.position="end",[e,t]},path(){return"M"+this.draggers[0].x+" "+this.draggers[0].y+" L"+this.draggers[1].x+" "+this.draggers[1].y}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.remark",function(e){if(this.name=watchShowName(this,e),this.name&&this.name!==""){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}}),this.$watch("model.lineInfo.type",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.lineInfo.controlPoint",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.startJoint.parent.x",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.startJoint.parent.y",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.endJoint.parent.x",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.endJoint.parent.y",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y})},methods:{...mapMutations("wfEditor",["setMouseDownPosition","setDraggerToMove","setSelectedTransition","setPropertiesEditorFor"]),getTextPoint(){const e=getJoint(this.model.startJoint.parent,this.model.startJoint.position),t=getJoint(this.model.endJoint.parent,this.model.endJoint.position);let o=e.x<t.x?e.x:t.x,i=e.y<t.y?e.y:t.y,n=o+Math.abs(e.x-t.x)/2,r=i+Math.abs(e.y-t.y)/2;if(this.model.lineInfo.type==="CurveLine"){const l=this.model.lineInfo.controlPoint;l&&(o=e.x<l.x?e.x:parseFloat(l.x),i=e.y<l.y?e.y:parseFloat(l.y),n=o+Math.abs(e.x-l.x)/2+10,r=i+Math.abs(e.y-l.y)/2-10)}else if(this.model.lineInfo.type==="BrokenLine"){const l=this.model.lineInfo.controlPoint[0];l&&(o=e.x<l.x?e.x:parseFloat(l.x),i=e.y<l.y?e.y:parseFloat(l.y),n=o+Math.abs(e.x-l.x)/2,r=i+Math.abs(e.y-l.y)/2-10)}return{x:n,y:r}},select(e){clearAllSelectedComponents(),this.model.isSelected=!0,this.setSelectedTransition(this.model)},startDrag(e,t){console.log("start dragging line"),this.setMouseDownPosition(getMousePosition(e)),this.setDraggerToMove({owner:this.model,position:t,originStartJoint:this.model.startJoint,originEndJoint:this.model.endJoint})},endDrag(){},showPropertiesEditor(){this.model.endJoint.parent.type!=="Decision"&&this.setPropertiesEditorFor("Transition")}}},_hoisted_1$B=["x","y"],_hoisted_2$o={key:0},_hoisted_3$d=["cx","cy","onMousedown"];function _sfc_render$_(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("g",{class:Vue.normalizeClass({"no-events":e.draggerToMove!=null}),onMousedown:t[1]||(t[1]=Vue.withModifiers((...l)=>r.select&&r.select(...l),["stop"])),onDblclick:t[2]||(t[2]=Vue.withModifiers((...l)=>r.showPropertiesEditor&&r.showPropertiesEditor(...l),["stop"]))},[Vue.createElementVNode("text",{x:n.text.x,y:n.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_1$B),(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o.model.lineInfo.type),{owner:o.model,class:Vue.normalizeClass({transition:!0,selected:o.model.isSelected||o.model.startJoint.parent.isSelected&&o.model.endJoint.parent.isSelected})},null,8,["owner","class"])),o.model.isSelected?(Vue.openBlock(),Vue.createElementBlock("g",_hoisted_2$o,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r.draggers,l=>(Vue.openBlock(),Vue.createElementBlock("circle",{key:l.position,cx:l.x,cy:l.y,class:"transition-dragger",r:"4",onMousedown:Vue.withModifiers(s=>r.startDrag(s,l.position),["stop"]),onMouseup:t[0]||(t[0]=(...s)=>r.endDrag&&r.endDrag(...s))},null,40,_hoisted_3$d))),128))])):Vue.createCommentVNode("",!0)],34)}const Transition=_export_sfc(_sfc_main$_,[["render",_sfc_render$_],["__scopeId","data-v-275ae600"]]),virtualTransition_vue_vue_type_style_index_0_lang="",_sfc_main$Z={name:"VirtualTransition",props:{toPosition:{type:Object,default:null}},computed:{...mapGetters("wfEditor",["startJoint"]),path(){if(!this.startJoint)return null;const e=getJoint(this.startJoint.parent,this.startJoint.position),t=this.toPosition;return"M"+e.x+" "+e.y+" L"+t.x+" "+t.y}},methods:{}},_hoisted_1$A=["d"];function _sfc_render$Z(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.withDirectives(Vue.createElementVNode("path",{d:r.path,class:"virtual-transition","marker-end":"url(#arrow)"},null,8,_hoisted_1$A),[[Vue.vShow,r.path]])])}const VirtualTransition=_export_sfc(_sfc_main$Z,[["render",_sfc_render$Z]]),selectionRegion_vue_vue_type_style_index_0_lang="",_sfc_main$Y={name:"SelectionRegion",props:{region:{type:Object,default:null}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setDrawingRegion","setMovingRegion","setMouseDownPosition"]),startDrag(e){console.log("region mousedown");const t=getMousePosition(e);this.setMouseDownPosition(t),this.setMovingRegion(!0)},endDrag(e){console.log("region mouseup"),this.setMovingRegion(!1),this.setMouseDownPosition(null)}}},_hoisted_1$z=["x","y","width","height"];function _sfc_render$Y(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("g",null,[o.region?(Vue.openBlock(),Vue.createElementBlock("rect",{key:0,x:o.region.x,y:o.region.y,width:o.region.width,height:o.region.height,class:Vue.normalizeClass({draggable:!0,"selection-region":!0,dashed:e.selectedTaches.length<1}),onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>r.startDrag&&r.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers((...l)=>r.endDrag&&r.endDrag(...l),["stop"]))},null,42,_hoisted_1$z)):Vue.createCommentVNode("",!0)])}const SelectionRegion=_export_sfc(_sfc_main$Y,[["render",_sfc_render$Y]]),formFields_vue_vue_type_style_index_0_scoped_23818f9e_lang="",_sfc_main$X={name:"FormFields",props:{fields:{type:Array,default:null}},data(){return{selectedField:null,copyShowFields:[],showFields:[],searchFormCode:""}},computed:{...mapGetters("wfEditor",["formFields"]),allFields(){return this.fields?this.fields:this.formFields}},mounted(){this.copyAllFields=this.allFields,this.showFields=this.allFields},methods:{setField(){this.$emit("close",this.selectedField)},searchForm(){this.searchFormCode&&this.searchFormCode!==""?this.showFields=this.copyAllFields.filter(e=>e.name.indexOf(this.searchFormCode)>-1||e.label.indexOf(this.searchFormCode)>-1):this.showFields=this.copyAllFields}}},_hoisted_1$y={style:{"padding-bottom":"10px"}},_hoisted_2$n={style:{float:"left",width:"70%"}},_hoisted_3$c={class:"item-content"},_hoisted_4$8={slot:"footer",class:"dialog-footer"};function _sfc_render$X(e,t,o,i,n,r){const l=Vue.resolveComponent("el-input"),s=Vue.resolveComponent("el-button"),a=Vue.resolveComponent("el-radio"),u=Vue.resolveComponent("el-radio-group"),d=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(d,{width:"60%",title:e.$t("workflowEditor.common.selectFormField"),visible:"",center:"",top:"5vh","append-to-body":"","custom-class":"properties-editor-noTab",onClose:t[3]||(t[3]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$y,[Vue.createElementVNode("span",_hoisted_2$n,[Vue.createVNode(l,{modelValue:n.searchFormCode,"onUpdate:modelValue":t[0]||(t[0]=c=>n.searchFormCode=c),placeholder:e.$t("workflowEditorMessage.pleaseEnterTheNameOrCode")},null,8,["modelValue","placeholder"])]),Vue.createElementVNode("span",null,[Vue.createVNode(s,{style:{"margin-left":"10px"},type:"primary",onClick:r.searchForm},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.search")),1)]),_:1},8,["onClick"])])]),Vue.createElementVNode("div",_hoisted_3$c,[Vue.createVNode(u,{modelValue:n.selectedField,"onUpdate:modelValue":t[1]||(t[1]=c=>n.selectedField=c),class:"group"},{default:Vue.withCtx(()=>[Vue.createElementVNode("ul",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.showFields,c=>(Vue.openBlock(),Vue.createElementBlock("li",{key:c.name,class:"item"},[Vue.createVNode(a,{label:c.name},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(c.label),1)]),_:2},1032,["label"])]))),128))])]),_:1},8,["modelValue"])]),Vue.createElementVNode("span",_hoisted_4$8,[Vue.createVNode(s,{type:"primary",size:"small",onClick:r.setField},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{size:"small",onClick:t[2]||(t[2]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})])]),_:1},8,["title"])}const FormFields=_export_sfc(_sfc_main$X,[["render",_sfc_render$X],["__scopeId","data-v-23818f9e"]]);function getFormFieldLabel(e){const t=getFormField(e);return t?t.label:e}function getFormField(e){const t=window.$store.getters["wfEditor/formFields"];e&&e.indexOf("${field[")>=0&&(e=e.substring(e.indexOf("[")+1,e.lastIndexOf("]")));const o=t.filter(i=>i.name===e);return o.length>0?o[0]:null}const taskTitle_vue_vue_type_style_index_0_scoped_9c5f064a_lang="",_sfc_main$W={name:"TaskTitle",components:{FormFields},filters:{showText(e){let t=e;if(e.indexOf("${field[")>=0){const o=t.substring(t.indexOf("[")+1,t.lastIndexOf("]"));t=getFormFieldLabel(o),t="["+t+"]"}else if(e.indexOf("${writeTitle[")>=0){const o=e.indexOf("${writeTitle[");t=t.substring(o+13),t=t.substring(0,t.indexOf("]"))}return t}},props:{value:{type:String,default:null}},data(){const e=[];if(this.value){const t=/\$\{(.+?)\}/g,o=this.value.match(t);for(const i of o)e.push(i)}return{dynamicTags:e,inputVisible:!1,showFormFields:!1,inputValue:""}},watch:{dynamicTags(e){this.$emit("input",this.dynamicTags.join(""))}},mounted(){},methods:{handleClose(e){this.dynamicTags.splice(this.dynamicTags.indexOf(e),1)},showInput(){this.inputVisible=!0,this.$nextTick(e=>{this.$refs.saveTagInput.focus()})},handleInputConfirm(){let e=this.inputValue;e&&(this.inputVisible&&(e="${writeTitle["+e+"]}"),this.dynamicTags.push(e)),this.inputVisible=!1,this.inputValue=""},getType(e){return e.indexOf("${field")>=0?"success":null},setField(e){e!==void 0&&this.dynamicTags.push("${field["+e+"]}"),this.showFormFields=!1}}};function _sfc_render$W(e,t,o,i,n,r){const l=Vue.resolveComponent("el-tag"),s=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("el-button-group"),d=Vue.resolveComponent("form-fields");return Vue.openBlock(),Vue.createElementBlock("div",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.dynamicTags,(c,m)=>(Vue.openBlock(),Vue.createBlock(l,{key:m+c,type:r.getType(c),closable:"","disable-transitions":!1,onClose:w=>r.handleClose(c)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(c|e.showText),1)]),_:2},1032,["type","onClose"]))),128)),n.inputVisible||n.showFormFields?(Vue.openBlock(),Vue.createBlock(s,{key:0,ref:"saveTagInput",modelValue:n.inputValue,"onUpdate:modelValue":t[0]||(t[0]=c=>n.inputValue=c),class:"input-new-tag",size:"small",onKeyup:Vue.withKeys(r.handleInputConfirm,["enter","native"]),onBlur:r.handleInputConfirm},null,8,["modelValue","onKeyup","onBlur"])):Vue.createCommentVNode("",!0),n.inputVisible?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(u,{key:1},{default:Vue.withCtx(()=>[Vue.createVNode(a,{class:"button-new-tag",size:"small",icon:"el-icon-edit",onClick:r.showInput},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.enterText")),1)]),_:1},8,["onClick"]),Vue.createVNode(a,{class:"button-new-tag",size:"small",icon:"el-icon-search",onClick:t[1]||(t[1]=c=>n.showFormFields=!0)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.selectField")),1)]),_:1})]),_:1})),n.showFormFields?(Vue.openBlock(),Vue.createBlock(d,{key:2,onClose:r.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])}const TaskTitle=_export_sfc(_sfc_main$W,[["render",_sfc_render$W],["__scopeId","data-v-9c5f064a"]]),standardFields=[{name:"${approvalResult}",label:getI18n().t("workflowEditor.process.approvalResults"),orgType:"other"},{name:"${instanceCreatorName}",label:getI18n().t("workflowEditor.process.processInitiator"),orgType:"user"},{name:"${instanceCreatorRole}",label:getI18n().t("workflowEditor.process.processInitiatorRole"),orgType:"role"},{name:"${instanceCreatorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${superiorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorSuperiorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${instanceCreatorUpstageDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorTopDepartment"),orgType:"department"},{name:"${instanceCreatorWorkGroup}",label:getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),orgType:"workgroup"},{name:"${instanceCreatorDirectSuperiorName}",label:getI18n().t("workflowEditor.process.nameOfTheDirectSuperiorOfTheProcessInitiator"),orgType:"user"},{name:"${instanceCreatorDirectSuperiorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${instanceCreatorDirectSuperiorRole}",label:getI18n().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"),orgType:"role"},{name:"${instanceCreatorDirectSuperiorWorkGroup}",label:getI18n().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"),orgType:"workgroup"},{name:"${currentTransactorName}",label:getI18n().t("workflowEditor.process.nameOfCurrentHandler"),orgType:"user",relatedFields:["instanceCreatorName","instanceCreatorDirectSuperiorName"]},{name:"${currentTransactorRole}",label:getI18n().t("workflowEditor.process.currentHandlerRole"),orgType:"role"},{name:"${currentTransactorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorSuperiorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorUpstageDepartment}",label:getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment"]},{name:"${currentTransactorWorkGroup}",label:getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),orgType:"workgroup"},{name:"${currentTransactorDirectSuperiorName}",label:getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"),orgType:"user",relatedFields:["instanceCreatorName","instanceCreatorDirectSuperiorName"]},{name:"${currentTransactorDirectSuperiorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorDirectSuperiorRole}",label:getI18n().t("workflowEditor.process.currentManagerDirectSuperiorRole"),orgType:"role"},{name:"${currentTransactorDirectSuperiorWorkGroup}",label:getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"),orgType:"workgroup"},{name:"${upstageDepartment}",label:getI18n().t("workflowEditor.process.topDepartments"),orgType:"department"},{name:"${countersignatureDisagreeCount}",label:getI18n().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"),orgType:"other"},{name:"${countersignatureAgreeCount}",label:getI18n().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"),orgType:"other"},{name:"${countersignatureDisagreePercentage}",label:getI18n().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"),orgType:"other"},{name:"${countersignatureAgreePercentage}",label:getI18n().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"),orgType:"other"},{name:"${abstentionPercentage}",label:getI18n().t("workflowEditor.process.percentageOfAbstentions"),orgType:"other"},{name:"${againstPercentage}",label:getI18n().t("workflowEditor.process.percentageOfVotesAgainst"),orgType:"other"},{name:"${favorPercentage}",label:getI18n().t("workflowEditor.process.percentageOfAffirmativeVotes"),orgType:"other"},{name:"${abstentionCount}",label:getI18n().t("workflowEditor.process.totalNumberOfAbstentions"),orgType:"other"},{name:"${againstCount}",label:getI18n().t("workflowEditor.process.totalVotesAgainst"),orgType:"other"},{name:"${favorCount}",label:getI18n().t("workflowEditor.process.totalNumberOfAffirmativeVotes"),orgType:"other"}],logicOperators$1={"condition.operator.or":getI18n().t("workflowEditor.process.perhaps"),"condition.operator.and":getI18n().t("workflowEditor.process.also")};function isNumber(e){return["NUMBER","DOUBLE","FLOAT","LONG","INTEGER","AMOUNT"].indexOf(e)>=0}const operatorsForNumber=[{name:"operator.number.gt",label:getI18n().t("workflowEditor.process.greaterThan")},{name:"operator.number.lt",label:getI18n().t("workflowEditor.process.lessThan")},{name:"operator.number.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.number.le",label:getI18n().t("workflowEditor.process.notGreaterThan")},{name:"operator.number.ge",label:getI18n().t("workflowEditor.process.notLessThan")},{name:"operator.number.ne",label:getI18n().t("workflowEditor.process.notEqualTo")}];function isString(e){return["STRING","TEXT"].indexOf(e)>=0}const operatorsForString=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.contain",label:getI18n().t("workflowEditor.process.contain")},{name:"operator.text.contain.not",label:getI18n().t("workflowEditor.process.notIncluded")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}];function isDate(e){return["DATE","TIME"].indexOf(e)>=0}const operatorsForDate=[{name:"operator.date.gt",label:getI18n().t("workflowEditor.process.laterThan")},{name:"operator.date.lt",label:getI18n().t("workflowEditor.process.earlierThan")},{name:"operator.date.et",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.date.le",label:getI18n().t("workflowEditor.process.noLaterThan")},{name:"operator.date.ge",label:getI18n().t("workflowEditor.process.noEarlierThan")},{name:"operator.date.ne",label:getI18n().t("workflowEditor.process.notEqualTo")}],operatorsForText=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")}];function isApproveResult(e){return e==="${approvalResult}"}const operatorsForApproveResult=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")}],allOperators=[...operatorsForNumber,...operatorsForDate,...operatorsForString,...operatorsForText];function parseCondition$1(e,t){if(!(!t||t.length===0)){let o=t.replace(/ condition.operator.or /g," condition.operator.or^_^");o=o.replace(/ condition.operator.and /g," condition.operator.and^_^");const i=o.split("^_^");let n=0;for(let r of i){if(r==="")continue;let l="",s="",a="",u="",d="",c="condition.operator.or",m=r.indexOf("${");m>0&&(l=r.substring(0,m)),s=r.substring(m,r.indexOf(" ")),r=r.substring(r.indexOf(" ")+1),a=r.substring(0,r.indexOf(" ")),r=r.substring(r.indexOf(" ")+1),m=r.indexOf(")"),m>0?(u=r.substring(0,m),d=r.substring(m),m=r.indexOf(" condition."),m>0&&(c=r.substring(m+1))):(m=r.indexOf(" condition."),m>0?(u=r.substring(0,m),c=r.substring(m+1)):u=r),e.push({id:n,leftBracket:l,key:s,operator:a,value:u,rightBracket:d,logicOperator:c}),n++}return n}}function generateCondition(e){let t="";for(const n of e)n.key.length===0||n.operator===""||n.value===""&&n.operator!=="operator.text.is.null"&&n.operator!=="operator.text.not.null"||(t=t+n.leftBracket+n.key+" "+n.operator+" "+n.value+n.rightBracket+" "+n.logicOperator+" ");const o=" condition.operator.or ",i=" condition.operator.and ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(i)+i.length===t.length&&(t=t.substring(0,t.lastIndexOf(i))),t}function getStandardField(e){const t=standardFields.filter(o=>o.name===e);return t.length>0?t[0]:null}function getStandardFieldLabel(e){const t=getStandardField(e);return t?t.label:e}function getFieldLabel(e){return e.indexOf("${field[")>=0?getFormFieldLabel(e):e.indexOf("${")>=0?getStandardFieldLabel(e):e.substring(0,e.indexOf("["))}function getOperatorLabel(e){const t=allOperators.filter(o=>o.name===e);return t.length>0?t[0].label:""}function displayCondition(e){let t="";for(const n of e)n.key.length===0||n.operator===""||n.value===""||typeof n.operator>"u"||typeof n.value>"u"||n.operator===null||n.value===null||(t=t+n.leftBracket+getFieldLabel(n.key)+" "+getOperatorLabel(n.operator)+" "+getFieldLabel(n.value)+n.rightBracket+" "+n.value+" "+logicOperators$1[n.logicOperator]+" ");const o=" 或者 ",i=" 并且 ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(i)+i.length===t.length&&(t=t.substring(0,t.lastIndexOf(i))),t}function getRelatedStandardFields(e){const t=standardFields.filter(n=>n.name===e);let o=[];t.length>0&&(o=t[0].relatedFields||[]);const i=[];return standardFields.forEach(n=>{o.indexOf(n.name.substring(2,n.name.length-1))>=0&&i.push(n)}),i}function getStandardFieldsByTacheType(e){if(e)return standardFields;const t=[];return standardFields.forEach(o=>{!e&&o.orgType!=="other"&&t.push(o)}),t}function isTransitionOtherField(e){if(e==="${approvalResult}")return!1;const t=standardFields.filter(i=>i.name===e);let o=!1;return t.length>0&&t.forEach(i=>{e===i.name&&i.orgType==="other"&&(o=!0)}),o}function getOperators(e){const t=getFormField(e)||getStandardField(e);if(t)return isNumber(t.dataType)?operatorsForNumber:isDate(t.dataType)?operatorsForDate:isString(t.dataType)?operatorsForString:isApproveResult(e)?operatorsForApproveResult:operatorsForText}const systemRoleTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$V={name:"InlineSystemRoleTree",props:{multiple:{type:Boolean,default:!1}},data(){return{systemRoleTrees:null,filterText:"",defaultProps:{id:"id",label:"label",children:"children",isLeaf:"leaf"},containBranch:!1,tenantInfo:null,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,searchValue:null,selectNodeInfo:null}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.loadRole(this.tenantNodeId,this.tenantNodeId+""))}},created(){},methods:{loadNode(e,t){var o=0,i;e.level===0?(o=0,i=o+""):(o=e.data.id,i=e.data.nodeId);var n=[];this.$refs.roleTree&&(n=this.$refs.roleTree.getCheckedKeys()),this.initLoadRole(o,i,e,t,n)},initLoadRole(e,t,o,i,n){this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e).then(r=>{if(i(r),this.$refs.roleTree.updateKeyChildren(t,r),e===0){const l=r[0].data;this.tenantInfo=JSON.parse(l),this.containBranch=r[0].containBranch,this.loadRole(this.tenantNodeId,this.tenantNodeId+"")}this.isClickNode?(this.isClickNode=!1,this.checkedNodeAndChildren(o.data)):n&&n.indexOf(t)>-1&&this.checkedNodeAndChildren(o.data)})},loadRole(e,t,o,i){this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e).then(n=>{this.$refs.roleTree.updateKeyChildren(t,n),this.$refs.roleTree.store.nodesMap[t]&&(this.$refs.roleTree.store.nodesMap[t].expanded=!0),o&&(this.allExpandNodeIds.indexOf(t)===-1&&this.allExpandNodeIds.push(t),this.allExpandNodeIds.length===this.allSearchNodeIds.length&&(this.$refs.roleTree.filter(i),this.allExpandNodeIds=[],this.allSearchNodeIds=[]))})},clickSearch(){this.searchValue=this.filterText,this.filterAppendNodes(this.filterText)},filterAppendNodes(e){this.$http.get(this.baseAPI+"/acs/roles/search-system-role-trees?searchValue="+e).then(t=>{if(t){if(t.length===0){this.$message({showClose:!0,type:"error",message:this.$t("workflowEditorMessage.queryResultIsEmpty")});return}t.forEach(o=>{const i="SYSTEM_"+o;this.allSearchNodeIds.indexOf(i)===-1&&(this.allSearchNodeIds.push(i),this.loadRole(o,i,!0,e))})}else this.$message({showClose:!0,type:"error",message:this.$t("workflowEditorMessage.queryResultIsEmpty")})})},handleCheckNode(e,t){t.checkedKeys.indexOf(e.nodeId)>-1?e.children?(this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e)):e.leaf||this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e.id).then(o=>{this.$refs.roleTree.updateKeyChildren(e.nodeId,o),this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e)}):this.cancelChildCheckedNodes(e)},checkedNodeAndChildren(e){this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.$refs.roleTree.setChecked(e.nodeId,!0);const t=e.children;t&&t.forEach(o=>{this.checkedNodeAndChildren(o)})},cancelChildCheckedNodes(e){e.id!==this.tenantNodeId&&this.$refs.roleTree.setChecked(this.tenantNodeId+"",!1);const t=e.children;t&&t.forEach(o=>{this.$refs.roleTree.setChecked(o.nodeId,!1),this.cancelChildCheckedNodes(o)})},selectRole(){if(this.multiple){const e={containBranch:this.containBranch,roles:[]},t=[];this.$refs.roleTree.getCheckedNodes().forEach(i=>{if(i.nodeType==="ROLE"){const n=JSON.parse(i.data);n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName,t.push(n)}}),e.roles=t,e.length>0?this.$emit("result",e):this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditor.pleaseSelectRole")})}else this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditor.pleaseSelectRole")})},filterNode(e,t,o){if(e){var i=t.label;return t.nodeType!=="ROLE"?!1:i.indexOf(e)!==-1}else return!0},handleNodeClick(e,t,o){if(this.multiple&&this.clickNodeWhenMultiple(e),console.log(e),e.nodeType==="ROLE"&&!this.multiple){const n=JSON.parse(e.data);n.tenantName=this.tenantInfo.tenantName,n.tenantCode=this.tenantInfo.code;var i={id:e.id,name:e.name,containBranch:this.containBranch,role:n};this.selectNodeInfo=i}},clickNodeWhenMultiple(e){var t=[];if(this.$refs.roleTree&&(t=this.$refs.roleTree.getCheckedKeys()),t.indexOf(e.nodeId)>-1)this.$refs.roleTree.setChecked(e.nodeId,!1),this.cancelChildCheckedNodes(e),this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0;else{this.$refs.roleTree.setChecked(e.nodeId,!0);const o=e.childDepartments;o&&o.length>0?this.checkedNodeAndChildren(e):this.isClickNode=!0}},renderContent(e,{node:t,data:o,store:i}){return o.nodeType&&o.nodeType==="ROLE"&&this.searchValue&&o.label.indexOf(this.searchValue)>-1?e("span",{},[e("span",{class:"searchResult"},t.label)]):e("span",{},[e("span",{},t.label)])}}};function _sfc_render$V(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-tree");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,{modelValue:n.filterText,"onUpdate:modelValue":t[0]||(t[0]=u=>n.filterText=u),placeholder:e.$t("workflowEditorMessage.pleaseEnterTheRoleName"),onKeyup:Vue.withKeys(r.clickSearch,["enter"])},{default:Vue.withCtx(()=>[Vue.createVNode(l,{slot:"append",icon:"el-icon-search",onClick:r.clickSearch},null,8,["onClick"])]),_:1},8,["modelValue","placeholder","onKeyup"]),Vue.createVNode(a,{ref:"roleTree",props:n.defaultProps,load:r.loadNode,lazy:"","highlight-current":!0,"node-key":"nodeId","show-checkbox":o.multiple,"check-strictly":"","render-content":r.renderContent,"filter-node-method":r.filterNode,onCheck:r.handleCheckNode,onNodeClick:r.handleNodeClick},null,8,["props","load","show-checkbox","render-content","filter-node-method","onCheck","onNodeClick"])])}const InlineSystemRoleTree=_export_sfc(_sfc_main$V,[["render",_sfc_render$V]]),valueSelectionDialog_vue_vue_type_style_index_0_scoped_3b0a952b_lang="",_sfc_main$U={name:"ValueSelectionDialog",components:{InlineSystemRoleTree},props:{standardFields:{type:[Object,Array],default:null},title:{type:String,default:""},showOrganization:{type:Boolean,default:!0},showFormFields:{type:Boolean,default:!0},orgType:{type:String,default:""}},data(){let e=this.title,t="organization";return this.showOrganization||(t="standardFields"),(!this.title||this.title==="")&&(e=getI18n().t("workflowEditorMessage.pleaseSelectAValue")),{selectedValue:"",activeTab:t,titleName:e}},computed:{...mapGetters("wfEditor",["formFields"]),options(){if(Array.isArray(this.standardFields))return this.standardFields;{const e=[];for(const t of Object.keys(this.standardFields))e.push({name:t,label:this.standardFields[t]});return e}}},watch:{activeTab(e){this.selectedValue=""}},methods:{setValue(){if(this.organizationResultValue(),this.selectedValue===""){this.$alert(this.$t("workflowEditorMessage.pleaseSelectAValueInTheCurrentTab"));return}this.$emit("close",this.selectedValue)},orgSelect(e){e&&(this.orgType==="user"?this.getSelectedUser(e.user,e.containBranch):this.orgType==="department"?this.getSelectedDepartmentOrWorkgroup(e.department,e.containBranch):this.orgType==="workgroup"?this.getSelectedDepartmentOrWorkgroup(e.workgroup,e.containBranch):this.orgType==="role"&&this.getSelectedRole(e.role))},organizationResultValue(){this.orgType&&this.activeTab==="organization"&&(this.orgType==="user"?this.$refs.organizationTree.confirmSelectUser():this.orgType==="department"?this.$refs.organizationTree.selectDepartment():this.orgType==="workgroup"?this.$refs.organizationTree.selectWorkgroup():this.orgType==="role"&&this.$refs.organizationTree.selectRole())},getSelectedUser(e,t){const o="~~",i="/";let n=e.loginName,r=e.name;if(t){if(e.subCompanyId&&e.subCompanyId!==null){const l=e.subCompanyCode,s=e.subCompanyName;n=n+o+l,r=r+i+s}else n=n+o+e.tenantCode,r=r+i+e.tenantName;this.selectedValue=r+"["+n+"]"}else this.selectedValue=e.name+"["+e.loginName+"]"},getSelectedDepartmentOrWorkgroup(e,t){this.selectedValue=e.name;const o="/";let i=e.name;if(t){if(e.subCompanyId&&e.subCompanyId!==null){const n=e.subCompanyName;i=i+o+n}else i=i+o+e.tenantName;this.selectedValue=i+"["+e.code+"]"}else this.selectedValue=e.name+"["+e.code+"]"},getSelectedRole(e){this.selectedValue=e.name+"["+e.code+"]"}}},_hoisted_1$x={slot:"footer",class:"dialog-footer"};function _sfc_render$U(e,t,o,i,n,r){const l=Vue.resolveComponent("el-radio"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-tab-pane"),u=Vue.resolveComponent("inline-department-user-tree"),d=Vue.resolveComponent("inline-department-tree"),c=Vue.resolveComponent("inline-workgroup-tree"),m=Vue.resolveComponent("inline-system-role-tree"),w=Vue.resolveComponent("el-radio-group"),_=Vue.resolveComponent("el-tabs"),b=Vue.resolveComponent("el-button"),E=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(E,{title:n.titleName,visible:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor-valueSelect",center:"",onClose:t[4]||(t[4]=f=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createVNode(_,{id:"custTabOne",modelValue:n.activeTab,"onUpdate:modelValue":t[2]||(t[2]=f=>n.activeTab=f),type:"border-card"},{default:Vue.withCtx(()=>[r.options.length>0?(Vue.openBlock(),Vue.createBlock(a,{key:0,label:e.$t("workflowEditor.process.standardFields"),name:"standardFields"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r.options,f=>(Vue.openBlock(),Vue.createBlock(s,{key:f.name},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.selectedValue,"onUpdate:modelValue":t[0]||(t[0]=p=>n.selectedValue=p),label:f.name,border:""},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(f.label),1)]),_:2},1032,["modelValue","label"])]),_:2},1024))),128))]),_:1},8,["label"])):Vue.createCommentVNode("",!0),o.showOrganization?(Vue.openBlock(),Vue.createBlock(a,{key:1,label:e.$t("workflowEditor.common.organizationStructure"),name:"organization"},{default:Vue.withCtx(()=>[o.orgType==="user"?(Vue.openBlock(),Vue.createBlock(u,{key:0,ref:"organizationTree",multiple:!1,onResult:r.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="department"?(Vue.openBlock(),Vue.createBlock(d,{key:1,ref:"organizationTree",multiple:!1,onResult:r.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="workgroup"?(Vue.openBlock(),Vue.createBlock(c,{key:2,ref:"organizationTree",multiple:!1,onResult:r.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="role"?(Vue.openBlock(),Vue.createBlock(m,{key:3,ref:"organizationTree",multiple:!1,onResult:r.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(a,{label:e.$t("workflowEditor.common.formField"),name:"formFields"},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:n.selectedValue,"onUpdate:modelValue":t[1]||(t[1]=f=>n.selectedValue=f),class:"group"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.formFields,f=>(Vue.openBlock(),Vue.createElementBlock("div",{key:f.name,class:"item"},[Vue.createVNode(l,{label:"${field["+f.name+"]}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(f.label),1)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["modelValue"]),Vue.createElementVNode("span",_hoisted_1$x,[Vue.createVNode(b,{type:"primary",size:"small",onClick:r.setValue},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(b,{size:"small",onClick:t[3]||(t[3]=f=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})])]),_:1},8,["title"])}const ValueSelectionDialog=_export_sfc(_sfc_main$U,[["render",_sfc_render$U],["__scopeId","data-v-3b0a952b"]]),_sfc_main$T={name:"AdditionalCondition",components:{ValueSelectionDialog},props:{value:{type:String,default:null},isTransition:{type:Boolean,default:!1}},data(){const e=[],t=parseCondition$1(e,this.value);return{standardFields,tableData:e,count:t,currentRow:null,currentInput:null,options:[],valueDialogTitle:null,showOrganization:!0,orgType:null}},computed:{...mapGetters("wfEditor",["formFields"]),availableStandardFields(){return this.currentInput==="key"?getStandardFieldsByTacheType(this.isTransition):getRelatedStandardFields(this.currentRow.key)}},mounted(){this.tableData.length>0&&this.$refs.table.setCurrentRow(this.tableData[this.tableData.length-1]),this.$watch("tableData",function(e,t){this.$emit("input",generateCondition(this.tableData))},{deep:!0})},methods:{format(e,t){return console.log("row",t),e===""||e===void 0||e===null?"":getFieldLabel(e)},getOperatorOptions(e){return getOperators(e)},selectRow(e){this.$refs.table.setCurrentRow(e)},openValueDialog(e){this.showValueDialog=!0,this.selectRow(e)},closeValueDialog(e){e!==void 0&&e!==""&&(this.currentInput==="key"&&this.currentRow.key!==e&&(this.currentRow.operator="",this.currentRow.value=""),this.currentRow[this.currentInput]=e),this.currentInput=""},getCondition(e){return e.key+" "+e.operator+" "+e.value},handleCurrentChange(e){this.currentRow=e},getRowIndex(e){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].id===e.id)return t;return-1},add(){(this.count===null||this.count===void 0||this.count.isNaN||this.count==="NaN")&&(this.count=0);const e={id:this.count,leftBracket:"",key:"",operator:"",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.tableData.push(e),this.$refs.table.setCurrentRow(e),this.count++},insert(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}const e={id:this.count,leftBracket:"",key:"",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.tableData.splice(this.getRowIndex(this.currentRow),0,e),this.$refs.table.setCurrentRow(e),this.count++},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.tableData.splice(e,1),this.tableData.length>0&&(e=e<=this.tableData.length-1?e:this.tableData.length-1,this.$refs.table.setCurrentRow(this.tableData[e]))},view(){let e=displayCondition(this.tableData);e===""&&(e=this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")),this.$confirm(e,this.$t("workflowEditorMessage.viewConditions"),{showConfirmButton:!1,showCancelButton:!1,callback:function(){}})},selectField(e){this.selectRow(e),this.currentInput="key",this.valueDialogTitle=this.$t("workflowEditorMessage.fieldSettings"),this.showOrganization=!1},selectValue(){this.currentInput="value",this.valueDialogTitle=this.$t("workflowEditorMessage.valueSetting"),this.showOrganization=!0,this.orgType=this.getStandardFieldOrgType()},getStandardFieldOrgType(){const e=this.standardFields.filter(t=>t.name===this.currentRow.key);return e.length>0?e[0].orgType:""},isTransitionOtherField(e){return isTransitionOtherField(e)}}},_hoisted_1$w={"slot-scope":"scope"},_hoisted_2$m={"slot-scope":"scope"},_hoisted_3$b={"slot-scope":"scope"},_hoisted_4$7={"slot-scope":"scope"},_hoisted_5$5={"slot-scope":"scope"},_hoisted_6$3={"slot-scope":"scope"};function _sfc_render$T(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-option"),u=Vue.resolveComponent("el-select"),d=Vue.resolveComponent("el-table-column"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),w=Vue.resolveComponent("value-selection-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-arrow-right",onClick:r.insert},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.insert")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-view",onClick:r.view},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.viewConditions")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.tableData,"row-key":"id",border:"",style:{width:"100%","padding-top":"10px"},"highlight-current-row":"",onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(d,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$w,[Vue.createVNode(u,{modelValue:e.scope.row.leftBracket,"onUpdate:modelValue":t[0]||(t[0]=_=>e.scope.row.leftBracket=_),placeholder:"",onFocus:t[1]||(t[1]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:"(",value:"("}),Vue.createVNode(a,{label:"((",value:"(("}),Vue.createVNode(a,{label:"(((",value:"((("})]),_:1},8,["modelValue"])])]),_:1}),Vue.createVNode(d,{label:e.$t("workflowEditor.common.fieldName"),width:"200"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$m,[Vue.createVNode(c,{value:r.format(e.scope.row.key),onFocus:t[2]||(t[2]=_=>r.selectField(e.scope.row))},null,8,["value"])])]),_:1},8,["label"]),Vue.createVNode(d,{label:e.$t("workflowEditor.common.operator"),width:"110"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_3$b,[Vue.createVNode(u,{modelValue:e.scope.row.operator,"onUpdate:modelValue":t[3]||(t[3]=_=>e.scope.row.operator=_),placeholder:"",onFocus:t[4]||(t[4]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r.getOperatorOptions(e.scope.row.key),_=>(Vue.openBlock(),Vue.createBlock(a,{key:_.name,label:_.label,value:_.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(d,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_4$7,[e.scope.row.key.indexOf("${field[")>=0||r.isTransitionOtherField(e.scope.row.key)?(Vue.openBlock(),Vue.createBlock(c,{key:0,modelValue:e.scope.row.value,"onUpdate:modelValue":t[5]||(t[5]=_=>e.scope.row.value=_),modelModifiers:{trim:!0}},null,8,["modelValue"])):e.scope.row.key==="${approvalResult}"?(Vue.openBlock(),Vue.createBlock(u,{key:1,modelValue:e.scope.row.value,"onUpdate:modelValue":t[6]||(t[6]=_=>e.scope.row.value=_),modelModifiers:{trim:!0}},{default:Vue.withCtx(()=>[Vue.createVNode(a,{value:"同意",label:e.$t("workflowEditorPublicModel.agree")},null,8,["label"]),Vue.createVNode(a,{value:"不同意",label:e.$t("workflowEditorPublicModel.disagree")},null,8,["label"])]),_:1},8,["modelValue"])):(Vue.openBlock(),Vue.createBlock(c,{key:2,value:r.format(e.scope.row.value,e.scope.row),readonly:"",onFocus:r.selectValue},null,8,["value","onFocus"]))])]),_:1},8,["label"]),Vue.createVNode(d,{prop:"rightBracket",label:")",width:"90",onFocus:t[8]||(t[8]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_5$5,[Vue.createVNode(u,{modelValue:e.scope.row.rightBracket,"onUpdate:modelValue":t[7]||(t[7]=_=>e.scope.row.rightBracket=_),placeholder:""},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:")",value:")"}),Vue.createVNode(a,{label:"))",value:"))"}),Vue.createVNode(a,{label:")))",value:")))"})]),_:1},8,["modelValue"])])]),_:1}),Vue.createVNode(d,{prop:"logicOperator",label:e.$t("workflowEditorPublicModel.andOr"),width:"110"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_6$3,[Vue.createVNode(u,{modelValue:e.scope.row.logicOperator,"onUpdate:modelValue":t[9]||(t[9]=_=>e.scope.row.logicOperator=_),placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:t[10]||(t[10]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:1},8,["modelValue","placeholder"])])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.currentInput?(Vue.openBlock(),Vue.createBlock(w,{key:0,title:n.valueDialogTitle,"show-organization":n.showOrganization,"standard-fields":r.availableStandardFields,"org-type":n.orgType,onClose:r.closeValueDialog},null,8,["title","show-organization","standard-fields","org-type","onClose"])):Vue.createCommentVNode("",!0)])}const AdditionalCondition=_export_sfc(_sfc_main$T,[["render",_sfc_render$T]]),_sfc_main$S={name:"AdditionalConditionDialog",components:{AdditionalCondition},props:{value:{type:String,default:""}},data(){return{condition:this.value}},watch:{value(e){this.condition=e}},methods:{setConditions(){this.$emit("input",this.condition),this.$emit("close")}}},_hoisted_1$v={slot:"footer",class:"dialog-footer"};function _sfc_render$S(e,t,o,i,n,r){const l=Vue.resolveComponent("additional-condition"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{width:"50%",title:e.$t("workflowEditor.task.setConditions"),visible:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor-noTab",center:"",onClose:t[2]||(t[2]=d=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.condition,"onUpdate:modelValue":t[0]||(t[0]=d=>n.condition=d)},null,8,["modelValue"])]),_:1}),Vue.createElementVNode("span",_hoisted_1$v,[Vue.createVNode(a,{type:"primary",size:"small",onClick:r.setConditions},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=d=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})])]),_:1},8,["title"])}const AdditionalConditionDialog=_export_sfc(_sfc_main$S,[["render",_sfc_render$S]]),_sfc_main$R={name:"CustomActions",components:{AdditionalConditionDialog},props:{value:{type:Object,default:null}},data(){const e=[];let t=1;if(this.value.action)if(Array.isArray(this.value.action))for(const o of this.value.action)e.push({...o,id:t}),t++;else e.push({...this.value.action,id:t}),t++;return{actions:e,actionTypes:[{type:"SAVE",label:getI18n().t("workflowEditor.task.save")},{type:"SUBMIT",label:getI18n().t("workflowEditor.task.submission")},{type:"APPROVE",label:getI18n().t("workflowEditor.task.agree")},{type:"REFUSE",label:getI18n().t("workflowEditor.task.disagree")},{type:"AGREEMENT",label:getI18n().t("workflowEditor.task.favor")},{type:"OPPOSE",label:getI18n().t("workflowEditor.task.opposition")},{type:"KIKEN",label:getI18n().t("workflowEditor.task.waiver")},{type:"DRAW",label:getI18n().t("workflowEditor.task.receive")},{type:"ABANDON_DRAW",label:getI18n().t("workflowEditor.task.giveUp")},{type:"ADD_SIGN",label:getI18n().t("workflowEditor.task.additionalSignature")},{type:"REMOVE_SIGN",label:getI18n().t("workflowEditor.task.reductionOfSignature")},{type:"ASSIGN_TASK",label:getI18n().t("workflowEditor.task.assignTask")},{type:"COPY",label:getI18n().t("workflowEditor.task.copyTask")},{type:"GET_BACK_BUTTON",label:getI18n().t("workflowEditor.task.retrieveTask")},{type:"READED",label:getI18n().t("workflowEditor.task.readTask")},{type:"EXPORT_REPORT",label:getI18n().t("workflowEditor.task.exportReport")}],currentRow:null,count:t,showAdditionalCondition:!1}},mounted(){this.actions.length>0&&this.selectRow(this.actions[this.actions.length-1]),this.$watch("actions",function(e,t){const o=[];for(const i of this.actions){const n={...i};delete n.id,o.push(n)}this.$emit("input",{action:o})},{deep:!0})},methods:{selectRow(e){this.$refs.table.setCurrentRow(e)},getRowIndex(e){for(let t=0;t<this.actions.length;t++)if(this.actions[t].id===e.id)return t;return-1},handleCurrentChange(e){this.currentRow=e},isDuplicated(e){const t=this.getRowIndex(this.currentRow);console.log("index:"+t);for(let o=0;o<this.actions.length;o++)o!==t&&this.actions[o].type===e&&(this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect",{row:o+1})),this.currentRow.type="")},add(){for(let t=0;t<this.actions.length;t++){const o=this.actions[t];if(o.type===""||o.label===""){this.$alert(this.$t("workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty",{row:t+1}));return}}const e={id:this.count,type:"",label:"",visible:!0,condition:""};this.actions.push(e),this.selectRow(e),this.count++},remove(){let e=this.getRowIndex(this.currentRow);this.actions.splice(e,1),this.actions.length>0&&(e=e<=this.actions.length-1?e:this.actions.length-1,this.$refs.table.setCurrentRow(this.actions[e]))},formatCondition(e){if(e===""||!e)return this.$t("workflowEditor.task.nothing");const t=[];return parseCondition$1(t,e),displayCondition(t)},selectCondition(e){this.selectRow(e),this.currentRow||this.$set(this.currentRow,"condition",""),this.showAdditionalCondition=!0}}},_hoisted_1$u={"slot-scope":"scope"},_hoisted_2$l={"slot-scope":"scope"},_hoisted_3$a={"slot-scope":"scope"},_hoisted_4$6={"slot-scope":"scope"};function _sfc_render$R(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-table-column"),a=Vue.resolveComponent("el-option"),u=Vue.resolveComponent("el-select"),d=Vue.resolveComponent("el-input"),c=Vue.resolveComponent("el-checkbox"),m=Vue.resolveComponent("el-table"),w=Vue.resolveComponent("el-row"),_=Vue.resolveComponent("additional-condition-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(w,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"]),Vue.createVNode(m,{ref:"table",data:n.actions,"row-key":"type",border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"index"}),Vue.createVNode(s,{label:e.$t("workflowEditor.task.operationType"),width:"180"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$u,[Vue.createVNode(u,{modelValue:e.scope.row.type,"onUpdate:modelValue":t[0]||(t[0]=b=>e.scope.row.type=b),onChange:r.isDuplicated},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.actionTypes,b=>(Vue.openBlock(),Vue.createBlock(a,{key:b.id,value:b.type,label:b.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1},8,["label"]),Vue.createVNode(s,{prop:"label",label:e.$t("workflowEditor.task.name"),width:"180"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$l,[Vue.createVNode(d,{modelValue:e.scope.row.label,"onUpdate:modelValue":t[1]||(t[1]=b=>e.scope.row.label=b)},null,8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(s,{prop:"visible",label:e.$t("workflowEditor.task.visibleOrNot")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_3$a,[Vue.createVNode(c,{modelValue:e.scope.row.visible,"onUpdate:modelValue":t[2]||(t[2]=b=>e.scope.row.visible=b)},null,8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(s,{prop:"condition",label:e.$t("workflowEditor.task.condition")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_4$6,[Vue.createVNode(d,{value:r.formatCondition(e.scope.row.condition),type:"textarea",autosize:"",onFocus:t[3]||(t[3]=b=>r.selectCondition(e.scope.row))},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])]),_:1}),n.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(_,{key:0,modelValue:n.currentRow.condition,"onUpdate:modelValue":t[4]||(t[4]=b=>n.currentRow.condition=b),onClose:t[5]||(t[5]=b=>n.showAdditionalCondition=!1)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)])}const CustomActions=_export_sfc(_sfc_main$R,[["render",_sfc_render$R]]),_sfc_main$Q={name:"I18nSet",props:{value:{type:Object,default:null}},data(){let e={};return this.value&&(e=JSON.parse(JSON.stringify(this.value))),{requiredRule:{required:!0,message:getI18n().t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"},i18nModel:e,bundleCode:null,isShow:!1,i18nKey:null,languages:{}}},computed:{...mapGetters("wfEditor",["systemCode","processCode"])},created(){this.bundleCode=this.systemCode+".workflow."+this.processCode,this.getI18nSet()},methods:{getI18nSet(){this.$http.get(this.baseAPI+"/wf-editor/i18n-settings/languages").then(e=>{const t={bundleCode:this.bundleCode,i18nKey:this.i18nModel.key};this.$http.post(this.baseAPI+"/wf-editor/i18n-settings/get-info",t).then(o=>{this.languages=e,Object.keys(this.languages).forEach(i=>{o&&o[i]?this.$set(this.i18nModel.values,i,o[i]):this.i18nModel.values[i]||this.$set(this.i18nModel.values,i,"")}),this.isShow=!0})})},saveI18nSet(e){this.$refs[e].validate(t=>{if(t)this.i18nModel.bundleCode=this.bundleCode,this.i18nModel.systemCode=this.systemCode,console.log("this.i18nModel---",this.i18nModel),this.$http.post(this.baseAPI+"/wf-editor/i18n-settings",this.i18nModel).then(()=>{console.log("更新成功-----"),this.$emit("close",this.i18nModel.key)});else return console.log("error submit!!"),!1})},goBack(){this.$emit("close")}}},_hoisted_1$t={class:"operation-area"};function _sfc_render$Q(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-form-item"),u=Vue.resolveComponent("el-col"),d=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-form"),m=Vue.resolveComponent("el-dialog");return n.isShow?(Vue.openBlock(),Vue.createBlock(m,{key:0,"close-on-click-modal":!1,width:"30%",title:e.$t("workflowEditorPublicModel.i18nSet"),"append-to-body":"",visible:"",top:"5vh",onOpen:t[2]||(t[2]=w=>e.$emit("open")),onOpend:t[3]||(t[3]=w=>e.$emit("opend")),onClose:t[4]||(t[4]=w=>e.$emit("close")),onClosed:t[5]||(t[5]=w=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$t,[Vue.createVNode(l,{type:"primary",size:"small",onClick:t[0]||(t[0]=w=>r.saveI18nSet("form"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1}),Vue.createVNode(l,{size:"small",onClick:r.goBack},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.return")),1)]),_:1},8,["onClick"])]),Vue.createVNode(c,{ref:"form",model:n.i18nModel,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(u,{span:24},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditorPublicModel.i18nKey"),prop:"key",rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.i18nModel.key,"onUpdate:modelValue":t[1]||(t[1]=w=>n.i18nModel.key=w),style:{width:"80%"}},null,8,["modelValue"])]),_:1},8,["label","rules"])]),_:1})]),_:1}),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Object.keys(n.languages),w=>(Vue.openBlock(),Vue.createBlock(d,{key:w},{default:Vue.withCtx(()=>[Vue.createVNode(u,{span:24},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:n.languages[w],prop:w},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.i18nModel.values[w],"onUpdate:modelValue":_=>n.i18nModel.values[w]=_},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label","prop"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["model"])]),_:1},8,["title"])):Vue.createCommentVNode("",!0)}const I18nSet=_export_sfc(_sfc_main$Q,[["render",_sfc_render$Q]]),_sfc_main$P={name:"I18nInput",components:{I18nSet},model:{prop:"value",event:"input"},props:{value:{type:String,default:""},i18nKey:{type:String,default:""}},data(){const e=this.value;return{isShowI18n:!1,myI18nKey:this.i18nKey,zh:e}},computed:{...mapGetters("wfEditor",["processCode"])},mounted(){this.$watch("zh",function(e){this.$emit("input",e)})},created(){},methods:{i18nSet(){this.myI18nKey?this.isShowI18n=!0:this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditorMessage.pleaseInputCode")})},closeI18nSet(e){e&&this.$emit("setI18n",e),this.isShowI18n=!1}}},_hoisted_1$s={style:{float:"left","padding-right":"5px"}};function _sfc_render$P(e,t,o,i,n,r){const l=Vue.resolveComponent("el-input"),s=Vue.resolveComponent("i18n-set");return Vue.openBlock(),Vue.createElementBlock("span",null,[Vue.createElementVNode("div",_hoisted_1$s,[Vue.createVNode(l,{modelValue:n.zh,"onUpdate:modelValue":t[1]||(t[1]=a=>n.zh=a)},{default:Vue.withCtx(()=>[Vue.createElementVNode("i",{slot:"append",class:"el-icon-setting",onClick:t[0]||(t[0]=(...a)=>r.i18nSet&&r.i18nSet(...a))})]),_:1},8,["modelValue"])]),n.isShowI18n?(Vue.openBlock(),Vue.createBlock(s,{key:0,value:{values:{zh_CN:n.zh},key:n.myI18nKey},onClose:r.closeI18nSet},null,8,["value","onClose"])):Vue.createCommentVNode("",!0)])}const i18nInput=_export_sfc(_sfc_main$P,[["render",_sfc_render$P]]),_sfc_main$O={name:"SelectMailTemplates",model:{prop:"value",event:"input"},props:{value:{type:String,default:""}},data(){const e=this.value;return{baseURL:"",optionUrl:"",multiSelectData:[],showMailTemplateFlag:!1,code:e,options:{showColumns:"code,name"}}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.optionUrl="/mc/email-templates/list/0"},methods:{selectTemplate(){!this.multiSelectData||this.multiSelectData.length!==1?this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditorMessage.pleaseSelectARow")}):(this.code=this.multiSelectData[0].code,this.$emit("set-value",this.code),this.showMailTemplateFlag=!1)},selectData(e,t){this.multiSelectData=e}}},_hoisted_1$r={style:{width:"100%"}},_hoisted_2$k={slot:"footer",class:"dialog-footer"};function _sfc_render$O(e,t,o,i,n,r){const l=Vue.resolveComponent("el-input"),s=Vue.resolveComponent("super-grid"),a=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$r,[Vue.createVNode(l,{modelValue:n.code,"onUpdate:modelValue":t[1]||(t[1]=d=>n.code=d)},{default:Vue.withCtx(()=>[Vue.createElementVNode("i",{slot:"suffix",class:"el-input__icon el-icon-search",onClick:t[0]||(t[0]=d=>n.showMailTemplateFlag=!0)})]),_:1},8,["modelValue"]),Vue.createVNode(u,{width:"40%",title:e.$t("workflowEditor.task.selectTemplate"),visible:n.showMailTemplateFlag,center:"",top:"5vh","append-to-body":"","custom-class":"properties-editor-noTab"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{ref:"reportGrid",url:n.baseURL+n.optionUrl,code:"BS_EMAIL_TEMPLATE",options:n.options,onSelect:r.selectData},null,8,["url","options","onSelect"]),Vue.createElementVNode("span",_hoisted_2$k,[Vue.createVNode(a,{onClick:t[2]||(t[2]=d=>n.showMailTemplateFlag=!1)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{type:"primary",onClick:r.selectTemplate},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"])])]),_:1},8,["title","visible"])])}const SelectMailTemplates=_export_sfc(_sfc_main$O,[["render",_sfc_render$O]]),basicProperties_vue_vue_type_style_index_0_scoped_cf4b4157_lang="",_sfc_main$N={name:"BasicProperties",components:{TaskTitle,CustomActions,i18nInput,SelectMailTemplates},props:{model:{type:Object,default:null},id:{type:String,default:null},name:{type:String,default:null}},data(){let e=!1;const t=this.model.processingMode.actions.action;return t&&(Array.isArray(t)&&t.length===0?e=!1:e=!0),{showActions:e,formModel:{name:this.name,id:this.id,tache:this.model}}},computed:{tache(){return this.model}},created(){this.tache.processingMode.actions||this.$set(this.tache.processingMode,"actions",{})},mounted(){this.$watch("formModel.name",function(e,t){this.$emit("update:name",e)})},methods:{validateId(){validateTacheCode(this)},setMailTemplateCode(e){this.tache.mailTemplateCode=e},setI18nValue(e){this.tache.i18nKey=e}}},_withScopeId=e=>(Vue.pushScopeId("data-v-cf4b4157"),e=e(),Vue.popScopeId(),e),_hoisted_1$q=_withScopeId(()=>Vue.createElementVNode("span",{class:"percent"}," % ",-1));function _sfc_render$N(e,t,o,i,n,r){const l=Vue.resolveComponent("i18n-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("task-title"),m=Vue.resolveComponent("el-switch"),w=Vue.resolveComponent("select-mail-templates"),_=Vue.resolveComponent("el-radio"),b=Vue.resolveComponent("el-radio-group"),E=Vue.resolveComponent("el-input-number"),f=Vue.resolveComponent("custom-actions"),p=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(p,{model:n.formModel,"label-width":"110px"},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.name")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.name,"onUpdate:modelValue":t[0]||(t[0]=g=>n.formModel.name=g),"i18n-key":r.tache.i18nKey?r.tache.i18nKey:"name."+n.formModel.id,onSetI18n:r.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.code")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.id,"onUpdate:modelValue":t[1]||(t[1]=g=>n.formModel.id=g),onBlur:r.validateId},null,8,["modelValue","onBlur"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(s,{label:e.$t("workflowEditor.task.taskTitle")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:r.tache.taskTitle,"onUpdate:modelValue":t[2]||(t[2]=g=>r.tache.taskTitle=g)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.canItBeRejected")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:r.tache.rebuttable,"onUpdate:modelValue":t[3]||(t[3]=g=>r.tache.rebuttable=g)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.emailNotification")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:r.tache.mailNotice,"onUpdate:modelValue":t[4]||(t[4]=g=>r.tache.mailNotice=g)},null,8,["modelValue"])]),_:1},8,["label"]),r.tache.mailNotice?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:r.tache.mailTemplateCode,"onUpdate:modelValue":t[5]||(t[5]=g=>r.tache.mailTemplateCode=g),onSetValue:r.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("workflowEditor.task.HandlingMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(b,{modelValue:r.tache.processingMode.type,"onUpdate:modelValue":t[6]||(t[6]=g=>r.tache.processingMode.type=g)},{default:Vue.withCtx(()=>[Vue.createVNode(_,{label:"EDIT"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.editorial")),1)]),_:1}),Vue.createVNode(_,{label:"APPROVE"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.approvalType")),1)]),_:1}),Vue.createVNode(_,{label:"COUNTERSIGN"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.countersign")),1)]),_:1}),Vue.createVNode(_,{label:"VOTE"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.voting")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),r.tache.processingMode.type==="EDIT"||r.tache.processingMode.type==="APPROVE"?(Vue.openBlock(),Vue.createBlock(s,{key:1,label:e.$t("workflowEditorMessage.whenThereAreMultipleManagers")},{default:Vue.withCtx(()=>[Vue.createVNode(b,{modelValue:r.tache.processingMode.moreTransactor,"onUpdate:modelValue":t[7]||(t[7]=g=>r.tache.processingMode.moreTransactor=g)},{default:Vue.withCtx(()=>[Vue.createVNode(_,{label:!1},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.anyOneCanHandleIt")),1)]),_:1}),Vue.createVNode(_,{label:!0},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.forAll")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),r.tache.processingMode.type==="COUNTERSIGN"||r.tache.processingMode.type==="VOTE"?(Vue.openBlock(),Vue.createBlock(s,{key:2,label:e.$t("workflowEditor.task.passRate")},{default:Vue.withCtx(()=>[Vue.createVNode(E,{modelValue:r.tache.processingMode.passRate,"onUpdate:modelValue":t[8]||(t[8]=g=>r.tache.processingMode.passRate=g),step:10,size:"small",min:0,max:100},null,8,["modelValue"]),_hoisted_1$q]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("workflowEditor.task.modifyOperationName")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.showActions,"onUpdate:modelValue":t[9]||(t[9]=g=>n.showActions=g)},null,8,["modelValue"]),n.showActions?(Vue.openBlock(),Vue.createBlock(f,{key:0,modelValue:r.tache.processingMode.actions,"onUpdate:modelValue":t[10]||(t[10]=g=>r.tache.processingMode.actions=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.handlingPage")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:r.tache.taskUrl,"onUpdate:modelValue":t[11]||(t[11]=g=>r.tache.taskUrl=g)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.remarks")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:r.tache.remark,"onUpdate:modelValue":t[12]||(t[12]=g=>r.tache.remark=g),type:"textarea",autosize:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const BasicProperties$5=_export_sfc(_sfc_main$N,[["render",_sfc_render$N],["__scopeId","data-v-cf4b4157"]]),editableFieldSelection_vue_vue_type_style_index_0_scoped_20457f74_lang="",_sfc_main$M={name:"EditableFieldSelection",components:{AdditionalCondition},props:{value:{type:Array,default:null},disabledFields:{type:Array,default:null}},data(){return{availableFields:[],formModel:{selectedFields:[],constraintRule:"REQUIRED",showCondition:!1,condition:""},availableFieldsCount:null,orange:-1,pin:!1}},computed:{...mapGetters("wfEditor",["formFieldsWithSub"])},created(){let e=0;this.formFieldsWithSub.map(o=>{this.disabledFields.indexOf(o.name)<0&&(o.index=e,this.availableFields.push(o),e++)});const t=this.availableFields.length;this.$set(this,"availableFieldsCount",Math.ceil(t/3))},mounted(){window.addEventListener("keydown",e=>{console.log("按住"),e.keyCode===16&&e.shiftKey&&(this.pin=!0)}),window.addEventListener("keyup",e=>{console.log("松开"),e.keyCode===16&&(this.pin=!1)})},methods:{filterMethod(e,t){return t.label&&t.label.indexOf(e)>-1?!0:(console.log("filterMethod--item.label=",t.label,t),!1)},setSelectedFields(){const e=[];for(const t of this.formModel.selectedFields)e.push({name:t,constraintRule:this.formModel.constraintRule,condition:this.formModel.showCondition?this.formModel.condition:""});this.$emit("input",e),this.$emit("close")},pinSelect(e,t){console.log(e,t);const o=this.availableFields,i=this.origin,n=t;if(this.pin&&this.formModel.selectedFields.indexOf(e)!==-1){console.log(this.formModel.selectedFields.indexOf(e));const r=Math.abs(i-n)+1,l=Math.min(i,n);let s=0;for(;s<r;){const a=l+s;this.formModel.selectedFields.indexOf(o[a].name)===-1&&this.formModel.selectedFields.push(o[a].name),s++}}else this.origin=t}}},_hoisted_1$p=["title"],_hoisted_2$j=["title"],_hoisted_3$9=["title"],_hoisted_4$5=["title"],_hoisted_5$4=["title"],_hoisted_6$2=["title"],_hoisted_7$1={slot:"footer",class:"dialog-footer"};function _sfc_render$M(e,t,o,i,n,r){const l=Vue.resolveComponent("el-checkbox"),s=Vue.resolveComponent("el-col"),a=Vue.resolveComponent("el-row"),u=Vue.resolveComponent("el-checkbox-group"),d=Vue.resolveComponent("el-radio"),c=Vue.resolveComponent("el-radio-group"),m=Vue.resolveComponent("el-form-item"),w=Vue.resolveComponent("el-switch"),_=Vue.resolveComponent("additional-condition"),b=Vue.resolveComponent("el-form"),E=Vue.resolveComponent("el-button"),f=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(f,{id:"appContainer",width:"50%",title:e.$t("workflowEditor.task.selectEditableField"),visible:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor-noTab",center:"",onClose:t[5]||(t[5]=p=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createVNode(b,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.selectedFields,"onUpdate:modelValue":t[0]||(t[0]=p=>n.formModel.selectedFields=p)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.availableFieldsCount,(p,g)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:p.prop},[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[n.availableFields[g*3+0]?(Vue.openBlock(),Vue.createBlock(s,{key:0,span:8},{default:Vue.withCtx(()=>[n.availableFields[g*3+0].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,label:n.availableFields[g*3+0].name,onChange:v=>r.pinSelect(n.availableFields[g*3+0].name,n.availableFields[g*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[g*3+0].label},Vue.toDisplayString(n.availableFields[g*3+0].label),9,_hoisted_1$p)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(l,{key:1,label:n.availableFields[g*3+0].name,onChange:v=>r.pinSelect(n.availableFields[g*3+0].name,n.availableFields[g*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409EFF"},class:"ellipsis",title:n.availableFields[g*3+0].label},Vue.toDisplayString(n.availableFields[g*3+0].label),9,_hoisted_2$j)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[g*3+1]?(Vue.openBlock(),Vue.createBlock(s,{key:1,span:8},{default:Vue.withCtx(()=>[n.availableFields[g*3+1].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,label:n.availableFields[g*3+1].name,onChange:v=>r.pinSelect(n.availableFields[g*3+1].name,n.availableFields[g*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[g*3+1].label},Vue.toDisplayString(n.availableFields[g*3+1].label),9,_hoisted_3$9)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(l,{key:1,label:n.availableFields[g*3+1].name,onChange:v=>r.pinSelect(n.availableFields[g*3+1].name,n.availableFields[g*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409EFF"},class:"ellipsis",title:n.availableFields[g*3+1].label},Vue.toDisplayString(n.availableFields[g*3+1].label),9,_hoisted_4$5)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[g*3+2]?(Vue.openBlock(),Vue.createBlock(s,{key:2,span:8},{default:Vue.withCtx(()=>[n.availableFields[g*3+2].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,label:n.availableFields[g*3+2].name,onChange:v=>r.pinSelect(n.availableFields[g*3+2].name,n.availableFields[g*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[g*3+2].label},Vue.toDisplayString(n.availableFields[g*3+2].label),9,_hoisted_5$4)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(l,{key:1,label:n.availableFields[g*3+2].name,onChange:v=>r.pinSelect(n.availableFields[g*3+2].name,n.availableFields[g*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409EFF"},class:"ellipsis",title:n.availableFields[g*3+2].label},Vue.toDisplayString(n.availableFields[g*3+2].label),9,_hoisted_6$2)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["modelValue"]),Vue.createVNode(m,{label:e.$t("workflowEditor.task.editingMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.constraintRule,"onUpdate:modelValue":t[1]||(t[1]=p=>n.formModel.constraintRule=p)},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(d,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(m,{label:e.$t("workflowEditor.task.additionalConditions")},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:n.formModel.showCondition,"onUpdate:modelValue":t[2]||(t[2]=p=>n.formModel.showCondition=p)},null,8,["modelValue"]),n.formModel.showCondition?(Vue.openBlock(),Vue.createBlock(_,{key:0,modelValue:n.formModel.condition,"onUpdate:modelValue":t[3]||(t[3]=p=>n.formModel.condition=p)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1},8,["model"]),Vue.createElementVNode("span",_hoisted_7$1,[Vue.createVNode(E,{type:"primary",size:"small",onClick:r.setSelectedFields},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(E,{size:"small",onClick:t[4]||(t[4]=p=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})])]),_:1},8,["title"])}const EditableFieldSelection=_export_sfc(_sfc_main$M,[["render",_sfc_render$M],["__scopeId","data-v-20457f74"]]),_sfc_main$L={name:"EditableFields",components:{EditableFieldSelection,AdditionalConditionDialog},props:{value:{type:[Array,Object],default:null}},data(){let e=[];return this.value!==""&&this.value!==null&&this.value!==void 0&&(Array.isArray(this.value)?e=this.value:e.push(this.value)),{showFieldSelection:!1,showAdditionalCondition:!1,selectedFields:e,currentRow:null,multipleSelection:[]}},computed:{...mapGetters("wfEditor",["formFieldsWithSub"]),disabledFields(){if(this.value===null||this.value===void 0)return[];const e=[];return Array.isArray(this.value)?this.value.map(t=>{e.push(t.name)}):e.push(this.value),e}},mounted(){this.selectedFields.length>0&&this.selectRow(this.selectedFields[this.selectedFields.length-1])},methods:{handleCurrentChange(e){this.currentRow=e},handleSelectionChange(e){this.multipleSelection=e},selectRow(e){this.$refs.table.setCurrentRow(e)},add(){this.showFieldSelection=!0},getCurrentRowIndex(){let e=-1;for(let t=0;t<this.selectedFields.length;t++)if(this.selectedFields[t].name===this.currentRow.name){e=t;break}return e},remove(){if(this.multipleSelection&&this.multipleSelection.length>0){for(var e=0;e<this.multipleSelection.length;e++){const t=this.multipleSelection[e];this.selectRow(t);const o=this.getCurrentRowIndex();this.selectedFields.splice(o,1)}this.$emit("input",this.selectedFields)}},setSelectedFields(e){e==null&&(e=[]),this.selectedFields=this.selectedFields.concat(e),this.selectRow(this.selectedFields[this.selectedFields.length-1]),this.$emit("input",this.selectedFields)},formatCondition(e){if(e===""||!e)return this.$t("workflowEditor.task.nothing");const t=[];return parseCondition$1(t,e),displayCondition(t)},getFieldLabel(e){const t=this.formFieldsWithSub.filter(o=>o.name===e.name);return t.length>0?t[0].label:""},selectCondition(e){this.selectRow(e),this.showAdditionalCondition=!0}}},_hoisted_1$o={"slot-scope":"scope"},_hoisted_2$i={"slot-scope":"scope"},_hoisted_3$8={"slot-scope":"scope"};function _sfc_render$L(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-radio"),d=Vue.resolveComponent("el-radio-group"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),w=Vue.resolveComponent("editable-field-selection"),_=Vue.resolveComponent("additional-condition-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.selectedFields,border:"","highlight-current-row":"",style:{width:"100%"},onSelectionChange:r.handleSelectionChange,onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"selection",width:"55"}),Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{label:e.$t("workflowEditor.common.name"),width:"180"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$o,[Vue.createElementVNode("span",{style:Vue.normalizeStyle({color:e.scope.row.name&&e.scope.row.name.indexOf("$")===0?"#409EFF":""})},Vue.toDisplayString(r.getFieldLabel(e.scope.row)),5)])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.task.propertyName"),width:"180"},null,8,["label"]),Vue.createVNode(a,{prop:"constraintRule",label:e.$t("workflowEditor.task.editingMethod")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$i,[Vue.createVNode(d,{modelValue:e.scope.row.constraintRule,"onUpdate:modelValue":t[0]||(t[0]=b=>e.scope.row.constraintRule=b)},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(u,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"condition",label:e.$t("workflowEditor.task.condition")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_3$8,[Vue.createVNode(c,{value:r.formatCondition(e.scope.row.condition),type:"textarea",autosize:"",onFocus:t[1]||(t[1]=b=>r.selectCondition(e.scope.row))},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange","onCurrentChange"]),n.showFieldSelection?(Vue.openBlock(),Vue.createBlock(w,{key:0,"disabled-fields":r.disabledFields,onInput:r.setSelectedFields,onClose:t[2]||(t[2]=b=>n.showFieldSelection=!1)},null,8,["disabled-fields","onInput"])):Vue.createCommentVNode("",!0),n.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(_,{key:1,modelValue:n.currentRow.condition,"onUpdate:modelValue":t[3]||(t[3]=b=>n.currentRow.condition=b),onClose:t[4]||(t[4]=b=>n.showAdditionalCondition=!1)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)])}const EditableFields=_export_sfc(_sfc_main$L,[["render",_sfc_render$L]]),utiljs={xmlToData(e){const t=[];if(e){const n=e.split(" ");if(n&&n.length>0){let r=1,l="",s="",a="",u="",d="",c="",m=null;for(var o=0;o<n.length;o++){var i=n[o];if(i.indexOf("(")!==-1){this.operationArr&&this.operationArr.push([]),l="",s="",a="",u="",d="",c="";const w=i.split("${field[");if(l=w[0],s=w[1].replace("]}",""),this.operationArr){const _=this.getOperators(this.fieldMap[s]);this.operationArr[r-1]=_}continue}if(i.indexOf("(")===-1&&i.indexOf("${field[")!==-1){if(this.operationArr&&this.operationArr.push([]),l="",s="",a="",u="",d="",c="",s=i.replace("${field[","").replace("]}",""),this.operationArr){const w=this.getOperators(this.fieldMap[s]);this.operationArr[r-1]=w}continue}if(i.indexOf("operator.")!==-1&&i.indexOf("condition.")===-1){a=i;continue}if(a!==""&&u===""){i.indexOf(")")!==-1?i.indexOf(")))")!==-1?(u=i.replace(")))",""),d=")))"):i.indexOf("))")!==-1?(u=i.replace("))",""),d="))"):i.indexOf(")")!==-1&&(u=i.replace(")",""),d=")"):u=i,u&&u!==""&&(u.indexOf("${task.")!==-1?m="task":u.indexOf("${context.")!==-1?m="context":u.indexOf("${obj.")!==-1?m="obj":u.indexOf("${subObj.")!==-1?m="subObj":u.indexOf("${request.")!==-1?m="request":u.indexOf("${input.")!==-1?m="input":u.indexOf("${custom.")!==-1&&(m="custom"));continue}i.indexOf("condition.")!==-1?(c=i,t.push({id:r,leftBracket:l,propName:s,operator:a,propValue:u,rightBracket:d,logicOperator:c,propValueType:m}),r+=1):u&&u!==""&&(!c||c==="")&&(c="condition.operator.or",t.push({id:r,leftBracket:l,propName:s,operator:a,propValue:u,rightBracket:d,logicOperator:c,propValueType:m}),r+=1)}}}return t},getOperatorsArr(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){this.operationArr.push([]);const o=e[t],i=this.getOperators(this.fieldMap[o.propName]);this.operationArr[t]=i}},getRetunrOperatorsArr(e,t){const o=[];if(e&&e.length>0)for(var i=0;i<e.length;i++){o.push([]);const n=e[i],r=this.getOperators(t[n.propName]);o[i]=r}return o},dataToXml(e){let t="";if(e&&e.length>0)for(var o=0;o<e.length;o++){var i=e[o];let n=n=i.logicOperator;o===e.length-1&&(n=""),t=t+i.leftBracket+"${field["+i.propName+"]} "+i.operator+" "+i.propValue+i.rightBracket+" "+n+" "}return t},formatConditionList(e){let t="";if(e)if(typeof e=="string"){const o=this.xmlToData(e);t=this.formatConditionListTwo(o)}else t=this.formatConditionListTwo(e);if(t&&t!==""){const o=t.substring(t.length-1);(o==="者"||o==="且")&&(t=t.substring(0,t.length-2))}return t},formatConditionListTwo(e){let t="";if(e&&e.length>0)for(var o=0;o<e.length;o++){const i=e[o];if(i&&i.propName){const n=this.getOperators(this.fieldMap[i.propName]);if(n&&n.length>0){const r=n.filter(l=>l.name===i.operator);t+=i.leftBracket,this.fieldMap[i.propName]&&this.fieldMap[i.propName].label&&(t+=this.fieldMap[i.propName].label+" "),r&&r.length>0&&(t+=r[0].label+" "),t+=i.propValue+i.rightBracket+" ",i.logicOperator&&(i.logicOperator==="or"?t+="或者":t+="并且")}}}return t},getOperators(e){return e?e.type==="INTEGER"||e.type==="LONG"||e.type==="DOUBLE"||e.type==="FLOAT"?[{name:"operator.number.gt",label:getI18n().t("workflowEditor.process.greaterThan")},{name:"operator.number.lt",label:getI18n().t("workflowEditor.process.lessThan")},{name:"operator.number.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.number.le",label:getI18n().t("workflowEditor.process.notGreaterThan")},{name:"operator.number.ge",label:getI18n().t("workflowEditor.process.notLessThan")},{name:"operator.number.ne",label:getI18n().t("workflowEditor.process.notEqualTo")}]:e.type==="DATE"||e.type==="TIME"?[{name:"operator.date.gt",label:getI18n().t("workflowEditor.process.laterThan")},{name:"operator.date.lt",label:getI18n().t("workflowEditor.process.earlierThan")},{name:"operator.date.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.date.le",label:getI18n().t("workflowEditor.process.noLaterThan")},{name:"operator.date.ge",label:getI18n().t("workflowEditor.process.noEarlierThan")}]:e.type==="TEXT"?[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.contain",label:getI18n().t("workflowEditor.process.contain")},{name:"operator.text.contain.not",label:getI18n().t("workflowEditor.process.notIncluded")}]:[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")}]:[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")}]}},userStandardFieldsForReminder={"${instanceCreatorName}":getI18n().t("workflowEditor.process.processInitiator"),"${instanceCreatorDirectSuperiorName}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"),"${currentTransactorName}":getI18n().t("workflowEditor.process.nameOfCurrentHandler"),"${currentTransactorDirectSuperiorName}":getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler")},departmentStandardFieldsForReminder={"${instanceCreatorDepartment}":getI18n().t("workflowEditor.process.processInitiatorDepartment"),"${instanceCreatorSuperiorDepartment}":getI18n().t("workflowEditor.process.sponsorsSuperiorDepartment"),"${instanceCreatorUpstageDepartment}":getI18n().t("workflowEditor.process.sponsorTopDepartment"),"${instanceCreatorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"),"${currentTransactorDepartment}":getI18n().t("workflowEditor.process.currentHandlerDepartment"),"${currentTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"),"${currentTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"),"${currentTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment")},workgroupStandardFieldsForReminder={"${instanceCreatorrWorkGroup}":getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),"${instanceCreatorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"),"${currentTransactorWorkGroup}":getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),"${currentTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler")},conditionTypes={"${user}":getI18n().t("workflowEditor.common.user"),"${department}":getI18n().t("workflowEditor.common.department"),"${role}":getI18n().t("workflowEditor.common.role"),"${workgroup}":getI18n().t("workflowEditor.common.workgroup")},logicOperators={"condition.operator.or":getI18n().t("workflowEditor.process.perhaps"),"condition.operator.and":getI18n().t("workflowEditor.process.also")},operators={"operator.text.eq":getI18n().t("workflowEditor.process.beEqualTo"),"operator.text.neq":getI18n().t("workflowEditor.process.notEqualTo")},allStandardFieldsForReminder={...userStandardFieldsForReminder,...departmentStandardFieldsForReminder,...workgroupStandardFieldsForReminder},userStandardFieldsForTransactor={"${instanceCreatorName}":getI18n().t("workflowEditor.process.processInitiator"),"${instanceCreatorDirectSuperiorName}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperior")},departmentStandardFieldsForTransactor={"${upstageDepartment}":getI18n().t("workflowEditor.process.topDepartments"),"${instanceCreatorDepartment}":getI18n().t("workflowEditor.process.processInitiatorDepartment"),"${instanceCreatorSuperiorDepartment}":getI18n().t("workflowEditor.process.sponsorsSuperiorDepartment"),"${instanceCreatorUpstageDepartment}":getI18n().t("workflowEditor.process.sponsorTopDepartment"),"${instanceCreatorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"),"${previousTransactorDepartment}":getI18n().t("workflowEditor.process.lastLinkHandlerDepartment"),"${previousTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.previousLinkHandlerSuperiorDepartment"),"${previousTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.topDepartmentOfHandlerInThePreviousLink"),"${previousTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.previousLinkHandlersDirectSuperiorDepartment")},workgroupStandardFieldsForTransactor={"${instanceCreatorrWorkGroup}":getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),"${instanceCreatorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"),"${previousTransactorWorkGroup}":getI18n().t("workflowEditor.process.previousLinkHandlerWorkingGroup"),"${previousTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheManagerInThePreviousLink")};({...userStandardFieldsForTransactor,...departmentStandardFieldsForTransactor,...workgroupStandardFieldsForTransactor});function formatStandardValue(e){return allStandardFieldsForReminder[e]!==void 0?allStandardFieldsForReminder[e]:""}function parseCondition(e,t){let o=t.replace(/ condition.operator.or /g," condition.operator.or^_^");o=o.replace(/ condition.operator.and /g," condition.operator.and^_^");const i=o.split("^_^");let n=0;for(const r of i){if(r==="")continue;let l="",s="",a="",u="",d="",c="condition.operator.or";const m=r.split(" ");let w=m[0].indexOf("${");w>0?(l=m[0].substring(0,w),s=m[0].substring(w)):s=m[0],a=m[1],w=m[2].indexOf(")"),w>0?(u=m[2].substring(0,w),d=m[2].substring(w)):u=m[2],m.length===4&&(c=m[3]),e.push({id:n,leftBracket:l,key:s,operator:a,value:u,rightBracket:d,logicOperator:c}),n++}return n}function generateUserCondition(e){let t="";for(const n of e)n.value!==""&&(t=t+n.leftBracket+n.key+" "+n.operator+" "+n.value+n.rightBracket+" "+n.logicOperator+" ");const o=" condition.operator.or ",i=" condition.operator.and ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(i)+i.length===t.length&&(t=t.substring(0,t.lastIndexOf(i))),t}function displayUserCondition(e){let t="";for(const n of e)n.value!==""&&(t=t+n.leftBracket+conditionTypes[n.key]+" "+operators[n.operator]+" "+formatStandardValue(n.value)+n.rightBracket+" "+logicOperators[n.logicOperator]+" ");const o=" "+getI18n().t("workflowEditor.process.perhaps")+" ",i=" "+getI18n().t("workflowEditor.process.also")+" ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(i)+i.length===t.length&&(t=t.substring(0,t.lastIndexOf(i))),t}const _sfc_main$K={name:"CommonUserCondition",components:{ValueSelectionDialog},props:{value:{type:String,default:null},usedIn:{type:String,default:"reminder"}},data(){const e=[];let t=0;return this.value&&this.value!==""&&(t=parseCondition(e,this.value)),{users:e,count:t,currentRow:null,showValueDialog:!1}},computed:{standardFields(){let e=this.usedIn==="reminder"?userStandardFieldsForReminder:userStandardFieldsForTransactor;return this.currentRow.key==="${department}"?e=this.usedIn==="reminder"?departmentStandardFieldsForReminder:departmentStandardFieldsForTransactor:this.currentRow.key==="${workgroup}"?e=this.usedIn==="reminder"?workgroupStandardFieldsForReminder:workgroupStandardFieldsForTransactor:this.currentRow.key==="${role}"&&(e={}),e}},mounted(){this.users.length>0&&this.$refs.table.setCurrentRow(this.users[this.users.length-1]),this.$watch("users",function(e,t){this.$emit("input",generateUserCondition(this.users))},{deep:!0})},methods:{format(e){return e.indexOf("${field[")>=0?getFormFieldLabel(e):e.indexOf("${")>=0?formatStandardValue(e):e.substring(0,e.indexOf("["))},selectRow(e){this.$refs.table.setCurrentRow(e)},openValueDialog(e){this.showValueDialog=!0,this.selectRow(e)},closeValueDialog(e){console.log(e),e!==void 0&&e!==""&&(this.currentRow.value=e),this.showValueDialog=!1},getCondition(e){return e.key+" "+e.operator+" "+e.value},handleCurrentChange(e){this.currentRow=e},getRowIndex(e){for(let t=0;t<this.users.length;t++)if(this.users[t].id===e.id)return t;return-1},add(){const e={id:this.count,leftBracket:"",key:"${user}",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.users.push(e),this.$refs.table.setCurrentRow(e),this.count++},insert(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}const e={id:this.count,leftBracket:"",key:"${user}",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.users.splice(this.getRowIndex(this.currentRow),0,e),this.$refs.table.setCurrentRow(e),this.count++},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.users.splice(e,1),this.users.length>0&&(e=e<=this.users.length-1?e:this.users.length-1,this.$refs.table.setCurrentRow(this.users[e]))},view(){let e=displayUserCondition(this.users);e===""&&(e=this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")),this.$confirm(e,this.$t("workflowEditorPublicModel.viewConditions"),{showConfirmButton:!1,showCancelButton:!1,callback:function(){}})},handleKeyChange(e){this.currentRow.value=""}}},_hoisted_1$n={"slot-scope":"scope"},_hoisted_2$h={"slot-scope":"scope"},_hoisted_3$7={"slot-scope":"scope"},_hoisted_4$4={"slot-scope":"scope"},_hoisted_5$3={"slot-scope":"scope"},_hoisted_6$1={"slot-scope":"scope"};function _sfc_render$K(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-option"),u=Vue.resolveComponent("el-select"),d=Vue.resolveComponent("el-table-column"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),w=Vue.resolveComponent("value-selection-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-arrow-right",onClick:r.insert},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.insert")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-view",onClick:r.view},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.viewConditions")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.users,"row-key":"id",border:"",style:{width:"100%","padding-top":"10px"},"highlight-current-row":"",onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(d,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$n,[Vue.createVNode(u,{modelValue:e.scope.row.leftBracket,"onUpdate:modelValue":t[0]||(t[0]=_=>e.scope.row.leftBracket=_),placeholder:"",onFocus:t[1]||(t[1]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:"(",value:"("}),Vue.createVNode(a,{label:"((",value:"(("}),Vue.createVNode(a,{label:"(((",value:"((("})]),_:1},8,["modelValue"])])]),_:1}),Vue.createVNode(d,{label:e.$t("workflowEditor.common.type"),width:"110"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$h,[Vue.createVNode(u,{modelValue:e.scope.row.key,"onUpdate:modelValue":t[2]||(t[2]=_=>e.scope.row.key=_),placeholder:"",onFocus:t[3]||(t[3]=_=>r.selectRow(e.scope.row)),onChange:r.handleKeyChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.common.user"),value:"${user}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.role"),value:"${role}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.department"),value:"${department}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.workgroup"),value:"${workgroup}"},null,8,["label"])]),_:1},8,["modelValue","onChange"])])]),_:1},8,["label"]),Vue.createVNode(d,{label:e.$t("workflowEditor.common.operator"),width:"110"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_3$7,[Vue.createVNode(u,{modelValue:e.scope.row.operator,"onUpdate:modelValue":t[4]||(t[4]=_=>e.scope.row.operator=_),placeholder:"",onFocus:t[5]||(t[5]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.beEqualTo"),value:"operator.text.eq"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.notEqualTo"),value:"operator.text.neq"},null,8,["label"])]),_:1},8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(d,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_4$4,[Vue.createVNode(c,{value:r.format(e.scope.row.value),readonly:"",onFocus:t[6]||(t[6]=_=>r.openValueDialog(e.scope.row))},null,8,["value"])])]),_:1},8,["label"]),Vue.createVNode(d,{prop:"rightBracket",label:")",width:"90",onFocus:t[8]||(t[8]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_5$3,[Vue.createVNode(u,{modelValue:e.scope.row.rightBracket,"onUpdate:modelValue":t[7]||(t[7]=_=>e.scope.row.rightBracket=_),placeholder:""},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:")",value:")"}),Vue.createVNode(a,{label:"))",value:"))"}),Vue.createVNode(a,{label:")))",value:")))"})]),_:1},8,["modelValue"])])]),_:1}),Vue.createVNode(d,{prop:"logicOperator",label:e.$t("workflowEditorPublicModel.andOr"),width:"110"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_6$1,[Vue.createVNode(u,{modelValue:e.scope.row.logicOperator,"onUpdate:modelValue":t[9]||(t[9]=_=>e.scope.row.logicOperator=_),placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:t[10]||(t[10]=_=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:1},8,["modelValue","placeholder"])])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.showValueDialog?(Vue.openBlock(),Vue.createBlock(w,{key:0,"standard-fields":r.standardFields,"org-type":n.currentRow.key.substring(n.currentRow.key.indexOf("{")+1,n.currentRow.key.lastIndexOf("}")),onClose:r.closeValueDialog},null,8,["standard-fields","org-type","onClose"])):Vue.createCommentVNode("",!0)])}const CommonUserCondition=_export_sfc(_sfc_main$K,[["render",_sfc_render$K]]),_sfc_main$J={components:{AdditionalCondition,CommonUserCondition},props:{conditionList:{type:[Array,String],default:null},userCondition:{type:String,default:null},parentCondition:{type:String,default:null},attributeMap:{type:Object,default:null},isAdd:{type:Boolean,default:!1}},data(){let e;this.userCondition&&this.userCondition!==""&&(e=this.userCondition);let t;return this.parentCondition&&this.parentCondition!==""&&(t=this.parentCondition),{myUserCondition:e,myParentCondition:t,tableData:null,attributeArr:[],fieldMap:{},fieldNameMap:{},queryList:[],operationArr:[],parentAttributeArr:[]}},created(){this.getAttributeArr()},computed:{...mapGetters("wfEditor",["propSettingKeyList"])},mounted(){this.conditionList&&(typeof this.conditionList=="object"?this.tableData=this.conditionList:this.tableData=this.xmlToData(this.conditionList),this.getOperatorsArr(this.tableData))},methods:{...utiljs,add(){this.tableData||(this.tableData=[]),this.tableData.push({leftBracket:"",propName:"",operator:"",propValue:"",rightBracket:"",logicOperator:"condition.operator.or",dataType:"",propDbName:""}),this.operationArr.push([])},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.tableData.splice(e,1),this.tableData.length>0&&(e=e<=this.tableData.length-1?e:this.tableData.length-1,this.$refs.table.setCurrentRow(this.tableData[e]))},changeFieldName(e){const t=this.currentRow.propName,o=this.fieldMap[t];o&&(this.tableData[e].dataType=o.type,this.tableData[e].propDbName=o.propDbName),this.operationArr[e]=this.getOperators(o)},getAttributeArr(){this.attributeMap&&this.attributeMap.attributeArr&&(this.attributeArr=this.attributeMap.attributeArr,this.queryList=this.attributeMap.attributeArr,this.fieldMap=this.attributeMap.fieldMap,this.fieldNameMap=this.attributeMap.fieldNameMap,this.parentAttributeArr=this.attributeMap.parentAttributeArr)},selectRow(e){this.attributeArr=this.queryList,this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},searchField(e){e&&(this.attributeArr=this.queryList.filter(t=>t.label.indexOf(e)>-1||t.value.indexOf(e)>-1))},getRowIndex(e){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].propName===e.propName)return t;return-1},savebuttonSetting(){if(this.tableData&&this.tableData.length>0){for(var e=0;e<this.tableData.length;e++)if(!this.tableData[e].propName){this.$alert(this.$t("workflowEditorMessage.blankFieldNameOrValue"));return}}const t={userCondition:this.myUserCondition,parentCondition:this.myParentCondition,condition:this.tableData};this.$emit("close",t)},closeButtonSetting(){this.$emit("close",null)},changePropValue(e){this.tableData[e]&&this.tableData[e].propValue?this.tableData[e].propValueType&&(this.tableData[e].propValueType==="request"&&(this.tableData[e].propValue.indexOf("${request.")===-1&&(this.tableData[e].propValue="${request."+this.tableData[e].propValue),this.tableData[e].propValue.indexOf("}")===-1&&(this.tableData[e].propValue=this.tableData[e].propValue+"}")),this.tableData[e].propValueType==="input"&&(this.tableData[e].propValue.indexOf("${input.")===-1&&(this.tableData[e].propValue="${input."+this.tableData[e].propValue),this.tableData[e].propValue.indexOf("}")===-1&&(this.tableData[e].propValue=this.tableData[e].propValue+"}"))):this.$set(this.tableData[e],"propValueType",null)}}},_hoisted_1$m={style:{"overflow-y":"auto","max-height":"500px"}},_hoisted_2$g={class:"operation-area"},_hoisted_3$6={slot:"header",class:"clearfix"},_hoisted_4$3={slot:"header",class:"clearfix"},_hoisted_5$2={slot:"header"},_hoisted_6={"slot-scope":"scope"},_hoisted_7={"slot-scope":"scope"},_hoisted_8={"slot-scope":"scope"},_hoisted_9={"slot-scope":"scope"},_hoisted_10={"slot-scope":"scope"},_hoisted_11={"slot-scope":"scope"};function _sfc_render$J(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("common-user-condition"),a=Vue.resolveComponent("el-card"),u=Vue.resolveComponent("additional-condition"),d=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-option"),m=Vue.resolveComponent("el-select"),w=Vue.resolveComponent("el-table-column"),_=Vue.resolveComponent("el-date-picker"),b=Vue.resolveComponent("el-input"),E=Vue.resolveComponent("el-table"),f=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(f,{"show-close":!0,"append-to-body":!0,style:{width:"100%"},title:e.$t("workflowEditor.condition.combinationCondition"),visible:"",onClose:r.closeButtonSetting},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$m,[Vue.createElementVNode("div",_hoisted_2$g,[Vue.createVNode(l,{size:"small",onClick:r.savebuttonSetting},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditorPublicModel.save")),1)]),_:1},8,["onClick"])]),Vue.createElementVNode("div",null,[Vue.createVNode(a,{class:"box-card",shadow:"never"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_3$6,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.personnelScope")),1)]),Vue.createElementVNode("div",null,[Vue.createVNode(s,{modelValue:n.myUserCondition,"onUpdate:modelValue":t[0]||(t[0]=p=>n.myUserCondition=p),"used-in":"transactor"},null,8,["modelValue"])])]),_:1}),Vue.createVNode(a,{class:"box-card",shadow:"never"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$3,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.mainTableConditions")),1)]),Vue.createElementVNode("div",null,[Vue.createVNode(u,{modelValue:n.myParentCondition,"onUpdate:modelValue":t[1]||(t[1]=p=>n.myParentCondition=p)},null,8,["modelValue"])])]),_:1}),o.isAdd===!1?(Vue.openBlock(),Vue.createBlock(a,{key:0,class:"box-card",shadow:"never"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_5$2,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.subtableCondition")),1)]),Vue.createElementVNode("div",null,[Vue.createVNode(d,{style:{"padding-bottom":"8px"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(E,{id:"tableDataDialog",ref:"table",data:n.tableData,border:"",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(w,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_6,[Vue.createVNode(m,{modelValue:e.scope.row.leftBracket,"onUpdate:modelValue":t[2]||(t[2]=p=>e.scope.row.leftBracket=p),size:"small",clearable:"",onFocus:t[3]||(t[3]=p=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"",value:""}),Vue.createVNode(c,{label:"(",value:"("}),Vue.createVNode(c,{label:"((",value:"(("}),Vue.createVNode(c,{label:"(((",value:"((("})]),_:1},8,["modelValue"])])]),_:1}),Vue.createVNode(w,{label:e.$t("workflowEditor.common.fieldName"),width:"200"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_7,[Vue.createVNode(m,{modelValue:e.scope.row.propName,"onUpdate:modelValue":t[4]||(t[4]=p=>e.scope.row.propName=p),"filter-method":r.searchField,size:"small",clearable:"",filterable:"",onFocus:t[5]||(t[5]=p=>r.selectRow(e.scope.row)),onChange:t[6]||(t[6]=p=>r.changeFieldName(e.scope.$index))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,p=>(Vue.openBlock(),Vue.createBlock(c,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","filter-method"])])]),_:1},8,["label"]),Vue.createVNode(w,{label:e.$t("workflowEditor.common.operator"),width:"110"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_8,[Vue.createVNode(m,{modelValue:e.scope.row.operator,"onUpdate:modelValue":t[7]||(t[7]=p=>e.scope.row.operator=p),size:"small",clearable:"",onFocus:t[8]||(t[8]=p=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.operationArr[e.scope.$index],p=>(Vue.openBlock(),Vue.createBlock(c,{key:p.name,label:p.label,value:p.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(w,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_9,[e.scope.row.propValueType?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(m,{key:0,modelValue:e.scope.row.propValueType,"onUpdate:modelValue":t[9]||(t[9]=p=>e.scope.row.propValueType=p),size:"small",onFocus:t[10]||(t[10]=p=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.fillInManually"),value:"input"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.environmentVariable"),value:"context"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.requestParameters"),value:"request"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.mainTableField"),value:"obj"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.databaseFields"),value:"subObj"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.taskFields"),value:"task"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.systemParameter"),value:"custom"},null,8,["label"])]),_:1},8,["modelValue"])),e.scope.row.propValueType==="context"?(Vue.openBlock(),Vue.createBlock(m,{key:1,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[11]||(t[11]=p=>e.scope.row.propValue=p),clearable:"",size:"small",title:e.scope.row.propValue,filterable:"","default-first-option":"","allow-create":"",onChange:t[12]||(t[12]=p=>r.changePropValue(e.scope.$index)),onFocus:t[13]||(t[13]=p=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTime"),value:"${context.currentTime}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactor"),value:"${context.currentTransactor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorName"),value:"${context.currentTransactorName}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorId"),value:"${context.currentTransactorId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorMainDepartmentId"),value:"${context.currentTransactorMainDepartmentId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorMainDepartment"),value:"${context.currentTransactorMainDepartment}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorRoleId"),value:"${context.currentTransactorRoleId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorRole"),value:"${context.currentTransactorRole}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorWorkGroupId"),value:"${context.currentTransactorWorkGroupId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorWorkGroup"),value:"${context.currentTransactorWorkGroup}"},null,8,["label"])]),_:1},8,["modelValue","title"])):Vue.createCommentVNode("",!0),e.scope.row.propValueType==="task"?(Vue.openBlock(),Vue.createBlock(m,{key:2,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[14]||(t[14]=p=>e.scope.row.propValue=p),clearable:"",size:"small",title:e.scope.row.propValue,filterable:"","default-first-option":"","allow-create":"",onChange:t[15]||(t[15]=p=>r.changePropValue(e.scope.$index)),onFocus:t[16]||(t[16]=p=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentHandler"),value:"${task.transactor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTaskClient"),value:"${task.trustor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentAssignor"),value:"${task.assigner}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.linkName"),value:"${task.name}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.linkCode"),value:"${task.nodeId}"},null,8,["label"])]),_:1},8,["modelValue","title"])):Vue.createCommentVNode("",!0),e.scope.row.dataType==="DATE"&&e.scope.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(_,{key:3,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[17]||(t[17]=p=>e.scope.row.propValue=p),size:"small",clearable:"","value-format":"yyyy-MM-dd",title:e.scope.row.propValue,type:"date",onChange:t[18]||(t[18]=p=>r.changePropValue(e.scope.$index))},null,8,["modelValue","title"])):Vue.createCommentVNode("",!0),e.scope.row.dataType==="TIME"&&e.scope.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(_,{key:4,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[19]||(t[19]=p=>e.scope.row.propValue=p),size:"small",title:e.scope.row.propValue,clearable:"","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",onChange:t[20]||(t[20]=p=>r.changePropValue(e.scope.$index))},null,8,["modelValue","title"])):Vue.createCommentVNode("",!0),e.scope.row.dataType!=="TIME"&&e.scope.row.dataType!=="DATE"&&e.scope.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(b,{key:5,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[21]||(t[21]=p=>e.scope.row.propValue=p),modelModifiers:{trim:!0},title:e.scope.row.propValue,clearable:"",size:"small",onChange:t[22]||(t[22]=p=>r.changePropValue(e.scope.$index))},null,8,["modelValue","title"])):Vue.createCommentVNode("",!0),e.scope.row.propValueType==="request"?(Vue.openBlock(),Vue.createBlock(b,{key:6,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[23]||(t[23]=p=>e.scope.row.propValue=p),modelModifiers:{trim:!0},title:e.scope.row.propValue,clearable:"",size:"small",onChange:t[24]||(t[24]=p=>r.changePropValue(e.scope.$index))},null,8,["modelValue","title"])):Vue.createCommentVNode("",!0),e.scope.row.propValueType==="subObj"?(Vue.openBlock(),Vue.createBlock(m,{key:7,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[25]||(t[25]=p=>e.scope.row.propValue=p),title:e.scope.row.propValue,"filter-method":r.searchField,size:"small",clearable:"",filterable:"",onChange:t[26]||(t[26]=p=>r.changePropValue(e.scope.$index))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,p=>(Vue.openBlock(),Vue.createBlock(c,{key:"${subObj."+p.value+"}",label:p.label,value:"${subObj."+p.value+"}"},null,8,["label","value"]))),128))]),_:1},8,["modelValue","title","filter-method"])):Vue.createCommentVNode("",!0),e.scope.row.propValueType==="obj"?(Vue.openBlock(),Vue.createBlock(m,{key:8,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[27]||(t[27]=p=>e.scope.row.propValue=p),title:e.scope.row.propValue,size:"small",clearable:"",filterable:"",onChange:t[28]||(t[28]=p=>r.changePropValue(e.scope.$index))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.parentAttributeArr,p=>(Vue.openBlock(),Vue.createBlock(c,{key:"${obj."+p.value+"}",label:p.label,value:"${obj."+p.value+"}"},null,8,["label","value"]))),128))]),_:1},8,["modelValue","title"])):Vue.createCommentVNode("",!0),e.scope.row.propValueType==="custom"?(Vue.openBlock(),Vue.createBlock(m,{key:9,modelValue:e.scope.row.propValue,"onUpdate:modelValue":t[29]||(t[29]=p=>e.scope.row.propValue=p),title:e.scope.row.propValue,size:"small",clearable:"",filterable:"",onChange:t[30]||(t[30]=p=>r.changePropValue(e.scope.$index))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.propSettingKeyList,p=>(Vue.openBlock(),Vue.createBlock(c,{key:"${custom."+p+"}",label:p,value:"${custom."+p+"}"},null,8,["label","value"]))),128))]),_:1},8,["modelValue","title"])):Vue.createCommentVNode("",!0)])]),_:1},8,["label"]),Vue.createVNode(w,{prop:"rightBracket",label:")",width:"90",onFocus:t[32]||(t[32]=p=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_10,[Vue.createVNode(m,{modelValue:e.scope.row.rightBracket,"onUpdate:modelValue":t[31]||(t[31]=p=>e.scope.row.rightBracket=p),size:"small",clearable:""},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"",value:""}),Vue.createVNode(c,{label:")",value:")"}),Vue.createVNode(c,{label:"))",value:"))"}),Vue.createVNode(c,{label:")))",value:")))"})]),_:1},8,["modelValue"])])]),_:1}),Vue.createVNode(w,{label:e.$t("workflowEditorPublicModel.andOr"),prop:"logicOperator",width:"110"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_11,[Vue.createVNode(m,{modelValue:e.scope.row.logicOperator,"onUpdate:modelValue":t[33]||(t[33]=p=>e.scope.row.logicOperator=p),size:"small",clearable:"",onFocus:t[34]||(t[34]=p=>r.selectRow(e.scope.row))},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:1},8,["modelValue"])])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])])]),_:1})):Vue.createCommentVNode("",!0)])])]),_:1},8,["title","onClose"])}const selectionConditions=_export_sfc(_sfc_main$J,[["render",_sfc_render$J]]),_sfc_main$I={name:"EditableChildFieldSetting",components:{selectionConditions},props:{setting:{type:Object,default:null},tableName:{type:String,default:null}},data(){let e=[];this.setting&&this.setting.actionArr&&(e=this.setting.actionArr);let t=[];this.setting&&this.setting.fieldArr&&(t=this.setting.fieldArr);let o;this.setting&&this.setting.visibleConditionArr&&(o=this.setting.visibleConditionArr);let i;this.setting&&this.setting.modelName&&(i=this.setting.modelName);let n;return this.setting&&this.setting.sumPermission!==null&&(n=this.setting.sumPermission),{sumPermission:n,subtableConditionItem:null,attributeArr:null,showAdditionalCondition:!1,currentRow:null,multipleSelection:null,actionArr:e,fieldArr:t,queryList:null,fieldMap:null,fieldNameMap:null,actionVisibleConditionArr:o,buttonType:null,buttonVisibleCon:null,showButtonVisibleFlag:!1,clickButton:!1,operationArr:[],modelName:i}},watch:{setting:{handler(e,t){e&&e.actionArr&&(this.actionArr=e.actionArr),e&&e.fieldArr&&(this.fieldArr=e.fieldArr),e&&e.actionVisibleConditionArr&&(this.actionVisibleConditionArr=e.actionVisibleConditionArr),this.modelName=e.modelName,this.sumPermission=e.sumPermission,this.combinationParameters()},deep:!0}},computed:{...mapGetters("wfEditor",["subtableConditionMap"])},created(){this.subtableConditionMap&&this.tableName&&(this.subtableConditionItem=this.subtableConditionMap[this.tableName],this.getAttributeArr())},mounted(){this.subtableConditionMap&&this.tableName&&(this.subtableConditionItem=this.subtableConditionMap[this.tableName],this.subtableConditionMap[this.tableName]&&(this.attributeArr=this.subtableConditionItem.attributeArr))},methods:{...utiljs,getAttributeArr(){this.subtableConditionItem&&this.subtableConditionItem.attributeArr&&(this.queryList=this.subtableConditionItem.attributeArr,this.fieldMap=this.subtableConditionItem.fieldMap,this.fieldNameMap=this.subtableConditionItem.fieldNameMap)},savebuttonSetting(e){e&&(this.$set(this.currentRow,"condition",e.condition),this.$set(this.currentRow,"userCondition",e.userCondition),this.$set(this.currentRow,"parentCondition",e.parentCondition),this.combinationParameters()),this.showAdditionalCondition=!1},handleCurrentChange(e){this.currentRow=e},handleSelectionChange(e){this.multipleSelection=e},selectRow(e){this.$refs.table.setCurrentRow(e)},add(){this.fieldArr||(this.fieldArr=[]),this.fieldArr.push({name:null,constraintRule:null,condition:null}),this.combinationParameters()},getCurrentRowIndex(){let e=-1;for(let t=0;t<this.fieldArr.length;t++)if(this.fieldArr[t].name===this.currentRow.name){e=t;break}return e},remove(){if(this.multipleSelection&&this.multipleSelection.length>0){for(var e=0;e<this.multipleSelection.length;e++){const t=this.multipleSelection[e];this.selectRow(t);const o=this.getCurrentRowIndex();this.fieldArr.splice(o,1)}this.combinationParameters()}},selectCondition(e){this.selectRow(e),this.showAdditionalCondition=!0},showButtonVisible(e){this.clickButton=!0,this.buttonType=e,this.actionVisibleConditionArr&&this.actionVisibleConditionArr[e]?(this.buttonVisibleCon=this.actionVisibleConditionArr[e],this.$set(this,"buttonVisibleCon",this.actionVisibleConditionArr[e])):this.$set(this,"buttonVisibleCon",{}),this.$set(this,"showButtonVisibleFlag",!0)},saveButtonVisible(e){e&&(this.actionVisibleConditionArr||(this.actionVisibleConditionArr={}),this.$set(this.actionVisibleConditionArr,this.buttonType,e),this.combinationParameters()),this.showButtonVisibleFlag=!1},changeActionArr(){this.clickButton?(this.actionArr.push(this.buttonType),this.clickButton=!1):this.combinationParameters()},combinationParameters(){const e={};e.modelName=this.modelName,e.tableName=this.tableName,e.permission=this.sumPermission;const t=[];if(this.actionArr&&this.actionArr.length>0&&(this.actionArr.forEach(o=>{const i={};if(i.name=o,this.actionVisibleConditionArr&&this.actionVisibleConditionArr[o]){const n=this.actionVisibleConditionArr[o];i.condition=this.dataToXml(n.condition),i.parentCondition=n.parentCondition,i.userCondition=n.userCondition}t.push(i)}),e.action=t),this.fieldArr&&this.fieldArr.length>0){const o=[];this.fieldArr.forEach(i=>{const n={};n.name=i.name,n.constraintRule=i.constraintRule,i.condition&&(n.condition=this.dataToXml(i.condition)),n.userCondition=i.userCondition,n.parentCondition=i.parentCondition,o.push(n)}),e.field=o}console.log("触发combinationParameters",e),this.$emit("combinationParameters",e)}}},_hoisted_1$l={"slot-scope":"scope"},_hoisted_2$f={"slot-scope":"scope"},_hoisted_3$5={"slot-scope":"scope"};function _sfc_render$I(e,t,o,i,n,r){const l=Vue.resolveComponent("el-checkbox"),s=Vue.resolveComponent("el-col"),a=Vue.resolveComponent("el-checkbox-group"),u=Vue.resolveComponent("el-row"),d=Vue.resolveComponent("selection-conditions"),c=Vue.resolveComponent("el-button"),m=Vue.resolveComponent("el-table-column"),w=Vue.resolveComponent("el-option"),_=Vue.resolveComponent("el-select"),b=Vue.resolveComponent("el-radio"),E=Vue.resolveComponent("el-radio-group"),f=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createElementVNode("div",null,[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.actionArr,"onUpdate:modelValue":t[3]||(t[3]=p=>n.actionArr=p),onChange:r.changeActionArr},{default:Vue.withCtx(()=>[Vue.createVNode(s,{span:8},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"add"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.rowsCanBeAdded"))+" ",1),n.actionArr&&n.actionArr.indexOf("add")!==-1?(Vue.openBlock(),Vue.createElementBlock("i",{key:0,class:"el-icon-s-tools",onClick:t[0]||(t[0]=p=>r.showButtonVisible("add"))})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(s,{span:8},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"delete"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.deleteLine"))+" ",1),n.actionArr&&n.actionArr.indexOf("delete")!==-1?(Vue.openBlock(),Vue.createElementBlock("i",{key:0,class:"el-icon-s-tools",onClick:t[1]||(t[1]=p=>r.showButtonVisible("delete"))})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(s,{span:8},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"update"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.modifiableHistoricalData"))+" ",1),n.actionArr&&n.actionArr.indexOf("update")!==-1?(Vue.openBlock(),Vue.createElementBlock("i",{key:0,class:"el-icon-s-tools",onClick:t[2]||(t[2]=p=>r.showButtonVisible("update"))})):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.showButtonVisibleFlag?(Vue.openBlock(),Vue.createBlock(d,{key:0,"attribute-map":n.subtableConditionItem,"condition-list":n.buttonVisibleCon.condition,"parent-condition":n.buttonVisibleCon.parentCondition,"user-condition":n.buttonVisibleCon.userCondition,"is-add":n.buttonType&&n.buttonType==="add",onClose:r.saveButtonVisible},null,8,["attribute-map","condition-list","parent-condition","user-condition","is-add","onClose"])):Vue.createCommentVNode("",!0)]),Vue.createElementVNode("div",null,[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(c,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(f,{ref:"table",data:n.fieldArr,border:"","highlight-current-row":"",style:{width:"100%"},onSelectionChange:r.handleSelectionChange,onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(m,{type:"selection",width:"55"}),Vue.createVNode(m,{type:"index",width:"50"}),Vue.createVNode(m,{prop:"name",label:e.$t("workflowEditor.task.propertyName"),width:"280"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$l,[Vue.createVNode(_,{modelValue:e.scope.row.name,"onUpdate:modelValue":t[4]||(t[4]=p=>e.scope.row.name=p),size:"small",filterable:"",onChange:r.combinationParameters},{default:Vue.withCtx(()=>[Vue.createVNode(w,{label:e.$t("workflowEditor.condition.allFields"),value:"all_fields"},null,8,["label"]),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,p=>(Vue.openBlock(),Vue.createBlock(w,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1},8,["label"]),Vue.createVNode(m,{prop:"constraintRule",label:e.$t("workflowEditor.task.editingMethod"),width:"380"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$f,[Vue.createVNode(E,{modelValue:e.scope.row.constraintRule,"onUpdate:modelValue":t[5]||(t[5]=p=>e.scope.row.constraintRule=p),onChange:r.combinationParameters},{default:Vue.withCtx(()=>[Vue.createVNode(b,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(b,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:1},8,["modelValue","onChange"])])]),_:1},8,["label"]),Vue.createVNode(m,{prop:"condition",label:e.$t("workflowEditor.task.condition")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_3$5,[Vue.createElementVNode("i",{class:"el-icon-s-tools",onClick:t[6]||(t[6]=p=>r.selectCondition(e.scope.row))})])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange","onCurrentChange"]),n.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(d,{key:0,"attribute-map":n.subtableConditionItem,"condition-list":n.currentRow.condition,"parent-condition":n.currentRow.parentCondition,"user-condition":n.currentRow.userCondition,onClose:r.savebuttonSetting},null,8,["attribute-map","condition-list","parent-condition","user-condition","onClose"])):Vue.createCommentVNode("",!0)])])}const editableChildFieldSetting=_export_sfc(_sfc_main$I,[["render",_sfc_render$I]]),_sfc_main$H={name:"EditableChildFields",components:{editableChildFieldSetting},props:{value:{type:[Array,Object],default:null}},data(){let e=[];return this.value!==""&&this.value!==null&&this.value!==void 0&&(Array.isArray(this.value)?e=this.value:e.push(this.value)),{selectedFields:e,selectedFieldMap:{}}},computed:{...mapGetters("wfEditor",["subtableConditionMap"])},watch:{},created(){if(this.selectedFields&&this.selectedFields.length>0&&this.selectedFields.forEach(t=>{const o={},i=t.tableName;if(t.action)if(Array.isArray(t.action)){if(t.action.length>0){const n=[],r={};t.action.forEach(l=>{n.push(l.name);const s={};l.condition&&(s.condition=this.xmlToData(l.condition)),s.parentCondition=l.parentCondition,s.userCondition=l.userCondition,r[l.name]=s}),o.actionArr=n,o.visibleConditionArr=r}}else{const n=[],r={};n.push(t.action.name);const l={};t.action.condition&&(l.condition=this.xmlToData(t.action.condition)),l.parentCondition=t.action.parentCondition,l.userCondition=t.action.userCondition,r[t.action.name]=l,o.actionArr=n,o.visibleConditionArr=r}if(t.field)if(Array.isArray(t.field)){if(t.field.length>0){const n=[];t.field.forEach(r=>{const l={};l.name=r.name,l.constraintRule=r.constraintRule,l.condition=this.xmlToData(r.condition),l.userCondition=r.userCondition,l.parentCondition=r.parentCondition,n.push(l)}),o.fieldArr=n}}else{const n=[],r={};r.name=t.field.name,r.constraintRule=t.field.constraintRule,r.condition=this.xmlToData(t.field.condition),r.userCondition=t.field.userCondition,r.parentCondition=t.field.parentCondition,n.push(r),o.fieldArr=n}t.modelName?o.modelName=t.modelName:o.modelName=null,t.permission?o.sumPermission=t.permission:o.sumPermission=!1,this.$set(this.selectedFieldMap,i,o)}),this.subtableConditionMap){for(var e in this.subtableConditionMap)if(!this.selectedFieldMap[e]){const t={};t.tableName=e,t.modelName=this.subtableConditionMap[e].modelName,t.sumPermission=!1,this.$set(this.selectedFieldMap,e,t)}}},mounted(){},methods:{...utiljs,combinationParameters(e){if(e&&e.tableName){if(this.selectedFields&&this.selectedFields.length>0){const t=this.selectedFields.findIndex(o=>o.tableName===e.tableName);t!==-1?this.$set(this.selectedFields,t,e):this.selectedFields.push(e)}else this.selectedFields=[],this.selectedFields.push(e);this.$emit("input",this.selectedFields)}},refreshModelName(e){if(this.subtableConditionMap&&this.subtableConditionMap[e]&&this.subtableConditionMap[e].modelName){if(this.selectedFieldMap[e]){const t=this.selectedFieldMap[e];t.modelName=this.subtableConditionMap[e].modelName}else{const t={};t.modelName=this.subtableConditionMap[e].modelName,this.$set(this.selectedFieldMap,e,t)}this.$message({showClose:!0,type:"success",message:this.$t("workflowEditorMessage.updateSuccessful")})}},changeSumPermission(e){if(e&&this.selectedFieldMap[e])if(this.selectedFields||this.$set(this,"selectedFields",[]),this.selectedFieldMap[e].sumPermission===!1){const t=this.selectedFields.findIndex(o=>o.tableName===e);t!=null&&t!==-1?this.$set(this.selectedFields[t],"permission",!1):this.$set(this.selectedFields,this.selectedFields.length,{permission:!1,tableName:e})}else{const t=this.selectedFields.findIndex(o=>o.tableName===e);t!=null&&t!==-1?this.$set(this.selectedFields[t],"permission",!0):this.$set(this.selectedFields,this.selectedFields.length,{permission:!0,tableName:e})}this.$emit("input",this.selectedFields)}}},_hoisted_1$k={slot:"header",class:"clearfix"},_hoisted_2$e={key:0},_hoisted_3$4={style:{color:"cornflowerblue"}},_hoisted_4$2={style:{"padding-left":"5px"}},_hoisted_5$1={key:0};function _sfc_render$H(e,t,o,i,n,r){const l=Vue.resolveComponent("el-col"),s=Vue.resolveComponent("el-switch"),a=Vue.resolveComponent("el-row"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-button"),c=Vue.resolveComponent("editable-child-field-setting"),m=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(m,{class:"box-card"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.subtableConditionMap,(w,_)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:_},[Vue.createElementVNode("div",_hoisted_1$k,[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{span:12},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(_),1)]),_:2},1024),n.selectedFieldMap[_]?(Vue.openBlock(),Vue.createBlock(l,{key:0,span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.selectedFieldMap[_].sumPermission,"onUpdate:modelValue":b=>n.selectedFieldMap[_].sumPermission=b,"inactive-text":e.$t("workflowEditor.condition.accessControl"),onChange:b=>r.changeSumPermission(_)},null,8,["modelValue","onUpdate:modelValue","inactive-text","onChange"])]),_:2},1024)):Vue.createCommentVNode("",!0)]),_:2},1024),Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[n.selectedFieldMap[_]&&n.selectedFieldMap[_].sumPermission?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_2$e,[Vue.createElementVNode("span",_hoisted_3$4,Vue.toDisplayString(e.$t("workflowEditor.condition.formBindingModel"))+":",1),Vue.createElementVNode("span",_hoisted_4$2,[Vue.createVNode(u,{modelValue:n.selectedFieldMap[_].modelName,"onUpdate:modelValue":b=>n.selectedFieldMap[_].modelName=b,style:{width:"300px"}},null,8,["modelValue","onUpdate:modelValue"])]),Vue.createVNode(d,{icon:"el-icon-refresh",type:"text",onClick:b=>r.refreshModelName(_)},null,8,["onClick"])])):Vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),n.selectedFieldMap[_]&&n.selectedFieldMap[_].sumPermission?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_5$1,[Vue.createVNode(c,{setting:n.selectedFieldMap[_],"table-name":_,onCombinationParameters:r.combinationParameters},null,8,["setting","table-name","onCombinationParameters"])])):Vue.createCommentVNode("",!0)]))),128))]),_:1})])}const editableChildFields=_export_sfc(_sfc_main$H,[["render",_sfc_render$H]]),systemRoleTree_vue_vue_type_style_index_0_lang="",_sfc_main$G={name:"SystemRoleTree",components:{InlineSystemRoleTree},props:{multiple:{type:Boolean,default:!1}},computed:{},watch:{},created(){},methods:{roleResult(e){e?this.$emit("close",e):this.$emit("close")},selectRoles(){this.$refs.systemRoleTree.selectRole()}}},_hoisted_1$j={key:0,slot:"footer",class:"dialog-footer"};function _sfc_render$G(e,t,o,i,n,r){const l=Vue.resolveComponent("inline-system-role-tree"),s=Vue.resolveComponent("el-button"),a=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(a,{visible:"",title:e.$t("workflowEditorMessage.selectRole"),width:"30%",top:"10vh","append-to-body":"","custom-class":"properties-editor-noTab","close-on-click-modal":!1,onClose:t[1]||(t[1]=u=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createVNode(l,{ref:"systemRoleTree",multiple:o.multiple,onResult:r.roleResult},null,8,["multiple","onResult"]),o.multiple?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$j,[Vue.createVNode(s,{type:"primary",size:"small",onClick:r.selectRoles},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{size:"small",onClick:t[0]||(t[0]=u=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})])):Vue.createCommentVNode("",!0)]),_:1},8,["title"])}const SystemRoleTree=_export_sfc(_sfc_main$G,[["render",_sfc_render$G]]),_sfc_main$F={name:"UserSelection",components:{SystemRoleTree,FormFields},props:{label:{type:String,default:""},labelWidth:{type:String,default:null},value:{type:String,default:""},currentTransactor:{type:Boolean,default:!1}},data(){let e=!1,t="";const o=this.value.split("; "),i=o[0].split(" condition.operator.or ");return o.length===2&&(e=!0,t=o[1].split(" condition.operator.or "),i.push("assignUser")),{checkList:i,showUserList:e,selectedUsers:t,showSelectUser:!1,selectedUsersShowValue:null,showSelectDepartment:!1,showSelectWorkgroup:!1,showSelectRole:!1,showSelectField:!1}},watch:{checkList(e){this.$emit("input",this.getValue())},selectedUsers(e){this.$emit("input",this.getValue())}},created(){console.log(this.checkList),this.getSelectedUsersShowValue()},methods:{formatLabel(e){return getFormFieldLabel(e)},getValue(){let t=this.checkList.filter(o=>o!==""&&o!=="assignUser").join(" condition.operator.or ");return this.showUserList&&this.selectedUsers&&this.selectedUsers.length!==0&&(t=t+"; "+this.selectedUsers.join(" condition.operator.or ")),t},toggleUserList(){this.showUserList=!this.showUserList},resetSelectedUsers(){this.selectedUsers=[],this.selectedUsersShowValue=""},handleCommand(e){e==="selectUser"?this.selectPointUser():e==="selectDepartment"?this.selectPointDepartment():e==="selectRole"?this.selectPointRole():e==="selectWorkgroup"?this.selectPointWorkgroup():e==="selectField"&&this.selectPointField()},selectPointUser(){this.showSelectUser=!0},selectPointDepartment(){this.showSelectDepartment=!0},selectPointRole(){this.showSelectRole=!0},selectPointField(){this.showSelectField=!0},selectPointWorkgroup(){this.showSelectWorkgroup=!0},addPointUsers(e){e&&(e.containBranch?this.packageSelectedUserConditionsWithBranch(e.users):this.packageSelectedUserConditionsWithOutBranch(e.users),this.getSelectedUsersShowValue()),this.showSelectUser=!1},packageSelectedUserConditionsWithBranch(e){const t="~~",o="/",i="${user} operator.text.eq ";e.forEach(n=>{let r=n.loginName,l=n.name;if(n.subCompanyId&&n.subCompanyId!==null){const a=n.subCompanyCode,u=n.subCompanyName;r=r+t+a,l=l+o+u}else r=r+t+n.tenantCode,l=l+o+n.tenantName;const s=i+l+"["+r+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(s)).length===0&&this.selectedUsers.push(s):(this.selectedUsers=[],this.selectedUsers.push(s))})},packageSelectedUserConditionsWithOutBranch(e){const t="${user} operator.text.eq ";e.forEach(o=>{const i=t+o.name+"["+o.loginName+"]";this.selectedUsers.filter(this.filterCondition(i)).length===0&&this.selectedUsers.push(i)})},getSelectedUsersShowValue(){if(this.selectedUsers){const e=this.selectedUsers.join(" condition.operator.or ");this.selectedUsersShowValue=e.replace(/\$\{user\}/g,"用户").replace(/\$\{department\}/g,"部门").replace(/\$\{workGroup\}/g,"工作组").replace(/\$\{role\}/g,"角色").replace(/operator\.text\.eq/g,"等于").replace(/condition\.operator\.or/g,"或者").replace(/\$\{field/g,"字段").replace(/]\}/g,"]")}},filterCondition(e){return t=>t===e},addPointDepartments(e){e&&(e.containBranch?this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e.departments,"${department}"):this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.departments,"${department}"),this.getSelectedUsersShowValue()),this.showSelectDepartment=!1},packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e,t){const o="/",i=t+" operator.text.eq ";e.forEach(n=>{const r=n.code;let l=n.name;if(n.subCompanyId&&n.subCompanyId!==null){const a=n.subCompanyName;a&&a!==""&&(l=l+o+a)}else l=l+o+n.tenantName;const s=i+l+"["+r+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(s)).length===0&&this.selectedUsers.push(s):(this.selectedUsers=[],this.selectedUsers.push(s))})},packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e,t){const o=t+" operator.text.eq ";e.forEach(i=>{const n=o+i.name+"["+i.code+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(n)).length===0&&this.selectedUsers.push(n):(this.selectedUsers=[],this.selectedUsers.push(n))})},addPointWorkgroups(e){e&&(e.containBranch?this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e.workgroups,"${workGroup}"):this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.workgroups,"${workGroup}"),this.getSelectedUsersShowValue()),this.showSelectWorkgroup=!1},addPointRoles(e){e&&(this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.roles,"${role}"),this.getSelectedUsersShowValue()),this.showSelectRole=!1},packageSelectedFieldConditions(e,t){const i=t+" operator.text.eq "+"${field["+e+"]}";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(i)).length===0&&this.selectedUsers.push(i):(this.selectedUsers=[],this.selectedUsers.push(i))},setField(e){e!==void 0&&(this.packageSelectedFieldConditions(e,"${user}"),this.getSelectedUsersShowValue()),this.showSelectField=!1}}},_hoisted_1$i={key:0},_hoisted_2$d={class:"el-dropdown-link"},_hoisted_3$3=Vue.createElementVNode("i",{class:"el-icon-search"},null,-1);function _sfc_render$F(e,t,o,i,n,r){const l=Vue.resolveComponent("el-checkbox"),s=Vue.resolveComponent("el-checkbox-group"),a=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-dropdown-item"),d=Vue.resolveComponent("el-dropdown-menu"),c=Vue.resolveComponent("el-dropdown"),m=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-row"),_=Vue.resolveComponent("el-input"),b=Vue.resolveComponent("department-user-tree"),E=Vue.resolveComponent("department-tree"),f=Vue.resolveComponent("workgroup-tree"),p=Vue.resolveComponent("system-role-tree"),g=Vue.resolveComponent("form-fields"),v=Vue.resolveComponent("el-form-item");return Vue.openBlock(),Vue.createBlock(v,{label:o.label,"label-width":o.labelWidth},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.checkList,"onUpdate:modelValue":t[0]||(t[0]=T=>n.checkList=T)},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"${instanceCreator}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processInitiator")),1)]),_:1}),Vue.createVNode(l,{label:"${processAdmin}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processAdministrator")),1)]),_:1}),o.currentTransactor?(Vue.openBlock(),Vue.createBlock(l,{key:0,label:"${currentTransactor}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.currentHandler")),1)]),_:1})):(Vue.openBlock(),Vue.createBlock(l,{key:1,label:"${allHandleTransactors}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.allHandlingPersonnel")),1)]),_:1})),Vue.createVNode(l,{label:"assignUser",onChange:r.toggleUserList},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.designatedPersonnel")),1)]),_:1},8,["onChange"])]),_:1},8,["modelValue"])]),_:1}),n.showUserList?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$i,[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(w,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:4},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.listOfDesignatedPersons")),1)]),_:1}),Vue.createVNode(a,{span:5},{default:Vue.withCtx(()=>[Vue.createVNode(c,{size:"mini","split-button":"",type:"primary",plain:"",onCommand:r.handleCommand},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_2$d,[_hoisted_3$3,Vue.createTextVNode(" "+Vue.toDisplayString(e.$t("workflowEditorPublicModel.choice")),1)]),Vue.createVNode(d,{slot:"dropdown"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{command:"selectUser",onClick:t[1]||(t[1]=T=>r.selectPointUser())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectusers")),1)]),_:1}),Vue.createVNode(u,{command:"selectDepartment",onClick:t[2]||(t[2]=T=>r.selectPointDepartment())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectDepartment")),1)]),_:1}),Vue.createVNode(u,{command:"selectWorkgroup",onClick:t[3]||(t[3]=T=>r.selectPointWorkgroup())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectTeam")),1)]),_:1}),Vue.createVNode(u,{command:"selectRole",onClick:t[4]||(t[4]=T=>r.selectPointRole())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectRole")),1)]),_:1}),Vue.createVNode(u,{command:"selectField",onClick:t[5]||(t[5]=T=>r.selectPointField())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectField")),1)]),_:1})]),_:1})]),_:1},8,["onCommand"])]),_:1}),Vue.createVNode(a,{span:3},{default:Vue.withCtx(()=>[Vue.createVNode(m,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.resetSelectedUsers},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.empty")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),Vue.createVNode(w,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:n.selectedUsersShowValue,"onUpdate:modelValue":t[6]||(t[6]=T=>n.selectedUsersShowValue=T),type:"textarea",rows:2,placeholder:e.$t("workflowEditorMessage.pleaseSelectPersonnel")},null,8,["modelValue","placeholder"])]),_:1})]),_:1})]),_:1}),n.showSelectUser?(Vue.openBlock(),Vue.createBlock(b,{key:0,width:"60%",multiple:!0,onClose:r.addPointUsers},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectDepartment?(Vue.openBlock(),Vue.createBlock(E,{key:1,width:"30%",multiple:!0,onClose:r.addPointDepartments},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectWorkgroup?(Vue.openBlock(),Vue.createBlock(f,{key:2,width:"30%",multiple:!0,onClose:r.addPointWorkgroups},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectRole?(Vue.openBlock(),Vue.createBlock(p,{key:3,multiple:!0,onClose:r.addPointRoles},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectField?(Vue.openBlock(),Vue.createBlock(g,{key:4,onClose:r.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0)]),_:1},8,["label","label-width"])}const UserSelection=_export_sfc(_sfc_main$F,[["render",_sfc_render$F]]),permissionSettings_vue_vue_type_style_index_0_scoped_1b134718_lang="",_sfc_main$E={name:"PermissionSettings",components:{EditableFields,UserSelection,AdditionalCondition,editableChildFields},props:{value:{type:Object,default:null}},data(){const e=deepCopy(this.value),t=["viewOpinion","editOpinion","requireOpinion","viewMeetingResult","viewVoteResult","viewFlowHistory","printForm"];t.forEach(i=>{e[i+"Checkbox"]=!!this.value[i].condition});const o=["add","delete","download"];return o.forEach(i=>{e.attachment[i+"Checkbox"]=!!this.value.attachment[i]&&!!this.value.attachment[i].condition,e.attachment.permission||(e.attachment[i]={permission:!1,condition:""})}),{formModel:e,attrNames:t,attachmentAttrNames:o}},mounted(){this.$watch("formModel",function(e){const t={editForm:{},viewOpinion:{},editOpinion:{},requireOpinion:{},viewMeetingResult:{},viewVoteResult:{},viewFlowHistory:{},printForm:{},officialText:{},attachment:{},deleteInstance:{userCondition:""}};console.log("触发了watch"),t.editForm.permission=e.editForm.permission,e.editForm.permission&&(t.editForm.field=e.editForm.field,t.editForm.subTablePermission=e.editForm.subTablePermission),this.attrNames.map(o=>{t[o].permission=e[o].permission,e[o].permission&&e[o+"Checkbox"]?t[o].condition=e[o].condition:t[o].condition=""}),t.attachment.permission=e.attachment.permission,e.attachment.permission&&this.attachmentAttrNames.map(o=>{t.attachment[o]||(t.attachment[o]={}),t.attachment[o].permission=e.attachment[o].permission,e.attachment[o].permission&&e.attachment[o+"Checkbox"]?t.attachment[o].condition=e.attachment[o].condition:t.attachment[o].condition=""}),this.$emit("input",t)},{deep:!0})},methods:{}};function _sfc_render$E(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("editable-fields"),a=Vue.resolveComponent("editable-child-fields"),u=Vue.resolveComponent("el-form-item"),d=Vue.resolveComponent("el-checkbox"),c=Vue.resolveComponent("additional-condition"),m=Vue.resolveComponent("user-selection"),w=Vue.resolveComponent("el-card"),_=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(_,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowEditingForms")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.editForm.permission,"onUpdate:modelValue":t[0]||(t[0]=b=>n.formModel.editForm.permission=b)},null,8,["modelValue"]),n.formModel.editForm.permission?(Vue.openBlock(),Vue.createBlock(s,{key:0,modelValue:n.formModel.editForm.field,"onUpdate:modelValue":t[1]||(t[1]=b=>n.formModel.editForm.field=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.editForm.permission?(Vue.openBlock(),Vue.createBlock(a,{key:1,modelValue:n.formModel.editForm.subTablePermission,"onUpdate:modelValue":t[2]||(t[2]=b=>n.formModel.editForm.subTablePermission=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowViews")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewOpinion.permission,"onUpdate:modelValue":t[3]||(t[3]=b=>n.formModel.viewOpinion.permission=b)},null,8,["modelValue"]),n.formModel.viewOpinion.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.viewOpinionCheckbox,"onUpdate:modelValue":t[4]||(t[4]=b=>n.formModel.viewOpinionCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewOpinion.permission&&n.formModel.viewOpinionCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.viewOpinion.condition,"onUpdate:modelValue":t[5]||(t[5]=b=>n.formModel.viewOpinion.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.commentsAllowed")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.editOpinion.permission,"onUpdate:modelValue":t[6]||(t[6]=b=>n.formModel.editOpinion.permission=b)},null,8,["modelValue"]),n.formModel.editOpinion.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.editOpinionCheckbox,"onUpdate:modelValue":t[7]||(t[7]=b=>n.formModel.editOpinionCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.editOpinion.permission&&n.formModel.editOpinionCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.editOpinion.condition,"onUpdate:modelValue":t[8]||(t[8]=b=>n.formModel.editOpinion.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.commentsAreRequired")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.requireOpinion.permission,"onUpdate:modelValue":t[9]||(t[9]=b=>n.formModel.requireOpinion.permission=b)},null,8,["modelValue"]),n.formModel.requireOpinion.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.requireOpinionCheckbox,"onUpdate:modelValue":t[10]||(t[10]=b=>n.formModel.requireOpinionCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.requireOpinion.permission&&n.formModel.requireOpinionCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.requireOpinion.condition,"onUpdate:modelValue":t[11]||(t[11]=b=>n.formModel.requireOpinion.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowToViewCountersignatureResults")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewMeetingResult.permission,"onUpdate:modelValue":t[12]||(t[12]=b=>n.formModel.viewMeetingResult.permission=b)},null,8,["modelValue"]),n.formModel.viewMeetingResult.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.viewMeetingResultCheckbox,"onUpdate:modelValue":t[13]||(t[13]=b=>n.formModel.viewMeetingResultCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewMeetingResult.permission&&n.formModel.viewMeetingResultCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.viewMeetingResult.condition,"onUpdate:modelValue":t[14]||(t[14]=b=>n.formModel.viewMeetingResult.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowToViewVotingResults")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewVoteResult.permission,"onUpdate:modelValue":t[15]||(t[15]=b=>n.formModel.viewVoteResult.permission=b)},null,8,["modelValue"]),n.formModel.viewVoteResult.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.viewVoteResultCheckbox,"onUpdate:modelValue":t[16]||(t[16]=b=>n.formModel.viewVoteResultCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewVoteResult.permission&&n.formModel.viewVoteResultCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.viewVoteResult.condition,"onUpdate:modelValue":t[17]||(t[17]=b=>n.formModel.viewVoteResult.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowToViewFlowHistory")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewFlowHistory.permission,"onUpdate:modelValue":t[18]||(t[18]=b=>n.formModel.viewFlowHistory.permission=b)},null,8,["modelValue"]),n.formModel.viewFlowHistory.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.viewFlowHistoryCheckbox,"onUpdate:modelValue":t[19]||(t[19]=b=>n.formModel.viewFlowHistoryCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewFlowHistory.permission&&n.formModel.viewFlowHistoryCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.viewFlowHistory.condition,"onUpdate:modelValue":t[20]||(t[20]=b=>n.formModel.viewFlowHistory.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowFormsToPrint")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.printForm.permission,"onUpdate:modelValue":t[21]||(t[21]=b=>n.formModel.printForm.permission=b)},null,8,["modelValue"]),n.formModel.printForm.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.printFormCheckbox,"onUpdate:modelValue":t[22]||(t[22]=b=>n.formModel.printFormCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.printForm.permission&&n.formModel.printFormCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.printForm.condition,"onUpdate:modelValue":t[23]||(t[23]=b=>n.formModel.printForm.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(m,{modelValue:n.formModel.deleteInstance.userCondition,"onUpdate:modelValue":t[24]||(t[24]=b=>n.formModel.deleteInstance.userCondition=b),label:e.$t("workflowEditor.task.deletePermission"),"label-width":"100px","current-transactor":!0},null,8,["modelValue","label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.attachmentAuthority")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.attachment.permission,"onUpdate:modelValue":t[25]||(t[25]=b=>n.formModel.attachment.permission=b)},null,8,["modelValue"])]),_:1},8,["label"]),n.formModel.attachment.permission?(Vue.openBlock(),Vue.createBlock(w,{key:0,class:"box-card"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.task.addAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.attachment.add.permission,"onUpdate:modelValue":t[26]||(t[26]=b=>n.formModel.attachment.add.permission=b)},null,8,["modelValue"]),n.formModel.attachment.add.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.attachment.addCheckbox,"onUpdate:modelValue":t[27]||(t[27]=b=>n.formModel.attachment.addCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.add.permission&&n.formModel.attachment.addCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.add.condition,"onUpdate:modelValue":t[28]||(t[28]=b=>n.formModel.attachment.add.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.deleteAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.attachment.delete.permission,"onUpdate:modelValue":t[29]||(t[29]=b=>n.formModel.attachment.delete.permission=b)},null,8,["modelValue"]),n.formModel.attachment.delete.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.attachment.deleteCheckbox,"onUpdate:modelValue":t[30]||(t[30]=b=>n.formModel.attachment.deleteCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.delete.permission&&n.formModel.attachment.deleteCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.delete.condition,"onUpdate:modelValue":t[31]||(t[31]=b=>n.formModel.attachment.delete.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.downloadAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.attachment.download.permission,"onUpdate:modelValue":t[32]||(t[32]=b=>n.formModel.attachment.download.permission=b)},null,8,["modelValue"]),n.formModel.attachment.download.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,modelValue:n.formModel.attachment.downloadCheckbox,"onUpdate:modelValue":t[33]||(t[33]=b=>n.formModel.attachment.downloadCheckbox=b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.download.permission&&n.formModel.attachment.downloadCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.download.condition,"onUpdate:modelValue":t[34]||(t[34]=b=>n.formModel.attachment.download.condition=b)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(u,{label:e.$t("workflowEditor.task.bodyPermission")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.officialText.permission,"onUpdate:modelValue":t[35]||(t[35]=b=>n.formModel.officialText.permission=b)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const PermissionSettings$2=_export_sfc(_sfc_main$E,[["render",_sfc_render$E],["__scopeId","data-v-1b134718"]]),_sfc_main$D={name:"TransactorSettings",components:{CommonUserCondition,FormFields},props:{model:{type:Object,default:null},usedIn:{type:String,default:"HumanTask"},isSubprocess:{type:Boolean,default:!1}},data(){const e={selectedField:""};return this.initFormModel(e),{showFormFields:!1,formModel:e}},mounted(){this.$watch("formModel",function(){this.setTransactor(this.formModel.transactor);const e={...this.formModel.additionalCondition};e.selectOneFromMultiple?e.selectType==="customType"&&delete e.selectUrl:(delete e.selectType,delete e.selectUrl),this.model.additionalCondition=e},{deep:!0})},methods:{formatLabel(e){return getFormFieldLabel(e)},initFormModel(e){e.userCondition="";const t=this.model.userCondition;typeof t>"u"||t===""||t===null?(e.transactor="${instanceCreator}",this.model.userCondition="${instanceCreator}"):t==="${instanceCreator}"||t==="${previousTransactorAssignment}"?e.transactor=t:t.indexOf("${field[")>=0&&t.indexOf('"selectedField": "${field[')<2?(e.transactor="byField",e.selectedField=t):(e.transactor="byCondition",e.userCondition=t),this.initAdditionalCondition(e),this.model.url!==void 0?e.url=this.model.url:e.url=""},initAdditionalCondition(e){this.model.additionalCondition===void 0?e.additionalCondition={onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1,selectType:"customType",selectUrl:""}:(e.additionalCondition={...this.model.additionalCondition},e.additionalCondition.selectType===void 0&&(e.additionalCondition.selectType="customType"))},changeA(e){this.setTransactor(e)},handleUrlChange(e){this.model.url=e},setTransactor(e){(e==="${instanceCreator}"||e==="${previousTransactorAssignment}")&&(this.model.userCondition=e),e==="byField"&&(this.model.userCondition=this.formModel.selectedField),e==="byCondition"&&(this.model.userCondition=this.formModel.userCondition),e==="${previousTransactorAssignment}"?this.model.url=this.formModel.url:this.model.url="",e==="byCondition"?this.model.additionalCondition={...this.formModel.additionalCondition}:this.model.additionalCondition=void 0},handleFieldSelection(e){},setField(e){e!==void 0&&(this.formModel.selectedField="${field["+e+"]}",this.model.userCondition=this.formModel.selectedField),this.showFormFields=!1}}},_hoisted_1$h={key:0},_hoisted_2$c={key:2},_hoisted_3$2={key:0};function _sfc_render$D(e,t,o,i,n,r){const l=Vue.resolveComponent("el-radio"),s=Vue.resolveComponent("el-radio-group"),a=Vue.resolveComponent("common-user-condition"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("form-fields"),c=Vue.resolveComponent("el-form-item"),m=Vue.resolveComponent("el-checkbox"),w=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(w,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:""},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.transactor,"onUpdate:modelValue":t[0]||(t[0]=_=>n.formModel.transactor=_)},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"${instanceCreator}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processInitiator")),1)]),_:1}),o.usedIn==="HumanTask"?(Vue.openBlock(),Vue.createBlock(l,{key:0,label:"${previousTransactorAssignment}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.appointmentOfHandlerInThePreviousLink")),1)]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:"byField"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.personSpecifiedInFormField")),1)]),_:1}),Vue.createVNode(l,{label:"byCondition"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.filterByCriteria")),1)]),_:1})]),_:1},8,["modelValue"]),n.formModel.transactor==="byCondition"?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$h,[Vue.createVNode(a,{modelValue:n.formModel.userCondition,"onUpdate:modelValue":t[1]||(t[1]=_=>n.formModel.userCondition=_),"used-in":"transactor"},null,8,["modelValue"])])):Vue.createCommentVNode("",!0),n.formModel.transactor==="byField"?(Vue.openBlock(),Vue.createBlock(c,{key:1,prop:"selectedField",required:"",label:e.$t("workflowEditor.process.fieldName"),"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{value:r.formatLabel(n.formModel.selectedField),onFocus:t[2]||(t[2]=_=>n.showFormFields=!0)},null,8,["value"]),n.showFormFields?(Vue.openBlock(),Vue.createBlock(d,{key:0,onClose:r.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.formModel.transactor==="byCondition"||n.formModel.transactor==="byField"?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$c,[Vue.createVNode(c,{label:e.$t("workflowEditor.process.additionalConditions")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.onlyInCreatorDepartment,"onUpdate:modelValue":t[3]||(t[3]=_=>n.formModel.additionalCondition.onlyInCreatorDepartment=_)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.handlingYyThePersonnelOfTheDepartmentOfTheInitiator")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.withCreatorDepartment,"onUpdate:modelValue":t[4]||(t[4]=_=>n.formModel.additionalCondition.withCreatorDepartment=_)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.selectOneFromMultiple,"onUpdate:modelValue":t[5]||(t[5]=_=>n.formModel.additionalCondition.selectOneFromMultiple=_)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.selectSpecificHandler")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.selectOneFromDept,"onUpdate:modelValue":t[6]||(t[6]=_=>n.formModel.additionalCondition.selectOneFromDept=_)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.selectOneFromDept")),1)]),_:1},8,["modelValue"]),o.isSubprocess?(Vue.openBlock(),Vue.createBlock(m,{key:0,modelValue:n.formModel.additionalCondition.generateOneInstanceFromDept,"onUpdate:modelValue":t[7]||(t[7]=_=>n.formModel.additionalCondition.generateOneInstanceFromDept=_)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.generateOneInstanceFromDept")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),n.formModel.additionalCondition.selectOneFromMultiple?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$2,[Vue.createVNode(c,{label:e.$t("workflowEditor.process.selectionMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.additionalCondition.selectType,"onUpdate:modelValue":t[8]||(t[8]=_=>n.formModel.additionalCondition.selectType=_)},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"customType"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.manualSelection")),1)]),_:1}),Vue.createVNode(l,{label:"autoType"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.autoSelect")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(c,{prop:"additionalCondition.selectUrl",label:e.$t("workflowEditor.process.callbackURL"),rules:[{required:!0,message:this.$t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"}]},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.additionalCondition.selectUrl,"onUpdate:modelValue":t[9]||(t[9]=_=>n.formModel.additionalCondition.selectUrl=_)},null,8,["modelValue"])]),_:1},8,["label","rules"]),[[Vue.vShow,n.formModel.additionalCondition.selectType==="autoType"]])])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0)]),_:1}),o.usedIn==="HumanTask"&&n.formModel.transactor==="${previousTransactorAssignment}"?(Vue.openBlock(),Vue.createBlock(c,{key:0,prop:"url",rules:[{required:!0,message:this.$t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"}],label:e.$t("workflowEditor.process.selectURL"),"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.url,"onUpdate:modelValue":t[10]||(t[10]=_=>n.formModel.url=_),modelModifiers:{trim:!0},onChange:r.handleUrlChange},null,8,["modelValue","onChange"])]),_:1},8,["rules","label"])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const TransactorSettings=_export_sfc(_sfc_main$D,[["render",_sfc_render$D]]),standardValues={"${currentTime}":getI18n().t("workflowEditor.process.handlingTimeOfThisLink"),"${currentTransactorId}":getI18n().t("workflowEditor.process.handlerIDOfThisLink"),"${currentTransactorMainDepartmentId}":getI18n().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"),"${currentTransactorDirectSuperiorId}":getI18n().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorMainDepartmentId}":getI18n().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"),"${currentTransactor}":getI18n().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"),"${currentTransactorName }":getI18n().t("workflowEditor.process.NameOfCurrentHandler"),"${currentTransactorDepartment }":getI18n().t("workflowEditor.process.CurrentHandlerDepartment"),"${currentTransactorDepartmentId}":getI18n().t("workflowEditor.process.CurrentHandlerDepartmentID"),"${currentTransactorMainDepartment}":getI18n().t("workflowEditor.process.CurrentManagersPrincipalDepartment"),"${currentTransactorSuperiorDepartmentId}":getI18n().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"),"${currentTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"),"${currentTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.TopDepartmentOfCurrentHandler"),"${currentTransactorUpstageDepartmentId}":getI18n().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"),"${currentTransactorRole}":getI18n().t("workflowEditor.process.CurrentHandlerRole"),"${currentTransactorRoleId}":getI18n().t("workflowEditor.process.CurrentHandlerRoleID"),"${currentTransactorWorkGroup}":getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),"${currentTransactorWorkGroupId}":getI18n().t("workflowEditor.process.CurrentHandlerWorkingGroupID"),"${currentTransactorDirectSuperior}":getI18n().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorName}":getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"),"${currentTransactorDirectSuperiorDepartmentId}":getI18n().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"),"${currentTransactorDirectSuperiorMainDepartment}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"),"${currentTransactorDirectSuperiorRole}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorRole"),"${currentTransactorDirectSuperiorRoleId}":getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"),"${currentTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorWork"),"${currentTransactorDirectSuperiorWorkGroupId}":getI18n().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"),"${currentOperation}":getI18n().t("workflowEditor.process.operationsPerformedInThisPhase"),"${previousTransactorId}":getI18n().t("workflowEditor.process.handlerIDOfThePreviousLink"),"${previousTransactor}":getI18n().t("workflowEditor.process.lastLinkHandlerLogin"),"${previousTransactorName}":getI18n().t("workflowEditor.process.nameOfHandlerInThePreviousLink")},_sfc_main$C={name:"AutoFilledFields",components:{FormFields},props:{value:{type:Object,default:()=>({})}},data(){const e=[];if(this.value.field!==void 0&&this.value.field!==null)if(Array.isArray(this.value.field))this.value.field.map(t=>{const o={...t};typeof t.value=="string"&&t.value.indexOf("+")!==-1?o.value=t.value.split("+"):(o.value=[],o.value.push(t.value)),e.push(o)});else{const t={...this.value.field};typeof this.value.field.value=="string"&&this.value.field.value.indexOf("+")!==-1?t.value=this.value.field.value.split("+"):(t.value=[],t.value.push(this.value.field.value)),e.push(t)}return{tableData:e,currentRow:null,standardValues,showFormFields:!1}},computed:{keys(){return Object.keys(this.standardValues)}},watch:{},mounted(){this.tableData&&this.tableData.length>0&&this.setCurrentRow(this.tableData[0]),this.$watch("tableData",function(){const e=[];this.tableData.map(t=>{if(t.name!==""&&t.value.length>0){const o={...t};o.value=t.value.join("+"),e.push(o)}}),this.$emit("input",{field:e})},{deep:!0})},created(){},methods:{add(){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].name===""||this.tableData[t].value===""){this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty",{row:t+1}));return}const e={name:"",value:[],separator:"",fillType:"cover",fillTime:"after"};this.tableData.push(e),this.setCurrentRow(e)},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e;for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].name===this.currentRow.name){e=t;break}this.tableData.splice(e,1),e=e<=this.tableData.length-1?e:this.tableData.length-1,this.setCurrentRow(this.tableData[e])},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},checkName(e){!this.showFormFields&&e===""&&this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"))},checkValue(e){e.length===0&&this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"))},setField(e){e!==void 0&&(this.currentRow.name=e),this.showFormFields=!1},getFieldLabel(e){return getFormFieldLabel(e)}}},_hoisted_1$g={"slot-scope":"scope"},_hoisted_2$b={"slot-scope":"scope"},_hoisted_3$1={"slot-scope":"scope"},_hoisted_4$1={"slot-scope":"scope"},_hoisted_5={"slot-scope":"scope"};function _sfc_render$C(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-option"),c=Vue.resolveComponent("el-select"),m=Vue.resolveComponent("el-table"),w=Vue.resolveComponent("form-fields");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,{style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.tableData,border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.common.name"),width:"150"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$g,[Vue.createVNode(u,{value:r.getFieldLabel(e.scope.row.name),placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),readonly:"",onFocus:t[0]||(t[0]=_=>n.showFormFields=!0),onBlur:t[1]||(t[1]=_=>r.checkName(e.scope.row.name))},null,8,["value","placeholder"])])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"value",label:e.$t("workflowEditor.common.fieldValue"),width:"200"},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$b,[Vue.createVNode(c,{modelValue:e.scope.row.value,"onUpdate:modelValue":t[2]||(t[2]=_=>e.scope.row.value=_),multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onBlur:t[3]||(t[3]=_=>r.checkValue(e.scope.row.value))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r.keys,_=>(Vue.openBlock(),Vue.createBlock(d,{key:_,label:n.standardValues[_],value:_},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"separator",label:e.$t("workflowEditor.common.separator")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_3$1,[Vue.createVNode(u,{modelValue:e.scope.row.separator,"onUpdate:modelValue":t[4]||(t[4]=_=>e.scope.row.separator=_),modelModifiers:{trim:!0}},null,8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"fillType",label:e.$t("workflowEditor.common.fillInMethod")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_4$1,[Vue.createVNode(c,{modelValue:e.scope.row.fillType,"onUpdate:modelValue":t[5]||(t[5]=_=>e.scope.row.fillType=_)},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:e.$t("workflowEditor.common.cover"),value:"cover"},null,8,["label"]),Vue.createVNode(d,{label:e.$t("workflowEditor.common.append"),value:"append"},null,8,["label"]),Vue.createVNode(d,{label:e.$t("workflowEditor.common.insertToFront"),value:"prepend"},null,8,["label"])]),_:1},8,["modelValue"])])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"fillTime",label:e.$t("workflowEditor.common.fillInTime")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_5,[Vue.createVNode(c,{modelValue:e.scope.row.fillTime,"onUpdate:modelValue":t[6]||(t[6]=_=>e.scope.row.fillTime=_)},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:e.$t("workflowEditor.common.fillInBeforeHandling"),value:"before"},null,8,["label"]),Vue.createVNode(d,{label:e.$t("workflowEditor.common.fillInAfterHandling"),value:"after"},null,8,["label"])]),_:1},8,["modelValue"])])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.showFormFields?(Vue.openBlock(),Vue.createBlock(w,{key:0,onClose:r.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])}const AutoFilledFields=_export_sfc(_sfc_main$C,[["render",_sfc_render$C]]),_sfc_main$B={name:"Variables",props:{value:{type:Object,default:null}},data(){let e=[];return this.value.variable!==void 0&&(Array.isArray(this.value.variable)?e=this.value.variable:e.push(this.value.variable)),{variables:e,currentRow:null}},watch:{},mounted(){this.variables.length>0&&this.setCurrentRow(this.variables[0]),this.$watch("variables",function(){const e=this.variables.filter(t=>t.name!==""&&t.value!=="");this.$emit("input",{variable:e})},{deep:!0})},methods:{add(){for(let t=0;t<this.variables.length;t++)if(this.variables[t].name===""||this.variables[t].value===""){this.$alert(this.$t("workflowEditorMessage.variableNameOrValueOnLineCannotBeEmpty",{row:t+1}));return}const e={name:"",value:""};this.variables.push(e),this.setCurrentRow(e)},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e;for(let t=0;t<this.variables.length;t++)if(this.variables[t].name===this.currentRow.name){e=t;break}this.variables.splice(e,1),e=e<=this.variables.length-1?e:this.variables.length-1,this.setCurrentRow(this.variables[e])},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},checkName(e){e===""&&this.$alert(this.$t("workflowEditorMessage.variableNameCannotBeEmpty"))},checkValue(e){e===""&&this.$alert(this.$t("workflowEditorMessage.variableValueCannotBeEmpty"))}}},_hoisted_1$f={"slot-scope":"scope"},_hoisted_2$a={"slot-scope":"scope"};function _sfc_render$B(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(d,{ref:"table",data:n.variables,border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.common.variableName")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$f,[Vue.createVNode(u,{modelValue:e.scope.row.name,"onUpdate:modelValue":t[0]||(t[0]=c=>e.scope.row.name=c),modelModifiers:{trim:!0},placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),onBlur:t[1]||(t[1]=c=>r.checkName(e.scope.row.name))},null,8,["modelValue","placeholder"])])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"value",label:e.$t("workflowEditor.common.variableValue")},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$a,[Vue.createVNode(u,{modelValue:e.scope.row.value,"onUpdate:modelValue":t[2]||(t[2]=c=>e.scope.row.value=c),modelModifiers:{trim:!0},placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),onBlur:t[3]||(t[3]=c=>r.checkValue(e.scope.row.value))},null,8,["modelValue","placeholder"])])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])])}const Variables=_export_sfc(_sfc_main$B,[["render",_sfc_render$B]]),_sfc_main$A={name:"Events",props:{value:{type:Object,default:null}},data(){const e={};return e.beforeSubmitEnabled=!1,e.beforeSubmit={},this.value.beforeSubmit&&(e.beforeSubmitEnabled=!0,e.beforeSubmit={...this.value.beforeSubmit}),e.afterComplete=this.value.afterComplete,{formModel:e}},mounted(){this.$watch("formModel",function(e,t){const o={};this.formModel.beforeSubmitEnabled&&(o.beforeSubmit={...this.formModel.beforeSubmit}),o.afterComplete=this.formModel.afterComplete,this.$emit("input",o)},{deep:!0})}},_hoisted_1$e={key:0};function _sfc_render$A(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(u,{model:n.formModel,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.beforeSubmission")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.beforeSubmitEnabled,"onUpdate:modelValue":t[0]||(t[0]=d=>n.formModel.beforeSubmitEnabled=d)},null,8,["modelValue"])]),_:1},8,["label"]),n.formModel.beforeSubmitEnabled?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$e,[Vue.createVNode(s,{label:e.$t("workflowEditor.task.executionURL")},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.formModel.beforeSubmit.url,"onUpdate:modelValue":t[1]||(t[1]=d=>n.formModel.beforeSubmit.url=d)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.errorMessage")},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.formModel.beforeSubmit.errorMessage,"onUpdate:modelValue":t[2]||(t[2]=d=>n.formModel.beforeSubmit.errorMessage=d)},null,8,["modelValue"])]),_:1},8,["label"])])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("workflowEditor.task.afterSubmission")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.afterComplete,"onUpdate:modelValue":t[3]||(t[3]=d=>n.formModel.afterComplete=d)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const Events$2=_export_sfc(_sfc_main$A,[["render",_sfc_render$A]]),_sfc_main$z={name:"CommonNoticeTool",props:{label:{type:String,default:null},value:{type:String,default:null},customMsg:{type:String,default:null}},data(){let e=[];this.value&&this.value!==""&&this.value!==null&&(e=this.value.split(","));let t="";return this.customMsg&&this.customMsg!==""&&this.customMsg!==null&&(t=this.customMsg),{tools:e,myCustomMsg:t}},watch:{tools(e){this.$emit("input",this.tools.join(","))},myCustomMsg(e){this.$emit("input-msg",this.myCustomMsg)}}};function _sfc_render$z(e,t,o,i,n,r){const l=Vue.resolveComponent("el-checkbox"),s=Vue.resolveComponent("el-checkbox-group"),a=Vue.resolveComponent("el-form-item"),u=Vue.resolveComponent("el-input");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(a,{label:o.label},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.tools,"onUpdate:modelValue":t[0]||(t[0]=d=>n.tools=d)},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"mail"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.mail")),1)]),_:1}),Vue.createVNode(l,{label:"custom"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.custom")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n.tools.indexOf("custom")>=0?(Vue.openBlock(),Vue.createBlock(a,{key:0,label:e.$t("workflowEditor.common.customMsg")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.myCustomMsg,"onUpdate:modelValue":t[1]||(t[1]=d=>n.myCustomMsg=d)},null,8,["modelValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0)])}const CommonNoticeTool=_export_sfc(_sfc_main$z,[["render",_sfc_render$z]]),reminder_vue_vue_type_style_index_0_scoped_29cbab2a_lang="",_sfc_main$y={name:"Reminder",components:{CommonNoticeTool,CommonUserCondition,SelectMailTemplates},props:{value:{type:[Object,String],default:null}},data(){let e=!1,t=!1,o={dueDate:1,dueTimeUnit:"day",repeat:1,containTransferUser:!1,containNoticeUser:!1,remindType:"mail",timeUnit:"day",remindTimes:0,noticeType:"",noticeUserCondition:"",transferUserCondition:""};return this.value!==null&&this.value!==void 0&&this.value!==""&&(o=this.value,e=!0,this.value.remindTimes>0&&(t=!0),o.dueTimeUnit||(o.dueTimeUnit="day")),{showReminder:e,showNotice:t,model:o,showMailTemplateFlag:!1,baseURL:"",optionUrl:"",multiSelectData:[],options:{showColumns:"code,name"}}},watch:{showReminder(e){e?this.$emit("input",this.model):this.$emit("input",null)},showNotice(e){e?this.$emit("input",this.model):this.$emit("input",{remindType:this.model.remindType,dueDate:this.model.dueDate,dueTimeUnit:this.model.dueTimeUnit,repeat:this.model.repeat,timeUnit:this.model.timeUnit,remindTimes:0,noticeType:"",noticeUserCondition:"",containTransferUser:!1,transferUserCondition:"",containNoticeUser:!1})}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.optionUrl="/bs/email-templates/list/0",this.$watch("model",function(e,t){let o=null;this.showReminder&&(o=this.model,o.dueTimeUnit||(o.dueTimeUnit="day")),console.log(o),this.$emit("input",o)},{deep:!0})},methods:{setMailTemplateCode(e){this.model.noticeMailTemplateCode=e},selectData(e,t){this.multiSelectData=e},setReminderCustomMsg(e){this.model.reminderCustomMsg=e},setNoticeCustomMsg(e){this.model.noticeCustomMsg=e}}},_hoisted_1$d={key:0},_hoisted_2$9={key:1};function _sfc_render$y(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("common-notice-tool"),u=Vue.resolveComponent("select-mail-templates"),d=Vue.resolveComponent("el-input-number"),c=Vue.resolveComponent("el-option"),m=Vue.resolveComponent("el-select"),w=Vue.resolveComponent("el-radio"),_=Vue.resolveComponent("el-checkbox"),b=Vue.resolveComponent("common-user-condition"),E=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(E,{model:n.model,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.needToBeUrged")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.showReminder,"onUpdate:modelValue":t[0]||(t[0]=f=>n.showReminder=f)},null,8,["modelValue"])]),_:1},8,["label"]),n.showReminder?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$d,[Vue.createVNode(a,{modelValue:n.model.remindType,"onUpdate:modelValue":t[1]||(t[1]=f=>n.model.remindType=f),label:e.$t("workflowEditor.task.urgingMethod"),"custom-msg":n.model.reminderCustomMsg,onInputMsg:r.setReminderCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),n.model.remindType&&n.model.remindType.length>0&&n.model.remindType.indexOf("mail")!==-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.model.noticeMailTemplateCode,"onUpdate:modelValue":t[2]||(t[2]=f=>n.model.noticeMailTemplateCode=f),onSetValue:r.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("workflowEditor.task.timeLimitForHandling"),size:"mini"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.model.dueDate,"onUpdate:modelValue":t[3]||(t[3]=f=>n.model.dueDate=f),"controls-position":"right",min:1,max:30,style:{width:"90px"}},null,8,["modelValue"]),Vue.createVNode(m,{modelValue:n.model.dueTimeUnit,"onUpdate:modelValue":t[4]||(t[4]=f=>n.model.dueTimeUnit=f),style:{width:"70px"}},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.task.day"),value:"day"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.task.hour"),value:"hour"},null,8,["label"])]),_:1},8,["modelValue"]),Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.task.urgingInterval")),1),Vue.createVNode(d,{modelValue:n.model.repeat,"onUpdate:modelValue":t[5]||(t[5]=f=>n.model.repeat=f),"controls-position":"right",min:1,max:30,style:{width:"90px"}},null,8,["modelValue"]),Vue.createVNode(m,{modelValue:n.model.timeUnit,"onUpdate:modelValue":t[6]||(t[6]=f=>n.model.timeUnit=f),style:{width:"70px"}},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.task.day"),value:"day"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.task.hour"),value:"hour"},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:n.showNotice,"onUpdate:modelValue":t[7]||(t[7]=f=>n.showNotice=f),label:!1},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.alwaysUrging")),1)]),_:1},8,["modelValue"]),Vue.createVNode(w,{modelValue:n.showNotice,"onUpdate:modelValue":t[8]||(t[8]=f=>n.showNotice=f),label:!0},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.limitedUrging")),1)]),_:1},8,["modelValue"])]),_:1}),n.showNotice?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$9,[Vue.createVNode(s,{label:e.$t("workflowEditor.task.timesOfUrging"),size:"mini"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.model.remindTimes,"onUpdate:modelValue":t[9]||(t[9]=f=>n.model.remindTimes=f),"controls-position":"right",min:1,max:99,style:{width:"90px"}},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{modelValue:n.model.noticeType,"onUpdate:modelValue":t[10]||(t[10]=f=>n.model.noticeType=f),label:e.$t("workflowEditor.common.notificationMethod"),"custom-msg":n.model.noticeCustomMsg,onInputMsg:r.setNoticeCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),Vue.createVNode(s,{label:e.$t("workflowEditor.common.notifyPersonnel"),style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:n.model.containTransferUser,"onUpdate:modelValue":t[11]||(t[11]=f=>n.model.containTransferUser=f)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.includingHandoverPersonnel")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{"label-width":"0"},{default:Vue.withCtx(()=>[Vue.createVNode(b,{modelValue:n.model.noticeUserCondition,"onUpdate:modelValue":t[12]||(t[12]=f=>n.model.noticeUserCondition=f)},null,8,["modelValue"])]),_:1}),Vue.createVNode(s,{label:e.$t("workflowEditor.task.handoverPersonnel"),style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:n.model.containNoticeUser,"onUpdate:modelValue":t[13]||(t[13]=f=>n.model.containNoticeUser=f)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.includeNotifyPeople")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{"label-width":"0"},{default:Vue.withCtx(()=>[Vue.createVNode(b,{modelValue:n.model.transferUserCondition,"onUpdate:modelValue":t[14]||(t[14]=f=>n.model.transferUserCondition=f)},null,8,["modelValue"])]),_:1})])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const Reminder=_export_sfc(_sfc_main$y,[["render",_sfc_render$y],["__scopeId","data-v-29cbab2a"]]),_sfc_main$x={name:"NoticeReminder",components:{Reminder,CommonNoticeTool,SelectMailTemplates},props:{reminderValue:{type:[Object,String],default:null},taskNoticeValue:{type:Object,default:null}},data(){let e={};this.reminderValue!==null&&this.reminderValue!==void 0&&this.reminderValue!==""&&(e=this.reminderValue);let t={};return this.taskNoticeValue!==null&&this.taskNoticeValue!==void 0&&this.taskNoticeValue!==""&&(t=this.taskNoticeValue),{reminderObj:e,noticeObj:t}},methods:{setMailTemplateCode(e){this.noticeObj.mailTemplateCode=e},setCustomMsg(e){this.noticeObj.customMsg=e}}},_hoisted_1$c={slot:"header",class:"clearfix"},_hoisted_2$8={slot:"header",class:"clearfix"};function _sfc_render$x(e,t,o,i,n,r){const l=Vue.resolveComponent("common-notice-tool"),s=Vue.resolveComponent("select-mail-templates"),a=Vue.resolveComponent("el-form-item"),u=Vue.resolveComponent("el-form"),d=Vue.resolveComponent("el-card"),c=Vue.resolveComponent("reminder");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(d,{class:"box-card"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$c,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.common.taskNotice")),1)]),Vue.createVNode(u,{model:n.noticeObj,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.noticeObj.informType,"onUpdate:modelValue":t[0]||(t[0]=m=>n.noticeObj.informType=m),label:e.$t("workflowEditor.common.notificationMethod"),"custom-msg":n.noticeObj.customMsg,onInputMsg:r.setCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),Vue.createVNode(a,{label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.noticeObj.mailTemplateCode,"onUpdate:modelValue":t[1]||(t[1]=m=>n.noticeObj.mailTemplateCode=m),onSetValue:r.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),Vue.createVNode(d,{class:"box-card",style:{"margin-top":"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$8,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.common.reminderNotice")),1)]),Vue.createVNode(c,{modelValue:n.reminderObj,"onUpdate:modelValue":t[2]||(t[2]=m=>n.reminderObj=m)},null,8,["modelValue"])]),_:1})])}const NoticeReminder=_export_sfc(_sfc_main$x,[["render",_sfc_render$x]]),humanTask_vue_vue_type_style_index_0_scoped_36798204_lang="",_sfc_main$w={name:"HumanTaskPropertiesEditor",components:{BasicProperties:BasicProperties$5,TransactorSettings,PermissionSettings:PermissionSettings$2,AutoFilledFields,Events:Events$2,Variables,NoticeReminder},props:{model:{type:Object,default:null}},data(){return console.log(this.model),this.model.ref.taskNotice||(this.model.ref.taskNotice={}),{activeTab:"basicProperties"}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.id",function(e,t){this.model.id=e}),this.$watch("model.ref.attr.name",function(e,t){this.model.name=e})},methods:{handleClick(e,t){}}};function _sfc_render$w(e,t,o,i,n,r){const l=Vue.resolveComponent("basic-properties"),s=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("transactor-settings"),u=Vue.resolveComponent("permission-settings"),d=Vue.resolveComponent("auto-filled-fields"),c=Vue.resolveComponent("notice-reminder"),m=Vue.resolveComponent("events"),w=Vue.resolveComponent("variables"),_=Vue.resolveComponent("el-tabs"),b=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(b,{visible:"",top:"10vh",title:e.$t("workflowEditor.task.linkAttribute"),center:!0,"append-to-body":"","custom-class":"properties-editor",onOpen:t[5]||(t[5]=E=>e.$emit("open")),onOpend:t[6]||(t[6]=E=>e.$emit("opend")),onClose:t[7]||(t[7]=E=>e.$emit("close")),onClosed:t[8]||(t[8]=E=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:n.activeTab,"onUpdate:modelValue":t[4]||(t[4]=E=>n.activeTab=E),type:"border-card",onTabClick:r.handleClick},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{id:o.model.ref.attr.id,name:o.model.ref.attr.name,model:o.model.ref.basicProperties},null,8,["id","name","model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.settingOfHandler"),name:"transactors"},{default:Vue.withCtx(()=>[Vue.createVNode(a,{model:o.model.ref.transactorSettings},null,8,["model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.permissionSettings"),name:"permissions"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.ref.permissionSettings,"onUpdate:modelValue":t[0]||(t[0]=E=>o.model.ref.permissionSettings=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.autoFillInFieldSettings"),name:"autoFilledFields"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:o.model.ref.autoFilledFields,"onUpdate:modelValue":t[1]||(t[1]=E=>o.model.ref.autoFilledFields=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.reminderSettings"),name:"reminders"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{"reminder-value":o.model.ref.reminder,"task-notice-value":o.model.ref.taskNotice},null,8,["reminder-value","task-notice-value"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.eventProcessing"),name:"events"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:o.model.ref.events,"onUpdate:modelValue":t[2]||(t[2]=E=>o.model.ref.events=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.linkVariable"),name:"variables"},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:o.model.ref.variables,"onUpdate:modelValue":t[3]||(t[3]=E=>o.model.ref.variables=E)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1},8,["title"])}const HumanTaskPropertiesEditor=_export_sfc(_sfc_main$w,[["render",_sfc_render$w],["__scopeId","data-v-36798204"]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),o}var sax$1={};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var string_decoder={},safeBuffer={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,t){var o=require$$0,i=o.Buffer;function n(l,s){for(var a in l)s[a]=l[a]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=r);function r(l,s,a){return i(l,s,a)}r.prototype=Object.create(i.prototype),n(i,r),r.from=function(l,s,a){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,s,a)},r.alloc=function(l,s,a){if(typeof l!="number")throw new TypeError("Argument must be a number");var u=i(l);return s!==void 0?typeof a=="string"?u.fill(s,a):u.fill(s):u.fill(0),u},r.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},r.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(l)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,t=e.isEncoding||function(f){switch(f=""+f,f&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(f){if(!f)return"utf8";for(var p;;)switch(f){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return f;default:if(p)return;f=(""+f).toLowerCase(),p=!0}}function i(f){var p=o(f);if(typeof p!="string"&&(e.isEncoding===t||!t(f)))throw new Error("Unknown encoding: "+f);return p||f}string_decoder.StringDecoder=n;function n(f){this.encoding=i(f);var p;switch(this.encoding){case"utf16le":this.text=c,this.end=m,p=4;break;case"utf8":this.fillLast=a,p=4;break;case"base64":this.text=w,this.end=_,p=3;break;default:this.write=b,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}n.prototype.write=function(f){if(f.length===0)return"";var p,g;if(this.lastNeed){if(p=this.fillLast(f),p===void 0)return"";g=this.lastNeed,this.lastNeed=0}else g=0;return g<f.length?p?p+this.text(f,g):this.text(f,g):p||""},n.prototype.end=d,n.prototype.text=u,n.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length};function r(f){return f<=127?0:f>>5===6?2:f>>4===14?3:f>>3===30?4:f>>6===2?-1:-2}function l(f,p,g){var v=p.length-1;if(v<g)return 0;var T=r(p[v]);return T>=0?(T>0&&(f.lastNeed=T-1),T):--v<g||T===-2?0:(T=r(p[v]),T>=0?(T>0&&(f.lastNeed=T-2),T):--v<g||T===-2?0:(T=r(p[v]),T>=0?(T>0&&(T===2?T=0:f.lastNeed=T-3),T):0))}function s(f,p,g){if((p[0]&192)!==128)return f.lastNeed=0,"�";if(f.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return f.lastNeed=1,"�";if(f.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return f.lastNeed=2,"�"}}function a(f){var p=this.lastTotal-this.lastNeed,g=s(this,f);if(g!==void 0)return g;if(this.lastNeed<=f.length)return f.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,p,0,f.length),this.lastNeed-=f.length}function u(f,p){var g=l(this,f,p);if(!this.lastNeed)return f.toString("utf8",p);this.lastTotal=g;var v=f.length-(g-this.lastNeed);return f.copy(this.lastChar,0,v),f.toString("utf8",p,v)}function d(f){var p=f&&f.length?this.write(f):"";return this.lastNeed?p+"�":p}function c(f,p){if((f.length-p)%2===0){var g=f.toString("utf16le",p);if(g){var v=g.charCodeAt(g.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],g.slice(0,-1)}return g}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",p,f.length-1)}function m(f){var p=f&&f.length?this.write(f):"";if(this.lastNeed){var g=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,g)}return p}function w(f,p){var g=(f.length-p)%3;return g===0?f.toString("base64",p):(this.lastNeed=3-g,this.lastTotal=3,g===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",p,f.length-g))}function _(f){var p=f&&f.length?this.write(f):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function b(f){return f.toString(this.encoding)}function E(f){return f&&f.length?this.write(f):""}return string_decoder}(function(e){(function(t){t.parser=function(V,h){return new i(V,h)},t.SAXParser=i,t.SAXStream=d,t.createStream=u,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(V,h){if(!(this instanceof i))return new i(V,h);var M=this;r(M),M.q=M.c="",M.bufferCheckPosition=t.MAX_BUFFER_LENGTH,M.opt=h||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!V,M.noscript=!!(V||M.opt.noscript),M.state=y.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(b)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),H(M,"onready")}Object.create||(Object.create=function(V){function h(){}h.prototype=V;var M=new h;return M}),Object.keys||(Object.keys=function(V){var h=[];for(var M in V)V.hasOwnProperty(M)&&h.push(M);return h});function n(V){for(var h=Math.max(t.MAX_BUFFER_LENGTH,10),M=0,S=0,L=o.length;S<L;S++){var G=V[o[S]].length;if(G>h)switch(o[S]){case"textNode":j(V);break;case"cdata":$(V,"oncdata",V.cdata),V.cdata="";break;case"script":$(V,"onscript",V.script),V.script="";break;default:ne(V,"Max buffer length exceeded: "+o[S])}M=Math.max(M,G)}var k=t.MAX_BUFFER_LENGTH-M;V.bufferCheckPosition=k+V.position}function r(V){for(var h=0,M=o.length;h<M;h++)V[o[h]]=""}function l(V){j(V),V.cdata!==""&&($(V,"oncdata",V.cdata),V.cdata=""),V.script!==""&&($(V,"onscript",V.script),V.script="")}i.prototype={end:function(){ee(this)},write:le,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){l(this)}};var s;try{s=require$$0.Stream}catch{s=function(){}}s||(s=function(){});var a=t.EVENTS.filter(function(V){return V!=="error"&&V!=="end"});function u(V,h){return new d(V,h)}function d(V,h){if(!(this instanceof d))return new d(V,h);s.apply(this),this._parser=new i(V,h),this.writable=!0,this.readable=!0;var M=this;this._parser.onend=function(){M.emit("end")},this._parser.onerror=function(S){M.emit("error",S),M._parser.error=null},this._decoder=null,a.forEach(function(S){Object.defineProperty(M,"on"+S,{get:function(){return M._parser["on"+S]},set:function(L){if(!L)return M.removeAllListeners(S),M._parser["on"+S]=L,L;M.on(S,L)},enumerable:!0,configurable:!1})})}d.prototype=Object.create(s.prototype,{constructor:{value:d}}),d.prototype.write=function(V){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(V)){if(!this._decoder){var h=requireString_decoder().StringDecoder;this._decoder=new h("utf8")}V=this._decoder.write(V)}return this._parser.write(V.toString()),this.emit("data",V),!0},d.prototype.end=function(V){return V&&V.length&&this.write(V),this._parser.end(),!0},d.prototype.on=function(V,h){var M=this;return!M._parser["on"+V]&&a.indexOf(V)!==-1&&(M._parser["on"+V]=function(){var S=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);S.splice(0,0,V),M.emit.apply(M,S)}),s.prototype.on.call(M,V,h)};var c="[CDATA[",m="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",b={xml:w,xmlns:_},E=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function v(V){return V===" "||V===`
|
|
26
|
+
`||V==="\r"||V===" "}function T(V){return V==='"'||V==="'"}function O(V){return V===">"||v(V)}function N(V,h){return V.test(h)}function P(V,h){return!N(V,h)}var y=0;t.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(V){var h=t.ENTITIES[V],M=typeof h=="number"?String.fromCharCode(h):h;t.ENTITIES[V]=M});for(var R in t.STATE)t.STATE[t.STATE[R]]=R;y=t.STATE;function H(V,h,M){V[h]&&V[h](M)}function $(V,h,M){V.textNode&&j(V),H(V,h,M)}function j(V){V.textNode=te(V.opt,V.textNode),V.textNode&&H(V,"ontext",V.textNode),V.textNode=""}function te(V,h){return V.trim&&(h=h.trim()),V.normalize&&(h=h.replace(/\s+/g," ")),h}function ne(V,h){return j(V),V.trackPosition&&(h+=`
|
|
27
|
+
Line: `+V.line+`
|
|
28
|
+
Column: `+V.column+`
|
|
29
|
+
Char: `+V.c),h=new Error(h),V.error=h,H(V,"onerror",h),V}function ee(V){return V.sawRoot&&!V.closedRoot&&U(V,"Unclosed root tag"),V.state!==y.BEGIN&&V.state!==y.BEGIN_WHITESPACE&&V.state!==y.TEXT&&ne(V,"Unexpected end"),j(V),V.c="",V.closed=!0,H(V,"onend"),i.call(V,V.strict,V.opt),V}function U(V,h){if(typeof V!="object"||!(V instanceof i))throw new Error("bad call to strictFail");V.strict&&ne(V,h)}function K(V){V.strict||(V.tagName=V.tagName[V.looseCase]());var h=V.tags[V.tags.length-1]||V,M=V.tag={name:V.tagName,attributes:{}};V.opt.xmlns&&(M.ns=h.ns),V.attribList.length=0,$(V,"onopentagstart",M)}function J(V,h){var M=V.indexOf(":"),S=M<0?["",V]:V.split(":"),L=S[0],G=S[1];return h&&V==="xmlns"&&(L="xmlns",G=""),{prefix:L,local:G}}function q(V){if(V.strict||(V.attribName=V.attribName[V.looseCase]()),V.attribList.indexOf(V.attribName)!==-1||V.tag.attributes.hasOwnProperty(V.attribName)){V.attribName=V.attribValue="";return}if(V.opt.xmlns){var h=J(V.attribName,!0),M=h.prefix,S=h.local;if(M==="xmlns")if(S==="xml"&&V.attribValue!==w)U(V,"xml: prefix must be bound to "+w+`
|
|
30
|
+
Actual: `+V.attribValue);else if(S==="xmlns"&&V.attribValue!==_)U(V,"xmlns: prefix must be bound to "+_+`
|
|
31
|
+
Actual: `+V.attribValue);else{var L=V.tag,G=V.tags[V.tags.length-1]||V;L.ns===G.ns&&(L.ns=Object.create(G.ns)),L.ns[S]=V.attribValue}V.attribList.push([V.attribName,V.attribValue])}else V.tag.attributes[V.attribName]=V.attribValue,$(V,"onattribute",{name:V.attribName,value:V.attribValue});V.attribName=V.attribValue=""}function Q(V,h){if(V.opt.xmlns){var M=V.tag,S=J(V.tagName);M.prefix=S.prefix,M.local=S.local,M.uri=M.ns[S.prefix]||"",M.prefix&&!M.uri&&(U(V,"Unbound namespace prefix: "+JSON.stringify(V.tagName)),M.uri=S.prefix);var L=V.tags[V.tags.length-1]||V;M.ns&&L.ns!==M.ns&&Object.keys(M.ns).forEach(function(me){$(V,"onopennamespace",{prefix:me,uri:M.ns[me]})});for(var G=0,k=V.attribList.length;G<k;G++){var C=V.attribList[G],I=C[0],A=C[1],x=J(I,!0),B=x.prefix,re=x.local,ie=B===""?"":M.ns[B]||"",ce={name:I,value:A,prefix:B,local:re,uri:ie};B&&B!=="xmlns"&&!ie&&(U(V,"Unbound namespace prefix: "+JSON.stringify(B)),ce.uri=B),V.tag.attributes[I]=ce,$(V,"onattribute",ce)}V.attribList.length=0}V.tag.isSelfClosing=!!h,V.sawRoot=!0,V.tags.push(V.tag),$(V,"onopentag",V.tag),h||(!V.noscript&&V.tagName.toLowerCase()==="script"?V.state=y.SCRIPT:V.state=y.TEXT,V.tag=null,V.tagName=""),V.attribName=V.attribValue="",V.attribList.length=0}function z(V){if(!V.tagName){U(V,"Weird empty close tag."),V.textNode+="</>",V.state=y.TEXT;return}if(V.script){if(V.tagName!=="script"){V.script+="</"+V.tagName+">",V.tagName="",V.state=y.SCRIPT;return}$(V,"onscript",V.script),V.script=""}var h=V.tags.length,M=V.tagName;V.strict||(M=M[V.looseCase]());for(var S=M;h--;){var L=V.tags[h];if(L.name!==S)U(V,"Unexpected close tag");else break}if(h<0){U(V,"Unmatched closing tag: "+V.tagName),V.textNode+="</"+V.tagName+">",V.state=y.TEXT;return}V.tagName=M;for(var G=V.tags.length;G-- >h;){var k=V.tag=V.tags.pop();V.tagName=V.tag.name,$(V,"onclosetag",V.tagName);var C={};for(var I in k.ns)C[I]=k.ns[I];var A=V.tags[V.tags.length-1]||V;V.opt.xmlns&&k.ns!==A.ns&&Object.keys(k.ns).forEach(function(x){var B=k.ns[x];$(V,"onclosenamespace",{prefix:x,uri:B})})}h===0&&(V.closedRoot=!0),V.tagName=V.attribValue=V.attribName="",V.attribList.length=0,V.state=y.TEXT}function se(V){var h=V.entity,M=h.toLowerCase(),S,L="";return V.ENTITIES[h]?V.ENTITIES[h]:V.ENTITIES[M]?V.ENTITIES[M]:(h=M,h.charAt(0)==="#"&&(h.charAt(1)==="x"?(h=h.slice(2),S=parseInt(h,16),L=S.toString(16)):(h=h.slice(1),S=parseInt(h,10),L=S.toString(10))),h=h.replace(/^0+/,""),isNaN(S)||L.toLowerCase()!==h?(U(V,"Invalid character entity"),"&"+V.entity+";"):String.fromCodePoint(S))}function Z(V,h){h==="<"?(V.state=y.OPEN_WAKA,V.startTagPosition=V.position):v(h)||(U(V,"Non-whitespace before first tag."),V.textNode=h,V.state=y.TEXT)}function oe(V,h){var M="";return h<V.length&&(M=V.charAt(h)),M}function le(V){var h=this;if(this.error)throw this.error;if(h.closed)return ne(h,"Cannot write after close. Assign an onready handler.");if(V===null)return ee(h);typeof V=="object"&&(V=V.toString());for(var M=0,S="";S=oe(V,M++),h.c=S,!!S;)switch(h.trackPosition&&(h.position++,S===`
|
|
32
|
+
`?(h.line++,h.column=0):h.column++),h.state){case y.BEGIN:if(h.state=y.BEGIN_WHITESPACE,S==="\uFEFF")continue;Z(h,S);continue;case y.BEGIN_WHITESPACE:Z(h,S);continue;case y.TEXT:if(h.sawRoot&&!h.closedRoot){for(var L=M-1;S&&S!=="<"&&S!=="&";)S=oe(V,M++),S&&h.trackPosition&&(h.position++,S===`
|
|
33
|
+
`?(h.line++,h.column=0):h.column++);h.textNode+=V.substring(L,M-1)}S==="<"&&!(h.sawRoot&&h.closedRoot&&!h.strict)?(h.state=y.OPEN_WAKA,h.startTagPosition=h.position):(!v(S)&&(!h.sawRoot||h.closedRoot)&&U(h,"Text data outside of root node."),S==="&"?h.state=y.TEXT_ENTITY:h.textNode+=S);continue;case y.SCRIPT:S==="<"?h.state=y.SCRIPT_ENDING:h.script+=S;continue;case y.SCRIPT_ENDING:S==="/"?h.state=y.CLOSE_TAG:(h.script+="<"+S,h.state=y.SCRIPT);continue;case y.OPEN_WAKA:if(S==="!")h.state=y.SGML_DECL,h.sgmlDecl="";else if(!v(S))if(N(E,S))h.state=y.OPEN_TAG,h.tagName=S;else if(S==="/")h.state=y.CLOSE_TAG,h.tagName="";else if(S==="?")h.state=y.PROC_INST,h.procInstName=h.procInstBody="";else{if(U(h,"Unencoded <"),h.startTagPosition+1<h.position){var G=h.position-h.startTagPosition;S=new Array(G).join(" ")+S}h.textNode+="<"+S,h.state=y.TEXT}continue;case y.SGML_DECL:(h.sgmlDecl+S).toUpperCase()===c?($(h,"onopencdata"),h.state=y.CDATA,h.sgmlDecl="",h.cdata=""):h.sgmlDecl+S==="--"?(h.state=y.COMMENT,h.comment="",h.sgmlDecl=""):(h.sgmlDecl+S).toUpperCase()===m?(h.state=y.DOCTYPE,(h.doctype||h.sawRoot)&&U(h,"Inappropriately located doctype declaration"),h.doctype="",h.sgmlDecl=""):S===">"?($(h,"onsgmldeclaration",h.sgmlDecl),h.sgmlDecl="",h.state=y.TEXT):(T(S)&&(h.state=y.SGML_DECL_QUOTED),h.sgmlDecl+=S);continue;case y.SGML_DECL_QUOTED:S===h.q&&(h.state=y.SGML_DECL,h.q=""),h.sgmlDecl+=S;continue;case y.DOCTYPE:S===">"?(h.state=y.TEXT,$(h,"ondoctype",h.doctype),h.doctype=!0):(h.doctype+=S,S==="["?h.state=y.DOCTYPE_DTD:T(S)&&(h.state=y.DOCTYPE_QUOTED,h.q=S));continue;case y.DOCTYPE_QUOTED:h.doctype+=S,S===h.q&&(h.q="",h.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:h.doctype+=S,S==="]"?h.state=y.DOCTYPE:T(S)&&(h.state=y.DOCTYPE_DTD_QUOTED,h.q=S);continue;case y.DOCTYPE_DTD_QUOTED:h.doctype+=S,S===h.q&&(h.state=y.DOCTYPE_DTD,h.q="");continue;case y.COMMENT:S==="-"?h.state=y.COMMENT_ENDING:h.comment+=S;continue;case y.COMMENT_ENDING:S==="-"?(h.state=y.COMMENT_ENDED,h.comment=te(h.opt,h.comment),h.comment&&$(h,"oncomment",h.comment),h.comment=""):(h.comment+="-"+S,h.state=y.COMMENT);continue;case y.COMMENT_ENDED:S!==">"?(U(h,"Malformed comment"),h.comment+="--"+S,h.state=y.COMMENT):h.state=y.TEXT;continue;case y.CDATA:S==="]"?h.state=y.CDATA_ENDING:h.cdata+=S;continue;case y.CDATA_ENDING:S==="]"?h.state=y.CDATA_ENDING_2:(h.cdata+="]"+S,h.state=y.CDATA);continue;case y.CDATA_ENDING_2:S===">"?(h.cdata&&$(h,"oncdata",h.cdata),$(h,"onclosecdata"),h.cdata="",h.state=y.TEXT):S==="]"?h.cdata+="]":(h.cdata+="]]"+S,h.state=y.CDATA);continue;case y.PROC_INST:S==="?"?h.state=y.PROC_INST_ENDING:v(S)?h.state=y.PROC_INST_BODY:h.procInstName+=S;continue;case y.PROC_INST_BODY:if(!h.procInstBody&&v(S))continue;S==="?"?h.state=y.PROC_INST_ENDING:h.procInstBody+=S;continue;case y.PROC_INST_ENDING:S===">"?($(h,"onprocessinginstruction",{name:h.procInstName,body:h.procInstBody}),h.procInstName=h.procInstBody="",h.state=y.TEXT):(h.procInstBody+="?"+S,h.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:N(f,S)?h.tagName+=S:(K(h),S===">"?Q(h):S==="/"?h.state=y.OPEN_TAG_SLASH:(v(S)||U(h,"Invalid character in tag name"),h.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:S===">"?(Q(h,!0),z(h)):(U(h,"Forward-slash in opening tag not followed by >"),h.state=y.ATTRIB);continue;case y.ATTRIB:if(v(S))continue;S===">"?Q(h):S==="/"?h.state=y.OPEN_TAG_SLASH:N(E,S)?(h.attribName=S,h.attribValue="",h.state=y.ATTRIB_NAME):U(h,"Invalid attribute name");continue;case y.ATTRIB_NAME:S==="="?h.state=y.ATTRIB_VALUE:S===">"?(U(h,"Attribute without value"),h.attribValue=h.attribName,q(h),Q(h)):v(S)?h.state=y.ATTRIB_NAME_SAW_WHITE:N(f,S)?h.attribName+=S:U(h,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if(S==="=")h.state=y.ATTRIB_VALUE;else{if(v(S))continue;U(h,"Attribute without value"),h.tag.attributes[h.attribName]="",h.attribValue="",$(h,"onattribute",{name:h.attribName,value:""}),h.attribName="",S===">"?Q(h):N(E,S)?(h.attribName=S,h.state=y.ATTRIB_NAME):(U(h,"Invalid attribute name"),h.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(v(S))continue;T(S)?(h.q=S,h.state=y.ATTRIB_VALUE_QUOTED):(U(h,"Unquoted attribute value"),h.state=y.ATTRIB_VALUE_UNQUOTED,h.attribValue=S);continue;case y.ATTRIB_VALUE_QUOTED:if(S!==h.q){S==="&"?h.state=y.ATTRIB_VALUE_ENTITY_Q:h.attribValue+=S;continue}q(h),h.q="",h.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:v(S)?h.state=y.ATTRIB:S===">"?Q(h):S==="/"?h.state=y.OPEN_TAG_SLASH:N(E,S)?(U(h,"No whitespace between attributes"),h.attribName=S,h.attribValue="",h.state=y.ATTRIB_NAME):U(h,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!O(S)){S==="&"?h.state=y.ATTRIB_VALUE_ENTITY_U:h.attribValue+=S;continue}q(h),S===">"?Q(h):h.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(h.tagName)S===">"?z(h):N(f,S)?h.tagName+=S:h.script?(h.script+="</"+h.tagName,h.tagName="",h.state=y.SCRIPT):(v(S)||U(h,"Invalid tagname in closing tag"),h.state=y.CLOSE_TAG_SAW_WHITE);else{if(v(S))continue;P(E,S)?h.script?(h.script+="</"+S,h.state=y.SCRIPT):U(h,"Invalid tagname in closing tag."):h.tagName=S}continue;case y.CLOSE_TAG_SAW_WHITE:if(v(S))continue;S===">"?z(h):U(h,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var k,C;switch(h.state){case y.TEXT_ENTITY:k=y.TEXT,C="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:k=y.ATTRIB_VALUE_QUOTED,C="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:k=y.ATTRIB_VALUE_UNQUOTED,C="attribValue";break}if(S===";")if(h.opt.unparsedEntities){var I=se(h);h.entity="",h.state=k,h.write(I)}else h[C]+=se(h),h.entity="",h.state=k;else N(h.entity.length?g:p,S)?h.entity+=S:(U(h,"Invalid character in entity name"),h[C]+="&"+h.entity+S,h.entity="",h.state=k);continue;default:throw new Error(h,"Unknown state: "+h.state)}return h.position>=h.bufferCheckPosition&&n(h),h}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var V=String.fromCharCode,h=Math.floor,M=function(){var S=16384,L=[],G,k,C=-1,I=arguments.length;if(!I)return"";for(var A="";++C<I;){var x=Number(arguments[C]);if(!isFinite(x)||x<0||x>1114111||h(x)!==x)throw RangeError("Invalid code point: "+x);x<=65535?L.push(x):(x-=65536,G=(x>>10)+55296,k=x%1024+56320,L.push(G,k)),(C+1===I||L.length>S)&&(A+=V.apply(null,L),L.length=0)}return A};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(e)})(sax$1);var arrayHelper={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}},isArray$2=arrayHelper.isArray,optionsHelper={copyOptions:function(e){var t,o={};for(t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);return o},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!isArray$2(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}},sax=sax$1,helper$2=optionsHelper,isArray$1=arrayHelper.isArray,options,currentElement$1;function validateOptions$2(e){return options=helper$2.copyOptions(e),helper$2.ensureFlagExists("ignoreDeclaration",options),helper$2.ensureFlagExists("ignoreInstruction",options),helper$2.ensureFlagExists("ignoreAttributes",options),helper$2.ensureFlagExists("ignoreText",options),helper$2.ensureFlagExists("ignoreComment",options),helper$2.ensureFlagExists("ignoreCdata",options),helper$2.ensureFlagExists("ignoreDoctype",options),helper$2.ensureFlagExists("compact",options),helper$2.ensureFlagExists("alwaysChildren",options),helper$2.ensureFlagExists("addParent",options),helper$2.ensureFlagExists("trim",options),helper$2.ensureFlagExists("nativeType",options),helper$2.ensureFlagExists("nativeTypeAttributes",options),helper$2.ensureFlagExists("sanitize",options),helper$2.ensureFlagExists("instructionHasAttributes",options),helper$2.ensureFlagExists("captureSpacesBetweenElements",options),helper$2.ensureAlwaysArrayExists(options),helper$2.ensureKeyExists("declaration",options),helper$2.ensureKeyExists("instruction",options),helper$2.ensureKeyExists("attributes",options),helper$2.ensureKeyExists("text",options),helper$2.ensureKeyExists("comment",options),helper$2.ensureKeyExists("cdata",options),helper$2.ensureKeyExists("doctype",options),helper$2.ensureKeyExists("type",options),helper$2.ensureKeyExists("name",options),helper$2.ensureKeyExists("elements",options),helper$2.ensureKeyExists("parent",options),helper$2.checkFnExists("doctype",options),helper$2.checkFnExists("instruction",options),helper$2.checkFnExists("cdata",options),helper$2.checkFnExists("comment",options),helper$2.checkFnExists("text",options),helper$2.checkFnExists("instructionName",options),helper$2.checkFnExists("elementName",options),helper$2.checkFnExists("attributeName",options),helper$2.checkFnExists("attributeValue",options),helper$2.checkFnExists("attributes",options),options}function nativeType(e){var t=Number(e);if(!isNaN(t))return t;var o=e.toLowerCase();return o==="true"?!0:o==="false"?!1:e}function addField(e,t){var o;if(options.compact){if(!currentElement$1[options[e+"Key"]]&&(isArray$1(options.alwaysArray)?options.alwaysArray.indexOf(options[e+"Key"])!==-1:options.alwaysArray)&&(currentElement$1[options[e+"Key"]]=[]),currentElement$1[options[e+"Key"]]&&!isArray$1(currentElement$1[options[e+"Key"]])&&(currentElement$1[options[e+"Key"]]=[currentElement$1[options[e+"Key"]]]),e+"Fn"in options&&typeof t=="string"&&(t=options[e+"Fn"](t,currentElement$1)),e==="instruction"&&("instructionFn"in options||"instructionNameFn"in options)){for(o in t)if(t.hasOwnProperty(o))if("instructionFn"in options)t[o]=options.instructionFn(t[o],o,currentElement$1);else{var i=t[o];delete t[o],t[options.instructionNameFn(o,i,currentElement$1)]=i}}isArray$1(currentElement$1[options[e+"Key"]])?currentElement$1[options[e+"Key"]].push(t):currentElement$1[options[e+"Key"]]=t}else{currentElement$1[options.elementsKey]||(currentElement$1[options.elementsKey]=[]);var n={};if(n[options.typeKey]=e,e==="instruction"){for(o in t)if(t.hasOwnProperty(o))break;n[options.nameKey]="instructionNameFn"in options?options.instructionNameFn(o,t,currentElement$1):o,options.instructionHasAttributes?(n[options.attributesKey]=t[o][options.attributesKey],"instructionFn"in options&&(n[options.attributesKey]=options.instructionFn(n[options.attributesKey],o,currentElement$1))):("instructionFn"in options&&(t[o]=options.instructionFn(t[o],o,currentElement$1)),n[options.instructionKey]=t[o])}else e+"Fn"in options&&(t=options[e+"Fn"](t,currentElement$1)),n[options[e+"Key"]]=t;options.addParent&&(n[options.parentKey]=currentElement$1),currentElement$1[options.elementsKey].push(n)}}function manipulateAttributes(e){if("attributesFn"in options&&e&&(e=options.attributesFn(e,currentElement$1)),(options.trim||"attributeValueFn"in options||"attributeNameFn"in options||options.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(options.trim&&(e[t]=e[t].trim()),options.nativeTypeAttributes&&(e[t]=nativeType(e[t])),"attributeValueFn"in options&&(e[t]=options.attributeValueFn(e[t],t,currentElement$1)),"attributeNameFn"in options)){var o=e[t];delete e[t],e[options.attributeNameFn(t,e[t],currentElement$1)]=o}}return e}function onInstruction(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||options.instructionHasAttributes)){for(var o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=o.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=manipulateAttributes(t)}if(e.name.toLowerCase()==="xml"){if(options.ignoreDeclaration)return;currentElement$1[options.declarationKey]={},Object.keys(t).length&&(currentElement$1[options.declarationKey][options.attributesKey]=t),options.addParent&&(currentElement$1[options.declarationKey][options.parentKey]=currentElement$1)}else{if(options.ignoreInstruction)return;options.trim&&(e.body=e.body.trim());var n={};options.instructionHasAttributes&&Object.keys(t).length?(n[e.name]={},n[e.name][options.attributesKey]=t):n[e.name]=e.body,addField("instruction",n)}}function onStartElement(e,t){var o;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=manipulateAttributes(t),"elementNameFn"in options&&(e=options.elementNameFn(e,currentElement$1)),options.compact){if(o={},!options.ignoreAttributes&&t&&Object.keys(t).length){o[options.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(o[options.attributesKey][i]=t[i])}!(e in currentElement$1)&&(isArray$1(options.alwaysArray)?options.alwaysArray.indexOf(e)!==-1:options.alwaysArray)&&(currentElement$1[e]=[]),currentElement$1[e]&&!isArray$1(currentElement$1[e])&&(currentElement$1[e]=[currentElement$1[e]]),isArray$1(currentElement$1[e])?currentElement$1[e].push(o):currentElement$1[e]=o}else currentElement$1[options.elementsKey]||(currentElement$1[options.elementsKey]=[]),o={},o[options.typeKey]="element",o[options.nameKey]=e,!options.ignoreAttributes&&t&&Object.keys(t).length&&(o[options.attributesKey]=t),options.alwaysChildren&&(o[options.elementsKey]=[]),currentElement$1[options.elementsKey].push(o);o[options.parentKey]=currentElement$1,currentElement$1=o}function onText(e){options.ignoreText||!e.trim()&&!options.captureSpacesBetweenElements||(options.trim&&(e=e.trim()),options.nativeType&&(e=nativeType(e)),options.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),addField("text",e))}function onComment(e){options.ignoreComment||(options.trim&&(e=e.trim()),addField("comment",e))}function onEndElement(e){var t=currentElement$1[options.parentKey];options.addParent||delete currentElement$1[options.parentKey],currentElement$1=t}function onCdata(e){options.ignoreCdata||(options.trim&&(e=e.trim()),addField("cdata",e))}function onDoctype(e){options.ignoreDoctype||(e=e.replace(/^ /,""),options.trim&&(e=e.trim()),addField("doctype",e))}function onError(e){e.note=e}var xml2js$2=function(e,t){var o=sax.parser(!0,{}),i={};if(currentElement$1=i,options=validateOptions$2(t),o.opt={strictEntities:!0},o.onopentag=onStartElement,o.ontext=onText,o.oncomment=onComment,o.onclosetag=onEndElement,o.onerror=onError,o.oncdata=onCdata,o.ondoctype=onDoctype,o.onprocessinginstruction=onInstruction,o.write(e).close(),i[options.elementsKey]){var n=i[options.elementsKey];delete i[options.elementsKey],i[options.elementsKey]=n,delete i.text}return i},helper$1=optionsHelper,xml2js$1=xml2js$2;function validateOptions$1(e){var t=helper$1.copyOptions(e);return helper$1.ensureSpacesExists(t),t}var xml2json$1=function(e,t){var o,i,n,r;return o=validateOptions$1(t),i=xml2js$1(e,o),r="compact"in o&&o.compact?"_parent":"parent","addParent"in o&&o.addParent?n=JSON.stringify(i,function(l,s){return l===r?"_":s},o.spaces):n=JSON.stringify(i,null,o.spaces),n.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},helper=optionsHelper,isArray=arrayHelper.isArray,currentElement,currentElementName;function validateOptions(e){var t=helper.copyOptions(e);return helper.ensureFlagExists("ignoreDeclaration",t),helper.ensureFlagExists("ignoreInstruction",t),helper.ensureFlagExists("ignoreAttributes",t),helper.ensureFlagExists("ignoreText",t),helper.ensureFlagExists("ignoreComment",t),helper.ensureFlagExists("ignoreCdata",t),helper.ensureFlagExists("ignoreDoctype",t),helper.ensureFlagExists("compact",t),helper.ensureFlagExists("indentText",t),helper.ensureFlagExists("indentCdata",t),helper.ensureFlagExists("indentAttributes",t),helper.ensureFlagExists("indentInstruction",t),helper.ensureFlagExists("fullTagEmptyElement",t),helper.ensureFlagExists("noQuotesForNativeAttributes",t),helper.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),helper.ensureKeyExists("declaration",t),helper.ensureKeyExists("instruction",t),helper.ensureKeyExists("attributes",t),helper.ensureKeyExists("text",t),helper.ensureKeyExists("comment",t),helper.ensureKeyExists("cdata",t),helper.ensureKeyExists("doctype",t),helper.ensureKeyExists("type",t),helper.ensureKeyExists("name",t),helper.ensureKeyExists("elements",t),helper.checkFnExists("doctype",t),helper.checkFnExists("instruction",t),helper.checkFnExists("cdata",t),helper.checkFnExists("comment",t),helper.checkFnExists("text",t),helper.checkFnExists("instructionName",t),helper.checkFnExists("elementName",t),helper.checkFnExists("attributeName",t),helper.checkFnExists("attributeValue",t),helper.checkFnExists("attributes",t),helper.checkFnExists("fullTagEmptyElement",t),t}function writeIndentation(e,t,o){return(!o&&e.spaces?`
|
|
34
|
+
`:"")+Array(t+1).join(e.spaces)}function writeAttributes(e,t,o){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,currentElementName,currentElement));var i,n,r,l,s=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(l=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',n=""+e[i],n=n.replace(/"/g,"""),r="attributeNameFn"in t?t.attributeNameFn(i,n,currentElementName,currentElement):i,s.push(t.spaces&&t.indentAttributes?writeIndentation(t,o+1,!1):" "),s.push(r+"="+l+("attributeValueFn"in t?t.attributeValueFn(n,i,currentElementName,currentElement):n)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&s.push(writeIndentation(t,o,!1)),s.join("")}function writeDeclaration(e,t,o){return currentElement=e,currentElementName="xml",t.ignoreDeclaration?"":"<?xml"+writeAttributes(e[t.attributesKey],t,o)+"?>"}function writeInstruction(e,t,o){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var n="instructionNameFn"in t?t.instructionNameFn(i,e[i],currentElementName,currentElement):i;if(typeof e[i]=="object")return currentElement=e,currentElementName=n,"<?"+n+writeAttributes(e[i][t.attributesKey],t,o)+"?>";var r=e[i]?e[i]:"";return"instructionFn"in t&&(r=t.instructionFn(r,i,currentElementName,currentElement)),"<?"+n+(r?" "+r:"")+"?>"}function writeComment(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,currentElementName,currentElement):e)+"-->"}function writeCdata(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,currentElementName,currentElement):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function writeDoctype(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,currentElementName,currentElement):e)+">"}function writeText(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,currentElementName,currentElement):e)}function hasContent(e,t){var o;if(e.elements&&e.elements.length)for(o=0;o<e.elements.length;++o)switch(e.elements[o][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function writeElement(e,t,o){currentElement=e,currentElementName=e.name;var i=[],n="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+n),e[t.attributesKey]&&i.push(writeAttributes(e[t.attributesKey],t,o));var r=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return r||("fullTagEmptyElementFn"in t?r=t.fullTagEmptyElementFn(e.name,e):r=t.fullTagEmptyElement),r?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(writeElements(e[t.elementsKey],t,o+1)),currentElement=e,currentElementName=e.name),i.push(t.spaces&&hasContent(e,t)?`
|
|
35
|
+
`+Array(o+1).join(t.spaces):""),i.push("</"+n+">")):i.push("/>"),i.join("")}function writeElements(e,t,o,i){return e.reduce(function(n,r){var l=writeIndentation(t,o,i&&!n);switch(r.type){case"element":return n+l+writeElement(r,t,o);case"comment":return n+l+writeComment(r[t.commentKey],t);case"doctype":return n+l+writeDoctype(r[t.doctypeKey],t);case"cdata":return n+(t.indentCdata?l:"")+writeCdata(r[t.cdataKey],t);case"text":return n+(t.indentText?l:"")+writeText(r[t.textKey],t);case"instruction":var s={};return s[r[t.nameKey]]=r[t.attributesKey]?r:r[t.instructionKey],n+(t.indentInstruction?l:"")+writeInstruction(s,t,o)}},"")}function hasContentCompact(e,t,o){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||o)return!0;break;case t.cdataKey:if(t.indentCdata||o)return!0;break;case t.instructionKey:if(t.indentInstruction||o)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function writeElementCompact(e,t,o,i,n){currentElement=e,currentElementName=t;var r="elementNameFn"in o?o.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in o&&o.fullTagEmptyElementFn(t,e)||o.fullTagEmptyElement?"<"+r+"></"+r+">":"<"+r+"/>";var l=[];if(t){if(l.push("<"+r),typeof e!="object")return l.push(">"+writeText(e,o)+"</"+r+">"),l.join("");e[o.attributesKey]&&l.push(writeAttributes(e[o.attributesKey],o,i));var s=hasContentCompact(e,o,!0)||e[o.attributesKey]&&e[o.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in o?s=o.fullTagEmptyElementFn(t,e):s=o.fullTagEmptyElement),s)l.push(">");else return l.push("/>"),l.join("")}return l.push(writeElementsCompact(e,o,i+1,!1)),currentElement=e,currentElementName=t,t&&l.push((n?writeIndentation(o,i,!1):"")+"</"+r+">"),l.join("")}function writeElementsCompact(e,t,o,i){var n,r,l,s=[];for(r in e)if(e.hasOwnProperty(r))for(l=isArray(e[r])?e[r]:[e[r]],n=0;n<l.length;++n){switch(r){case t.declarationKey:s.push(writeDeclaration(l[n],t,o));break;case t.instructionKey:s.push((t.indentInstruction?writeIndentation(t,o,i):"")+writeInstruction(l[n],t,o));break;case t.attributesKey:case t.parentKey:break;case t.textKey:s.push((t.indentText?writeIndentation(t,o,i):"")+writeText(l[n],t));break;case t.cdataKey:s.push((t.indentCdata?writeIndentation(t,o,i):"")+writeCdata(l[n],t));break;case t.doctypeKey:s.push(writeIndentation(t,o,i)+writeDoctype(l[n],t));break;case t.commentKey:s.push(writeIndentation(t,o,i)+writeComment(l[n],t));break;default:s.push(writeIndentation(t,o,i)+writeElementCompact(l[n],r,t,o,hasContentCompact(l[n],t)))}i=i&&!s.length}return s.join("")}var js2xml$2=function(e,t){t=validateOptions(t);var o=[];return currentElement=e,currentElementName="_root_",t.compact?o.push(writeElementsCompact(e,t,0,!0)):(e[t.declarationKey]&&o.push(writeDeclaration(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&o.push(writeElements(e[t.elementsKey],t,0,!o.length))),o.join("")},js2xml$1=js2xml$2,json2xml$1=function(e,t){e instanceof Buffer&&(e=e.toString());var o=null;if(typeof e=="string")try{o=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else o=e;return js2xml$1(o,t)},xml2js=xml2js$2,xml2json=xml2json$1,js2xml=js2xml$2,json2xml=json2xml$1,lib={xml2js,xml2json,js2xml,json2xml};const convert=getDefaultExportFromCjs(lib);function getStore(){return window.$store}function getHttp(){return window.$http}const processService={fetchFormFields(e,t){getHttp().get(window.$vueApp.config.globalProperties.baseAPI+"/wf-editor/workflow-editors/form-fields?formCode="+e+"&formVersion="+t).then(o=>{const i=o.formFields,n=o.subFormFields;getStore().commit("wfEditor/setFormCode",e),getStore().commit("wfEditor/setFormFields",i);const r=i.concat(n);getStore().commit("wfEditor/setFormFieldsWithSub",r);const l=o.subtableConditionMap;getStore().commit("wfEditor/setSubtableConditionMap",l);const s=o.systemPropSettingList;getStore().commit("wfEditor/setPropSettingKeyList",s)})},fetchSubprocessFormFields(e,t){return getHttp().get(window.$vueApp.config.globalProperties.baseAPI+"/wf-editor/workflow-editors/form-fields-with-processes?processCode="+e+"&processVersion="+t)}},_sfc_main$v={name:"BasicProperties",components:{i18nInput},props:{model:{type:Object,default:null},name:{type:String,default:null},code:{type:String,default:null}},data(){return{formModel:{name:this.name,code:this.code,model:this.model},allForms:[],allProcessTypes:[],allSystems:[],allBranches:[],nameError:null,codeError:null,systemError:null,adminError:null,formError:null,requiredRule:{required:!0,message:getI18n().t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"},isSelectAdmin:!1,selectedForm:[]}},created(){this.getAdminNameWhenUpdate(),this.listAllForms(),this.listAllProcessTypes(),this.listAllSystems(),this.listAllBranches(),this.model.creator||(this.model.creator=getUsername()),this.setProcessCode(this.formModel.code),this.setSystemCode(this.model.systemCode)},mounted(){this.$watch("formModel.name",function(e,t){this.$emit("update:name",e)}),this.$watch("formModel.code",function(e,t){this.$emit("update:code",e),this.setProcessCode(e)}),this.$watch("model.systemCode",function(e,t){this.setSystemCode(e)})},methods:{...mapMutations("wfEditor",["setFormFields","setSystemCode","setProcessCode"]),handleChange(e){console.log(e);const t=e[1];this.model.formCode=t.substring(t.indexOf("/")+1,t.lastIndexOf("/")),this.model.formVersion=t.substring(t.lastIndexOf("/")+1),processService.fetchFormFields(this.model.formCode,this.model.formVersion)},selectAdmin(){this.isSelectAdmin=!0},addAdmin(e){if(e){e.containBranch=!0;let t=e.loginName;const o=e.user;e.containBranch&&(o.subCompanyCode?t=e.loginName+"~~"+o.subCompanyCode:t=e.loginName+"~~"+o.tenantCode),this.model.admin=t,console.log(t),this.formModel.adminName=e.name}this.isSelectAdmin=!1},listAllForms(){this.$http.get(this.baseAPI+"/wf-editor/workflow-editors/forms").then(e=>{const t=this.model.formCode+"/"+this.model.formVersion;this.setDefaultSelectedFormWhenUpdate(e,t),this.allForms=e})},setDefaultSelectedFormWhenUpdate(e,t){let o,i;for(var n=0;n<e.length;n++){const r=e[n].value,s=e[n].children.filter(this.filterForm(t));if(s.length>0){i=r,o=s[0];break}}if(o){const r=[];r.push(i+""),r.push(i+"/"+t),this.selectedForm=r}},filterForm(e){return t=>{const o=t.value;return o.substring(o.indexOf("/")+1)===e}},listAllProcessTypes(){this.$http.get(this.baseAPI+"/api/workflow-types/all").then(e=>{this.allProcessTypes=e})},listAllSystems(){this.$http.get(this.baseAPI+"/api/all-enabled-systems").then(e=>{console.log(e),this.allSystems=e})},listAllBranches(){this.$http.get(this.baseAPI+"/api/branches/all").then(e=>{this.allBranches=e})},getAdminNameWhenUpdate(){this.model.admin&&this.model.admin!==""&&this.$http.get(this.baseAPI+"/wf-editor/workflow-editors/admin-name-info?loginNameInfo="+this.model.admin).then(e=>{console.log(e),this.formModel.adminName=e})},setI18nValue(e){this.model.i18nKey=e}}};function _sfc_render$v(e,t,o,i,n,r){const l=Vue.resolveComponent("i18n-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("department-user-tree"),m=Vue.resolveComponent("el-cascader"),w=Vue.resolveComponent("el-option"),_=Vue.resolveComponent("el-select"),b=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(b,{model:n.formModel,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.processName"),prop:"name",rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.name,"onUpdate:modelValue":t[0]||(t[0]=E=>n.formModel.name=E),modelModifiers:{trim:!0},"i18n-key":o.model.i18nKey?o.model.i18nKey:"processName",onSetI18n:r.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label","rules"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.processCode"),prop:"code",rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.code,"onUpdate:modelValue":t[1]||(t[1]=E=>n.formModel.code=E),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1},8,["label","rules"])]),_:1})]),_:1}),Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.processAdministrator"),rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.adminName,"onUpdate:modelValue":t[2]||(t[2]=E=>n.formModel.adminName=E),readonly:"","suffix-icon":"el-icon-search",onFocus:r.selectAdmin},null,8,["modelValue","onFocus"]),n.isSelectAdmin?(Vue.openBlock(),Vue.createBlock(c,{key:0,width:"30%",multiple:!1,onClose:r.addAdmin},null,8,["onClose"])):Vue.createCommentVNode("",!0)]),_:1},8,["label","rules"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.creater")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.creator,"onUpdate:modelValue":t[3]||(t[3]=E=>o.model.creator=E),readonly:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.correspondingForm"),rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.selectedForm,"onUpdate:modelValue":t[4]||(t[4]=E=>n.selectedForm=E),"show-all-levels":!1,options:n.allForms,onChange:r.handleChange},null,8,["modelValue","options","onChange"])]),_:1},8,["label","rules"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.processType")},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:o.model.processTypeCode,"onUpdate:modelValue":t[5]||(t[5]=E=>o.model.processTypeCode=E),placeholder:e.$t("workflowEditorMessage.pleaseSelect")},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.allProcessTypes,E=>(Vue.openBlock(),Vue.createBlock(w,{key:E.code,label:E.name,value:E.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.system"),prop:"model.systemCode",rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:o.model.systemCode,"onUpdate:modelValue":t[6]||(t[6]=E=>o.model.systemCode=E),placeholder:e.$t("workflowEditorMessage.pleaseSelect")},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.allSystems,E=>(Vue.openBlock(),Vue.createBlock(w,{key:E.code,label:E.name,value:E.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","rules"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.affiliatedBranch")},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:o.model.branchCode,"onUpdate:modelValue":t[7]||(t[7]=E=>o.model.branchCode=E),clearable:"",placeholder:e.$t("workflowEditorMessage.pleaseSelect")},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.allBranches,(E,f)=>(Vue.openBlock(),Vue.createBlock(w,{key:E.code+"-"+f,label:E.name,value:E.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(s,{label:e.$t("workflowEditor.process.customCategory")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.customType,"onUpdate:modelValue":t[8]||(t[8]=E=>o.model.customType=E)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const BasicProperties$4=_export_sfc(_sfc_main$v,[["render",_sfc_render$v]]),_sfc_main$u={name:"PermissionSettings",components:{UserSelection},props:{model:{type:Object,default:null}},data(){return{showNotice:!1}}};function _sfc_render$u(e,t,o,i,n,r){const l=Vue.resolveComponent("user-selection"),s=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(s,{model:o.model,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.viewFlowHistory,"onUpdate:modelValue":t[0]||(t[0]=a=>o.model.viewFlowHistory=a),label:e.$t("workflowEditor.process.ViewFlowHistoryPersonnel"),"label-width":"130px"},null,8,["modelValue","label"]),Vue.createVNode(l,{modelValue:o.model.viewSubscribeResult,"onUpdate:modelValue":t[1]||(t[1]=a=>o.model.viewSubscribeResult=a),label:e.$t("workflowEditor.process.ViewCountersignatureResultPersonnel"),"label-width":"130px"},null,8,["modelValue","label"]),Vue.createVNode(l,{modelValue:o.model.viewVoteResult,"onUpdate:modelValue":t[2]||(t[2]=a=>o.model.viewVoteResult=a),label:e.$t("workflowEditor.process.ViewVotingResultsBy"),"label-width":"130px"},null,8,["modelValue","label"])]),_:1},8,["model"])}const PermissionSettings$1=_export_sfc(_sfc_main$u,[["render",_sfc_render$u]]),_sfc_main$t={props:{pageFormCode:{type:String,default:null}},data(){return{baseURL:"",listURL:"",selection:[]}},watch:{conditionList:{handler(e,t){this.judgeHeavyData=e}}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.pageFormCode&&(this.listURL="/wf-editor/workflow-editors/modulePages/"+this.pageFormCode)},methods:{savePage(){if(this.selection&&this.selection.length>0)if(this.selection.length!==1)this.$message({showClose:!0,type:"error",message:this.$t("message.pleaseSelectARecord")});else{const e="page:"+this.selection[0].code;this.$emit("setPage",e)}else this.$emit("setPage","")},select(e,t){this.selection=e}}},_hoisted_1$b={style:{"overflow-y":"auto","max-height":"500px"}},_hoisted_2$7={class:"operation-area"};function _sfc_render$t(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("super-grid"),a=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(a,{"show-close":!0,"append-to-body":!0,title:e.$t("workflowEditorPublicModel.selectPage"),width:"60%",visible:"",onClose:r.savePage},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$b,[Vue.createElementVNode("div",_hoisted_2$7,[Vue.createVNode(l,{size:"small",onClick:r.savePage},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditorPublicModel.close")),1)]),_:1},8,["onClick"])]),Vue.createElementVNode("div",null,[Vue.createVNode(s,{ref:"grid",url:n.baseURL+n.listURL,code:"MMS_MODULE_PAGE",onSelect:r.select},null,8,["url","onSelect"])])])]),_:1},8,["title","onClose"])}const selectPage=_export_sfc(_sfc_main$t,[["render",_sfc_render$t]]),_sfc_main$s={name:"ParameterSettings",components:{selectPage},props:{model:{type:Object,default:null}},data(){return{selectPageFlag:!1,pageFormCode:null}},computed:{...mapGetters("wfEditor",["formCode"])},methods:{openSelectPage(){this.formCode&&(this.pageFormCode=this.formCode),this.selectPageFlag=!0},setPage(e){this.$set(this.model.doTask,"url",e),this.selectPageFlag=!1}}},_hoisted_1$a={slot:"header"},_hoisted_2$6={slot:"header"},_hoisted_3={slot:"header"},_hoisted_4={slot:"header"};function _sfc_render$s(e,t,o,i,n,r){const l=Vue.resolveComponent("el-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-card"),u=Vue.resolveComponent("select-page"),d=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(d,{model:o.model,"label-width":"150px"},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$a,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.process.processTaskParameterSettings")),1)]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.uRLForProcessingTask")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.doTask.url,"onUpdate:modelValue":t[1]||(t[1]=c=>o.model.doTask.url=c)},{default:Vue.withCtx(()=>[Vue.createElementVNode("i",{slot:"suffix",class:"el-input__icon el-icon-search",onClick:t[0]||(t[0]=(...c)=>r.openSelectPage&&r.openSelectPage(...c))})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.parametersForReceivingTaskID")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.doTask.parameterName,"onUpdate:modelValue":t[2]||(t[2]=c=>o.model.doTask.parameterName=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$6,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.process.viewFormParameterSettings")),1)]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.viewTheURLOfTheForm")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.viewForm.url,"onUpdate:modelValue":t[3]||(t[3]=c=>o.model.viewForm.url=c)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.parametersOfReceivingEntityID")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.viewForm.parameterName,"onUpdate:modelValue":t[4]||(t[4]=c=>o.model.viewForm.parameterName=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_3,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.process.emergencyTreatmentParameterSetting")),1)]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.uRLOfEmergencyHandling")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.handleEmergency.url,"onUpdate:modelValue":t[5]||(t[5]=c=>o.model.handleEmergency.url=c)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.parametersOfReceivingEntityID")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.handleEmergency.parameterName,"onUpdate:modelValue":t[6]||(t[6]=c=>o.model.handleEmergency.parameterName=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.process.initiateProcessParameterSettings")),1)]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.uRLOfTheInitiatingProcess")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.startProcess.url,"onUpdate:modelValue":t[7]||(t[7]=c=>o.model.startProcess.url=c)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.parametersForReceivingProcessName")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.startProcess.parameterName,"onUpdate:modelValue":t[8]||(t[8]=c=>o.model.startProcess.parameterName=c)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.customParameterValue")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.startProcess.parameterValue,"onUpdate:modelValue":t[9]||(t[9]=c=>o.model.startProcess.parameterValue=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),n.selectPageFlag?(Vue.openBlock(),Vue.createBlock(u,{key:0,"page-form-code":n.pageFormCode,onSetPage:r.setPage},null,8,["page-form-code","onSetPage"])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const ParameterSettings=_export_sfc(_sfc_main$s,[["render",_sfc_render$s]]),_sfc_main$r={name:"Events",props:{value:{type:Object,default:null}},data(){const e=[],t=this.value.event;if(t!==void 0&&t.length&&t.length>0){let o=[];typeof t=="string"?o=t.split(","):o=this.value.event,o.map(function(i){e.push(i)})}return{events:[{name:"START_INSTANCE",label:getI18n().t("workflowEditor.process.initiationProcess")},{name:"DELETE_INSTANCE",label:getI18n().t("workflowEditor.process.deleteProcess")},{name:"CANCEL_INSTANCE",label:getI18n().t("workflowEditor.process.cancelProcess")},{name:"END_INSTANCE",label:getI18n().t("workflowEditor.process.endProcess")},{name:"STOP_INSTANCE",label:getI18n().t("workflowEditor.process.pauseProcess")},{name:"RESUME_INSTANCE",label:getI18n().t("workflowEditor.process.continueTheProcess")},{name:"JUMP_TACHE",label:getI18n().t("workflowEditor.process.jumpLink")},{name:"CHANGE_TRANSACTOR",label:getI18n().t("workflowEditor.process.modificationHandler")},{name:"ADD_TRANSACTOR",label:getI18n().t("workflowEditor.process.addHandler")},{name:"REMOVE_TRANSACTOR",label:getI18n().t("workflowEditor.process.decreaseOofHandler")},{name:"ASSIGN_TASK",label:getI18n().t("workflowEditor.process.appointedTask")},{name:"RETURN_TASK",label:getI18n().t("workflowEditor.process.returnTask")},{name:"WITHDRAW_TASK",label:getI18n().t("workflowEditor.process.retrieveTask")},{name:"TRUST_TASK",label:getI18n().t("workflowEditor.process.trustTask")}],selectedEvents:e}},watch:{selectedEvents(e){this.$emit("input",{event:this.selectedEvents})}},methods:{}};function _sfc_render$r(e,t,o,i,n,r){const l=Vue.resolveComponent("el-checkbox"),s=Vue.resolveComponent("el-card"),a=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-row"),d=Vue.resolveComponent("el-checkbox-group");return Vue.openBlock(),Vue.createBlock(d,{modelValue:n.selectedEvents,"onUpdate:modelValue":t[0]||(t[0]=c=>n.selectedEvents=c)},{default:Vue.withCtx(()=>[Vue.createVNode(u,{gutter:12},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.events,c=>(Vue.openBlock(),Vue.createBlock(a,{key:c.name,span:8,style:{"margin-bottom":"12px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{shadow:"always"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:c.name},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(c.label),1)]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["modelValue"])}const Events$1=_export_sfc(_sfc_main$r,[["render",_sfc_render$r]]),_sfc_main$q={name:"Notice",components:{UserSelection,CommonNoticeTool,SelectMailTemplates},props:{value:{type:[Object,String],default:null},switchLabel:{type:String,default:""}},data(){let e=!1,t={informType:"",userCondition:"",subject:null,content:null};return this.value!==null&&this.value!==void 0&&this.value!==""&&(t=this.value,t.informType&&t.informType!==""&&(e=!0)),{showNotice:e,model:t,options:{showColumns:"code,name"}}},watch:{showNotice(e){this.getValue()}},created(){this.$watch("model",function(e,t){this.getValue()},{deep:!0})},methods:{getValue(){const e=this.model;this.$emit("input",e)},setMailTemplateCode(e){this.model.noticeMailTemplateCode=e},setCustomMsg(e){this.model.customMsg=e}}},_hoisted_1$9={key:0};function _sfc_render$q(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("common-notice-tool"),u=Vue.resolveComponent("select-mail-templates"),d=Vue.resolveComponent("user-selection"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(m,{model:n.model,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:o.switchLabel,"label-width":"130"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.showNotice,"onUpdate:modelValue":t[0]||(t[0]=w=>n.showNotice=w)},null,8,["modelValue"])]),_:1},8,["label"]),n.showNotice?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$9,[Vue.createVNode(a,{modelValue:n.model.informType,"onUpdate:modelValue":t[1]||(t[1]=w=>n.model.informType=w),label:e.$t("workflowEditor.common.notificationMethod"),"custom-msg":n.model.customMsg,onInputMsg:r.setCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),n.model.informType&&n.model.informType.length>0&&n.model.informType.indexOf("mail")!==-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.model.noticeMailTemplateCode,"onUpdate:modelValue":t[2]||(t[2]=w=>n.model.noticeMailTemplateCode=w),onSetValue:r.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(d,{modelValue:n.model.userCondition,"onUpdate:modelValue":t[3]||(t[3]=w=>n.model.userCondition=w),label:e.$t("workflowEditor.common.addressee")},null,8,["modelValue","label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.common.theme")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.model.subject,"onUpdate:modelValue":t[4]||(t[4]=w=>n.model.subject=w),placeholder:e.$t("workflowEditorMessage.pleaseEnterASubject")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.common.content")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.model.content,"onUpdate:modelValue":t[5]||(t[5]=w=>n.model.content=w),type:"textarea",autosize:{minRows:4,maxRows:10},placeholder:e.$t("workflowEditorMessage.pleaseEnterContent")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const Notice=_export_sfc(_sfc_main$q,[["render",_sfc_render$q]]),_sfc_main$p={name:"NoticeSettings",components:{Notice,SelectMailTemplates},props:{value:{type:[Object,String],default:null}},data(){let e={informType:"",userCondition:"",subject:null,content:null,defaultMailTemplateCode:""};return this.value!==null&&this.value!==void 0&&this.value!==""&&(e=this.value),{showMailTemplateFlag:!1,model:e}},created(){this.$watch("model",function(e,t){this.getValue()},{deep:!0})},methods:{getValue(){const e=this.model;this.$emit("input",e)},setMailTemplateCode(e){this.model.defaultMailTemplateCode=e}}};function _sfc_render$p(e,t,o,i,n,r){const l=Vue.resolveComponent("notice"),s=Vue.resolveComponent("select-mail-templates"),a=Vue.resolveComponent("el-form-item"),u=Vue.resolveComponent("el-form");return n.model?(Vue.openBlock(),Vue.createBlock(u,{key:0,model:n.model,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.model,"onUpdate:modelValue":t[0]||(t[0]=d=>n.model=d),"switch-label":e.$t("workflowEditor.process.sendNotificationAfterProcessEnds")},null,8,["modelValue","switch-label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.defaultMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.model.defaultMailTemplateCode,"onUpdate:modelValue":t[1]||(t[1]=d=>n.model.defaultMailTemplateCode=d),onSetValue:r.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])]),_:1},8,["model"])):Vue.createCommentVNode("",!0)}const NoticeSettings=_export_sfc(_sfc_main$p,[["render",_sfc_render$p]]),_sfc_main$o={name:"ProcessPropertiesEditor",components:{BasicProperties:BasicProperties$4,PermissionSettings:PermissionSettings$1,ParameterSettings,Events:Events$1,Variables,NoticeSettings,NoticeReminder},props:{model:{type:Object,default:null}},data(){return this.model.properties.taskNotice===void 0&&(this.model.properties.taskNotice={}),{activeTab:"basicProperties"}},computed:{basicProperties(){return this.model.properties.basicProperties},accessRight(){return this.model.properties.accessRight},reminder(){return this.model.properties.reminder},parameterSettings(){return this.model.properties.parameterSettings},events(){return this.model.properties.events},variables(){return this.model.properties.variables}},methods:{toXml(){const e={compact:!0,ignoreComment:!0,spaces:4};console.log(convert.js2xml({basicProperties:this.basicProperties},e))},handleClick(e,t){}}};function _sfc_render$o(e,t,o,i,n,r){const l=Vue.resolveComponent("basic-properties"),s=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("permission-settings"),u=Vue.resolveComponent("notice-settings"),d=Vue.resolveComponent("notice-reminder"),c=Vue.resolveComponent("parameter-settings"),m=Vue.resolveComponent("events"),w=Vue.resolveComponent("variables"),_=Vue.resolveComponent("el-tabs"),b=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(b,{visible:"",title:e.$t("workflowEditor.process.processProperties"),center:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor",onOpen:t[4]||(t[4]=E=>e.$emit("open")),onOpend:t[5]||(t[5]=E=>e.$emit("opend")),onClose:t[6]||(t[6]=E=>e.$emit("close")),onClosed:t[7]||(t[7]=E=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:n.activeTab,"onUpdate:modelValue":t[3]||(t[3]=E=>n.activeTab=E),type:"border-card",onTabClick:r.handleClick},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{name:o.model.attr.name,code:o.model.attr.code,model:o.model.properties.basicProperties},null,8,["name","code","model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.permissionSettings"),name:"permissions"},{default:Vue.withCtx(()=>[Vue.createVNode(a,{model:o.model.properties.permissionSettings},null,8,["model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.notificationSettings"),name:"inform"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.properties.inform,"onUpdate:modelValue":t[0]||(t[0]=E=>o.model.properties.inform=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.reminderSettings"),name:"reminders"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{"reminder-value":o.model.properties.reminder,"task-notice-value":o.model.properties.taskNotice},null,8,["reminder-value","task-notice-value"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.parameterSsetting"),name:"parameterSettings"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{model:o.model.properties.parameterSettings},null,8,["model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.event"),name:"events"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:o.model.properties.events,"onUpdate:modelValue":t[1]||(t[1]=E=>o.model.properties.events=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.processVariables"),name:"variables"},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:o.model.properties.variables,"onUpdate:modelValue":t[2]||(t[2]=E=>o.model.properties.variables=E)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1},8,["title"])}const ProcessPropertiesEditor=_export_sfc(_sfc_main$o,[["render",_sfc_render$o]]),_sfc_main$n={name:"DecisionPropertiesEditor",components:{i18nInput},props:{model:{type:Object,default:null}},computed:{formModel(){return this.model.ref},transitions(){const e=findOutgoingTransitionsByTacheId(this.formModel.attr.id),t=[];return e.map(o=>{t.push({to:o.ref.attr.to,condition:o.ref.basicProperties.condition})}),t}},mounted(){this.$watch("model.ref.attr.name",function(e){this.model.name=e})},methods:{setI18nValue(e){this.formModel&&(this.formModel.basicProperties={},this.formModel.basicProperties.i18nKey=e)}}};function _sfc_render$n(e,t,o,i,n,r){const l=Vue.resolveComponent("i18n-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-table"),d=Vue.resolveComponent("el-form"),c=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(c,{visible:"",title:e.$t("workflowEditor.task.attributeOfConditionJudgment"),center:!0,"append-to-body":"",onOpen:t[1]||(t[1]=m=>e.$emit("open")),onOpend:t[2]||(t[2]=m=>e.$emit("opend")),onClose:t[3]||(t[3]=m=>e.$emit("close")),onClosed:t[4]||(t[4]=m=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.name"),"label-width":"40px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:r.formModel.attr.name,"onUpdate:modelValue":t[0]||(t[0]=m=>r.formModel.attr.name=m),modelModifiers:{trim:!0},"i18n-key":r.formModel.basicProperties&&r.formModel.basicProperties.i18nKey?r.formModel.basicProperties.i18nKey:"name."+r.formModel.attr.id,onSetI18n:r.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"]),Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.task.allBranchFlows")),1),Vue.createVNode(u,{border:"",data:r.transitions,style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"to",label:e.$t("workflowEditor.task.targetLink")},null,8,["label"]),Vue.createVNode(a,{prop:"condition",label:e.$t("workflowEditor.task.condition")},null,8,["label"])]),_:1},8,["data"])]),_:1})]),_:1})]),_:1},8,["title"])}const DecisionPropertiesEditor=_export_sfc(_sfc_main$n,[["render",_sfc_render$n]]),_sfc_main$m={name:"BasicProperties",components:{AdditionalCondition,i18nInput},props:{model:{type:Object,default:null},sourceTacheType:{type:String,default:null},id:{type:String,default:null}},created(){},methods:{setI18nValue(e){this.model.i18nKey=e}}};function _sfc_render$m(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("additional-condition"),u=Vue.resolveComponent("i18n-input"),d=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly"),"label-width":"240px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.isOriginalUser,"onUpdate:modelValue":t[0]||(t[0]=c=>o.model.isOriginalUser=c)},null,8,["modelValue"])]),_:1},8,["label"]),o.sourceTacheType==="Decision"?(Vue.openBlock(),Vue.createBlock(s,{key:0},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.process.branchingCondition")),1),Vue.createVNode(a,{modelValue:o.model.condition,"onUpdate:modelValue":t[1]||(t[1]=c=>o.model.condition=c),"is-transition":!0},null,8,["modelValue"])]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("workflowEditor.task.remarks"),"label-width":"40px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.remark,"onUpdate:modelValue":t[2]||(t[2]=c=>o.model.remark=c),"i18n-key":o.model.i18nKey?o.model.i18nKey:"name."+o.id,onSetI18n:r.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"])]),_:1})}const BasicProperties$3=_export_sfc(_sfc_main$m,[["render",_sfc_render$m]]),transition_vue_vue_type_style_index_0_scoped_ce7fcd24_lang="",_sfc_main$l={name:"TransitionPropertiesEditor",components:{Notice,AutoFilledFields,BasicProperties:BasicProperties$3},props:{model:{type:Object,default:null}},data(){return{activeTab:"basicProperties"}},mounted(){this.$watch("model.ref.basicProperties.remark",function(e){this.model.remark=e})}};function _sfc_render$l(e,t,o,i,n,r){const l=Vue.resolveComponent("basic-properties"),s=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("notice"),u=Vue.resolveComponent("auto-filled-fields"),d=Vue.resolveComponent("el-switch"),c=Vue.resolveComponent("el-form-item"),m=Vue.resolveComponent("el-input"),w=Vue.resolveComponent("el-form"),_=Vue.resolveComponent("el-tabs"),b=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(b,{visible:"",title:e.$t("workflowEditor.transition.flowProperties"),center:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor",onOpen:t[5]||(t[5]=E=>e.$emit("open")),onOpend:t[6]||(t[6]=E=>e.$emit("opend")),onClose:t[7]||(t[7]=E=>e.$emit("close")),onClosed:t[8]||(t[8]=E=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(_,{modelValue:n.activeTab,"onUpdate:modelValue":t[4]||(t[4]=E=>n.activeTab=E),type:"border-card"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.transition.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{id:o.model.ref.attr.id,model:o.model.ref.basicProperties,"source-tache-type":o.model.startJoint.parent.type},null,8,["id","model","source-tache-type"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.transition.notificationSettings"),name:"inform"},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:o.model.ref.inform,"onUpdate:modelValue":t[0]||(t[0]=E=>o.model.ref.inform=E),"switch-label":e.$t("workflowEditor.transition.sendNotificationAfterFlow")},null,8,["modelValue","switch-label"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.transition.autoFillInFieldSettings"),name:"autoFilledFields"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.ref.autoFilledFields,"onUpdate:modelValue":t[1]||(t[1]=E=>o.model.ref.autoFilledFields=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.transition.eventProcessing"),name:"events"},{default:Vue.withCtx(()=>[Vue.createVNode(w,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.transition.triggerFlowThroughEvent")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:o.model.ref.onTransit,"onUpdate:modelValue":t[2]||(t[2]=E=>o.model.ref.onTransit=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.transition.beanName")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:o.model.ref.beanName,"onUpdate:modelValue":t[3]||(t[3]=E=>o.model.ref.beanName=E)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["title"])}const TransitionPropertiesEditor=_export_sfc(_sfc_main$l,[["render",_sfc_render$l],["__scopeId","data-v-ce7fcd24"]]),_sfc_main$k={name:"ForkPropertiesEditor",props:{model:{type:Object,default:null}},computed:{formModel(){return this.model.ref},transitions(){const e=findOutgoingTransitionsByTacheId(this.formModel.attr.id),t=[];return e.map(o=>{t.push({to:o.endJoint.parent.name})}),t}},mounted(){this.$watch("model.ref.attr.name",function(e){this.model.name=e})}};function _sfc_render$k(e,t,o,i,n,r){const l=Vue.resolveComponent("el-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-table"),d=Vue.resolveComponent("el-form"),c=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(c,{visible:"",title:e.$t("workflowEditor.task.propertiesOfBranches"),center:!0,"append-to-body":"",onOpen:t[1]||(t[1]=m=>e.$emit("open")),onOpend:t[2]||(t[2]=m=>e.$emit("opend")),onClose:t[3]||(t[3]=m=>e.$emit("close")),onClosed:t[4]||(t[4]=m=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.name"),"label-width":"40px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:r.formModel.attr.name,"onUpdate:modelValue":t[0]||(t[0]=m=>r.formModel.attr.name=m)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.task.allBranchFlows")),1),Vue.createVNode(u,{border:"",data:r.transitions,style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"to",label:e.$t("workflowEditor.task.targetLink")},null,8,["label"])]),_:1},8,["data"])]),_:1})]),_:1})]),_:1},8,["title"])}const ForkPropertiesEditor=_export_sfc(_sfc_main$k,[["render",_sfc_render$k]]),_sfc_main$j={name:"ForkPropertiesEditor",props:{model:{type:Object,default:null}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.name",function(e){this.model.name=e})}};function _sfc_render$j(e,t,o,i,n,r){const l=Vue.resolveComponent("el-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-form"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{visible:"",title:e.$t("workflowEditor.task.convergedProperties"),center:!0,"append-to-body":"",onOpen:t[1]||(t[1]=d=>e.$emit("open")),onOpend:t[2]||(t[2]=d=>e.$emit("opend")),onClose:t[3]||(t[3]=d=>e.$emit("close")),onClosed:t[4]||(t[4]=d=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.name"),"label-width":"40px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:r.formModel.attr.name,"onUpdate:modelValue":t[0]||(t[0]=d=>r.formModel.attr.name=d)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"])}const JoinPropertiesEditor=_export_sfc(_sfc_main$j,[["render",_sfc_render$j]]),_sfc_main$i={name:"HumanDecisionPropertiesEditor",props:{model:{type:Object,default:null}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.name",function(e){this.model.name=e})}};function _sfc_render$i(e,t,o,i,n,r){const l=Vue.resolveComponent("el-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-form"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{visible:"",title:e.$t("workflowEditor.task.attributesOfManualJudgment"),center:!0,"append-to-body":"",onOpen:t[1]||(t[1]=d=>e.$emit("open")),onOpend:t[2]||(t[2]=d=>e.$emit("opend")),onClose:t[3]||(t[3]=d=>e.$emit("close")),onClosed:t[4]||(t[4]=d=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.name"),"label-width":"40px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:r.formModel.attr.name,"onUpdate:modelValue":t[0]||(t[0]=d=>r.formModel.attr.name=d)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"])}const HumanDecisionPropertiesEditor=_export_sfc(_sfc_main$i,[["render",_sfc_render$i]]),basicProperties_vue_vue_type_style_index_0_scoped_c1c7385b_lang="",_sfc_main$h={name:"BasicProperties",components:{TaskTitle,i18nInput},props:{model:{type:Object,default:null},id:{type:String,default:null},name:{type:String,default:null}},data(){return{formModel:{name:this.name,id:this.id,tache:this.model}}},computed:{tache(){return this.model}},mounted(){this.$watch("formModel.name",function(e,t){this.$emit("update:name",e)})},methods:{validateId(){validateTacheCode(this)},setI18nValue(e){this.tache.i18nKey=e}}};function _sfc_render$h(e,t,o,i,n,r){const l=Vue.resolveComponent("i18n-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("task-title"),m=Vue.resolveComponent("el-switch"),w=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(w,{model:n.formModel,"label-width":"110px"},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.name")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.name,"onUpdate:modelValue":t[0]||(t[0]=_=>n.formModel.name=_),"i18n-key":r.tache.i18nKey?r.tache.i18nKey:"name."+n.formModel.id,onSetI18n:r.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.code")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.id,"onUpdate:modelValue":t[1]||(t[1]=_=>n.formModel.id=_),onBlur:r.validateId},null,8,["modelValue","onBlur"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(s,{label:e.$t("workflowEditor.task.taskTitle")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:r.tache.taskTitle,"onUpdate:modelValue":t[2]||(t[2]=_=>r.tache.taskTitle=_)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.emailNotification")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:r.tache.mailNotice,"onUpdate:modelValue":t[3]||(t[3]=_=>r.tache.mailNotice=_)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.handlingPage")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:r.tache.taskUrl,"onUpdate:modelValue":t[4]||(t[4]=_=>r.tache.taskUrl=_)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.remarks")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:r.tache.remark,"onUpdate:modelValue":t[5]||(t[5]=_=>r.tache.remark=_),type:"textarea",autosize:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const BasicProperties$2=_export_sfc(_sfc_main$h,[["render",_sfc_render$h],["__scopeId","data-v-c1c7385b"]]),permissionSettings_vue_vue_type_style_index_0_scoped_d74eb972_lang="",_sfc_main$g={name:"PermissionSettings",components:{AdditionalCondition},props:{value:{type:Object,default:null}},data(){const e=deepCopy(this.value),t=["viewOpinion","viewMeetingResult","viewVoteResult","viewFlowHistory","printForm"];t.forEach(i=>{e[i+"Checkbox"]=!!this.value[i].condition});const o=["download"];return o.forEach(i=>{e.attachment[name+"Checkbox"]=!!this.value.attachment[name]&&!!this.value.attachment[name].condition,e.attachment.permission||(e.attachment[name]={permission:!1,condition:""})}),{formModel:e,attrNames:t,attachmentAttrNames:o}},mounted(){this.$watch("formModel",function(e){const t={viewOpinion:{},viewMeetingResult:{},viewVoteResult:{},viewFlowHistory:{},printForm:{},officialText:{},attachment:{}};this.attrNames.map(o=>{t[o].permission=e[o].permission,e[o].permission&&e[o+"Checkbox"]?t[o].condition=e[o].condition:t[o].condition=""}),t.attachment.permission=e.attachment.permission,e.attachment.permission&&this.attachmentAttrNames.map(o=>{t.attachment[o]||(t.attachment[o]={}),t.attachment[o].permission=e.attachment[o].permission,e.attachment[o].permission&&e.attachment[o+"Checkbox"]?t.attachment[o].condition=e.attachment[o].condition:t.attachment[o].condition=""}),this.$emit("input",t)},{deep:!0})},methods:{}};function _sfc_render$g(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("el-checkbox"),a=Vue.resolveComponent("additional-condition"),u=Vue.resolveComponent("el-form-item"),d=Vue.resolveComponent("el-card"),c=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(c,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowViews")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewOpinion.permission,"onUpdate:modelValue":t[0]||(t[0]=m=>n.formModel.viewOpinion.permission=m)},null,8,["modelValue"]),n.formModel.viewOpinion.permission?(Vue.openBlock(),Vue.createBlock(s,{key:0,modelValue:n.formModel.viewOpinionCheckbox,"onUpdate:modelValue":t[1]||(t[1]=m=>n.formModel.viewOpinionCheckbox=m)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewOpinion.permission&&n.formModel.viewOpinionCheckbox?(Vue.openBlock(),Vue.createBlock(a,{key:1,modelValue:n.formModel.viewOpinion.condition,"onUpdate:modelValue":t[2]||(t[2]=m=>n.formModel.viewOpinion.condition=m)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowToViewCountersignatureResults")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewMeetingResult.permission,"onUpdate:modelValue":t[3]||(t[3]=m=>n.formModel.viewMeetingResult.permission=m)},null,8,["modelValue"]),n.formModel.viewMeetingResult.permission?(Vue.openBlock(),Vue.createBlock(s,{key:0,modelValue:n.formModel.viewMeetingResultCheckbox,"onUpdate:modelValue":t[4]||(t[4]=m=>n.formModel.viewMeetingResultCheckbox=m)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewMeetingResult.permission&&n.formModel.viewMeetingResultCheckbox?(Vue.openBlock(),Vue.createBlock(a,{key:1,modelValue:n.formModel.viewMeetingResult.condition,"onUpdate:modelValue":t[5]||(t[5]=m=>n.formModel.viewMeetingResult.condition=m)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowToViewVotingResults")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewVoteResult.permission,"onUpdate:modelValue":t[6]||(t[6]=m=>n.formModel.viewVoteResult.permission=m)},null,8,["modelValue"]),n.formModel.viewVoteResult.permission?(Vue.openBlock(),Vue.createBlock(s,{key:0,modelValue:n.formModel.viewVoteResultCheckbox,"onUpdate:modelValue":t[7]||(t[7]=m=>n.formModel.viewVoteResultCheckbox=m)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewVoteResult.permission&&n.formModel.viewVoteResultCheckbox?(Vue.openBlock(),Vue.createBlock(a,{key:1,modelValue:n.formModel.viewVoteResult.condition,"onUpdate:modelValue":t[8]||(t[8]=m=>n.formModel.viewVoteResult.condition=m)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowToViewFlowHistory")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.viewFlowHistory.permission,"onUpdate:modelValue":t[9]||(t[9]=m=>n.formModel.viewFlowHistory.permission=m)},null,8,["modelValue"]),n.formModel.viewFlowHistory.permission?(Vue.openBlock(),Vue.createBlock(s,{key:0,modelValue:n.formModel.viewFlowHistoryCheckbox,"onUpdate:modelValue":t[10]||(t[10]=m=>n.formModel.viewFlowHistoryCheckbox=m)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.viewFlowHistory.permission&&n.formModel.viewFlowHistoryCheckbox?(Vue.openBlock(),Vue.createBlock(a,{key:1,modelValue:n.formModel.viewFlowHistory.condition,"onUpdate:modelValue":t[11]||(t[11]=m=>n.formModel.viewFlowHistory.condition=m)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.allowFormsToPrint")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.printForm.permission,"onUpdate:modelValue":t[12]||(t[12]=m=>n.formModel.printForm.permission=m)},null,8,["modelValue"]),n.formModel.printForm.permission?(Vue.openBlock(),Vue.createBlock(s,{key:0,modelValue:n.formModel.printFormCheckbox,"onUpdate:modelValue":t[13]||(t[13]=m=>n.formModel.printFormCheckbox=m)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.printForm.permission&&n.formModel.printFormCheckbox?(Vue.openBlock(),Vue.createBlock(a,{key:1,modelValue:n.formModel.printForm.condition,"onUpdate:modelValue":t[14]||(t[14]=m=>n.formModel.printForm.condition=m)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.task.attachmentAuthority")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.attachment.permission,"onUpdate:modelValue":t[15]||(t[15]=m=>n.formModel.attachment.permission=m)},null,8,["modelValue"])]),_:1},8,["label"]),n.formModel.attachment.permission?(Vue.openBlock(),Vue.createBlock(d,{key:0,class:"box-card"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.task.downloadAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.attachment.download.permission,"onUpdate:modelValue":t[16]||(t[16]=m=>n.formModel.attachment.download.permission=m)},null,8,["modelValue"]),n.formModel.attachment.download.permission?(Vue.openBlock(),Vue.createBlock(s,{key:0,modelValue:n.formModel.attachment.downloadCheckbox,"onUpdate:modelValue":t[17]||(t[17]=m=>n.formModel.attachment.downloadCheckbox=m)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.download.permission&&n.formModel.attachment.downloadCheckbox?(Vue.openBlock(),Vue.createBlock(a,{key:1,modelValue:n.formModel.attachment.download.condition,"onUpdate:modelValue":t[18]||(t[18]=m=>n.formModel.attachment.download.condition=m)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(u,{label:e.$t("workflowEditor.task.bodyPermission")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.officialText.permission,"onUpdate:modelValue":t[19]||(t[19]=m=>n.formModel.officialText.permission=m)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const PermissionSettings=_export_sfc(_sfc_main$g,[["render",_sfc_render$g],["__scopeId","data-v-d74eb972"]]),copyTask_vue_vue_type_style_index_0_scoped_222aee79_lang="",_sfc_main$f={name:"HumanTaskPropertiesEditor",components:{BasicProperties:BasicProperties$2,TransactorSettings,PermissionSettings,NoticeReminder,Events:Events$2},props:{model:{type:Object,default:null}},data(){return console.log(this.model),this.model.ref.taskNotice||(this.model.ref.taskNotice={}),{activeTab:"basicProperties"}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.id",function(e,t){this.model.id=e}),this.$watch("model.ref.attr.name",function(e,t){this.model.name=e})},methods:{handleClick(e,t){}}};function _sfc_render$f(e,t,o,i,n,r){const l=Vue.resolveComponent("basic-properties"),s=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("transactor-settings"),u=Vue.resolveComponent("notice-reminder"),d=Vue.resolveComponent("events"),c=Vue.resolveComponent("permission-settings"),m=Vue.resolveComponent("el-tabs"),w=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(w,{visible:"",title:e.$t("workflowEditor.task.propertiesOfCCTask"),center:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor",onOpen:t[3]||(t[3]=_=>e.$emit("open")),onOpend:t[4]||(t[4]=_=>e.$emit("opend")),onClose:t[5]||(t[5]=_=>e.$emit("close")),onClosed:t[6]||(t[6]=_=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.activeTab,"onUpdate:modelValue":t[2]||(t[2]=_=>n.activeTab=_),type:"border-card",onTabClick:r.handleClick},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{id:o.model.ref.attr.id,name:o.model.ref.attr.name,model:o.model.ref.basicProperties},null,8,["id","name","model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.settingOfHandler"),name:"transactors"},{default:Vue.withCtx(()=>[Vue.createVNode(a,{model:o.model.ref.transactorSettings,"used-in":"CopyTask"},null,8,["model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.reminderSettings"),name:"reminders"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{"reminder-value":o.model.ref.reminder,"task-notice-value":o.model.ref.taskNotice},null,8,["reminder-value","task-notice-value"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.eventProcessing"),name:"events"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:o.model.ref.events,"onUpdate:modelValue":t[0]||(t[0]=_=>o.model.ref.events=_)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.task.permissionSettings"),name:"permissions"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:o.model.ref.permissionSettings,"onUpdate:modelValue":t[1]||(t[1]=_=>o.model.ref.permissionSettings=_)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1},8,["title"])}const CopyTaskPropertiesEditor=_export_sfc(_sfc_main$f,[["render",_sfc_render$f],["__scopeId","data-v-222aee79"]]),basicProperties_vue_vue_type_style_index_0_scoped_6aef99ff_lang="",_sfc_main$e={name:"BasicProperties",components:{TaskTitle,i18nInput},props:{model:{type:Object,default:null},id:{type:String,default:null},name:{type:String,default:null}},data(){return{formModel:{name:this.name,id:this.id,tache:this.model}}},computed:{tache(){return this.model}},mounted(){this.$watch("formModel.name",function(e,t){this.$emit("update:name",e)})},methods:{validateId(){validateTacheCode(this)},setI18nValue(e){this.tache.i18nKey=e}}};function _sfc_render$e(e,t,o,i,n,r){const l=Vue.resolveComponent("i18n-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(c,{model:n.formModel,"label-width":"110px"},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.name")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.name,"onUpdate:modelValue":t[0]||(t[0]=m=>n.formModel.name=m),"i18n-key":r.tache.i18nKey?r.tache.i18nKey:"name."+n.formModel.id,onSetI18n:r.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.code")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.id,"onUpdate:modelValue":t[1]||(t[1]=m=>n.formModel.id=m),onBlur:r.validateId},null,8,["modelValue","onBlur"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(s,{label:e.$t("workflowEditor.task.custombeanName")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:r.tache.beanName,"onUpdate:modelValue":t[2]||(t[2]=m=>r.tache.beanName=m)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const BasicProperties$1=_export_sfc(_sfc_main$e,[["render",_sfc_render$e],["__scopeId","data-v-6aef99ff"]]),autoTask_vue_vue_type_style_index_0_scoped_4ee8f07c_lang="",_sfc_main$d={name:"HumanTaskPropertiesEditor",components:{BasicProperties:BasicProperties$1},props:{model:{type:Object,default:null}},data(){return console.log(this.model),this.model.ref.taskNotice||(this.model.ref.taskNotice={}),{activeTab:"basicProperties"}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.id",function(e,t){this.model.id=e}),this.$watch("model.ref.attr.name",function(e,t){this.model.name=e})},methods:{handleClick(e,t){}}};function _sfc_render$d(e,t,o,i,n,r){const l=Vue.resolveComponent("basic-properties"),s=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("el-tabs"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{visible:"",title:e.$t("workflowEditor.task.propertiesOfAutoTask"),center:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor",onOpen:t[1]||(t[1]=d=>e.$emit("open")),onOpend:t[2]||(t[2]=d=>e.$emit("opend")),onClose:t[3]||(t[3]=d=>e.$emit("close")),onClosed:t[4]||(t[4]=d=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.activeTab,"onUpdate:modelValue":t[0]||(t[0]=d=>n.activeTab=d),type:"border-card",onTabClick:r.handleClick},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.task.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{id:o.model.ref.attr.id,name:o.model.ref.attr.name,model:o.model.ref.basicProperties},null,8,["id","name","model"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1},8,["title"])}const AutoTaskPropertiesEditor=_export_sfc(_sfc_main$d,[["render",_sfc_render$d],["__scopeId","data-v-4ee8f07c"]]),_sfc_main$c={name:"FieldMappings",components:{FormFields},props:{value:{type:Object,default:null},srcLabel:{type:String,default:null},targetLabel:{type:String,default:null},srcFields:{type:Array,default:null},targetFields:{type:Array,default:null}},data(){let e=[];return this.value.field!==void 0&&(Array.isArray(this.value.field)?e=this.value.field:e.push(this.value.field)),{tableData:e,currentRow:null,showSourceFields:!1,showTargetFields:!1}},computed:{formFields(){return this.showSourceFields?this.srcFields:this.showTargetFields?this.targetFields:[]}},watch:{},mounted(){this.tableData.length>0&&this.setCurrentRow(this.tableData[0]),this.$watch("tableData",function(){const e=this.tableData.filter(t=>t.source!==""&&t.target!=="");this.$emit("input",{field:e})},{deep:!0})},methods:{getSubFormFieldLabel(e){const o=(this.srcFields||this.targetFields).filter(i=>i.name===e);return o.length>0?o[0].label:e},showSourceFieldLabel(e){return this.srcFields?this.getSubFormFieldLabel(e):getFormFieldLabel(e)},showTargetFieldLabel(e){return this.targetFields?this.getSubFormFieldLabel(e):getFormFieldLabel(e)},add(){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].source===""||this.tableData[t].target===""){this.$alert(this.$t("workflowEditorMessage.dataInLineCannotBeEmpty",{row:t+1,data1:this.srcLabel,data2:this.targetLabel}));return}const e={source:"",target:""};this.tableData.push(e),this.setCurrentRow(e)},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e;for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].source===this.currentRow.source){e=t;break}this.tableData.splice(e,1),e=e<=this.tableData.length-1?e:this.tableData.length-1,this.setCurrentRow(this.tableData[e])},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},checkSource(e){e===""&&this.$alert(this.$t("workflowEditorMessage.dataCannotBeEmpty",{data:this.srcLabel}))},checkTarget(e){e===""&&this.$alert(this.$t("workflowEditorMessage.dataCannotBeEmpty",{data:this.targetLabel}))},selectField(e){this.showSourceFields&&(this.$set(this.currentRow,"source",e),this.showSourceFields=!1),this.showTargetFields&&(this.$set(this.currentRow,"target",e),this.showTargetFields=!1),console.log("this.tableData===",this.tableData,"this.srcFields===",this.srcFields,"this.targetFields===",this.targetFields)}}},_hoisted_1$8={"slot-scope":"scope"},_hoisted_2$5={"slot-scope":"scope"};function _sfc_render$c(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-table"),c=Vue.resolveComponent("form-fields");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-circle-plus-outline",onClick:r.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",size:"mini",plain:"",icon:"el-icon-delete",onClick:r.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(d,{ref:"table",data:n.tableData,border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:r.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"source",label:o.srcLabel},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_1$8,[Vue.createVNode(u,{value:r.showSourceFieldLabel(e.scope.row.source),placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:t[0]||(t[0]=m=>n.showSourceFields=!0)},null,8,["value","placeholder"])])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"target",label:o.targetLabel},{default:Vue.withCtx(()=>[Vue.createElementVNode("template",_hoisted_2$5,[Vue.createVNode(u,{value:r.showTargetFieldLabel(e.scope.row.target),placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:t[1]||(t[1]=m=>n.showTargetFields=!0)},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.showSourceFields||n.showTargetFields?(Vue.openBlock(),Vue.createBlock(c,{key:0,fields:r.formFields,onClose:r.selectField},null,8,["fields","onClose"])):Vue.createCommentVNode("",!0)])}const FieldMappings=_export_sfc(_sfc_main$c,[["render",_sfc_render$c]]),_sfc_main$b={name:"BasicProperties",components:{FieldMappings,i18nInput,TaskTitle},props:{model:{type:Object,default:null},id:{type:String,default:null},name:{type:String,default:null}},data(){return{selectedProcess:[],processes:[],subprocessFormFields:[],formModel:{name:this.name,id:this.id,tache:this.model}}},computed:{tache(){return this.model}},created(){this.listAllProcesses().then(()=>{this.fetchSubprocessFormFields()}),this.formModel.tache.parameters===""&&(this.formModel.tache.parameters={}),this.formModel.tache.result===""&&(this.formModel.tache.result={})},mounted(){this.$watch("formModel.name",function(e,t){this.$emit("update:name",e)})},methods:{fetchSubprocessFormFields(){this.model.processCode&&processService.fetchSubprocessFormFields(this.model.processCode,this.model.processVersion).then(e=>{this.subprocessFormFields=e})},handleChange(e){console.log("handleChange=",e);const t=e[1];this.model.processCode=t.substring(t.indexOf("/")+1,t.lastIndexOf("/")),this.model.processVersion=t.substring(t.lastIndexOf("/")+1),this.fetchSubprocessFormFields()},listAllProcesses(){return new Promise((e,t)=>{this.$http.get(this.baseAPI+"/wf-editor/workflow-editors/all-active-definitions").then(o=>{if(o.length>0){const i=this.model.processCode+"/"+this.model.processVersion;this.setDefaultSelectedProcessWhenUpdate(o,i),this.processes=o,e()}}).catch(o=>{t(o)})})},setDefaultSelectedProcessWhenUpdate(e,t){let o,i;for(var n=0;n<e.length;n++){const r=e[n].value,s=e[n].children.filter(this.filterProcess(t));if(s.length>0){i=r,o=s[0];break}}if(o){const r=[];r.push(i),r.push(o.value),this.selectedProcess=r}},filterProcess(e){return t=>{const o=t.value,i=o.substring(o.indexOf("/")+1);return e===i}},validateId(){validateTacheCode(this)},setI18nValue(e){this.formModel.tache.i18nKey=e}}};function _sfc_render$b(e,t,o,i,n,r){const l=Vue.resolveComponent("i18n-input"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("task-title"),m=Vue.resolveComponent("el-cascader"),w=Vue.resolveComponent("el-switch"),_=Vue.resolveComponent("el-radio"),b=Vue.resolveComponent("el-radio-group"),E=Vue.resolveComponent("field-mappings"),f=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(f,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.name"),"label-width":"50px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.name,"onUpdate:modelValue":t[0]||(t[0]=p=>n.formModel.name=p),"i18n-key":n.formModel.tache.i18nKey?n.formModel.tache.i18nKey:"name."+n.formModel.id,onSetI18n:r.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.code"),"label-width":"50px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.id,"onUpdate:modelValue":t[1]||(t[1]=p=>n.formModel.id=p),onBlur:r.validateId},null,8,["modelValue","onBlur"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(s,{label:e.$t("workflowEditor.task.taskTitle")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:r.tache.taskTitle,"onUpdate:modelValue":t[2]||(t[2]=p=>r.tache.taskTitle=p)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.subprocess"),"label-width":"60px"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.selectedProcess,"onUpdate:modelValue":t[3]||(t[3]=p=>n.selectedProcess=p),"show-all-levels":!1,options:n.processes,onChange:r.handleChange},null,8,["modelValue","options","onChange"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.subprocessIsSharedForm"),"label-width":"60px"},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:n.formModel.tache.isSharedForm,"onUpdate:modelValue":t[4]||(t[4]=p=>n.formModel.tache.isSharedForm=p)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(b,{modelValue:n.formModel.tache.moreTransactor,"onUpdate:modelValue":t[5]||(t[5]=p=>n.formModel.tache.moreTransactor=p)},{default:Vue.withCtx(()=>[Vue.createVNode(_,{label:!1},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.anyOneCanHandleIt")),1)]),_:1}),Vue.createVNode(_,{label:!0},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.forAll")),1)]),_:1})]),_:1},8,["modelValue"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.transferValueFromMainFormToSubForm")},{default:Vue.withCtx(()=>[Vue.createVNode(E,{modelValue:n.formModel.tache.parameters,"onUpdate:modelValue":t[6]||(t[6]=p=>n.formModel.tache.parameters=p),"src-label":e.$t("workflowEditor.process.fieldsOfTheMainForm"),"target-label":e.$t("workflowEditor.process.fieldsOfSubform"),"target-fields":n.subprocessFormFields},null,8,["modelValue","src-label","target-label","target-fields"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.subformReturnsResultsToMainForm")},{default:Vue.withCtx(()=>[Vue.createVNode(E,{modelValue:n.formModel.tache.result,"onUpdate:modelValue":t[7]||(t[7]=p=>n.formModel.tache.result=p),"src-label":e.$t("workflowEditor.process.fieldsOfSubform"),"target-label":e.$t("workflowEditor.process.fieldsOfTheMainForm"),"src-fields":n.subprocessFormFields},null,8,["modelValue","src-label","target-label","src-fields"])]),_:1},8,["label"])]),_:1},8,["model"])}const BasicProperties=_export_sfc(_sfc_main$b,[["render",_sfc_render$b]]),_sfc_main$a={name:"Events",props:{model:{type:Object,default:null}}};function _sfc_render$a(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.eventsTriggeredBeforeStartingASubprocess"),"label-width":"150px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.beforeStart,"onUpdate:modelValue":t[0]||(t[0]=u=>o.model.beforeStart=u)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.triggerSubprocessEndEvent")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:o.model.end,"onUpdate:modelValue":t[1]||(t[1]=u=>o.model.end=u)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})}const Events=_export_sfc(_sfc_main$a,[["render",_sfc_render$a]]),_sfc_main$9={name:"SubprocessTransactorSettings",components:{TransactorSettings},props:{value:{type:Object,default:null}},data(){let e=!1;this.value.userCondition&&(e=!0);let t=deepCopy(this.value);return t.userCondition||(t={userCondition:"${instanceCreator}",additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}}),{model:{showTransactorSettings:e,transactorSettings:t}}},mounted(){this.$watch("model",function(e){e.showTransactorSettings?this.$emit("input",e.transactorSettings):this.$emit("input",{})},{deep:!0})}};function _sfc_render$9(e,t,o,i,n,r){const l=Vue.resolveComponent("el-switch"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("transactor-settings",!0);return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.setTheHandlerOfTheFirstPhaseOfTheSubProcess")),1),Vue.createVNode(l,{modelValue:n.model.showTransactorSettings,"onUpdate:modelValue":t[0]||(t[0]=u=>n.model.showTransactorSettings=u)},null,8,["modelValue"])]),_:1}),n.model.showTransactorSettings?(Vue.openBlock(),Vue.createBlock(a,{key:0,"is-subprocess":!0,model:n.model.transactorSettings},null,8,["model"])):Vue.createCommentVNode("",!0)])}const SubprocessTransactorSettings=_export_sfc(_sfc_main$9,[["render",_sfc_render$9]]),subprocess_vue_vue_type_style_index_0_scoped_857eb223_lang="",_sfc_main$8={name:"SubprocessPropertiesEditor",components:{BasicProperties,SubprocessTransactorSettings,Events},props:{model:{type:Object,default:null}},data(){return{activeTab:"basicProperties"}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.id",function(e,t){this.model.id=e}),this.$watch("model.ref.attr.name",function(e,t){this.model.name=e})},methods:{handleClick(e,t){}}};function _sfc_render$8(e,t,o,i,n,r){const l=Vue.resolveComponent("basic-properties"),s=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("subprocess-transactor-settings"),u=Vue.resolveComponent("events"),d=Vue.resolveComponent("el-tabs"),c=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(c,{visible:"",title:e.$t("workflowEditor.process.propertiesOfSubprocesses"),center:!0,top:"10vh","append-to-body":"","custom-class":"properties-editor",onOpen:t[2]||(t[2]=m=>e.$emit("open")),onOpend:t[3]||(t[3]=m=>e.$emit("opend")),onClose:t[4]||(t[4]=m=>e.$emit("close")),onClosed:t[5]||(t[5]=m=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.activeTab,"onUpdate:modelValue":t[1]||(t[1]=m=>n.activeTab=m),type:"border-card",onTabClick:r.handleClick},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workflowEditor.process.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{id:o.model.ref.attr.id,name:o.model.ref.attr.name,model:o.model.ref},null,8,["id","name","model"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.settingOfHandler"),name:"transactors"},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:o.model.ref.transactorSettings,"onUpdate:modelValue":t[0]||(t[0]=m=>o.model.ref.transactorSettings=m)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("workflowEditor.process.eventProcessing"),name:"events"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{model:o.model.ref.events},null,8,["model"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1},8,["title"])}const SubprocessPropertiesEditor=_export_sfc(_sfc_main$8,[["render",_sfc_render$8],["__scopeId","data-v-857eb223"]]),tacheHistoryTooltip_vue_vue_type_style_index_0_scoped_ac799913_lang="",_sfc_main$7={name:"TacheHistoryTooltip",props:{content:{type:String,default:""}},methods:{}},_hoisted_1$7={class:"tooltip"},_hoisted_2$4=["innerHTML"];function _sfc_render$7(e,t,o,i,n,r){return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$7,[Vue.createElementVNode("div",{innerHTML:o.content},null,8,_hoisted_2$4)])}const TacheHistoryTooltip=_export_sfc(_sfc_main$7,[["render",_sfc_render$7],["__scopeId","data-v-ac799913"]]),canvas_vue_vue_type_style_index_0_lang="",_sfc_main$6={name:"Canvas",components:{Start,End,HumanTask,Decision,Subprocess,CustomTask,Fork,Join,HumanDecision,CopyTask,Transition,VirtualTransition,SelectionRegion,HumanTaskPropertiesEditor,ProcessPropertiesEditor,DecisionPropertiesEditor,TransitionPropertiesEditor,ForkPropertiesEditor,JoinPropertiesEditor,HumanDecisionPropertiesEditor,CopyTaskPropertiesEditor,SubprocessPropertiesEditor,TacheHistoryTooltip,AutoTask,AutoTaskPropertiesEditor},props:{process:{type:Object,default:null},showHistory:{type:Boolean,default:!1}},data:function(){return{inputArea:null,currentPosition:null,originPosition:null,offset:null,startPoint:null,region:null,endPoint:null,transitionsInRegion:[],showTacheHistory:!1,tooltipPosition:null}},computed:{...mapGetters("wfEditor",["taches","transitions","isMovingTache","mouseDownPosition","startJoint","endJoint","isDrawingRegion","isMovingRegion","selectedTransition","selectedTaches","resizerToMove","draggerToMove","controlPointToMove","propertiesEditorFor","contextMenuVisible"])},mounted:function(){},methods:{...mapMutations("wfEditor",["setTaches","setTransitions","resetState","setMovingTache","stopDrawingLine","setSelectedTaches","setDrawingRegion","setResizerToMove","setDraggerToMove","setControlPointToMove","setPropertiesEditorFor"]),forbidSelection(){return!1},add:function(){},mousedown(e){console.log("mousedown"),this.unselectAll(),this.setDrawingRegion(!0),this.startPoint=getMousePosition(e)},mousemove(e){this.showHistory||(!this.originPosition&&this.mouseDownPosition&&(this.originPosition=this.mouseDownPosition),this.currentPosition=getMousePosition(e),this.isMovingTache&&this.moveTache(this.selectedTaches[0]),this.drawVirtualSelectionRegion(),this.moveSelectionRegion(),this.resizeSelectedTache(),this.moveTransition(),this.adjustCurveLine(),this.originPosition=this.currentPosition)},mouseup(e){console.log("mouseup"),this.isMovingTache&&this.setMovingTache(!1),this.startJoint&&this.stopDrawingLine(),this.drawRegionWhenNeeded(),this.resizerToMove&&this.setResizerToMove(null),this.resetMovedTransition()},mouseleave(e){this.drawRegionWhenNeeded(),this.resetMovedTransition(),this.resetState()},drawRegionWhenNeeded(){this.isDrawingRegion&&(this.selectComponents(),this.drawRealSelectionRegion(),this.setDrawingRegion(!1))},resetMovedTransition(){this.draggerToMove&&(this.draggerToMove.owner.startJoint=this.draggerToMove.originStartJoint,this.draggerToMove.owner.endJoint=this.draggerToMove.originEndJoint,this.setDraggerToMove(null))},unselectAll(){clearAllSelectedComponents(),this.transitionsInRegion=[],this.startPoint=null,this.region=null},selectComponents(){if(!this.startPoint||!this.region){this.startPoint=null,this.region=null;return}for(const e of this.taches)this.isInsideSelectionRegion(e)&&(e.isSelected=!0,this.selectedTaches.push(e));for(const e of this.transitions)e.startJoint.parent.isSelected&&e.endJoint.parent.isSelected&&this.transitionsInRegion.push(e)},isInsideSelectionRegion(e){const t=e.x>=this.region.x&&e.y>=this.region.y,o=e.x+e.width<=this.region.x+this.region.width&&e.y+e.height<=this.region.y+this.region.height;return t&&o},moveTache(e){const t=this.currentPosition.x-this.originPosition.x,o=this.currentPosition.y-this.originPosition.y;e.x+=t,e.y+=o,e.x<0&&(e.x=2),e.y<0&&(e.y=2)},drawVirtualSelectionRegion(){this.isDrawingRegion&&this.startPoint&&(this.region=getVirtualRegion(this.startPoint,this.currentPosition))},drawRealSelectionRegion(){if(this.selectedTaches.length<=1){this.startPoint=null,this.region=null;return}this.region=getRealRegion(this.selectedTaches)},moveSelectionRegion(){if(!this.isMovingRegion)return;let e=this.currentPosition.x-this.originPosition.x,t=this.currentPosition.y-this.originPosition.y;this.region.x+e<0&&(e=2-this.region.x),this.region.y+t<0&&(t=2-this.region.y),this.region.x=this.region.x+e,this.region.y=this.region.y+t,this.moveTachesInRegion(e,t),this.moveTransitionControlPoints(e,t)},moveTachesInRegion(e,t){for(const o of this.selectedTaches)o.x+=e,o.y+=t},moveTransitionControlPoints(e,t){for(const o of this.transitionsInRegion)o.lineInfo.type==="CurveLine"?(o.lineInfo.controlPoint.x+=e,o.lineInfo.controlPoint.y+=t):o.lineInfo.type==="BrokenLine"&&o.lineInfo.controlPoint.forEach(i=>{i.x+=e,i.y+=t})},resizeSelectedTache(){if(!this.resizerToMove)return;let e=this.currentPosition.x-this.originPosition.x,t=this.currentPosition.y-this.originPosition.y;const o=this.resizerToMove.owner;switch(this.resizerToMove.position){case"NW":o.width-e<80&&(e=o.width-80),o.height-t<40&&(t=o.height-40),o.width-=e,o.height-=t,o.x+=e,o.y+=t;break;case"NE":o.width+e<80&&(e=80-o.width),o.height-t<40&&(t=o.height-40),o.width+=e,o.height-=t,o.y+=t;break;case"SW":o.width-e<80&&(e=o.width-80),o.height+t<40&&(t=40-o.height),o.width-=e,o.height+=t,o.x+=e;break;case"SE":o.width+e<80&&(e=80-o.width),o.height+t<40&&(t=40-o.height),o.width+=e,o.height+=t;break}},moveTransition(){if(!this.draggerToMove)return;const e=this.draggerToMove.owner,t=this.draggerToMove.position,o={parent:this.currentPosition,position:""};t==="start"?e.startJoint=o:e.endJoint=o},adjustCurveLine(){if(!this.controlPointToMove)return;const e=this.controlPointToMove.owner;if(e.lineInfo&&e.lineInfo.type==="CurveLine")e.lineInfo.controlPoint=this.currentPosition;else if(e.lineInfo&&e.lineInfo.type==="BrokenLine"){const t=this.controlPointToMove.pointIndex,o=e.lineInfo.controlPoint;this.$set(o,t,this.currentPosition)}},endDrag(e){},showTacheHistoryTooltip(e){this.showTacheHistory=!0},hideTacheHistoryTooltip(){this.showTacheHistory=!1},updateTacheHistoryTooltipPosition(e){const t=getMousePosition(e);this.tooltipPosition={left:t.x+"px",top:t.y+"px"}}}},_hoisted_1$6={ref:"svgContainer",style:{position:"relative"}},_hoisted_2$3=Vue.createElementVNode("defs",null,[Vue.createElementVNode("marker",{id:"arrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"2",orient:"auto",markerUnits:"strokeWidth"},[Vue.createElementVNode("path",{d:"M0,0 L0,4 L6,2 z",fill:"#666"})])],-1);function _sfc_render$6(e,t,o,i,n,r){const l=Vue.resolveComponent("virtual-transition"),s=Vue.resolveComponent("selection-region"),a=Vue.resolveComponent("tache-history-tooltip");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$6,[(Vue.openBlock(),Vue.createElementBlock("svg",{id:"svg",width:"2000",height:"2000",onMousedown:t[0]||(t[0]=(...u)=>r.mousedown&&r.mousedown(...u)),onMousemove:t[1]||(t[1]=(...u)=>r.mousemove&&r.mousemove(...u)),onMouseup:t[2]||(t[2]=(...u)=>r.mouseup&&r.mouseup(...u)),onMouseleave:t[3]||(t[3]=(...u)=>r.mouseleave&&r.mouseleave(...u)),onDblclick:t[4]||(t[4]=u=>e.setPropertiesEditorFor("Process"))},[_hoisted_2$3,(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.taches,u=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(u.type),{key:u.id,model:u,onMouseenter:r.showTacheHistoryTooltip,onMouseleave:r.hideTacheHistoryTooltip,onMousemove:r.updateTacheHistoryTooltipPosition},null,40,["model","onMouseenter","onMouseleave","onMousemove"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.transitions,u=>(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:u.id,model:u},null,8,["model"]))),128)),Vue.createVNode(l,{toPosition:e.currentPosition},null,8,["toPosition"]),Vue.createVNode(s,{region:e.region},null,8,["region"])],32)),!o.showHistory&&e.propertiesEditorFor?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.propertiesEditorFor+"PropertiesEditor"),{key:0,model:e.selectedTaches[0]||e.selectedTransition||o.process,onClose:t[5]||(t[5]=u=>e.setPropertiesEditorFor(""))},null,40,["model"])):Vue.createCommentVNode("",!0),o.showHistory&&e.showTacheHistory?(Vue.openBlock(),Vue.createBlock(a,{key:1,style:Vue.normalizeStyle(e.tooltipPosition)},null,8,["style"])):Vue.createCommentVNode("",!0)],512)}const WorkflowCanvas=_export_sfc(_sfc_main$6,[["render",_sfc_render$6]]),contextMenu_vue_vue_type_style_index_0_scoped_ee0cf618_lang="",_sfc_main$5={name:"ContextMenu",components:{IconSvg},data(){return{menusForTransition:[{name:"switch-line-type-StraightLine",label:this.$t("workflowEditor.main.straightLine"),icon:"switch"},{name:"switch-line-type-CurveLine",label:this.$t("workflowEditor.main.curveLine"),icon:"switch"},{name:"switch-line-type-BrokenLine",label:this.$t("workflowEditor.main.brokenLine"),icon:"switch"},{name:"remove",label:this.$t("workflowEditor.common.remove"),icon:"delete"},{name:"properties",label:this.$t("workflowEditor.common.attribute"),icon:"properties"}],menusForTache:[{name:"remove",label:this.$t("workflowEditor.common.remove"),icon:"delete"},{name:"properties",label:this.$t("workflowEditor.common.attribute"),icon:"properties"}],menusForProcess:[{name:"properties",label:this.$t("workflowEditor.common.attribute"),icon:"properties"}]}},computed:{...mapGetters("wfEditor",["taches","transitions","selectedTransition","selectedTaches"]),menuType(){let e="";return this.selectedTransition?e="Transition":this.selectedTaches.length===1&&(e="Tache"),this.selectedTransition===null&&this.selectedTaches.length===0&&(e="Process"),e},menus(){return this.menuType?this["menusFor"+this.menuType]:[]}},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),switchLineType(e){this.selectedTransition.lineInfo.controlPoint=null,this.selectedTransition.lineInfo.type=e},execute(e){if(console.log("menu:"+e),e.indexOf("switch-line-type-")>=0){const o=e.substring(e.lastIndexOf("-")+1);this.switchLineType(o)}e==="remove"&&(this.menuType==="Tache"?this.taches.splice(this.taches.indexOf(this.selectedTaches[0]),1):this.menuType==="Transition"&&this.transitions.splice(this.transitions.indexOf(this.selectedTransition),1));const t=["Start","End"];e==="properties"&&(this.menuType==="Tache"?this.setPropertiesEditorFor(t.indexOf(this.selectedTaches[0].type)>=0?"":this.selectedTaches[0].type):this.menuType==="Transition"?this.setPropertiesEditorFor("Transition"):this.setPropertiesEditorFor("Process")),this.setContextMenuVisible(!1)}}},_hoisted_1$5={class:"context-menu"},_hoisted_2$2=["onMousedown"];function _sfc_render$5(e,t,o,i,n,r){const l=Vue.resolveComponent("icon-svg");return Vue.openBlock(),Vue.createElementBlock("ul",_hoisted_1$5,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r.menus,s=>(Vue.openBlock(),Vue.createElementBlock("li",{key:s.name,onMousedown:Vue.withModifiers(a=>r.execute(s.name),["stop"])},[Vue.createVNode(l,{icon:s.icon},null,8,["icon"]),Vue.createElementVNode("span",null,Vue.toDisplayString(s.label),1)],40,_hoisted_2$2))),128))])}const ContextMenu=_export_sfc(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-ee0cf618"]]);var FileSaver_min={exports:{}};(function(e,t){(function(o,i){i()})(commonjsGlobal,function(){function o(a,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function i(a,u,d){var c=new XMLHttpRequest;c.open("GET",a),c.responseType="blob",c.onload=function(){s(c.response,u,d)},c.onerror=function(){console.error("could not download file")},c.send()}function n(a){var u=new XMLHttpRequest;u.open("HEAD",a,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function r(a){try{a.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(u)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,s=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype?function(a,u,d){var c=l.URL||l.webkitURL,m=document.createElement("a");u=u||a.name||"download",m.download=u,m.rel="noopener",typeof a=="string"?(m.href=a,m.origin===location.origin?r(m):n(m.href)?i(a,u,d):r(m,m.target="_blank")):(m.href=c.createObjectURL(a),setTimeout(function(){c.revokeObjectURL(m.href)},4e4),setTimeout(function(){r(m)},0))}:"msSaveOrOpenBlob"in navigator?function(a,u,d){if(u=u||a.name||"download",typeof a!="string")navigator.msSaveOrOpenBlob(o(a,d),u);else if(n(a))i(a,u,d);else{var c=document.createElement("a");c.href=a,c.target="_blank",setTimeout(function(){r(c)})}}:function(a,u,d,c){if(c=c||open("","_blank"),c&&(c.document.title=c.document.body.innerText="downloading..."),typeof a=="string")return i(a,u,d);var m=a.type==="application/octet-stream",w=/constructor/i.test(l.HTMLElement)||l.safari,_=/CriOS\/[\d]+/.test(navigator.userAgent);if((_||m&&w)&&typeof FileReader=="object"){var b=new FileReader;b.onloadend=function(){var p=b.result;p=_?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=p:location=p,c=null},b.readAsDataURL(a)}else{var E=l.URL||l.webkitURL,f=E.createObjectURL(a);c?c.location=f:location.href=f,c=null,setTimeout(function(){E.revokeObjectURL(f)},4e4)}});l.saveAs=s.saveAs=s,e.exports=s})})(FileSaver_min);var FileSaver_minExports=FileSaver_min.exports;const FileSaver=getDefaultExportFromCjs(FileSaver_minExports);var prism={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
36
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
37
|
+
*
|
|
38
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
39
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
40
|
+
* @namespace
|
|
41
|
+
* @public
|
|
42
|
+
*/var o=function(i){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,l={},s={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function p(g){return g instanceof a?new a(g.type,p(g.content),g.alias):Array.isArray(g)?g.map(p):g.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++r}),p.__id},clone:function p(g,v){v=v||{};var T,O;switch(s.util.type(g)){case"Object":if(O=s.util.objId(g),v[O])return v[O];T={},v[O]=T;for(var N in g)g.hasOwnProperty(N)&&(T[N]=p(g[N],v));return T;case"Array":return O=s.util.objId(g),v[O]?v[O]:(T=[],v[O]=T,g.forEach(function(P,y){T[y]=p(P,v)}),T);default:return g}},getLanguage:function(p){for(;p;){var g=n.exec(p.className);if(g)return g[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,g){p.className=p.className.replace(RegExp(n,"gi"),""),p.classList.add("language-"+g)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(T){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(T.stack)||[])[1];if(p){var g=document.getElementsByTagName("script");for(var v in g)if(g[v].src==p)return g[v]}return null}},isActive:function(p,g,v){for(var T="no-"+g;p;){var O=p.classList;if(O.contains(g))return!0;if(O.contains(T))return!1;p=p.parentElement}return!!v}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,g){var v=s.util.clone(s.languages[p]);for(var T in g)v[T]=g[T];return v},insertBefore:function(p,g,v,T){T=T||s.languages;var O=T[p],N={};for(var P in O)if(O.hasOwnProperty(P)){if(P==g)for(var y in v)v.hasOwnProperty(y)&&(N[y]=v[y]);v.hasOwnProperty(P)||(N[P]=O[P])}var R=T[p];return T[p]=N,s.languages.DFS(s.languages,function(H,$){$===R&&H!=p&&(this[H]=N)}),N},DFS:function p(g,v,T,O){O=O||{};var N=s.util.objId;for(var P in g)if(g.hasOwnProperty(P)){v.call(g,P,g[P],T||P);var y=g[P],R=s.util.type(y);R==="Object"&&!O[N(y)]?(O[N(y)]=!0,p(y,v,null,O)):R==="Array"&&!O[N(y)]&&(O[N(y)]=!0,p(y,v,P,O))}}},plugins:{},highlightAll:function(p,g){s.highlightAllUnder(document,p,g)},highlightAllUnder:function(p,g,v){var T={callback:v,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",T),T.elements=Array.prototype.slice.apply(T.container.querySelectorAll(T.selector)),s.hooks.run("before-all-elements-highlight",T);for(var O=0,N;N=T.elements[O++];)s.highlightElement(N,g===!0,T.callback)},highlightElement:function(p,g,v){var T=s.util.getLanguage(p),O=s.languages[T];s.util.setLanguage(p,T);var N=p.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(N,T);var P=p.textContent,y={element:p,language:T,grammar:O,code:P};function R($){y.highlightedCode=$,s.hooks.run("before-insert",y),y.element.innerHTML=y.highlightedCode,s.hooks.run("after-highlight",y),s.hooks.run("complete",y),v&&v.call(y.element)}if(s.hooks.run("before-sanity-check",y),N=y.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!y.code){s.hooks.run("complete",y),v&&v.call(y.element);return}if(s.hooks.run("before-highlight",y),!y.grammar){R(s.util.encode(y.code));return}if(g&&i.Worker){var H=new Worker(s.filename);H.onmessage=function($){R($.data)},H.postMessage(JSON.stringify({language:y.language,code:y.code,immediateClose:!0}))}else R(s.highlight(y.code,y.grammar,y.language))},highlight:function(p,g,v){var T={code:p,grammar:g,language:v};if(s.hooks.run("before-tokenize",T),!T.grammar)throw new Error('The language "'+T.language+'" has no grammar.');return T.tokens=s.tokenize(T.code,T.grammar),s.hooks.run("after-tokenize",T),a.stringify(s.util.encode(T.tokens),T.language)},tokenize:function(p,g){var v=g.rest;if(v){for(var T in v)g[T]=v[T];delete g.rest}var O=new c;return m(O,O.head,p),d(p,O,g,O.head,0),_(O)},hooks:{all:{},add:function(p,g){var v=s.hooks.all;v[p]=v[p]||[],v[p].push(g)},run:function(p,g){var v=s.hooks.all[p];if(!(!v||!v.length))for(var T=0,O;O=v[T++];)O(g)}},Token:a};i.Prism=s;function a(p,g,v,T){this.type=p,this.content=g,this.alias=v,this.length=(T||"").length|0}a.stringify=function p(g,v){if(typeof g=="string")return g;if(Array.isArray(g)){var T="";return g.forEach(function(R){T+=p(R,v)}),T}var O={type:g.type,content:p(g.content,v),tag:"span",classes:["token",g.type],attributes:{},language:v},N=g.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(O.classes,N):O.classes.push(N)),s.hooks.run("wrap",O);var P="";for(var y in O.attributes)P+=" "+y+'="'+(O.attributes[y]||"").replace(/"/g,""")+'"';return"<"+O.tag+' class="'+O.classes.join(" ")+'"'+P+">"+O.content+"</"+O.tag+">"};function u(p,g,v,T){p.lastIndex=g;var O=p.exec(v);if(O&&T&&O[1]){var N=O[1].length;O.index+=N,O[0]=O[0].slice(N)}return O}function d(p,g,v,T,O,N){for(var P in v)if(!(!v.hasOwnProperty(P)||!v[P])){var y=v[P];y=Array.isArray(y)?y:[y];for(var R=0;R<y.length;++R){if(N&&N.cause==P+","+R)return;var H=y[R],$=H.inside,j=!!H.lookbehind,te=!!H.greedy,ne=H.alias;if(te&&!H.pattern.global){var ee=H.pattern.toString().match(/[imsuy]*$/)[0];H.pattern=RegExp(H.pattern.source,ee+"g")}for(var U=H.pattern||H,K=T.next,J=O;K!==g.tail&&!(N&&J>=N.reach);J+=K.value.length,K=K.next){var q=K.value;if(g.length>p.length)return;if(!(q instanceof a)){var Q=1,z;if(te){if(z=u(U,J,p,j),!z||z.index>=p.length)break;var le=z.index,se=z.index+z[0].length,Z=J;for(Z+=K.value.length;le>=Z;)K=K.next,Z+=K.value.length;if(Z-=K.value.length,J=Z,K.value instanceof a)continue;for(var oe=K;oe!==g.tail&&(Z<se||typeof oe.value=="string");oe=oe.next)Q++,Z+=oe.value.length;Q--,q=p.slice(J,Z),z.index-=J}else if(z=u(U,0,q,j),!z)continue;var le=z.index,V=z[0],h=q.slice(0,le),M=q.slice(le+V.length),S=J+q.length;N&&S>N.reach&&(N.reach=S);var L=K.prev;h&&(L=m(g,L,h),J+=h.length),w(g,L,Q);var G=new a(P,$?s.tokenize(V,$):V,ne,V);if(K=m(g,L,G),M&&m(g,K,M),Q>1){var k={cause:P+","+R,reach:S};d(p,g,v,K.prev,J,k),N&&k.reach>N.reach&&(N.reach=k.reach)}}}}}}function c(){var p={value:null,prev:null,next:null},g={value:null,prev:p,next:null};p.next=g,this.head=p,this.tail=g,this.length=0}function m(p,g,v){var T=g.next,O={value:v,prev:g,next:T};return g.next=O,T.prev=O,p.length++,O}function w(p,g,v){for(var T=g.next,O=0;O<v&&T!==p.tail;O++)T=T.next;g.next=T,T.prev=g,p.length-=O}function _(p){for(var g=[],v=p.head.next;v!==p.tail;)g.push(v.value),v=v.next;return g}if(!i.document)return i.addEventListener&&(s.disableWorkerMessageHandler||i.addEventListener("message",function(p){var g=JSON.parse(p.data),v=g.language,T=g.code,O=g.immediateClose;i.postMessage(s.highlight(T,s.languages[v],v)),O&&i.close()},!1)),s;var b=s.util.currentScript();b&&(s.filename=b.src,b.hasAttribute("data-manual")&&(s.manual=!0));function E(){s.manual||s.highlightAll()}if(!s.manual){var f=document.readyState;f==="loading"||f==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return s}(t);e.exports&&(e.exports=o),typeof commonjsGlobal<"u"&&(commonjsGlobal.Prism=o),o.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},o.languages.markup.tag.inside["attr-value"].inside.entity=o.languages.markup.entity,o.languages.markup.doctype.inside["internal-subset"].inside=o.languages.markup,o.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.replace(/&/,"&"))}),Object.defineProperty(o.languages.markup.tag,"addInlined",{value:function(n,r){var l={};l["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:o.languages[r]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};s["language-"+r]={pattern:/[\s\S]+/,inside:o.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:s},o.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(o.languages.markup.tag,"addAttribute",{value:function(i,n){o.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:o.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),o.languages.html=o.languages.markup,o.languages.mathml=o.languages.markup,o.languages.svg=o.languages.markup,o.languages.xml=o.languages.extend("markup",{}),o.languages.ssml=o.languages.xml,o.languages.atom=o.languages.xml,o.languages.rss=o.languages.xml,function(i){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var r=i.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(o),o.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},o.languages.javascript=o.languages.extend("clike",{"class-name":[o.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),o.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,o.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:o.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:o.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:o.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:o.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:o.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),o.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:o.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),o.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),o.languages.markup&&(o.languages.markup.tag.addInlined("script","javascript"),o.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),o.languages.js=o.languages.javascript,function(){if(typeof o>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i="Loading…",n=function(b,E){return"✖ Error "+b+" while fetching file: "+E},r="✖ Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",a="loading",u="loaded",d="failed",c="pre[data-src]:not(["+s+'="'+u+'"]):not(['+s+'="'+a+'"])';function m(b,E,f){var p=new XMLHttpRequest;p.open("GET",b,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?E(p.responseText):p.status>=400?f(n(p.status,p.statusText)):f(r))},p.send(null)}function w(b){var E=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(E){var f=Number(E[1]),p=E[2],g=E[3];return p?g?[f,Number(g)]:[f,void 0]:[f,f]}}o.hooks.add("before-highlightall",function(b){b.selector+=", "+c}),o.hooks.add("before-sanity-check",function(b){var E=b.element;if(E.matches(c)){b.code="",E.setAttribute(s,a);var f=E.appendChild(document.createElement("CODE"));f.textContent=i;var p=E.getAttribute("data-src"),g=b.language;if(g==="none"){var v=(/\.(\w+)$/.exec(p)||[,"none"])[1];g=l[v]||v}o.util.setLanguage(f,g),o.util.setLanguage(E,g);var T=o.plugins.autoloader;T&&T.loadLanguages(g),m(p,function(O){E.setAttribute(s,u);var N=w(E.getAttribute("data-range"));if(N){var P=O.split(/\r\n?|\n/g),y=N[0],R=N[1]==null?P.length:N[1];y<0&&(y+=P.length),y=Math.max(0,Math.min(y-1,P.length)),R<0&&(R+=P.length),R=Math.max(0,Math.min(R,P.length)),O=P.slice(y,R).join(`
|
|
43
|
+
`),E.hasAttribute("data-start")||E.setAttribute("data-start",String(y+1))}f.textContent=O,o.highlightElement(f)},function(O){E.setAttribute(s,d),f.textContent=O})}}),o.plugins.fileHighlight={highlight:function(E){for(var f=(E||document).querySelectorAll(c),p=0,g;g=f[p++];)o.highlightElement(g)}};var _=!1;o.fileHighlight=function(){_||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),_=!0),o.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports),_sfc_main$4={name:"AdminSaveDialog",data(){return{}},methods:{updateWfVersion(){this.$emit("update")},addWfVersion(){this.$emit("add")}}},_hoisted_1$4={slot:"footer",class:"dialog-footer"};function _sfc_render$4(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(s,{visible:"",title:e.$t("workflowEditorPublicModel.tipTitle"),center:!0,top:"10vh","append-to-body":"",onOpen:t[1]||(t[1]=a=>e.$emit("open")),onOpend:t[2]||(t[2]=a=>e.$emit("opend")),onClose:t[3]||(t[3]=a=>e.$emit("close")),onClosed:t[4]||(t[4]=a=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,Vue.toDisplayString(e.$t("workflowEditorMessage.adminSaveTip")),1),Vue.createElementVNode("ul",null,[Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditorMessage.adminSaveTip1")),1),Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditorMessage.adminSaveTip2")),1),Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditorMessage.adminSaveTip3")),1),Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditorMessage.adminSaveTip4")),1)]),Vue.createElementVNode("div",null,Vue.toDisplayString(e.$t("workflowEditorMessage.adminSaveTip5")),1),Vue.createElementVNode("div",_hoisted_1$4,[Vue.createVNode(l,{onClick:r.updateWfVersion},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.updateVersion")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{type:"primary",onClick:r.addWfVersion},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.addVersion")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{onClick:t[0]||(t[0]=a=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})])]),_:1},8,["title"])}const AdminSaveDialog=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]),workflowEditor_vue_vue_type_style_index_0_scoped_f7eb18a0_lang="",_sfc_main$3={name:"WorkflowEditor",components:{WorkflowCanvas,Toolbox,IconSvg,ContextMenu,AdminSaveDialog},props:{code:{type:String,default:null},version:{type:Number,default:null},id:{type:Number,default:null},readonly:{type:Boolean,default:!1}},data:function(){return{activeTab:"canvas",count:1,currentPosition:{x:0,y:0},process:null,definitionId:null,xml:"",contextMenuPosition:null,isAdminSave:!1}},computed:{...mapGetters("wfEditor",["componentToDraw","taches","transitions","contextMenuVisible"]),...mapGetters(["sidebar"]),componentInfo(){return getComponentInfo(this.componentToDraw)}},watch:{activeTab(e){e==="xml"&&(this.xml=this.getProcessXml(),this.$nextTick(function(){Prism.highlightElement(this.$refs.xml)}))}},created:function(){if(this.clearCanvas(),this.id&&(this.definitionId=this.id),console.log("canvas-created=",this.code,this.id),this.code||this.id){let e=this.baseAPI+"/wf-editor/open-xmls/with-definitions";e=this.packageUrlParam(e),this.$http.get(e).then(t=>{this.initProcessByXml(t)})}else this.process=processTemplate.newProcess(),initializeProcessData(this.process)},mounted:function(){},methods:{...mapMutations("wfEditor",["setComponentToDraw","clearCanvas","setContextMenuVisible","setSystemCode","setProcessCode"]),showContextMenu(e){console.log(e),this.setContextMenuVisible(!0);const t=this.$refs.wfEditor.getBoundingClientRect();this.contextMenuPosition={x:e.clientX-t.x,y:e.clientY-t.y}},initProcessByXml(e){const t={nativeType:!0,attributesKey:"attr",compact:!0,ignoreComment:!0,spaces:4},o=convert.xml2js(e,t);removeTextProperty(o.process),this.process=o.process,this.process&&this.process.properties&&this.process.properties.basicProperties&&this.setSystemCode(this.process.properties.basicProperties.systemCode),this.process&&this.process.attr&&this.setProcessCode(this.process.attr.code),this.fetchFormFields(),initializeProcessData(this.process),this.count=this.getMaxCount()+1},fetchFormFields(){const e=this.process.properties.basicProperties,t=e.formCode,o=e.formVersion;t&&t!==""&&o&&processService.fetchFormFields(e.formCode,e.formVersion)},packageUrlParam(e){return this.id?e=e+"?id="+this.id:this.code&&(e=e+"?code="+this.code+"&version="+this.version),e},getProcessXml(){const e={start:[],humanTask:[],decision:[],transition:[],fork:[],join:[],subprocess:[],humanDecision:[],copyTask:[],autoTask:[],end:[]};e.attr=this.process.attr,e.properties=this.process.properties,this.taches.map(i=>{const n=i.type;e[n.charAt(0).toLowerCase()+n.substring(1)].push(i.ref),i.ref.g={x:i.x,y:i.y,width:i.width,height:i.height}}),this.transitions.map(i=>{if(e.transition.push(i.ref),i.ref.g={fromJoint:i.startJoint.position,toJoint:i.endJoint.position,coordinate:"",lineType:i.lineInfo.type},i.lineInfo.type==="CurveLine"&&i.lineInfo.controlPoint)i.ref.g.coordinate=i.lineInfo.controlPoint.x+","+i.lineInfo.controlPoint.y;else if(i.lineInfo.type==="BrokenLine"&&i.lineInfo.controlPoint){let n="";i.lineInfo.controlPoint.forEach(r=>{n+=r.x+","+r.y+";"}),i.ref.g.coordinate=n}});const t={attributesKey:"attr",compact:!0,ignoreComment:!0,spaces:4};let o=convert.json2xml({process:e},t);return o=`<?xml version="1.0" encoding="utf-8"?>
|
|
44
|
+
`+o,o},saveXml(){const e=this.getProcessXml();if(this.code||this.id||this.definitionId)this.saveWf(e,this.baseAPI+"/wf-editor/workflow-definitions/updates").then(()=>{this.$alert(this.$t("workflowEditorMessage.updateSuccessful"))});else{const t={xml:e};this.$http.post(this.baseAPI+"/wf-editor/workflow-definitions",t).then(o=>{this.definitionId=o.id,this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"))})}},saveWf(e,t,o){return new Promise((i,n)=>{const r=this.packageSaveXmlParam(e);this.$http.post(t,r).then(l=>{this.definitionId=l.id,i()})})},packageSaveXmlParam(e){const t={xml:e};return this.definitionId?t.id=this.definitionId:this.id?t.id=this.id:this.code&&(t.code=this.code,t.version=this.version),t},adminSave(){const e=this.getProcessXml();if(this.code||this.id||this.definitionId){const t=this.baseAPI+"/wf-editor/workflow-definitions/states",o={};this.definitionId?o.id=this.definitionId:this.id?o.id=this.id:this.code&&(o.code=this.code,o.version=this.version),this.$http.post(t,o).then(i=>{i==="DRAFT"?this.saveWf(e,this.baseAPI+"/wf-editor/workflow-definitions/updates").then(()=>{this.$alert(this.$t("workflowEditorMessage.updateSuccessful"))}):this.isAdminSave=!0})}else{const t={xml:e};this.$http.post(this.baseAPI+"/wf-editor/workflow-definitions",t).then(o=>{this.definitionId=o.id,this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"))})}},updateWfVersion(){const e=this.getProcessXml();this.saveWf(e,this.baseAPI+"/wf-editor/workflow-definitions/update-version").then(()=>{this.isAdminSave=!1,this.$alert(this.$t("workflowEditorMessage.updateVersionSuccessful"))})},addWfVersion(){const e=this.getProcessXml();this.saveWf(e,this.baseAPI+"/wf-editor/workflow-definitions/updates").then(()=>{this.isAdminSave=!1,this.$alert(this.$t("workflowEditorMessage.addVersionSuccessful"))})},exportProcessFromClient(){const e=new Blob([this.getProcessXml()],{type:"text/xml;charset=utf-8"});FileSaver.saveAs(e,this.process.attr.name+".xml")},exportProcess(){const e=this.getProcessXml();this.$http({method:"post",url:this.baseAPI+"/wf-editor/save-as-xmls",data:{xmlContent:e}}).then(t=>{this.download(t),console.log(this.$t("workflowEditorMessage.exportSucceeded"))})},download(e){if(!e)return;const t=window.URL.createObjectURL(new Blob([e])),o=document.createElement("a");o.style.display="none",o.href=t,o.setAttribute("download","myXml.xml"),document.body.appendChild(o),o.click()},uploadSuccess(e,t,o){const i=e;this.clearCanvas(),this.initProcessByXml(i),this.$refs.upload.clearFiles()},getCurrentPosition(e){if(this.componentToDraw){const t=this.$refs.wfEditor.getBoundingClientRect();this.currentPosition={x:e.clientX-t.x-22,y:e.clientY-t.y-22}}},startDrag(e){this.getCurrentPosition(e)},drag(e){this.getCurrentPosition(e)},endDrag(){this.componentToDraw&&this.setComponentToDraw("")},addTache(e){if(this.componentToDraw){const t=getMousePosition(e),o=processTemplate["new"+this.componentToDraw]();o.attr.id=this.componentToDraw.charAt(0).toLowerCase()+this.componentToDraw.substring(1)+"_"+this.count;const i={id:o.attr.id,name:o.attr.name,x:t.x-this.componentInfo.width/2,y:t.y-this.componentInfo.height/2,width:this.componentInfo.width,height:this.componentInfo.height,type:this.componentToDraw,isSelected:!1};i.ref=o,this.taches.push(i),this.count++}},clearStatus(){this.componentToDraw&&this.setComponentToDraw("")},getMaxCount(){let e=0;return this.taches.map(t=>{let o=t.id.substring(t.id.lastIndexOf("_")+1);o=+o,e<o&&(e=o)}),e},selectProcessFile(){this.$refs.processFile.click()},openXmlFromClient(){if(this.$refs.processFile.value==="")return;const e=this.$refs.processFile.files[0],t=new FileReader;t.readAsText(e);const o=this;t.onload=function(){o.clearCanvas(),o.initProcessByXml(t.result),o.$refs.processFile.value=""}}}},_hoisted_1$3={key:0,class:"xml line-numbers"};function _sfc_render$3(e,t,o,i,n,r){const l=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("toolbox"),u=Vue.resolveComponent("workflow-canvas"),d=Vue.resolveComponent("el-tab-pane"),c=Vue.resolveComponent("el-tabs"),m=Vue.resolveComponent("icon-svg"),w=Vue.resolveComponent("context-menu"),_=Vue.resolveComponent("admin-save-dialog"),b=Vue.resolveDirective("permission");return Vue.openBlock(),Vue.createElementBlock("div",{ref:"wfEditor",style:{position:"relative",height:"100%"},onMousedown:t[8]||(t[8]=E=>e.setContextMenuVisible(!1)),onMousewheel:t[9]||(t[9]=E=>e.setContextMenuVisible(!1))},[Vue.createVNode(s,{class:"button-area"},{default:Vue.withCtx(()=>[o.readonly?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:0,type:"primary",size:"small",onClick:r.saveXml},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.save")),1)]),_:1},8,["onClick"])),o.readonly?Vue.createCommentVNode("",!0):Vue.withDirectives((Vue.openBlock(),Vue.createBlock(l,{key:1,type:"primary",size:"small",onClick:r.adminSave},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.adminSave")),1)]),_:1},8,["onClick"])),[[b,"wf.workflowDefinition.adminSave"]]),Vue.createVNode(l,{type:"primary",size:"small",onClick:r.exportProcessFromClient},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.export")),1)]),_:1},8,["onClick"]),o.readonly?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:2,size:"small",type:"primary",onClick:r.selectProcessFile},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.open"))+" ",1),Vue.createElementVNode("input",{ref:"processFile",type:"file",name:"processFile",accept:".xml",style:{display:"none"},onChange:t[0]||(t[0]=(...E)=>r.openXmlFromClient&&r.openXmlFromClient(...E))},null,544)]),_:1},8,["onClick"])),Vue.createVNode(l,{type:"primary",size:"small",onClick:t[1]||(t[1]=E=>e.$emit("back"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.return")),1)]),_:1})]),_:1}),Vue.createElementVNode("div",{class:"main",onMousedown:t[3]||(t[3]=(...E)=>r.startDrag&&r.startDrag(...E)),onMousemove:t[4]||(t[4]=(...E)=>r.drag&&r.drag(...E)),onMouseup:t[5]||(t[5]=(...E)=>r.endDrag&&r.endDrag(...E)),onMouseleave:t[6]||(t[6]=(...E)=>r.clearStatus&&r.clearStatus(...E))},[o.readonly?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(a,{key:0,class:"toolbox",onselectstart:"return false",oncontextmenu:"return false"})),Vue.createElementVNode("section",null,[Vue.createVNode(c,{modelValue:e.activeTab,"onUpdate:modelValue":t[2]||(t[2]=E=>e.activeTab=E),type:"border-card",class:"tabs"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:e.$t("workflowEditorPublicModel.flowChart"),name:"canvas",class:"tab-pane"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{onselectstart:"return false",process:e.process,class:"canvas",onMouseup:r.addTache,onContextmenu:Vue.withModifiers(r.showContextMenu,["prevent"])},null,8,["process","onMouseup","onContextmenu"])]),_:1},8,["label"]),Vue.createVNode(d,{label:"XML",name:"xml",class:"tab-pane"},{default:Vue.withCtx(()=>[e.activeTab==="xml"?(Vue.openBlock(),Vue.createElementBlock("pre",_hoisted_1$3,[Vue.createElementVNode("code",{ref:"xml",class:"language-xml"},Vue.toDisplayString(e.xml),513)])):Vue.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"])])],32),e.componentToDraw?(Vue.openBlock(),Vue.createBlock(m,{key:0,style:Vue.normalizeStyle({height:r.componentInfo.height,width:r.componentInfo.width,color:r.componentInfo.color,left:e.currentPosition.x+"px",top:e.currentPosition.y+"px"}),icon:r.componentInfo.icon,class:"component-icon"},null,8,["style","icon"])):Vue.createCommentVNode("",!0),e.contextMenuVisible?(Vue.openBlock(),Vue.createBlock(w,{key:1,style:Vue.normalizeStyle({position:"absolute",left:e.contextMenuPosition.x+"px",top:e.contextMenuPosition.y+"px"})},null,8,["style"])):Vue.createCommentVNode("",!0),e.isAdminSave?(Vue.openBlock(),Vue.createBlock(_,{key:2,onClose:t[7]||(t[7]=E=>e.isAdminSave=!1),onUpdate:r.updateWfVersion,onAdd:r.addWfVersion},null,8,["onUpdate","onAdd"])):Vue.createCommentVNode("",!0)],544)}const WorkflowEditor$1=_export_sfc(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-f7eb18a0"]]),getters={taches:e=>e.taches,transitions:e=>e.transitions,startJoint:e=>e.startJoint,endJoint:e=>e.endJoint,isMovingTache:e=>e.isMovingTache,mouseDownPosition:e=>e.mouseDownPosition,isDrawingRegion:e=>e.isDrawingRegion,isMovingRegion:e=>e.isMovingRegion,selectedTaches:e=>e.selectedTaches,selectedTransition:e=>e.selectedTransition,resizerToMove:e=>e.resizerToMove,draggerToMove:e=>e.draggerToMove,propertiesEditorFor:e=>e.propertiesEditorFor,componentToDraw:e=>e.componentToDraw,controlPointToMove:e=>e.controlPointToMove,formFields:e=>e.formFields,formCode:e=>e.formCode,formFieldsWithSub:e=>e.formFieldsWithSub,contextMenuVisible:e=>e.contextMenuVisible,systemCode:e=>e.systemCode,processCode:e=>e.processCode,processI18n:e=>e.processI18n,subtableConditionMap:e=>e.subtableConditionMap,propSettingKeyList:e=>e.propSettingKeyList},wfEditor={namespaced:!0,state:{taches:[],transitions:[],startJoint:null,endJoint:null,isMovingTache:!1,mouseDownPosition:null,isDrawingRegion:!1,isMovingRegion:!1,selectedTaches:[],selectedTransition:null,resizerToMove:null,draggerToMove:null,propertiesEditorFor:"",componentToDraw:"",controlPointToMove:null,formFields:[],formFieldsWithSub:[],contextMenuVisible:!1,formCode:null,systemCode:null,processCode:null,processI18n:null,subtableConditionMap:null,propSettingKeyList:null},getters,mutations:{setTaches(e,t){e.taches=t},setTransitions(e,t){e.transitions=t},clearCanvas(e){e.taches=[],e.transitions=[]},resetState(e){e.isMovingTache=!1,e.startJoint=null,e.endJoint=null,e.isDrawingRegion=!1,e.isMovingRegion=!1,e.resizerToMove=null,e.draggerToMove=null,e.controlPointToMove=null},stopDrawingLine(e){e.startJoint=null,e.endJoint=null},setStartJoint(e,t){e.startJoint=t},setEndJoint(e,t){e.endJoint=t},setMovingTache(e,t){e.isMovingTache=t},setMouseDownPosition(e,t){e.mouseDownPosition=t},setDrawingRegion(e,t){e.isDrawingRegion=t},setMovingRegion(e,t){e.isMovingRegion=t},setSelectedTaches(e,t){e.selectedTaches=t},setSelectedTransition(e,t){e.selectedTransition=t},setResizerToMove(e,t){e.resizerToMove=t},setDraggerToMove(e,t){e.draggerToMove=t},setPropertiesEditorFor(e,t){e.propertiesEditorFor=t},setComponentToDraw(e,t){e.componentToDraw=t},setControlPointToMove(e,t){e.controlPointToMove=t},setFormFields(e,t){e.formFields=t},setFormCode(e,t){e.formCode=t},setFormFieldsWithSub(e,t){e.formFieldsWithSub=t},setContextMenuVisible(e,t){e.contextMenuVisible=t},setSystemCode(e,t){e.systemCode=t},setProcessCode(e,t){e.processCode=t},setProcessI18n(e,t){e.processI18n=t},setSubtableConditionMap(e,t){e.subtableConditionMap=t},setPropSettingKeyList(e,t){e.propSettingKeyList=t}}};function i18nOperation(e,t,o,i){let n=e.transactionResult;const r=e.historyType;if(!e.current&&r)if(e.transactionParams){const l=JSON.parse(e.transactionParams);let s=r.toLowerCase();const a=isCommonButtonOperation(r);if(a?s="commonButtonOperation":s==="process_end"&&(s="processEnd"),a||r==="HISTORY_COMPLETE_TRANSFER"){const u=l[2];l[2]=getI18n$1().t("workflowButton."+u)}if(s==="process_start"&&t&&t!==null)l[1]=t,n=getI18n$1().t("workflowHistoryList."+s,l);else{const u=l;if(o&&i)for(const d in l){u[d]=l[d];const c=l[d];if(c.indexOf("${taskNodeId:")>=0){const m=c.substring(c.indexOf(":")+1,c.indexOf("##")),w=c.substring(c.indexOf("##")+2,c.lastIndexOf("}")),_=o[m];_&&_[i]&&_[i]!==""?u[d]=_[i]:u[d]=w}}n=getI18n$1().t("workflowHistoryList."+s,u)}}else n=getI18n$1().t("workflowHistoryList."+r.toLowerCase());return n}function isCommonButtonOperation(e){return e==="HISTORY_SUBMIT"||e==="HISTORY_AGREE"||e==="HISTORY_DISAGREE"||e==="HISTORY_AGREEMENT"||e==="HISTORY_OPPOSE"||e==="HISTORY_KIKEN"||e==="HISTORY_SIGNOFF"||e==="HISTORY_SEND"||e==="HISTORY_DISTRIBUTE"||e==="HISTORY_READED"}const tacheSubprocessHistoryDialog_vue_vue_type_style_index_0_scoped_fc050a42_lang="",_sfc_main$2={name:"TacheSubprocessHistoryDialog",props:{workflowId:{type:Number,default:null}}},_hoisted_1$2=["src"];function _sfc_render$2(e,t,o,i,n,r){const l=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(l,{visible:"",title:e.$t("workflowEditorPublicModel.subprocessTitle"),"close-on-click-modal":!1,"append-to-body":"",width:"90%",top:"5vh",onOpen:t[0]||(t[0]=s=>e.$emit("open")),onOpend:t[1]||(t[1]=s=>e.$emit("opend")),onClose:t[2]||(t[2]=s=>e.$emit("close")),onClosed:t[3]||(t[3]=s=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("iframe",{id:"_subprocess-content",src:"#/show-sub-wf-history?workflowId="+o.workflowId,name:"_subprocess-content",title:"Subprocess Content",frameborder:"0"},null,8,_hoisted_1$2)]),_:1},8,["title"])}const TacheSubprocessHistoryDialog=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-fc050a42"]]),wfHistoryCanvas_vue_vue_type_style_index_0_lang="",_sfc_main$1={name:"WfHistoryCanvas",components:{Start,End,HumanTask,Decision,Subprocess,CustomTask,Fork,Join,HumanDecision,CopyTask,Transition,TacheHistoryTooltip,TacheSubprocessHistoryDialog,AutoTask},props:{process:{type:Object,default:null},histories:{type:Array,default:null},currentTasks:{type:Array,default:null},allProcessI18n:{type:Object,default:null}},data:function(){return{showHistory:!1,tooltipPosition:null,tacheHistoryInfo:null,showSubprocessDialog:!1,subWorkflowId:null}},computed:{...mapGetters("wfEditor",["taches","transitions","processI18n"])},mounted:function(){},methods:{getTacheClass(e){if(this.getCurrentTache(e))return"current-tache";{const t=this.getPassedTache(e);return t&&t.current?"current-tache":t?"passed-tache":""}},getPassedTache(e){let t=null;for(const o of this.histories)if(o.historyType==="PROCESS_START"&&e.ref.attr.id&&e.ref.attr.id==="start"||o.historyType==="PROCESS_END"&&e.ref.attr.id&&e.ref.attr.id==="end"||e.ref.attr.name&&o.taskName&&o.taskName===e.ref.attr.name){t=o;break}return t},getPassedTacheHistories(e){const t=[];for(const o of this.histories)(o.historyType==="PROCESS_START"&&e.ref.attr.id&&e.ref.attr.id==="start"||o.historyType==="PROCESS_END"&&e.ref.attr.id&&e.ref.attr.id==="end"||e.ref.attr.name&&o.taskName&&o.taskName===e.ref.attr.name)&&t.push(this.i18nOperation(o));return t},i18nOperation(e){let t,o;const i=getLanguageWithLocale(),n=e.bundleCode;return n&&n!==""&&this.processI18n&&(t=this.processI18n[n]),t&&t.processName&&(o=t.processName[i]),i18nOperation(e,o,t,i)},getCurrentTache(e){let t=null;for(const o of this.currentTasks)if(o.taskName===e.ref.attr.name){t=o;break}return t},getTacheHistory(e){let t=null,o;const i=this.getPassedTacheHistories(e);i&&i.length>0&&(o=i.join("</br>"));const n=this.getCurrentTache(e);return n?(t=this.$t("workflowEditorMessage.currentHandlingPersonnel")+": "+n.transactionResult,o&&(t+="</br>"+o)):t=o,t},forbidSelection(){return!1},mousedown(e){console.log("mousedown")},mousemove(e){},mouseup(e){},mouseleave(e){},endDrag(e){},showTacheHistoryTooltip(e,t){this.tacheHistoryInfo=this.getTacheHistory(e),this.showHistory=!0},hideTacheHistoryTooltip(){this.showHistory=!1},updateTacheHistoryTooltipPosition(e){const t=getMousePosition(e);this.tooltipPosition={left:t.x+5+"px",top:t.y+5+"px"}},showSubprocessHistory(e){const t=this.getPassedTache(e);t&&t.hasChildren!==void 0&&t.hasChildren===!0&&(t.children&&t.children.length>0&&(this.subWorkflowId=t.children[0].workflowId),this.showSubprocessDialog=!0)},closeSubprocessHistory(){this.showSubprocessDialog=!1}}},_hoisted_1$1={ref:"svgContainer",style:{position:"relative"}},_hoisted_2$1=Vue.createElementVNode("defs",null,[Vue.createElementVNode("marker",{id:"arrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"2",orient:"auto",markerUnits:"strokeWidth"},[Vue.createElementVNode("path",{d:"M0,0 L0,4 L6,2 z",fill:"#666"})])],-1);function _sfc_render$1(e,t,o,i,n,r){const l=Vue.resolveComponent("tache-history-tooltip"),s=Vue.resolveComponent("tache-subprocess-history-dialog");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$1,[(Vue.openBlock(),Vue.createElementBlock("svg",{id:"svg",width:"2000",height:"2000",onMousedown:t[0]||(t[0]=(...a)=>r.mousedown&&r.mousedown(...a)),onMousemove:t[1]||(t[1]=(...a)=>r.mousemove&&r.mousemove(...a)),onMouseup:t[2]||(t[2]=(...a)=>r.mouseup&&r.mouseup(...a)),onMouseleave:t[3]||(t[3]=(...a)=>r.mouseleave&&r.mouseleave(...a))},[_hoisted_2$1,(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.taches,a=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(a.type),{key:a.id,model:a,class:Vue.normalizeClass([r.getTacheClass(a)]),"display-mode":a.displayMode,onMouseenter:u=>r.showTacheHistoryTooltip(a,u),onMouseleave:u=>r.hideTacheHistoryTooltip(a),onMousemove:r.updateTacheHistoryTooltipPosition,onClick:u=>r.showSubprocessHistory(a)},null,40,["model","class","display-mode","onMouseenter","onMouseleave","onMousemove","onClick"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.transitions,a=>(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:a.id,model:a},null,8,["model"]))),128))],32)),e.showHistory&&e.tacheHistoryInfo?(Vue.openBlock(),Vue.createBlock(l,{key:0,style:Vue.normalizeStyle(e.tooltipPosition),content:e.tacheHistoryInfo},null,8,["style","content"])):Vue.createCommentVNode("",!0),e.showSubprocessDialog?(Vue.openBlock(),Vue.createBlock(s,{key:1,"workflow-id":e.subWorkflowId,onClose:r.closeSubprocessHistory},null,8,["workflow-id","onClose"])):Vue.createCommentVNode("",!0)],512)}const WfHistoryCanvas=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),apis={refresh(){this.showHistory()}},workflowHistory_vue_vue_type_style_index_0_scoped_6658e14b_lang="",_sfc_main={name:"WorkflowHistory",components:{WfHistoryCanvas},props:{id:{type:Number,default:null}},data:function(){return{process:null,histories:[],currentTasks:[],allProcessI18n:null}},computed:{...mapGetters("wfEditor",["componentToDraw","taches","transitions","contextMenuVisible"]),...mapGetters(["sidebar"])},watch:{},created:function(){this.showHistory()},mounted:function(){},methods:{...apis,...mapMutations("wfEditor",["setComponentToDraw","clearCanvas","setContextMenuVisible","setProcessI18n"]),showHistory(){this.clearCanvas(),this.id?this.$http.get(this.baseAPI+"/wf-editor/i18n-settings/get-bundle-info?workflowId="+this.id).then(e=>{this.allProcessI18n=e;const t=this.baseAPI+"/wf-editor/instance-histories/"+this.id;this.$http.get(t).then(o=>{this.initProcessByXml(o.xml);let i;o.histories&&o.histories.length>0&&(i=o.histories[0].bundleCode),!i&&o.currentTasks&&o.currentTasks.length>0&&(i=o.currentTasks[0].bundleCode),i&&this.setProcessI18n(e[i]),this.histories=o.histories,this.currentTasks=o.currentTasks})}):(this.process=processTemplate.newProcess(),initializeProcessData(this.process))},showContextMenu(e){},initProcessByXml(e){const t={nativeType:!0,attributesKey:"attr",compact:!0,ignoreComment:!0,spaces:4},o=convert.xml2js(e,t);removeTextProperty(o.process),this.process=o.process,initializeProcessData(this.process)}}},_hoisted_1={ref:"wfEditor",style:{position:"relative",height:"100%"}},_hoisted_2={class:"main"};function _sfc_render(e,t,o,i,n,r){const l=Vue.resolveComponent("wf-history-canvas");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1,[Vue.createElementVNode("div",_hoisted_2,[Vue.createElementVNode("section",null,[Vue.createVNode(l,{onselectstart:"return false",process:e.process,histories:e.histories,"current-tasks":e.currentTasks,"all-process-i18n":e.allProcessI18n,"show-history":!0,class:"canvas",onContextmenu:Vue.withModifiers(r.showContextMenu,["prevent"])},null,8,["process","histories","current-tasks","all-process-i18n","onContextmenu"])])])],512)}const WorkflowHistory$1=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-6658e14b"]]);WorkflowEditor$1.install=function(e){e.component(WorkflowEditor$1.name,WorkflowEditor$1),e.component(WorkflowHistory$1.name,WorkflowHistory$1)};const workflow={WorkflowEditor:WorkflowEditor$1,WorkflowHistory:WorkflowHistory$1,wfEditorStore:wfEditor};function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},_extends.apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,t,o){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(n,r,l){var s=[null];s.push.apply(s,r);var a=Function.bind.apply(n,s),u=new a;return l&&_setPrototypeOf(u,l.prototype),u},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var t=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(i){if(i===null||!_isNativeFunction(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return _construct(i,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,i)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning=function e(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(warning=function(t,o){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&o.every(function(i){return typeof i=="string"})&&console.warn(t,o)});function convertFieldsError(e){if(!e||!e.length)return null;var t={};return e.forEach(function(o){var i=o.field;t[i]=t[i]||[],t[i].push(o)}),t}function format(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];var n=0,r=o.length;if(typeof e=="function")return e.apply(null,o);if(typeof e=="string"){var l=e.replace(formatRegExp,function(s){if(s==="%%")return"%";if(n>=r)return s;switch(s){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch{return"[Circular]"}break;default:return s}});return l}return e}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(t)&&typeof e=="string"&&!e)}function asyncParallelArray(e,t,o){var i=[],n=0,r=e.length;function l(s){i.push.apply(i,s||[]),n++,n===r&&o(i)}e.forEach(function(s){t(s,l)})}function asyncSerialArray(e,t,o){var i=0,n=e.length;function r(l){if(l&&l.length){o(l);return}var s=i;i=i+1,s<n?t(e[s],r):o([])}r([])}function flattenObjArr(e){var t=[];return Object.keys(e).forEach(function(o){t.push.apply(t,e[o]||[])}),t}var AsyncValidationError=function(e){_inheritsLoose(t,e);function t(o,i){var n;return n=e.call(this,"Async Validation Error")||this,n.errors=o,n.fields=i,n}return t}(_wrapNativeSuper(Error));function asyncMap(e,t,o,i,n){if(t.first){var r=new Promise(function(m,w){var _=function(f){return i(f),f.length?w(new AsyncValidationError(f,convertFieldsError(f))):m(n)},b=flattenObjArr(e);asyncSerialArray(b,o,_)});return r.catch(function(m){return m}),r}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),a=s.length,u=0,d=[],c=new Promise(function(m,w){var _=function(E){if(d.push.apply(d,E),u++,u===a)return i(d),d.length?w(new AsyncValidationError(d,convertFieldsError(d))):m(n)};s.length||(i(d),m(n)),s.forEach(function(b){var E=e[b];l.indexOf(b)!==-1?asyncSerialArray(E,o,_):asyncParallelArray(E,o,_)})});return c.catch(function(m){return m}),c}function isErrorObj(e){return!!(e&&e.message!==void 0)}function getValue(e,t){for(var o=e,i=0;i<t.length;i++){if(o==null)return o;o=o[t[i]]}return o}function complementError(e,t){return function(o){var i;return e.fullFields?i=getValue(t,e.fullFields):i=t[o.field||e.fullField],isErrorObj(o)?(o.field=o.field||e.fullField,o.fieldValue=i,o):{message:typeof o=="function"?o():o,fieldValue:i,field:o.field||e.fullField}}}function deepMerge(e,t){if(t){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];typeof i=="object"&&typeof e[o]=="object"?e[o]=_extends({},e[o],i):e[o]=i}}return e}var required$1=function e(t,o,i,n,r,l){t.required&&(!i.hasOwnProperty(t.field)||isEmptyValue(o,l||t.type))&&n.push(format(r.messages.required,t.fullField))},whitespace=function e(t,o,i,n,r){(/^\s+$/.test(o)||o==="")&&n.push(format(r.messages.whitespace,t.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var e="[a-fA-F\\d:]",t=function(v){return v&&v.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=(`
|
|
45
|
+
(?:
|
|
46
|
+
(?:`+i+":){7}(?:"+i+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
47
|
+
(?:`+i+":){6}(?:"+o+"|:"+i+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
48
|
+
(?:`+i+":){5}(?::"+o+"|(?::"+i+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
49
|
+
(?:`+i+":){4}(?:(?::"+i+"){0,1}:"+o+"|(?::"+i+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
50
|
+
(?:`+i+":){3}(?:(?::"+i+"){0,2}:"+o+"|(?::"+i+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
51
|
+
(?:`+i+":){2}(?:(?::"+i+"){0,3}:"+o+"|(?::"+i+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
52
|
+
(?:`+i+":){1}(?:(?::"+i+"){0,4}:"+o+"|(?::"+i+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
53
|
+
(?::(?:(?::`+i+"){0,5}:"+o+"|(?::"+i+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
54
|
+
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
55
|
+
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),r=new RegExp("(?:^"+o+"$)|(?:^"+n+"$)"),l=new RegExp("^"+o+"$"),s=new RegExp("^"+n+"$"),a=function(v){return v&&v.exact?r:new RegExp("(?:"+t(v)+o+t(v)+")|(?:"+t(v)+n+t(v)+")","g")};a.v4=function(g){return g&&g.exact?l:new RegExp(""+t(g)+o+t(g),"g")},a.v6=function(g){return g&&g.exact?s:new RegExp(""+t(g)+n+t(g),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",c=a.v4().source,m=a.v6().source,w="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",f='(?:[/?#][^\\s"]*)?',p="(?:"+u+"|www\\.)"+d+"(?:localhost|"+c+"|"+m+"|"+w+_+b+")"+E+f;return urlReg=new RegExp("(?:^"+p+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function e(t){return types.number(t)&&parseInt(t,10)===t},float:function e(t){return types.number(t)&&!types.integer(t)},array:function e(t){return Array.isArray(t)},regexp:function e(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function e(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function e(t){return isNaN(t)?!1:typeof t=="number"},object:function e(t){return typeof t=="object"&&!types.array(t)},method:function e(t){return typeof t=="function"},email:function e(t){return typeof t=="string"&&t.length<=320&&!!t.match(pattern$2.email)},url:function e(t){return typeof t=="string"&&t.length<=2048&&!!t.match(getUrlRegex())},hex:function e(t){return typeof t=="string"&&!!t.match(pattern$2.hex)}},type$1=function e(t,o,i,n,r){if(t.required&&o===void 0){required$1(t,o,i,n,r);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;l.indexOf(s)>-1?types[s](o)||n.push(format(r.messages.types[s],t.fullField,t.type)):s&&typeof o!==t.type&&n.push(format(r.messages.types[s],t.fullField,t.type))},range=function e(t,o,i,n,r){var l=typeof t.len=="number",s=typeof t.min=="number",a=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=o,c=null,m=typeof o=="number",w=typeof o=="string",_=Array.isArray(o);if(m?c="number":w?c="string":_&&(c="array"),!c)return!1;_&&(d=o.length),w&&(d=o.replace(u,"_").length),l?d!==t.len&&n.push(format(r.messages[c].len,t.fullField,t.len)):s&&!a&&d<t.min?n.push(format(r.messages[c].min,t.fullField,t.min)):a&&!s&&d>t.max?n.push(format(r.messages[c].max,t.fullField,t.max)):s&&a&&(d<t.min||d>t.max)&&n.push(format(r.messages[c].range,t.fullField,t.min,t.max))},ENUM$1="enum",enumerable$1=function e(t,o,i,n,r){t[ENUM$1]=Array.isArray(t[ENUM$1])?t[ENUM$1]:[],t[ENUM$1].indexOf(o)===-1&&n.push(format(r.messages[ENUM$1],t.fullField,t[ENUM$1].join(", ")))},pattern$1=function e(t,o,i,n,r){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(o)||n.push(format(r.messages.pattern.mismatch,t.fullField,o,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(o)||n.push(format(r.messages.pattern.mismatch,t.fullField,o,t.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o,"string")&&!t.required)return i();rules.required(t,o,n,l,r,"string"),isEmptyValue(o,"string")||(rules.type(t,o,n,l,r),rules.range(t,o,n,l,r),rules.pattern(t,o,n,l,r),t.whitespace===!0&&rules.whitespace(t,o,n,l,r))}i(l)},method=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),o!==void 0&&rules.type(t,o,n,l,r)}i(l)},number=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(o===""&&(o=void 0),isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),o!==void 0&&(rules.type(t,o,n,l,r),rules.range(t,o,n,l,r))}i(l)},_boolean=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),o!==void 0&&rules.type(t,o,n,l,r)}i(l)},regexp=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),isEmptyValue(o)||rules.type(t,o,n,l,r)}i(l)},integer=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),o!==void 0&&(rules.type(t,o,n,l,r),rules.range(t,o,n,l,r))}i(l)},floatFn=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),o!==void 0&&(rules.type(t,o,n,l,r),rules.range(t,o,n,l,r))}i(l)},array=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(o==null&&!t.required)return i();rules.required(t,o,n,l,r,"array"),o!=null&&(rules.type(t,o,n,l,r),rules.range(t,o,n,l,r))}i(l)},object=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),o!==void 0&&rules.type(t,o,n,l,r)}i(l)},ENUM="enum",enumerable=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r),o!==void 0&&rules[ENUM](t,o,n,l,r)}i(l)},pattern=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o,"string")&&!t.required)return i();rules.required(t,o,n,l,r),isEmptyValue(o,"string")||rules.pattern(t,o,n,l,r)}i(l)},date=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o,"date")&&!t.required)return i();if(rules.required(t,o,n,l,r),!isEmptyValue(o,"date")){var a;o instanceof Date?a=o:a=new Date(o),rules.type(t,a,n,l,r),a&&rules.range(t,a.getTime(),n,l,r)}}i(l)},required=function e(t,o,i,n,r){var l=[],s=Array.isArray(o)?"array":typeof o;rules.required(t,o,n,l,r,s),i(l)},type=function e(t,o,i,n,r){var l=t.type,s=[],a=t.required||!t.required&&n.hasOwnProperty(t.field);if(a){if(isEmptyValue(o,l)&&!t.required)return i();rules.required(t,o,n,s,r,l),isEmptyValue(o,l)||rules.type(t,o,n,s,r)}i(s)},any=function e(t,o,i,n,r){var l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(isEmptyValue(o)&&!t.required)return i();rules.required(t,o,n,l,r)}i(l)},validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var messages=newMessages(),Schema=function(){function e(o){this.rules=null,this._messages=messages,this.define(o)}var t=e.prototype;return t.define=function(i){var n=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(r){var l=i[r];n.rules[r]=Array.isArray(l)?l:[l]})},t.messages=function(i){return i&&(this._messages=deepMerge(newMessages(),i)),this._messages},t.validate=function(i,n,r){var l=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var s=i,a=n,u=r;if(typeof a=="function"&&(u=a,a={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function d(b){var E=[],f={};function p(v){if(Array.isArray(v)){var T;E=(T=E).concat.apply(T,v)}else E.push(v)}for(var g=0;g<b.length;g++)p(b[g]);E.length?(f=convertFieldsError(E),u(E,f)):u(null,s)}if(a.messages){var c=this.messages();c===messages&&(c=newMessages()),deepMerge(c,a.messages),a.messages=c}else a.messages=this.messages();var m={},w=a.keys||Object.keys(this.rules);w.forEach(function(b){var E=l.rules[b],f=s[b];E.forEach(function(p){var g=p;typeof g.transform=="function"&&(s===i&&(s=_extends({},s)),f=s[b]=g.transform(f)),typeof g=="function"?g={validator:g}:g=_extends({},g),g.validator=l.getValidationMethod(g),g.validator&&(g.field=b,g.fullField=g.fullField||b,g.type=l.getType(g),m[b]=m[b]||[],m[b].push({rule:g,value:f,source:s,field:b}))})});var _={};return asyncMap(m,a,function(b,E){var f=b.rule,p=(f.type==="object"||f.type==="array")&&(typeof f.fields=="object"||typeof f.defaultField=="object");p=p&&(f.required||!f.required&&b.value),f.field=b.field;function g(O,N){return _extends({},N,{fullField:f.fullField+"."+O,fullFields:f.fullFields?[].concat(f.fullFields,[O]):[O]})}function v(O){O===void 0&&(O=[]);var N=Array.isArray(O)?O:[O];!a.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&f.message!==void 0&&(N=[].concat(f.message));var P=N.map(complementError(f,s));if(a.first&&P.length)return _[f.field]=1,E(P);if(!p)E(P);else{if(f.required&&!b.value)return f.message!==void 0?P=[].concat(f.message).map(complementError(f,s)):a.error&&(P=[a.error(f,format(a.messages.required,f.field))]),E(P);var y={};f.defaultField&&Object.keys(b.value).map(function($){y[$]=f.defaultField}),y=_extends({},y,b.rule.fields);var R={};Object.keys(y).forEach(function($){var j=y[$],te=Array.isArray(j)?j:[j];R[$]=te.map(g.bind(null,$))});var H=new e(R);H.messages(a.messages),b.rule.options&&(b.rule.options.messages=a.messages,b.rule.options.error=a.error),H.validate(b.value,b.rule.options||a,function($){var j=[];P&&P.length&&j.push.apply(j,P),$&&$.length&&j.push.apply(j,$),E(j.length?j:null)})}}var T;if(f.asyncValidator)T=f.asyncValidator(f,b.value,v,b.source,a);else if(f.validator){try{T=f.validator(f,b.value,v,b.source,a)}catch(O){console.error==null||console.error(O),a.suppressValidatorError||setTimeout(function(){throw O},0),v(O.message)}T===!0?v():T===!1?v(typeof f.message=="function"?f.message(f.fullField||f.field):f.message||(f.fullField||f.field)+" fails"):T instanceof Array?v(T):T instanceof Error&&v(T.message)}T&&T.then&&T.then(function(){return v()},function(O){return v(O)})},function(b){d(b)},s)},t.getType=function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!validators.hasOwnProperty(i.type))throw new Error(format("Unknown rule type %s",i.type));return i.type||"string"},t.getValidationMethod=function(i){if(typeof i.validator=="function")return i.validator;var n=Object.keys(i),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?validators.required:validators[this.getType(i)]||void 0},e}();Schema.register=function e(t,o){if(typeof o!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[t]=o},Schema.warning=warning,Schema.messages=messages,Schema.validators=validators;function getLeafPropRule(e,t){const o={},i=e.dataType;return i==="DATE"||i==="TIME"?(e.valueType&&e.valueType==="number"&&(o.type="number"),o.message=e.label+" "+getI18n().t("workflowEditorMessage.requiredAndMustBeADate")):i==="INTEGER"||i==="LONG"?(o.type="number",o.message=e.label+" "+getI18n().t("workflowEditorMessage.requiredAndMustBeAnInteger")):i==="FLOAT"||i==="DOUBLE"?(o.pattern=new RegExp("^(-?\\d+)(\\.\\d+)?$"),o.message=e.label+" "+getI18n().t("workflowEditorMessage.requiredAndMustBeDecimal")):o.message=e.label+" "+getI18n().t("workflowEditorMessage.mustFill"),e.canEdit&&(o.required=!0,o.trigger="blur"),e.rowIndexes&&(o.rowIndexes=e.rowIndexes),e.condition&&(o.condition=e.condition),t[e.name]=e.dataType,o}function setObjectPropRule(e,t,o,i){const n={};let r=e.name;o===!0&&(r=r),t||(t={});const l=r.split(".");for(let s=0;s<l.length;s++){const a=l[s];let u;if(s===l.length-1)u=getEndObjectRule(n,l,a),u.fields[a]=getLeafPropRule(e,i);else{let d;s===0?u=t:(d=getLastObjectRule(n,l,l[s-1]),u=d.fields),u[a]||(u[a]={type:"object",required:!0,fields:{}}),s===0?n[a]=u[a]:d.fields[a]=u[a]}}}function getLastObjectRule(e,t,o){let i;for(let n=0;n<t.length;n++){const r=t[n];if(n===0?i=e[r]:i=i.fields[t[n]],r===o)break}return i}function getEndObjectRule(e,t,o){let i;for(let n=0;n<t.length&&(n===0?i=e[t[n]]:i=i.fields[t[n]],!(n!==t.length-1&&t[n+1]===o));n++);return i}function getValidator(e,t,o,i,n,r){typeof o>"u"&&(o=!1);const l={},s={},a={},u={};return e&&e.forEach(c=>{const m=c.canEdit;if(typeof m<"u"&&m===!0){let w=c.name;if(w){o===!0&&(w=w);const _=c.condition,b=null;let E=null;if(w.indexOf(".")>0&&w.indexOf("$")===0?E=!0:E=parseSubTablePermissionCondition(_,s,b,t,i,n,r),E!=null&&E===!0){let f={};if(w.indexOf(".")>0)w.indexOf("$")===0?setSubObjectFieldRule(c,u,t,o,s):setMainObjectFieldRule(c,l,t,o,s);else if(w.indexOf("$")===0){const p=w.substring(w.indexOf("$")+1);a[p]={required:!0,message:getI18n().t("workflowEditorMessage.subTableMustInputDatas",{subTable:c.label})}}else f=getLeafPropRule(c,s),l[w]=f}}}}),Object.keys(u).length>0||Object.keys(a).length>0?{rules:l,subRules:u,totalSubRules:a,dataTypeMap:s}:l}function setMainObjectFieldRule(e,t,o,i,n){let r=e.name;i===!0&&(r=r);const l=r.substring(0,r.indexOf("."));if(o){o[l]||(o[l]={});const s=o[l],a=r.substring(r.indexOf(".")+1);isNeedValidate(a,s)&&setObjectPropRule(e,t,i,n)}}function isNeedValidate(e,t){if(e.indexOf(".")>0){let o=t;const i=e.split(".");for(let n=0;n<i.length-1;n++){const r=i[n];if(!o||!o[r])return!1;o=o[r]}return!0}else return!0}function setSubObjectFieldRule(e,t,o,i,n){let r=e.name;i===!0&&(r=r);const l=r.substring(r.indexOf("$")+1,r.indexOf("."));if(!o)return;const s=o[l];if(typeof s>"u"||s===null||s.length===0)return;const a=r.substring(r.indexOf(".")+1);t[l]||(t[l]={});const u=JSON.parse(JSON.stringify(e));if(u.name=a,a.indexOf(".")>0){const d=s[0];setMainObjectFieldRule(u,t[l],d,i,n)}else t[l][a]=getLeafPropRule(u,n)}function validator(e,t,o,i,n,r){return validatorEntity(e,t,o,!0,i,n,r)}function validatorEntity(e,t,o,i,n,r,l){let s=!1;return new Schema(t).validate(e,{first:!0},(u,d)=>{let c;if(u){const m=u[0].message;c=u[0].field,typeof o<"u"&&o!==null?r!==void 0&&l!==void 0?s=getI18n().t("workflowEditorMessage.pageRecordLine",{pageNum:r,row:l})+","+m:s=getI18n().t("workflowEditorMessage.recordLine",{row:o+1})+","+m:s=m}else s=!0;if(c&&i===!0&&n!==void 0&&n===!0&&/[A-Z]+/.test(c)&&e[c.toLowerCase()]!==void 0){const w=JSON.parse(JSON.stringify(e));w[c.toUpperCase()]=e[c.toLowerCase()],delete w[c.toLowerCase()],s=validatorEntity(w,t,o,!1,n,r,l)}}),s}function validateSub(e,t,o,i,n,r,l,s,a){let u={};if(o&&(u=JSON.parse(JSON.stringify(o))),t){console.log("formValidator333--subRules=",t);const d=Object.keys(t);for(let c=0;c<d.length;c++){const m=d[c],w=t[m];console.log("formValidator44--subFieldRule=",w);const _=Object.keys(w);console.log("formValidator555--subFieldProps=",_);let b=e[m];b||(b=[]);const E=validateTotalSubTable(u,e,m);if(E!==!0)return delete u[m],E;let f;a&&a[m]&&(f=a[m].pageSize);for(let p=0;p<b.length;p++){const g=b[p],v=packageRowRule(_,w,b[p],n,e,r,l,s);console.log("formValidator666--rowRule=",v);let T,O;f!==void 0&&f>0&&(T=Math.ceil((p+1)/f),O=p+1-(T-1)*f);const N=validator(g,v,p,i,T,O);if(N!==!0)return N}}}for(const d in u){const c=validateTotalSubTable(u,e,d);if(c!==!0)return c}return!0}function getEntityId(e){if(e&&e.id)return e.id;if(e&&e.ID)return e.ID}function packageRowRule(e,t,o,i,n,r,l,s){const a=getEntityId(o),u={};for(let d=0;d<e.length;d++){const c=e[d],m=t[c],w=m.condition,_=parseSubTablePermissionCondition(w,i,n,o,r,l,s);if(_!=null&&_===!0)if(a===void 0)u[c]=m;else{const b=m.rowIndexes;(!b||b.indexOf(a)>=0)&&(u[c]=m)}}return u}function validateTotalSubTable(e,t,o){let i=t[o];return i||(i=[]),i.length===0&&e&&e[o]&&e[o].required!==void 0&&e[o].required===!0?e[o].message:!0}function formValidator$1(e,t,o,i,n,r,l){const s=Object.keys(t);if(s.indexOf("rules")>=0&&s.indexOf("subRules")>=0&&s.indexOf("totalSubRules")>=0){const a=t.rules,u=t.subRules,d=t.totalSubRules,c=t.dataTypeMap;let m=validator(e,a,null,o);return m===!0&&(u||d)&&(m=validateSub(e,u,d,o,c,i,n,r,l)),m}else return validator(e,t,null,o)}function underscoreName(e){return e}const formValidatorService={formValidator:formValidator$1,getValidator},formValidator={install:function(e,t){e.config.globalProperties.$formValidator=formValidatorService.formValidator,e.config.globalProperties.$getValidator=formValidatorService.getValidator}},WorkflowEditor=workflow.WorkflowEditor,WorkflowHistory=workflow.WorkflowHistory,wfEditorStore=workflow.wfEditorStore,components=[WorkflowEditor,WorkflowHistory],install=function(e){install.installed||(components.forEach(t=>{e.component(t.name,t)}),e.use(formValidator))};typeof window<"u"&&window.Vue&&install(window.Vue);const index={install,WorkflowEditor,wfEditorStore};return index});
|