@next-bricks/form 1.10.4 → 1.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/1122.b4bf0b2a.js +2 -0
  3. package/dist/chunks/1122.b4bf0b2a.js.map +1 -0
  4. package/dist/chunks/{114.d23ea9a1.js → 114.44811d5e.js} +2 -2
  5. package/dist/chunks/{114.d23ea9a1.js.map → 114.44811d5e.js.map} +1 -1
  6. package/dist/chunks/{1269.ee34444d.js → 1269.b91c7b97.js} +2 -2
  7. package/dist/chunks/{1269.ee34444d.js.map → 1269.b91c7b97.js.map} +1 -1
  8. package/dist/chunks/{1940.f196205c.js → 1940.77437a5b.js} +2 -2
  9. package/dist/chunks/{1940.f196205c.js.map → 1940.77437a5b.js.map} +1 -1
  10. package/dist/chunks/{2277.380c131a.js → 2277.a4439182.js} +2 -2
  11. package/dist/chunks/{4658.3a48d883.js.map → 2277.a4439182.js.map} +1 -1
  12. package/dist/chunks/{3067.5ccab427.js → 3067.fe48592d.js} +3 -3
  13. package/dist/chunks/{3067.5ccab427.js.map → 3067.fe48592d.js.map} +1 -1
  14. package/dist/chunks/{3171.2ebdffbf.js → 3171.54eeee7e.js} +2 -2
  15. package/dist/chunks/{5552.4774a460.js.map → 3171.54eeee7e.js.map} +1 -1
  16. package/dist/chunks/{3933.cef4e5ac.js → 3933.6e5fe675.js} +2 -2
  17. package/dist/chunks/{6314.c9b3c82b.js.map → 3933.6e5fe675.js.map} +1 -1
  18. package/dist/chunks/{4320.ca3377b0.js → 4320.84fc9511.js} +3 -3
  19. package/dist/chunks/{4320.ca3377b0.js.map → 4320.84fc9511.js.map} +1 -1
  20. package/dist/chunks/{4658.3a48d883.js → 4658.b99a62b1.js} +2 -2
  21. package/dist/chunks/{2277.380c131a.js.map → 4658.b99a62b1.js.map} +1 -1
  22. package/dist/chunks/{4837.ca2fafef.js → 4837.c7203f26.js} +2 -2
  23. package/dist/chunks/{4837.ca2fafef.js.map → 4837.c7203f26.js.map} +1 -1
  24. package/dist/chunks/4947.cf5a4c96.js +3 -0
  25. package/dist/chunks/4947.cf5a4c96.js.map +1 -0
  26. package/dist/chunks/{5053.a529bc9f.js → 5053.f902dd24.js} +2 -2
  27. package/dist/chunks/{5053.a529bc9f.js.map → 5053.f902dd24.js.map} +1 -1
  28. package/dist/chunks/5399.c9226446.js +2 -0
  29. package/dist/chunks/5399.c9226446.js.map +1 -0
  30. package/dist/chunks/{5552.4774a460.js → 5552.777efe1a.js} +2 -2
  31. package/dist/chunks/{3171.2ebdffbf.js.map → 5552.777efe1a.js.map} +1 -1
  32. package/dist/chunks/{6314.c9b3c82b.js → 6314.9d478bc9.js} +2 -2
  33. package/dist/chunks/{3933.cef4e5ac.js.map → 6314.9d478bc9.js.map} +1 -1
  34. package/dist/chunks/{7218.201dd2a1.js → 7218.02e4f98e.js} +2 -2
  35. package/dist/chunks/{7218.201dd2a1.js.map → 7218.02e4f98e.js.map} +1 -1
  36. package/dist/chunks/{7434.4471086e.js → 7434.7850a05d.js} +2 -2
  37. package/dist/chunks/{7434.4471086e.js.map → 7434.7850a05d.js.map} +1 -1
  38. package/dist/chunks/{7733.957a1bc3.js → 7733.4554be00.js} +2 -2
  39. package/dist/chunks/{7733.957a1bc3.js.map → 7733.4554be00.js.map} +1 -1
  40. package/dist/chunks/{790.6c50fcfc.js → 790.7065fa33.js} +2 -2
  41. package/dist/chunks/{790.6c50fcfc.js.map → 790.7065fa33.js.map} +1 -1
  42. package/dist/chunks/{825.56517ad0.js → 825.2c71d777.js} +3 -3
  43. package/dist/chunks/{825.56517ad0.js.map → 825.2c71d777.js.map} +1 -1
  44. package/dist/chunks/{852.ae478d19.js → 852.c12cc391.js} +3 -3
  45. package/dist/chunks/{852.ae478d19.js.map → 852.c12cc391.js.map} +1 -1
  46. package/dist/chunks/9259.49140352.js +3 -0
  47. package/dist/chunks/{9259.05dddeb2.js.map → 9259.49140352.js.map} +1 -1
  48. package/dist/chunks/{9515.4f4a625f.js → 9515.bfd568c5.js} +2 -2
  49. package/dist/chunks/{9515.4f4a625f.js.map → 9515.bfd568c5.js.map} +1 -1
  50. package/dist/chunks/{9559.cf587aa9.js → 9559.1201530d.js} +2 -2
  51. package/dist/chunks/{9559.cf587aa9.js.map → 9559.1201530d.js.map} +1 -1
  52. package/dist/chunks/{eo-auto-complete.7e9e628e.js → eo-auto-complete.b18a2118.js} +3 -3
  53. package/dist/chunks/{eo-auto-complete.7e9e628e.js.map → eo-auto-complete.b18a2118.js.map} +1 -1
  54. package/dist/chunks/{eo-checkbox.d68185e8.js → eo-checkbox.b0af3bff.js} +2 -2
  55. package/dist/chunks/{eo-checkbox.d68185e8.js.map → eo-checkbox.b0af3bff.js.map} +1 -1
  56. package/dist/chunks/eo-color-picker.d32c56d7.js +2 -0
  57. package/dist/chunks/{eo-color-picker.6b5f883d.js.map → eo-color-picker.d32c56d7.js.map} +1 -1
  58. package/dist/chunks/eo-date-picker.ad08ff61.js +2 -0
  59. package/dist/chunks/{eo-date-picker.db75075f.js.map → eo-date-picker.ad08ff61.js.map} +1 -1
  60. package/dist/chunks/eo-dynamic-form-item.e504a575.js +3 -0
  61. package/dist/chunks/{eo-dynamic-form-item.1af7d067.js.map → eo-dynamic-form-item.e504a575.js.map} +1 -1
  62. package/dist/chunks/eo-form-item.d4fb6dd6.js +3 -0
  63. package/dist/chunks/{eo-form-item.713220f4.js.map → eo-form-item.d4fb6dd6.js.map} +1 -1
  64. package/dist/chunks/{eo-form.bbc2f705.js → eo-form.2e40bff8.js} +2 -2
  65. package/dist/chunks/{eo-form.bbc2f705.js.map → eo-form.2e40bff8.js.map} +1 -1
  66. package/dist/chunks/{eo-icon-select.6c455ad0.js → eo-icon-select.39ad0686.js} +3 -3
  67. package/dist/chunks/{eo-icon-select.6c455ad0.js.map → eo-icon-select.39ad0686.js.map} +1 -1
  68. package/dist/chunks/{eo-input.c935353e.js → eo-input.7ebaa3bc.js} +3 -3
  69. package/dist/chunks/{eo-input.c935353e.js.map → eo-input.7ebaa3bc.js.map} +1 -1
  70. package/dist/chunks/eo-radio.220942ed.js +3 -0
  71. package/dist/chunks/{eo-radio.8997eb75.js.map → eo-radio.220942ed.js.map} +1 -1
  72. package/dist/chunks/{eo-search.076028f9.js → eo-search.c820a4db.js} +2 -2
  73. package/dist/chunks/eo-search.c820a4db.js.map +1 -0
  74. package/dist/chunks/eo-select.546b6c4a.js +3 -0
  75. package/dist/chunks/{eo-select.e681beda.js.map → eo-select.546b6c4a.js.map} +1 -1
  76. package/dist/chunks/{eo-submit-buttons.59728710.js → eo-submit-buttons.513afd6d.js} +2 -2
  77. package/dist/chunks/{eo-submit-buttons.59728710.js.map → eo-submit-buttons.513afd6d.js.map} +1 -1
  78. package/dist/chunks/{eo-switch.da5b0f66.js → eo-switch.49c232d4.js} +3 -3
  79. package/dist/chunks/{eo-switch.da5b0f66.js.map → eo-switch.49c232d4.js.map} +1 -1
  80. package/dist/chunks/{eo-textarea.6117adac.js → eo-textarea.dde9a8f5.js} +3 -3
  81. package/dist/chunks/{eo-textarea.6117adac.js.map → eo-textarea.dde9a8f5.js.map} +1 -1
  82. package/dist/chunks/eo-time-picker.906c9bda.js +2 -0
  83. package/dist/chunks/{eo-time-picker.6e9f2bb7.js.map → eo-time-picker.906c9bda.js.map} +1 -1
  84. package/dist/chunks/eo-time-range-picker.5eac067a.js +2 -0
  85. package/dist/chunks/{eo-time-range-picker.d07c6a13.js.map → eo-time-range-picker.5eac067a.js.map} +1 -1
  86. package/dist/chunks/eo-upload-file.709196ca.js +3 -0
  87. package/dist/chunks/{eo-upload-file.fd062653.js.map → eo-upload-file.709196ca.js.map} +1 -1
  88. package/dist/chunks/{eo-upload-image.431995a2.js → eo-upload-image.f6964663.js} +3 -3
  89. package/dist/chunks/{eo-upload-image.431995a2.js.map → eo-upload-image.f6964663.js.map} +1 -1
  90. package/dist/chunks/main.5e22c2a6.js +2 -0
  91. package/dist/chunks/main.5e22c2a6.js.map +1 -0
  92. package/dist/index.ef938f1c.js +2 -0
  93. package/dist/index.ef938f1c.js.map +1 -0
  94. package/dist/manifest.json +1 -1
  95. package/dist-types/search/index.d.ts +1 -1
  96. package/dist-types/textarea/calculateAutoSizeStyle.d.ts +0 -3
  97. package/dist-types/utils/formatOptions.d.ts +1 -1
  98. package/package.json +4 -4
  99. package/dist/chunks/1122.49dc38bb.js +0 -2
  100. package/dist/chunks/1122.49dc38bb.js.map +0 -1
  101. package/dist/chunks/4947.d2b96d10.js +0 -3
  102. package/dist/chunks/4947.d2b96d10.js.map +0 -1
  103. package/dist/chunks/5399.f6effb1c.js +0 -2
  104. package/dist/chunks/5399.f6effb1c.js.map +0 -1
  105. package/dist/chunks/9259.05dddeb2.js +0 -3
  106. package/dist/chunks/eo-color-picker.6b5f883d.js +0 -2
  107. package/dist/chunks/eo-date-picker.db75075f.js +0 -2
  108. package/dist/chunks/eo-dynamic-form-item.1af7d067.js +0 -3
  109. package/dist/chunks/eo-form-item.713220f4.js +0 -3
  110. package/dist/chunks/eo-radio.8997eb75.js +0 -3
  111. package/dist/chunks/eo-search.076028f9.js.map +0 -1
  112. package/dist/chunks/eo-select.e681beda.js +0 -3
  113. package/dist/chunks/eo-time-picker.6e9f2bb7.js +0 -2
  114. package/dist/chunks/eo-time-range-picker.d07c6a13.js +0 -2
  115. package/dist/chunks/eo-upload-file.fd062653.js +0 -3
  116. package/dist/chunks/main.ec6fb2cd.js +0 -2
  117. package/dist/chunks/main.ec6fb2cd.js.map +0 -1
  118. package/dist/index.f893261b.js +0 -2
  119. package/dist/index.f893261b.js.map +0 -1
  120. /package/dist/chunks/{3067.5ccab427.js.LICENSE.txt → 3067.fe48592d.js.LICENSE.txt} +0 -0
  121. /package/dist/chunks/{4320.ca3377b0.js.LICENSE.txt → 4320.84fc9511.js.LICENSE.txt} +0 -0
  122. /package/dist/chunks/{4947.d2b96d10.js.LICENSE.txt → 4947.cf5a4c96.js.LICENSE.txt} +0 -0
  123. /package/dist/chunks/{825.56517ad0.js.LICENSE.txt → 825.2c71d777.js.LICENSE.txt} +0 -0
  124. /package/dist/chunks/{852.ae478d19.js.LICENSE.txt → 852.c12cc391.js.LICENSE.txt} +0 -0
  125. /package/dist/chunks/{9259.05dddeb2.js.LICENSE.txt → 9259.49140352.js.LICENSE.txt} +0 -0
  126. /package/dist/chunks/{eo-auto-complete.7e9e628e.js.LICENSE.txt → eo-auto-complete.b18a2118.js.LICENSE.txt} +0 -0
  127. /package/dist/chunks/{eo-dynamic-form-item.1af7d067.js.LICENSE.txt → eo-dynamic-form-item.e504a575.js.LICENSE.txt} +0 -0
  128. /package/dist/chunks/{eo-form-item.713220f4.js.LICENSE.txt → eo-form-item.d4fb6dd6.js.LICENSE.txt} +0 -0
  129. /package/dist/chunks/{eo-icon-select.6c455ad0.js.LICENSE.txt → eo-icon-select.39ad0686.js.LICENSE.txt} +0 -0
  130. /package/dist/chunks/{eo-input.c935353e.js.LICENSE.txt → eo-input.7ebaa3bc.js.LICENSE.txt} +0 -0
  131. /package/dist/chunks/{eo-radio.8997eb75.js.LICENSE.txt → eo-radio.220942ed.js.LICENSE.txt} +0 -0
  132. /package/dist/chunks/{eo-select.e681beda.js.LICENSE.txt → eo-select.546b6c4a.js.LICENSE.txt} +0 -0
  133. /package/dist/chunks/{eo-switch.da5b0f66.js.LICENSE.txt → eo-switch.49c232d4.js.LICENSE.txt} +0 -0
  134. /package/dist/chunks/{eo-textarea.6117adac.js.LICENSE.txt → eo-textarea.dde9a8f5.js.LICENSE.txt} +0 -0
  135. /package/dist/chunks/{eo-upload-file.fd062653.js.LICENSE.txt → eo-upload-file.709196ca.js.LICENSE.txt} +0 -0
  136. /package/dist/chunks/{eo-upload-image.431995a2.js.LICENSE.txt → eo-upload-image.f6964663.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_form=globalThis.webpackChunk_next_bricks_form||[]).push([[1269],{1173:(l,m,o)=>{function t(l,m){let o="";return l&&"horizontal"===m?(l.span&&(o+=`form-item-col-${l.span} `),l.offset&&(o+=`form-item-col-offset-${l.offset} `),["sm","md","lg","xl","xxl"].forEach((m=>{const t=l[m];t&&(["number","string"].includes(typeof t)?o+=`form-item-col-${m}-${t} `:(t.span&&(o+=`form-item-col-${m}-${t.span} `),t.offset&&(o+=`form-item-col-${m}-offset-${t.offset} `)))})),o):o}function e(l,m){let o,t;"number"==typeof m||"string"==typeof m?(o=m,t=0):(o=m.span,t=+(m.offset??0));let e=("number"==typeof l||"string"==typeof l?+l:+(l.span??0)+ +(l.offset??0))+t;return+o+e>24&&(e=t),{span:o,offset:e}}function f(l,m){return void 0!==m.span?e(l,m):Object.fromEntries(Object.entries(m).map((m=>{let[o,t]=m;return[o,e(l[o],t)]})))}o.d(m,{ht:()=>t,uj:()=>f})},1248:(l,m,o)=>{o.d(m,{A:()=>r});var t=o(6758),e=o.n(t),f=o(935),i=o.n(f)()(e());i.push([l.id,'.form-item-col-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-offset-24{margin-left:100%}.form-item-col-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-offset-23{margin-left:95.83333333%}.form-item-col-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-offset-22{margin-left:91.66666667%}.form-item-col-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-offset-21{margin-left:87.5%}.form-item-col-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-offset-20{margin-left:83.33333333%}.form-item-col-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-offset-19{margin-left:79.16666667%}.form-item-col-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-offset-18{margin-left:75%}.form-item-col-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-offset-17{margin-left:70.83333333%}.form-item-col-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-offset-16{margin-left:66.66666667%}.form-item-col-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-offset-15{margin-left:62.5%}.form-item-col-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-offset-14{margin-left:58.33333333%}.form-item-col-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-offset-13{margin-left:54.16666667%}.form-item-col-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-offset-12{margin-left:50%}.form-item-col-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-offset-11{margin-left:45.83333333%}.form-item-col-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-offset-10{margin-left:41.66666667%}.form-item-col-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-offset-9{margin-left:37.5%}.form-item-col-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-offset-8{margin-left:33.33333333%}.form-item-col-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-offset-7{margin-left:29.16666667%}.form-item-col-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-offset-6{margin-left:25%}.form-item-col-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-offset-5{margin-left:20.83333333%}.form-item-col-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-offset-4{margin-left:16.66666667%}.form-item-col-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-offset-3{margin-left:12.5%}.form-item-col-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-offset-2{margin-left:8.33333333%}.form-item-col-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-offset-1{margin-left:4.16666667%}@media (min-width: 576px){.form-item-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-sm-offset-24{margin-left:100%}.form-item-col-sm-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-sm-offset-23{margin-left:95.83333333%}.form-item-col-sm-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-sm-offset-22{margin-left:91.66666667%}.form-item-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-sm-offset-21{margin-left:87.5%}.form-item-col-sm-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-sm-offset-20{margin-left:83.33333333%}.form-item-col-sm-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-sm-offset-19{margin-left:79.16666667%}.form-item-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-sm-offset-18{margin-left:75%}.form-item-col-sm-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-sm-offset-17{margin-left:70.83333333%}.form-item-col-sm-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-sm-offset-16{margin-left:66.66666667%}.form-item-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-sm-offset-15{margin-left:62.5%}.form-item-col-sm-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-sm-offset-14{margin-left:58.33333333%}.form-item-col-sm-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-sm-offset-13{margin-left:54.16666667%}.form-item-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-sm-offset-12{margin-left:50%}.form-item-col-sm-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-sm-offset-11{margin-left:45.83333333%}.form-item-col-sm-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-sm-offset-10{margin-left:41.66666667%}.form-item-col-sm-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-sm-offset-9{margin-left:37.5%}.form-item-col-sm-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-sm-offset-8{margin-left:33.33333333%}.form-item-col-sm-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-sm-offset-7{margin-left:29.16666667%}.form-item-col-sm-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-sm-offset-6{margin-left:25%}.form-item-col-sm-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-sm-offset-5{margin-left:20.83333333%}.form-item-col-sm-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-sm-offset-4{margin-left:16.66666667%}.form-item-col-sm-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-sm-offset-3{margin-left:12.5%}.form-item-col-sm-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-sm-offset-2{margin-left:8.33333333%}.form-item-col-sm-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-sm-offset-1{margin-left:4.16666667%}}@media (min-width: 768px){.form-item-col-md-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-md-offset-24{margin-left:100%}.form-item-col-md-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-md-offset-23{margin-left:95.83333333%}.form-item-col-md-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-md-offset-22{margin-left:91.66666667%}.form-item-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-md-offset-21{margin-left:87.5%}.form-item-col-md-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-md-offset-20{margin-left:83.33333333%}.form-item-col-md-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-md-offset-19{margin-left:79.16666667%}.form-item-col-md-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-md-offset-18{margin-left:75%}.form-item-col-md-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-md-offset-17{margin-left:70.83333333%}.form-item-col-md-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-md-offset-16{margin-left:66.66666667%}.form-item-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-md-offset-15{margin-left:62.5%}.form-item-col-md-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-md-offset-14{margin-left:58.33333333%}.form-item-col-md-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-md-offset-13{margin-left:54.16666667%}.form-item-col-md-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-md-offset-12{margin-left:50%}.form-item-col-md-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-md-offset-11{margin-left:45.83333333%}.form-item-col-md-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-md-offset-10{margin-left:41.66666667%}.form-item-col-md-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-md-offset-9{margin-left:37.5%}.form-item-col-md-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-md-offset-8{margin-left:33.33333333%}.form-item-col-md-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-md-offset-7{margin-left:29.16666667%}.form-item-col-md-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-md-offset-6{margin-left:25%}.form-item-col-md-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-md-offset-5{margin-left:20.83333333%}.form-item-col-md-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-md-offset-4{margin-left:16.66666667%}.form-item-col-md-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-md-offset-3{margin-left:12.5%}.form-item-col-md-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-md-offset-2{margin-left:8.33333333%}.form-item-col-md-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-md-offset-1{margin-left:4.16666667%}}@media (min-width: 992px){.form-item-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-lg-offset-24{margin-left:100%}.form-item-col-lg-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-lg-offset-23{margin-left:95.83333333%}.form-item-col-lg-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-lg-offset-22{margin-left:91.66666667%}.form-item-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-lg-offset-21{margin-left:87.5%}.form-item-col-lg-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-lg-offset-20{margin-left:83.33333333%}.form-item-col-lg-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-lg-offset-19{margin-left:79.16666667%}.form-item-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-lg-offset-18{margin-left:75%}.form-item-col-lg-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-lg-offset-17{margin-left:70.83333333%}.form-item-col-lg-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-lg-offset-16{margin-left:66.66666667%}.form-item-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-lg-offset-15{margin-left:62.5%}.form-item-col-lg-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-lg-offset-14{margin-left:58.33333333%}.form-item-col-lg-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-lg-offset-13{margin-left:54.16666667%}.form-item-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-lg-offset-12{margin-left:50%}.form-item-col-lg-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-lg-offset-11{margin-left:45.83333333%}.form-item-col-lg-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-lg-offset-10{margin-left:41.66666667%}.form-item-col-lg-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-lg-offset-9{margin-left:37.5%}.form-item-col-lg-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-lg-offset-8{margin-left:33.33333333%}.form-item-col-lg-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-lg-offset-7{margin-left:29.16666667%}.form-item-col-lg-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-lg-offset-6{margin-left:25%}.form-item-col-lg-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-lg-offset-5{margin-left:20.83333333%}.form-item-col-lg-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-lg-offset-4{margin-left:16.66666667%}.form-item-col-lg-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-lg-offset-3{margin-left:12.5%}.form-item-col-lg-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-lg-offset-2{margin-left:8.33333333%}.form-item-col-lg-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-lg-offset-1{margin-left:4.16666667%}}@media (min-width: 1200px){.form-item-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xl-offset-24{margin-left:100%}.form-item-col-xl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xl-offset-23{margin-left:95.83333333%}.form-item-col-xl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xl-offset-22{margin-left:91.66666667%}.form-item-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xl-offset-21{margin-left:87.5%}.form-item-col-xl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xl-offset-20{margin-left:83.33333333%}.form-item-col-xl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xl-offset-19{margin-left:79.16666667%}.form-item-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xl-offset-18{margin-left:75%}.form-item-col-xl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xl-offset-17{margin-left:70.83333333%}.form-item-col-xl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xl-offset-16{margin-left:66.66666667%}.form-item-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xl-offset-15{margin-left:62.5%}.form-item-col-xl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xl-offset-14{margin-left:58.33333333%}.form-item-col-xl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xl-offset-13{margin-left:54.16666667%}.form-item-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xl-offset-12{margin-left:50%}.form-item-col-xl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xl-offset-11{margin-left:45.83333333%}.form-item-col-xl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xl-offset-10{margin-left:41.66666667%}.form-item-col-xl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xl-offset-9{margin-left:37.5%}.form-item-col-xl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xl-offset-8{margin-left:33.33333333%}.form-item-col-xl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xl-offset-7{margin-left:29.16666667%}.form-item-col-xl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xl-offset-6{margin-left:25%}.form-item-col-xl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xl-offset-5{margin-left:20.83333333%}.form-item-col-xl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xl-offset-4{margin-left:16.66666667%}.form-item-col-xl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xl-offset-3{margin-left:12.5%}.form-item-col-xl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xl-offset-2{margin-left:8.33333333%}.form-item-col-xl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xl-offset-1{margin-left:4.16666667%}}@media (min-width: 1600px){.form-item-col-xxl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xxl-offset-24{margin-left:100%}.form-item-col-xxl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xxl-offset-23{margin-left:95.83333333%}.form-item-col-xxl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xxl-offset-22{margin-left:91.66666667%}.form-item-col-xxl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xxl-offset-21{margin-left:87.5%}.form-item-col-xxl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xxl-offset-20{margin-left:83.33333333%}.form-item-col-xxl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xxl-offset-19{margin-left:79.16666667%}.form-item-col-xxl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xxl-offset-18{margin-left:75%}.form-item-col-xxl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xxl-offset-17{margin-left:70.83333333%}.form-item-col-xxl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xxl-offset-16{margin-left:66.66666667%}.form-item-col-xxl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xxl-offset-15{margin-left:62.5%}.form-item-col-xxl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xxl-offset-14{margin-left:58.33333333%}.form-item-col-xxl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xxl-offset-13{margin-left:54.16666667%}.form-item-col-xxl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xxl-offset-12{margin-left:50%}.form-item-col-xxl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xxl-offset-11{margin-left:45.83333333%}.form-item-col-xxl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xxl-offset-10{margin-left:41.66666667%}.form-item-col-xxl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xxl-offset-9{margin-left:37.5%}.form-item-col-xxl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xxl-offset-8{margin-left:33.33333333%}.form-item-col-xxl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xxl-offset-7{margin-left:29.16666667%}.form-item-col-xxl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xxl-offset-6{margin-left:25%}.form-item-col-xxl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xxl-offset-5{margin-left:20.83333333%}.form-item-col-xxl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xxl-offset-4{margin-left:16.66666667%}.form-item-col-xxl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xxl-offset-3{margin-left:12.5%}.form-item-col-xxl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xxl-offset-2{margin-left:8.33333333%}.form-item-col-xxl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xxl-offset-1{margin-left:4.16666667%}}@media (max-width: 767px){.form-item.horizontal .form-item-label-wrapper,\n .form-item.horizontal .form-item-wrapper{flex:0 0 100%;max-width:100%;text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label label::after{content:""}}@media (max-width: 991px){.form-item.horizontal .form-item-col-md-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-md-24 .form-item-label label::after{content:""}}@media (max-width: 1199px){.form-item.horizontal .form-item-col-lg-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-lg-24 .form-item-label label::after{content:""}}@media (max-width: 1599px){.form-item.horizontal .form-item-col-xl-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-xl-24 .form-item-label label::after{content:""}}.form-item{display:flex;box-sizing:border-box;color:var(--antd-text-color);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";vertical-align:top}.form-item.vertical{flex-direction:column}.form-item.vertical > .form-item-label-wrapper{text-align:left;line-height:20px;margin-bottom:8px}.form-item:not(.vertical) .form-item-label > label::after{content:":";position:relative;top:-0.5px;margin:0 0 0 2px}.form-item.horizontal{flex-flow:row wrap}.required{color:#ff4d4f;margin-right:4px}.form-item-label-wrapper{box-sizing:border-box;display:inline-block;white-space:nowrap;line-height:30px;text-align:right;vertical-align:middle;flex-grow:0;padding-right:8px}.form-item-label > label{margin-right:6px}.form-item-wrapper{flex:1 1 0;line-height:30px}.form-item-control{display:flex;gap:4px}.form-item-control slot{display:block;width:100%}.align-right{flex-direction:row}.align-bottom{flex-direction:column}.message{min-height:22px}.message.error{clear:both;min-height:23px;margin-top:-2px;color:var(--antd-error-color);font-size:14px;line-height:1.5715;transition:color 0.3s cubic-bezier(0.215,0.61,0.355,1)}',""]);const r=i.toString()},426:(l,m,o)=>{o.d(m,{N:()=>B});var t,e=o(4635),f=o(918),i=o(5536),r=o(9492),a=o(6121),c=o(829),x=o(2740),s=o(5351),d=o(3340);let n,g,h,p,b,w,k,y,u;const{method:A,property:z}=(0,s.createDecorators)();var v=new WeakMap,$=new WeakSet,_=new WeakMap,C=new WeakMap,E=new WeakMap,W=new WeakMap,M=new WeakMap,R=new WeakMap;class B extends d.ReactNextElement{constructor(){super(...arguments),(0,e.A)(this,$),(0,f.A)(this,v,(n(this),!1)),(0,f.A)(this,_,"normal"),(0,f.A)(this,C,!1),(0,f.A)(this,E,g(this)),(0,f.A)(this,W,(h(this),p(this))),(0,f.A)(this,M,(b(this),w(this))),(0,f.A)(this,R,(k(this),y(this))),u(this)}get isFormItemElement(){return!0}set validateState(l){(0,r.A)($,j,this,l),this._render()}get validateState(){return(0,i.A)($,this,S)}set notRender(l){this.hidden=l,(0,r.A)($,N,this,l),this._render()}get notRender(){return(0,i.A)($,this,F)}get $bindFormItem(){return(0,i.A)($,this,I)}set $bindFormItem(l){(0,r.A)($,O,this,l),this._render()}get helpBrick(){return(0,c.A)(E,this)}set helpBrick(l){(0,a.A)(E,this,l)}get labelBrick(){return(0,c.A)(W,this)}set labelBrick(l){(0,a.A)(W,this,l)}get labelCol(){return(0,c.A)(M,this)}set labelCol(l){(0,a.A)(M,this,l)}get wrapperCol(){return(0,c.A)(R,this)}set wrapperCol(l){(0,a.A)(R,this,l)}setNotRender(l){this.notRender=l}getFormElement(){let l=this;for(;(l=l.parentNode)&&l&&!l.isFormElement;);return l}}function F(l){return(0,c.A)(v,l)}function N(l,m){(0,a.A)(v,l,m)}function S(l){return(0,c.A)(_,l)}function j(l,m){(0,a.A)(_,l,m)}function I(l){return(0,c.A)(C,l)}function O(l,m){(0,a.A)(C,l,m)}t=B,[g,h,p,b,w,k,y,u,n]=(0,x.A)(t,[],[[z({attribute:!1}),1,"helpBrick"],[z({attribute:!1}),1,"labelBrick"],[z({attribute:!1}),1,"labelCol"],[z({attribute:!1}),1,"wrapperCol"],[A(),2,"setNotRender"],[A(),2,"getFormElement"]],0,void 0,d.ReactNextElement).e}}]);
2
- //# sourceMappingURL=1269.ee34444d.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_form=globalThis.webpackChunk_next_bricks_form||[]).push([[1269],{1173:(l,m,o)=>{function t(l,m){let o="";return l&&"horizontal"===m?(l.span&&(o+=`form-item-col-${l.span} `),l.offset&&(o+=`form-item-col-offset-${l.offset} `),["sm","md","lg","xl","xxl"].forEach((m=>{const t=l[m];t&&(["number","string"].includes(typeof t)?o+=`form-item-col-${m}-${t} `:(t.span&&(o+=`form-item-col-${m}-${t.span} `),t.offset&&(o+=`form-item-col-${m}-offset-${t.offset} `)))})),o):o}function e(l,m){let o,t;"number"==typeof m||"string"==typeof m?(o=m,t=0):(o=m.span,t=+(m.offset??0));let e=("number"==typeof l||"string"==typeof l?+l:+(l.span??0)+ +(l.offset??0))+t;return+o+e>24&&(e=t),{span:o,offset:e}}function f(l,m){return void 0!==m.span?e(l,m):Object.fromEntries(Object.entries(m).map((m=>{let[o,t]=m;return[o,e(l[o],t)]})))}o.d(m,{ht:()=>t,uj:()=>f})},1248:(l,m,o)=>{o.d(m,{A:()=>r});var t=o(6758),e=o.n(t),f=o(935),i=o.n(f)()(e());i.push([l.id,'.form-item-col-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-offset-24{margin-left:100%}.form-item-col-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-offset-23{margin-left:95.83333333%}.form-item-col-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-offset-22{margin-left:91.66666667%}.form-item-col-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-offset-21{margin-left:87.5%}.form-item-col-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-offset-20{margin-left:83.33333333%}.form-item-col-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-offset-19{margin-left:79.16666667%}.form-item-col-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-offset-18{margin-left:75%}.form-item-col-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-offset-17{margin-left:70.83333333%}.form-item-col-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-offset-16{margin-left:66.66666667%}.form-item-col-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-offset-15{margin-left:62.5%}.form-item-col-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-offset-14{margin-left:58.33333333%}.form-item-col-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-offset-13{margin-left:54.16666667%}.form-item-col-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-offset-12{margin-left:50%}.form-item-col-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-offset-11{margin-left:45.83333333%}.form-item-col-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-offset-10{margin-left:41.66666667%}.form-item-col-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-offset-9{margin-left:37.5%}.form-item-col-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-offset-8{margin-left:33.33333333%}.form-item-col-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-offset-7{margin-left:29.16666667%}.form-item-col-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-offset-6{margin-left:25%}.form-item-col-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-offset-5{margin-left:20.83333333%}.form-item-col-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-offset-4{margin-left:16.66666667%}.form-item-col-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-offset-3{margin-left:12.5%}.form-item-col-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-offset-2{margin-left:8.33333333%}.form-item-col-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-offset-1{margin-left:4.16666667%}@media (min-width: 576px){.form-item-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-sm-offset-24{margin-left:100%}.form-item-col-sm-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-sm-offset-23{margin-left:95.83333333%}.form-item-col-sm-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-sm-offset-22{margin-left:91.66666667%}.form-item-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-sm-offset-21{margin-left:87.5%}.form-item-col-sm-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-sm-offset-20{margin-left:83.33333333%}.form-item-col-sm-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-sm-offset-19{margin-left:79.16666667%}.form-item-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-sm-offset-18{margin-left:75%}.form-item-col-sm-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-sm-offset-17{margin-left:70.83333333%}.form-item-col-sm-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-sm-offset-16{margin-left:66.66666667%}.form-item-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-sm-offset-15{margin-left:62.5%}.form-item-col-sm-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-sm-offset-14{margin-left:58.33333333%}.form-item-col-sm-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-sm-offset-13{margin-left:54.16666667%}.form-item-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-sm-offset-12{margin-left:50%}.form-item-col-sm-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-sm-offset-11{margin-left:45.83333333%}.form-item-col-sm-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-sm-offset-10{margin-left:41.66666667%}.form-item-col-sm-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-sm-offset-9{margin-left:37.5%}.form-item-col-sm-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-sm-offset-8{margin-left:33.33333333%}.form-item-col-sm-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-sm-offset-7{margin-left:29.16666667%}.form-item-col-sm-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-sm-offset-6{margin-left:25%}.form-item-col-sm-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-sm-offset-5{margin-left:20.83333333%}.form-item-col-sm-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-sm-offset-4{margin-left:16.66666667%}.form-item-col-sm-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-sm-offset-3{margin-left:12.5%}.form-item-col-sm-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-sm-offset-2{margin-left:8.33333333%}.form-item-col-sm-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-sm-offset-1{margin-left:4.16666667%}}@media (min-width: 768px){.form-item-col-md-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-md-offset-24{margin-left:100%}.form-item-col-md-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-md-offset-23{margin-left:95.83333333%}.form-item-col-md-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-md-offset-22{margin-left:91.66666667%}.form-item-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-md-offset-21{margin-left:87.5%}.form-item-col-md-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-md-offset-20{margin-left:83.33333333%}.form-item-col-md-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-md-offset-19{margin-left:79.16666667%}.form-item-col-md-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-md-offset-18{margin-left:75%}.form-item-col-md-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-md-offset-17{margin-left:70.83333333%}.form-item-col-md-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-md-offset-16{margin-left:66.66666667%}.form-item-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-md-offset-15{margin-left:62.5%}.form-item-col-md-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-md-offset-14{margin-left:58.33333333%}.form-item-col-md-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-md-offset-13{margin-left:54.16666667%}.form-item-col-md-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-md-offset-12{margin-left:50%}.form-item-col-md-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-md-offset-11{margin-left:45.83333333%}.form-item-col-md-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-md-offset-10{margin-left:41.66666667%}.form-item-col-md-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-md-offset-9{margin-left:37.5%}.form-item-col-md-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-md-offset-8{margin-left:33.33333333%}.form-item-col-md-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-md-offset-7{margin-left:29.16666667%}.form-item-col-md-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-md-offset-6{margin-left:25%}.form-item-col-md-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-md-offset-5{margin-left:20.83333333%}.form-item-col-md-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-md-offset-4{margin-left:16.66666667%}.form-item-col-md-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-md-offset-3{margin-left:12.5%}.form-item-col-md-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-md-offset-2{margin-left:8.33333333%}.form-item-col-md-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-md-offset-1{margin-left:4.16666667%}}@media (min-width: 992px){.form-item-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-lg-offset-24{margin-left:100%}.form-item-col-lg-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-lg-offset-23{margin-left:95.83333333%}.form-item-col-lg-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-lg-offset-22{margin-left:91.66666667%}.form-item-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-lg-offset-21{margin-left:87.5%}.form-item-col-lg-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-lg-offset-20{margin-left:83.33333333%}.form-item-col-lg-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-lg-offset-19{margin-left:79.16666667%}.form-item-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-lg-offset-18{margin-left:75%}.form-item-col-lg-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-lg-offset-17{margin-left:70.83333333%}.form-item-col-lg-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-lg-offset-16{margin-left:66.66666667%}.form-item-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-lg-offset-15{margin-left:62.5%}.form-item-col-lg-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-lg-offset-14{margin-left:58.33333333%}.form-item-col-lg-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-lg-offset-13{margin-left:54.16666667%}.form-item-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-lg-offset-12{margin-left:50%}.form-item-col-lg-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-lg-offset-11{margin-left:45.83333333%}.form-item-col-lg-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-lg-offset-10{margin-left:41.66666667%}.form-item-col-lg-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-lg-offset-9{margin-left:37.5%}.form-item-col-lg-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-lg-offset-8{margin-left:33.33333333%}.form-item-col-lg-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-lg-offset-7{margin-left:29.16666667%}.form-item-col-lg-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-lg-offset-6{margin-left:25%}.form-item-col-lg-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-lg-offset-5{margin-left:20.83333333%}.form-item-col-lg-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-lg-offset-4{margin-left:16.66666667%}.form-item-col-lg-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-lg-offset-3{margin-left:12.5%}.form-item-col-lg-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-lg-offset-2{margin-left:8.33333333%}.form-item-col-lg-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-lg-offset-1{margin-left:4.16666667%}}@media (min-width: 1200px){.form-item-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xl-offset-24{margin-left:100%}.form-item-col-xl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xl-offset-23{margin-left:95.83333333%}.form-item-col-xl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xl-offset-22{margin-left:91.66666667%}.form-item-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xl-offset-21{margin-left:87.5%}.form-item-col-xl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xl-offset-20{margin-left:83.33333333%}.form-item-col-xl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xl-offset-19{margin-left:79.16666667%}.form-item-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xl-offset-18{margin-left:75%}.form-item-col-xl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xl-offset-17{margin-left:70.83333333%}.form-item-col-xl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xl-offset-16{margin-left:66.66666667%}.form-item-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xl-offset-15{margin-left:62.5%}.form-item-col-xl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xl-offset-14{margin-left:58.33333333%}.form-item-col-xl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xl-offset-13{margin-left:54.16666667%}.form-item-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xl-offset-12{margin-left:50%}.form-item-col-xl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xl-offset-11{margin-left:45.83333333%}.form-item-col-xl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xl-offset-10{margin-left:41.66666667%}.form-item-col-xl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xl-offset-9{margin-left:37.5%}.form-item-col-xl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xl-offset-8{margin-left:33.33333333%}.form-item-col-xl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xl-offset-7{margin-left:29.16666667%}.form-item-col-xl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xl-offset-6{margin-left:25%}.form-item-col-xl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xl-offset-5{margin-left:20.83333333%}.form-item-col-xl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xl-offset-4{margin-left:16.66666667%}.form-item-col-xl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xl-offset-3{margin-left:12.5%}.form-item-col-xl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xl-offset-2{margin-left:8.33333333%}.form-item-col-xl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xl-offset-1{margin-left:4.16666667%}}@media (min-width: 1600px){.form-item-col-xxl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xxl-offset-24{margin-left:100%}.form-item-col-xxl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xxl-offset-23{margin-left:95.83333333%}.form-item-col-xxl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xxl-offset-22{margin-left:91.66666667%}.form-item-col-xxl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xxl-offset-21{margin-left:87.5%}.form-item-col-xxl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xxl-offset-20{margin-left:83.33333333%}.form-item-col-xxl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xxl-offset-19{margin-left:79.16666667%}.form-item-col-xxl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xxl-offset-18{margin-left:75%}.form-item-col-xxl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xxl-offset-17{margin-left:70.83333333%}.form-item-col-xxl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xxl-offset-16{margin-left:66.66666667%}.form-item-col-xxl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xxl-offset-15{margin-left:62.5%}.form-item-col-xxl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xxl-offset-14{margin-left:58.33333333%}.form-item-col-xxl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xxl-offset-13{margin-left:54.16666667%}.form-item-col-xxl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xxl-offset-12{margin-left:50%}.form-item-col-xxl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xxl-offset-11{margin-left:45.83333333%}.form-item-col-xxl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xxl-offset-10{margin-left:41.66666667%}.form-item-col-xxl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xxl-offset-9{margin-left:37.5%}.form-item-col-xxl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xxl-offset-8{margin-left:33.33333333%}.form-item-col-xxl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xxl-offset-7{margin-left:29.16666667%}.form-item-col-xxl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xxl-offset-6{margin-left:25%}.form-item-col-xxl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xxl-offset-5{margin-left:20.83333333%}.form-item-col-xxl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xxl-offset-4{margin-left:16.66666667%}.form-item-col-xxl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xxl-offset-3{margin-left:12.5%}.form-item-col-xxl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xxl-offset-2{margin-left:8.33333333%}.form-item-col-xxl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xxl-offset-1{margin-left:4.16666667%}}@media (max-width: 767px){.form-item.horizontal .form-item-label-wrapper,\n .form-item.horizontal .form-item-wrapper{flex:0 0 100%;max-width:100%;text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label label::after{content:""}}@media (max-width: 991px){.form-item.horizontal .form-item-col-md-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-md-24 .form-item-label label::after{content:""}}@media (max-width: 1199px){.form-item.horizontal .form-item-col-lg-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-lg-24 .form-item-label label::after{content:""}}@media (max-width: 1599px){.form-item.horizontal .form-item-col-xl-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-xl-24 .form-item-label label::after{content:""}}.form-item{display:flex;box-sizing:border-box;color:var(--antd-text-color);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";vertical-align:top}.form-item.vertical{flex-direction:column}.form-item.vertical > .form-item-label-wrapper{text-align:left;line-height:20px;margin-bottom:8px}.form-item:not(.vertical) .form-item-label > label::after{content:":";position:relative;top:-0.5px;margin:0 0 0 2px}.form-item.horizontal{flex-flow:row wrap}.required{color:#ff4d4f;margin-right:4px}.form-item-label-wrapper{box-sizing:border-box;display:inline-block;white-space:nowrap;line-height:30px;text-align:right;vertical-align:middle;flex-grow:0;padding-right:8px}.form-item-label > label{margin-right:6px}.form-item-wrapper{flex:1 1 0;line-height:30px}.form-item-control{display:flex;gap:4px}.form-item-control slot{display:block;width:100%}.align-right{flex-direction:row}.align-bottom{flex-direction:column}.message{min-height:22px}.message.error{clear:both;min-height:23px;margin-top:-2px;color:var(--antd-error-color);font-size:14px;line-height:1.5715;transition:color 0.3s cubic-bezier(0.215,0.61,0.355,1)}',""]);const r=i.toString()},426:(l,m,o)=>{o.d(m,{N:()=>B});var t,e=o(4635),f=o(918),i=o(5536),r=o(9492),a=o(6121),c=o(829),x=o(2740),s=o(1929),d=o(4223);let n,g,h,p,b,w,k,y,u;const{method:A,property:z}=(0,s.createDecorators)();var v=new WeakMap,$=new WeakSet,_=new WeakMap,C=new WeakMap,E=new WeakMap,W=new WeakMap,M=new WeakMap,R=new WeakMap;class B extends d.ReactNextElement{constructor(){super(...arguments),(0,e.A)(this,$),(0,f.A)(this,v,(n(this),!1)),(0,f.A)(this,_,"normal"),(0,f.A)(this,C,!1),(0,f.A)(this,E,g(this)),(0,f.A)(this,W,(h(this),p(this))),(0,f.A)(this,M,(b(this),w(this))),(0,f.A)(this,R,(k(this),y(this))),u(this)}get isFormItemElement(){return!0}set validateState(l){(0,r.A)($,j,this,l),this._render()}get validateState(){return(0,i.A)($,this,S)}set notRender(l){this.hidden=l,(0,r.A)($,N,this,l),this._render()}get notRender(){return(0,i.A)($,this,F)}get $bindFormItem(){return(0,i.A)($,this,I)}set $bindFormItem(l){(0,r.A)($,O,this,l),this._render()}get helpBrick(){return(0,c.A)(E,this)}set helpBrick(l){(0,a.A)(E,this,l)}get labelBrick(){return(0,c.A)(W,this)}set labelBrick(l){(0,a.A)(W,this,l)}get labelCol(){return(0,c.A)(M,this)}set labelCol(l){(0,a.A)(M,this,l)}get wrapperCol(){return(0,c.A)(R,this)}set wrapperCol(l){(0,a.A)(R,this,l)}setNotRender(l){this.notRender=l}getFormElement(){let l=this;for(;(l=l.parentNode)&&l&&!l.isFormElement;);return l}}function F(l){return(0,c.A)(v,l)}function N(l,m){(0,a.A)(v,l,m)}function S(l){return(0,c.A)(_,l)}function j(l,m){(0,a.A)(_,l,m)}function I(l){return(0,c.A)(C,l)}function O(l,m){(0,a.A)(C,l,m)}t=B,[g,h,p,b,w,k,y,u,n]=(0,x.A)(t,[],[[z({attribute:!1}),1,"helpBrick"],[z({attribute:!1}),1,"labelBrick"],[z({attribute:!1}),1,"labelCol"],[z({attribute:!1}),1,"wrapperCol"],[A(),2,"setNotRender"],[A(),2,"getFormElement"]],0,void 0,d.ReactNextElement).e}}]);
2
+ //# sourceMappingURL=1269.b91c7b97.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/1269.ee34444d.js","mappings":"kIAGO,SAASA,EACdC,EACAC,GAEA,IAAIC,EAAM,GACV,OAAKF,GAAsB,eAAXC,GAEZD,EAAQG,OACVD,GAAO,iBAAiBF,EAAQG,SAG9BH,EAAQI,SACVF,GAAO,wBAAwBF,EAAQI,WAGzC,CAAC,KAAM,KAAM,KAAM,KAAM,OAAOC,SAASC,IACvC,MAAMC,EAAWP,EAAQM,GACrBC,IACE,CAAC,SAAU,UAAUC,gBAAgBD,GACvCL,GAAO,iBAAiBI,KAAQC,MAE/BA,EAAqBJ,OACnBD,GAAO,iBAAiBI,KAASC,EAAqBJ,SAExDI,EAAqBH,SACnBF,GAAO,iBAAiBI,YACtBC,EAAqBH,YAG9B,IAGKF,GA3ByCA,CA4BlD,CAEO,SAASO,EACdC,EACAC,GAEA,IAAIC,EACAC,EAEsB,iBAAfF,GAAiD,iBAAfA,GAC3CC,EAAcD,EACdE,EAAgB,IAEhBD,EAAcD,EAAWR,KACzBU,IAAkBF,EAAWP,QAAU,IAGzC,IAAIA,GACmB,iBAAbM,GAA6C,iBAAbA,GACnCA,IACCA,EAASP,MAAQ,MAAOO,EAASN,QAAU,IAAMS,EAMzD,OAJKD,EAAcR,EAAS,KAC1BA,EAASS,GAGJ,CACLV,KAAMS,EACNR,SAEJ,CAEO,SAASU,EACdJ,EACAC,GAEA,YAAwBI,IAApBJ,EAAWR,KACNM,EAA4BC,EAAUC,GAGxCK,OAAOC,YACZD,OAAOE,QAAQP,GAAYQ,KAAIC,IAAkB,IAAhBC,EAAKC,GAAMF,EAC1C,MAAO,C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kD,EAAAb,EAAA,CA+ExCc,EA/EqB9C,GAAmBO,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAR,IAAAyC,EAAAA,EAAAA,GAAAD,EAAA,KAuCtC1D,EAAS,CACR4D,WAAW,IACX,gBAKD5D,EAAS,CACR4D,WAAW,IACX,iBAKD5D,EAAS,CACR4D,WAAW,IACX,eAGD5D,EAAS,CACR4D,WAAW,IACX,iBAGD7D,IAAQ,mBAKRA,IAAQ,8BApEuCc,EAAAA,kBAAgBgD,C","sources":["webpack:///./src/form-item/convertToItemColName.ts","webpack:///./src/form-item/FormItem.shadow.less","webpack:///../../src/FormItemElement.tsx"],"sourcesContent":["import type { ColProps, ColSize } from \"@next-shared/form\";\nimport type { Layout } from \"../interface.js\";\n\nexport function convertToItemColName(\n colConf: ColProps | undefined,\n layout: Layout\n): string {\n let cls = \"\";\n if (!colConf || layout !== \"horizontal\") return cls;\n\n if (colConf.span) {\n cls += `form-item-col-${colConf.span} `;\n }\n\n if (colConf.offset) {\n cls += `form-item-col-offset-${colConf.offset} `;\n }\n\n [\"sm\", \"md\", \"lg\", \"xl\", \"xxl\"].forEach((size) => {\n const sizeConf = colConf[size as keyof ColProps];\n if (sizeConf) {\n if ([\"number\", \"string\"].includes(typeof sizeConf)) {\n cls += `form-item-col-${size}-${sizeConf} `;\n } else {\n (sizeConf as ColSize).span &&\n (cls += `form-item-col-${size}-${(sizeConf as ColSize).span} `);\n\n (sizeConf as ColSize).offset &&\n (cls += `form-item-col-${size}-offset-${\n (sizeConf as ColSize).offset\n } `);\n }\n }\n });\n\n return cls;\n}\n\nexport function addLabelSizeToWrapperOffset(\n labelCol: number | string | ColSize,\n wrapperCol: number | string | ColSize\n): ColSize {\n let wrapperSpan: number | string;\n let wrapperOffset: number;\n\n if (typeof wrapperCol === \"number\" || typeof wrapperCol === \"string\") {\n wrapperSpan = wrapperCol;\n wrapperOffset = 0;\n } else {\n wrapperSpan = wrapperCol.span!;\n wrapperOffset = +(wrapperCol.offset ?? 0);\n }\n\n let offset =\n (typeof labelCol === \"number\" || typeof labelCol === \"string\"\n ? +labelCol\n : +(labelCol.span ?? 0) + +(labelCol.offset ?? 0)) + wrapperOffset;\n\n if (+wrapperSpan + offset > 24) {\n offset = wrapperOffset;\n }\n\n return {\n span: wrapperSpan,\n offset,\n };\n}\n\nexport function calcWrapperColOffsetWithoutLabel(\n labelCol: ColProps,\n wrapperCol: ColProps\n): ColProps {\n if (wrapperCol.span !== undefined) {\n return addLabelSizeToWrapperOffset(labelCol, wrapperCol);\n }\n\n return Object.fromEntries(\n Object.entries(wrapperCol).map(([key, value]) => {\n return [\n key,\n addLabelSizeToWrapperOffset(\n labelCol[key as keyof ColProps] as ColSize,\n value\n ),\n ];\n })\n );\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.form-item-col-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-offset-24{margin-left:100%}.form-item-col-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-offset-23{margin-left:95.83333333%}.form-item-col-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-offset-22{margin-left:91.66666667%}.form-item-col-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-offset-21{margin-left:87.5%}.form-item-col-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-offset-20{margin-left:83.33333333%}.form-item-col-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-offset-19{margin-left:79.16666667%}.form-item-col-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-offset-18{margin-left:75%}.form-item-col-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-offset-17{margin-left:70.83333333%}.form-item-col-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-offset-16{margin-left:66.66666667%}.form-item-col-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-offset-15{margin-left:62.5%}.form-item-col-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-offset-14{margin-left:58.33333333%}.form-item-col-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-offset-13{margin-left:54.16666667%}.form-item-col-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-offset-12{margin-left:50%}.form-item-col-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-offset-11{margin-left:45.83333333%}.form-item-col-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-offset-10{margin-left:41.66666667%}.form-item-col-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-offset-9{margin-left:37.5%}.form-item-col-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-offset-8{margin-left:33.33333333%}.form-item-col-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-offset-7{margin-left:29.16666667%}.form-item-col-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-offset-6{margin-left:25%}.form-item-col-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-offset-5{margin-left:20.83333333%}.form-item-col-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-offset-4{margin-left:16.66666667%}.form-item-col-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-offset-3{margin-left:12.5%}.form-item-col-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-offset-2{margin-left:8.33333333%}.form-item-col-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-offset-1{margin-left:4.16666667%}@media (min-width: 576px){.form-item-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-sm-offset-24{margin-left:100%}.form-item-col-sm-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-sm-offset-23{margin-left:95.83333333%}.form-item-col-sm-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-sm-offset-22{margin-left:91.66666667%}.form-item-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-sm-offset-21{margin-left:87.5%}.form-item-col-sm-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-sm-offset-20{margin-left:83.33333333%}.form-item-col-sm-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-sm-offset-19{margin-left:79.16666667%}.form-item-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-sm-offset-18{margin-left:75%}.form-item-col-sm-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-sm-offset-17{margin-left:70.83333333%}.form-item-col-sm-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-sm-offset-16{margin-left:66.66666667%}.form-item-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-sm-offset-15{margin-left:62.5%}.form-item-col-sm-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-sm-offset-14{margin-left:58.33333333%}.form-item-col-sm-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-sm-offset-13{margin-left:54.16666667%}.form-item-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-sm-offset-12{margin-left:50%}.form-item-col-sm-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-sm-offset-11{margin-left:45.83333333%}.form-item-col-sm-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-sm-offset-10{margin-left:41.66666667%}.form-item-col-sm-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-sm-offset-9{margin-left:37.5%}.form-item-col-sm-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-sm-offset-8{margin-left:33.33333333%}.form-item-col-sm-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-sm-offset-7{margin-left:29.16666667%}.form-item-col-sm-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-sm-offset-6{margin-left:25%}.form-item-col-sm-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-sm-offset-5{margin-left:20.83333333%}.form-item-col-sm-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-sm-offset-4{margin-left:16.66666667%}.form-item-col-sm-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-sm-offset-3{margin-left:12.5%}.form-item-col-sm-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-sm-offset-2{margin-left:8.33333333%}.form-item-col-sm-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-sm-offset-1{margin-left:4.16666667%}}@media (min-width: 768px){.form-item-col-md-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-md-offset-24{margin-left:100%}.form-item-col-md-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-md-offset-23{margin-left:95.83333333%}.form-item-col-md-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-md-offset-22{margin-left:91.66666667%}.form-item-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-md-offset-21{margin-left:87.5%}.form-item-col-md-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-md-offset-20{margin-left:83.33333333%}.form-item-col-md-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-md-offset-19{margin-left:79.16666667%}.form-item-col-md-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-md-offset-18{margin-left:75%}.form-item-col-md-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-md-offset-17{margin-left:70.83333333%}.form-item-col-md-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-md-offset-16{margin-left:66.66666667%}.form-item-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-md-offset-15{margin-left:62.5%}.form-item-col-md-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-md-offset-14{margin-left:58.33333333%}.form-item-col-md-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-md-offset-13{margin-left:54.16666667%}.form-item-col-md-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-md-offset-12{margin-left:50%}.form-item-col-md-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-md-offset-11{margin-left:45.83333333%}.form-item-col-md-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-md-offset-10{margin-left:41.66666667%}.form-item-col-md-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-md-offset-9{margin-left:37.5%}.form-item-col-md-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-md-offset-8{margin-left:33.33333333%}.form-item-col-md-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-md-offset-7{margin-left:29.16666667%}.form-item-col-md-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-md-offset-6{margin-left:25%}.form-item-col-md-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-md-offset-5{margin-left:20.83333333%}.form-item-col-md-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-md-offset-4{margin-left:16.66666667%}.form-item-col-md-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-md-offset-3{margin-left:12.5%}.form-item-col-md-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-md-offset-2{margin-left:8.33333333%}.form-item-col-md-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-md-offset-1{margin-left:4.16666667%}}@media (min-width: 992px){.form-item-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-lg-offset-24{margin-left:100%}.form-item-col-lg-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-lg-offset-23{margin-left:95.83333333%}.form-item-col-lg-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-lg-offset-22{margin-left:91.66666667%}.form-item-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-lg-offset-21{margin-left:87.5%}.form-item-col-lg-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-lg-offset-20{margin-left:83.33333333%}.form-item-col-lg-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-lg-offset-19{margin-left:79.16666667%}.form-item-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-lg-offset-18{margin-left:75%}.form-item-col-lg-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-lg-offset-17{margin-left:70.83333333%}.form-item-col-lg-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-lg-offset-16{margin-left:66.66666667%}.form-item-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-lg-offset-15{margin-left:62.5%}.form-item-col-lg-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-lg-offset-14{margin-left:58.33333333%}.form-item-col-lg-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-lg-offset-13{margin-left:54.16666667%}.form-item-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-lg-offset-12{margin-left:50%}.form-item-col-lg-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-lg-offset-11{margin-left:45.83333333%}.form-item-col-lg-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-lg-offset-10{margin-left:41.66666667%}.form-item-col-lg-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-lg-offset-9{margin-left:37.5%}.form-item-col-lg-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-lg-offset-8{margin-left:33.33333333%}.form-item-col-lg-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-lg-offset-7{margin-left:29.16666667%}.form-item-col-lg-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-lg-offset-6{margin-left:25%}.form-item-col-lg-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-lg-offset-5{margin-left:20.83333333%}.form-item-col-lg-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-lg-offset-4{margin-left:16.66666667%}.form-item-col-lg-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-lg-offset-3{margin-left:12.5%}.form-item-col-lg-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-lg-offset-2{margin-left:8.33333333%}.form-item-col-lg-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-lg-offset-1{margin-left:4.16666667%}}@media (min-width: 1200px){.form-item-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xl-offset-24{margin-left:100%}.form-item-col-xl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xl-offset-23{margin-left:95.83333333%}.form-item-col-xl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xl-offset-22{margin-left:91.66666667%}.form-item-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xl-offset-21{margin-left:87.5%}.form-item-col-xl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xl-offset-20{margin-left:83.33333333%}.form-item-col-xl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xl-offset-19{margin-left:79.16666667%}.form-item-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xl-offset-18{margin-left:75%}.form-item-col-xl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xl-offset-17{margin-left:70.83333333%}.form-item-col-xl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xl-offset-16{margin-left:66.66666667%}.form-item-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xl-offset-15{margin-left:62.5%}.form-item-col-xl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xl-offset-14{margin-left:58.33333333%}.form-item-col-xl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xl-offset-13{margin-left:54.16666667%}.form-item-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xl-offset-12{margin-left:50%}.form-item-col-xl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xl-offset-11{margin-left:45.83333333%}.form-item-col-xl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xl-offset-10{margin-left:41.66666667%}.form-item-col-xl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xl-offset-9{margin-left:37.5%}.form-item-col-xl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xl-offset-8{margin-left:33.33333333%}.form-item-col-xl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xl-offset-7{margin-left:29.16666667%}.form-item-col-xl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xl-offset-6{margin-left:25%}.form-item-col-xl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xl-offset-5{margin-left:20.83333333%}.form-item-col-xl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xl-offset-4{margin-left:16.66666667%}.form-item-col-xl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xl-offset-3{margin-left:12.5%}.form-item-col-xl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xl-offset-2{margin-left:8.33333333%}.form-item-col-xl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xl-offset-1{margin-left:4.16666667%}}@media (min-width: 1600px){.form-item-col-xxl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xxl-offset-24{margin-left:100%}.form-item-col-xxl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xxl-offset-23{margin-left:95.83333333%}.form-item-col-xxl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xxl-offset-22{margin-left:91.66666667%}.form-item-col-xxl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xxl-offset-21{margin-left:87.5%}.form-item-col-xxl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xxl-offset-20{margin-left:83.33333333%}.form-item-col-xxl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xxl-offset-19{margin-left:79.16666667%}.form-item-col-xxl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xxl-offset-18{margin-left:75%}.form-item-col-xxl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xxl-offset-17{margin-left:70.83333333%}.form-item-col-xxl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xxl-offset-16{margin-left:66.66666667%}.form-item-col-xxl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xxl-offset-15{margin-left:62.5%}.form-item-col-xxl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xxl-offset-14{margin-left:58.33333333%}.form-item-col-xxl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xxl-offset-13{margin-left:54.16666667%}.form-item-col-xxl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xxl-offset-12{margin-left:50%}.form-item-col-xxl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xxl-offset-11{margin-left:45.83333333%}.form-item-col-xxl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xxl-offset-10{margin-left:41.66666667%}.form-item-col-xxl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xxl-offset-9{margin-left:37.5%}.form-item-col-xxl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xxl-offset-8{margin-left:33.33333333%}.form-item-col-xxl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xxl-offset-7{margin-left:29.16666667%}.form-item-col-xxl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xxl-offset-6{margin-left:25%}.form-item-col-xxl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xxl-offset-5{margin-left:20.83333333%}.form-item-col-xxl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xxl-offset-4{margin-left:16.66666667%}.form-item-col-xxl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xxl-offset-3{margin-left:12.5%}.form-item-col-xxl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xxl-offset-2{margin-left:8.33333333%}.form-item-col-xxl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xxl-offset-1{margin-left:4.16666667%}}@media (max-width: 767px){.form-item.horizontal .form-item-label-wrapper,\n .form-item.horizontal .form-item-wrapper{flex:0 0 100%;max-width:100%;text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label label::after{content:\"\"}}@media (max-width: 991px){.form-item.horizontal .form-item-col-md-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-md-24 .form-item-label label::after{content:\"\"}}@media (max-width: 1199px){.form-item.horizontal .form-item-col-lg-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-lg-24 .form-item-label label::after{content:\"\"}}@media (max-width: 1599px){.form-item.horizontal .form-item-col-xl-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-xl-24 .form-item-label label::after{content:\"\"}}.form-item{display:flex;box-sizing:border-box;color:var(--antd-text-color);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:\"tnum\";vertical-align:top}.form-item.vertical{flex-direction:column}.form-item.vertical > .form-item-label-wrapper{text-align:left;line-height:20px;margin-bottom:8px}.form-item:not(.vertical) .form-item-label > label::after{content:\":\";position:relative;top:-0.5px;margin:0 0 0 2px}.form-item.horizontal{flex-flow:row wrap}.required{color:#ff4d4f;margin-right:4px}.form-item-label-wrapper{box-sizing:border-box;display:inline-block;white-space:nowrap;line-height:30px;text-align:right;vertical-align:middle;flex-grow:0;padding-right:8px}.form-item-label > label{margin-right:6px}.form-item-wrapper{flex:1 1 0;line-height:30px}.form-item-control{display:flex;gap:4px}.form-item-control slot{display:block;width:100%}.align-right{flex-direction:row}.align-bottom{flex-direction:column}.message{min-height:22px}.message.error{clear:both;min-height:23px;margin-top:-2px;color:var(--antd-error-color);font-size:14px;line-height:1.5715;transition:color 0.3s cubic-bezier(0.215,0.61,0.355,1)}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","import { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport type { AbstractForm, ColProps } from \"./Form.js\";\nimport { UseSingleBrickConf } from \"@next-core/types\";\n\nconst { method, property } = createDecorators();\n\nexport abstract class FormItemElementBase extends ReactNextElement {\n accessor #_notRender = false;\n accessor #validate = \"normal\";\n accessor #bindFormItem = false;\n\n get isFormItemElement(): true {\n return true;\n }\n\n set validateState(value: string) {\n this.#validate = value;\n this._render();\n }\n get validateState() {\n return this.#validate;\n }\n\n /**\n * 控制该表单项是否隐藏\n * @default false\n * @group ui\n */\n set notRender(value: boolean) {\n this.hidden = value;\n this.#_notRender = value;\n this._render();\n }\n get notRender(): boolean {\n return this.#_notRender;\n }\n\n get $bindFormItem() {\n return this.#bindFormItem;\n }\n set $bindFormItem(value: boolean) {\n this.#bindFormItem = value;\n this._render();\n }\n\n @property({\n attribute: false,\n })\n accessor helpBrick:\n | { useBrick: UseSingleBrickConf | UseSingleBrickConf[] }\n | undefined;\n\n @property({\n attribute: false,\n })\n accessor labelBrick:\n | { useBrick: UseSingleBrickConf | UseSingleBrickConf[] }\n | undefined;\n\n @property({\n attribute: false,\n })\n accessor labelCol: ColProps | undefined;\n\n @property({\n attribute: false,\n })\n accessor wrapperCol: ColProps | undefined;\n\n @method()\n setNotRender(value: boolean) {\n this.notRender = value;\n }\n\n @method()\n getFormElement(): AbstractForm | null {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n let element: AbstractForm | null = this as unknown as AbstractForm;\n while ((element = element.parentNode as AbstractForm | null)) {\n if (!element || element.isFormElement) {\n break;\n }\n }\n return element as AbstractForm | null;\n }\n}\n"],"names":["convertToItemColName","colConf","layout","cls","span","offset","forEach","size","sizeConf","includes","addLabelSizeToWrapperOffset","labelCol","wrapperCol","wrapperSpan","wrapperOffset","calcWrapperColOffsetWithoutLabel","undefined","Object","fromEntries","entries","map","_ref","key","value","___CSS_LOADER_EXPORT___","push","module","id","toString","method","property","createDecorators","_A","WeakMap","_FormItemElementBase_brand","WeakSet","_B","_C","_D","_E","_F","_G","FormItemElementBase","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_initProto","_init_helpBrick","_init_extra_helpBrick","_init_labelBrick","_init_extra_labelBrick","_init_labelCol","_init_extra_labelCol","_init_wrapperCol","_init_extra_wrapperCol","isFormItemElement","validateState","_classPrivateSetter","_set_validate","this","_render","_classPrivateGetter","_get_validate","notRender","hidden","_set__notRender","_get__notRender","$bindFormItem","_get_bindFormItem","_set_bindFormItem","helpBrick","_classPrivateFieldGet","v","_classPrivateFieldSet","labelBrick","setNotRender","getFormElement","element","parentNode","isFormElement","_this","_this2","_this3","_this4","_this5","_this6","_FormItemElementBase","_appl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BAKD5D,EAAS,CACR4D,WAAW,IACX,eAGD5D,EAAS,CACR4D,WAAW,IACX,iBAGD7D,IAAQ,mBAKRA,IAAQ,8BApEuCc,EAAAA,kBAAgBgD,C","sources":["webpack:///./src/form-item/convertToItemColName.ts","webpack:///./src/form-item/FormItem.shadow.less","webpack:///../../src/FormItemElement.tsx"],"sourcesContent":["import type { ColProps, ColSize } from \"@next-shared/form\";\nimport type { Layout } from \"../interface.js\";\n\nexport function convertToItemColName(\n colConf: ColProps | undefined,\n layout: Layout\n): string {\n let cls = \"\";\n if (!colConf || layout !== \"horizontal\") return cls;\n\n if (colConf.span) {\n cls += `form-item-col-${colConf.span} `;\n }\n\n if (colConf.offset) {\n cls += `form-item-col-offset-${colConf.offset} `;\n }\n\n [\"sm\", \"md\", \"lg\", \"xl\", \"xxl\"].forEach((size) => {\n const sizeConf = colConf[size as keyof ColProps];\n if (sizeConf) {\n if ([\"number\", \"string\"].includes(typeof sizeConf)) {\n cls += `form-item-col-${size}-${sizeConf} `;\n } else {\n (sizeConf as ColSize).span &&\n (cls += `form-item-col-${size}-${(sizeConf as ColSize).span} `);\n\n (sizeConf as ColSize).offset &&\n (cls += `form-item-col-${size}-offset-${\n (sizeConf as ColSize).offset\n } `);\n }\n }\n });\n\n return cls;\n}\n\nexport function addLabelSizeToWrapperOffset(\n labelCol: number | string | ColSize,\n wrapperCol: number | string | ColSize\n): ColSize {\n let wrapperSpan: number | string;\n let wrapperOffset: number;\n\n if (typeof wrapperCol === \"number\" || typeof wrapperCol === \"string\") {\n wrapperSpan = wrapperCol;\n wrapperOffset = 0;\n } else {\n wrapperSpan = wrapperCol.span!;\n wrapperOffset = +(wrapperCol.offset ?? 0);\n }\n\n let offset =\n (typeof labelCol === \"number\" || typeof labelCol === \"string\"\n ? +labelCol\n : +(labelCol.span ?? 0) + +(labelCol.offset ?? 0)) + wrapperOffset;\n\n if (+wrapperSpan + offset > 24) {\n offset = wrapperOffset;\n }\n\n return {\n span: wrapperSpan,\n offset,\n };\n}\n\nexport function calcWrapperColOffsetWithoutLabel(\n labelCol: ColProps,\n wrapperCol: ColProps\n): ColProps {\n if (wrapperCol.span !== undefined) {\n return addLabelSizeToWrapperOffset(labelCol, wrapperCol);\n }\n\n return Object.fromEntries(\n Object.entries(wrapperCol).map(([key, value]) => {\n return [\n key,\n addLabelSizeToWrapperOffset(\n labelCol[key as keyof ColProps] as ColSize,\n value\n ),\n ];\n })\n );\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.form-item-col-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-offset-24{margin-left:100%}.form-item-col-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-offset-23{margin-left:95.83333333%}.form-item-col-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-offset-22{margin-left:91.66666667%}.form-item-col-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-offset-21{margin-left:87.5%}.form-item-col-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-offset-20{margin-left:83.33333333%}.form-item-col-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-offset-19{margin-left:79.16666667%}.form-item-col-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-offset-18{margin-left:75%}.form-item-col-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-offset-17{margin-left:70.83333333%}.form-item-col-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-offset-16{margin-left:66.66666667%}.form-item-col-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-offset-15{margin-left:62.5%}.form-item-col-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-offset-14{margin-left:58.33333333%}.form-item-col-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-offset-13{margin-left:54.16666667%}.form-item-col-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-offset-12{margin-left:50%}.form-item-col-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-offset-11{margin-left:45.83333333%}.form-item-col-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-offset-10{margin-left:41.66666667%}.form-item-col-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-offset-9{margin-left:37.5%}.form-item-col-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-offset-8{margin-left:33.33333333%}.form-item-col-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-offset-7{margin-left:29.16666667%}.form-item-col-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-offset-6{margin-left:25%}.form-item-col-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-offset-5{margin-left:20.83333333%}.form-item-col-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-offset-4{margin-left:16.66666667%}.form-item-col-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-offset-3{margin-left:12.5%}.form-item-col-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-offset-2{margin-left:8.33333333%}.form-item-col-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-offset-1{margin-left:4.16666667%}@media (min-width: 576px){.form-item-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-sm-offset-24{margin-left:100%}.form-item-col-sm-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-sm-offset-23{margin-left:95.83333333%}.form-item-col-sm-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-sm-offset-22{margin-left:91.66666667%}.form-item-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-sm-offset-21{margin-left:87.5%}.form-item-col-sm-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-sm-offset-20{margin-left:83.33333333%}.form-item-col-sm-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-sm-offset-19{margin-left:79.16666667%}.form-item-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-sm-offset-18{margin-left:75%}.form-item-col-sm-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-sm-offset-17{margin-left:70.83333333%}.form-item-col-sm-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-sm-offset-16{margin-left:66.66666667%}.form-item-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-sm-offset-15{margin-left:62.5%}.form-item-col-sm-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-sm-offset-14{margin-left:58.33333333%}.form-item-col-sm-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-sm-offset-13{margin-left:54.16666667%}.form-item-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-sm-offset-12{margin-left:50%}.form-item-col-sm-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-sm-offset-11{margin-left:45.83333333%}.form-item-col-sm-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-sm-offset-10{margin-left:41.66666667%}.form-item-col-sm-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-sm-offset-9{margin-left:37.5%}.form-item-col-sm-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-sm-offset-8{margin-left:33.33333333%}.form-item-col-sm-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-sm-offset-7{margin-left:29.16666667%}.form-item-col-sm-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-sm-offset-6{margin-left:25%}.form-item-col-sm-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-sm-offset-5{margin-left:20.83333333%}.form-item-col-sm-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-sm-offset-4{margin-left:16.66666667%}.form-item-col-sm-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-sm-offset-3{margin-left:12.5%}.form-item-col-sm-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-sm-offset-2{margin-left:8.33333333%}.form-item-col-sm-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-sm-offset-1{margin-left:4.16666667%}}@media (min-width: 768px){.form-item-col-md-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-md-offset-24{margin-left:100%}.form-item-col-md-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-md-offset-23{margin-left:95.83333333%}.form-item-col-md-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-md-offset-22{margin-left:91.66666667%}.form-item-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-md-offset-21{margin-left:87.5%}.form-item-col-md-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-md-offset-20{margin-left:83.33333333%}.form-item-col-md-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-md-offset-19{margin-left:79.16666667%}.form-item-col-md-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-md-offset-18{margin-left:75%}.form-item-col-md-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-md-offset-17{margin-left:70.83333333%}.form-item-col-md-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-md-offset-16{margin-left:66.66666667%}.form-item-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-md-offset-15{margin-left:62.5%}.form-item-col-md-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-md-offset-14{margin-left:58.33333333%}.form-item-col-md-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-md-offset-13{margin-left:54.16666667%}.form-item-col-md-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-md-offset-12{margin-left:50%}.form-item-col-md-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-md-offset-11{margin-left:45.83333333%}.form-item-col-md-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-md-offset-10{margin-left:41.66666667%}.form-item-col-md-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-md-offset-9{margin-left:37.5%}.form-item-col-md-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-md-offset-8{margin-left:33.33333333%}.form-item-col-md-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-md-offset-7{margin-left:29.16666667%}.form-item-col-md-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-md-offset-6{margin-left:25%}.form-item-col-md-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-md-offset-5{margin-left:20.83333333%}.form-item-col-md-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-md-offset-4{margin-left:16.66666667%}.form-item-col-md-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-md-offset-3{margin-left:12.5%}.form-item-col-md-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-md-offset-2{margin-left:8.33333333%}.form-item-col-md-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-md-offset-1{margin-left:4.16666667%}}@media (min-width: 992px){.form-item-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-lg-offset-24{margin-left:100%}.form-item-col-lg-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-lg-offset-23{margin-left:95.83333333%}.form-item-col-lg-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-lg-offset-22{margin-left:91.66666667%}.form-item-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-lg-offset-21{margin-left:87.5%}.form-item-col-lg-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-lg-offset-20{margin-left:83.33333333%}.form-item-col-lg-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-lg-offset-19{margin-left:79.16666667%}.form-item-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-lg-offset-18{margin-left:75%}.form-item-col-lg-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-lg-offset-17{margin-left:70.83333333%}.form-item-col-lg-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-lg-offset-16{margin-left:66.66666667%}.form-item-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-lg-offset-15{margin-left:62.5%}.form-item-col-lg-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-lg-offset-14{margin-left:58.33333333%}.form-item-col-lg-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-lg-offset-13{margin-left:54.16666667%}.form-item-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-lg-offset-12{margin-left:50%}.form-item-col-lg-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-lg-offset-11{margin-left:45.83333333%}.form-item-col-lg-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-lg-offset-10{margin-left:41.66666667%}.form-item-col-lg-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-lg-offset-9{margin-left:37.5%}.form-item-col-lg-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-lg-offset-8{margin-left:33.33333333%}.form-item-col-lg-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-lg-offset-7{margin-left:29.16666667%}.form-item-col-lg-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-lg-offset-6{margin-left:25%}.form-item-col-lg-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-lg-offset-5{margin-left:20.83333333%}.form-item-col-lg-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-lg-offset-4{margin-left:16.66666667%}.form-item-col-lg-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-lg-offset-3{margin-left:12.5%}.form-item-col-lg-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-lg-offset-2{margin-left:8.33333333%}.form-item-col-lg-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-lg-offset-1{margin-left:4.16666667%}}@media (min-width: 1200px){.form-item-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xl-offset-24{margin-left:100%}.form-item-col-xl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xl-offset-23{margin-left:95.83333333%}.form-item-col-xl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xl-offset-22{margin-left:91.66666667%}.form-item-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xl-offset-21{margin-left:87.5%}.form-item-col-xl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xl-offset-20{margin-left:83.33333333%}.form-item-col-xl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xl-offset-19{margin-left:79.16666667%}.form-item-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xl-offset-18{margin-left:75%}.form-item-col-xl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xl-offset-17{margin-left:70.83333333%}.form-item-col-xl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xl-offset-16{margin-left:66.66666667%}.form-item-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xl-offset-15{margin-left:62.5%}.form-item-col-xl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xl-offset-14{margin-left:58.33333333%}.form-item-col-xl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xl-offset-13{margin-left:54.16666667%}.form-item-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xl-offset-12{margin-left:50%}.form-item-col-xl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xl-offset-11{margin-left:45.83333333%}.form-item-col-xl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xl-offset-10{margin-left:41.66666667%}.form-item-col-xl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xl-offset-9{margin-left:37.5%}.form-item-col-xl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xl-offset-8{margin-left:33.33333333%}.form-item-col-xl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xl-offset-7{margin-left:29.16666667%}.form-item-col-xl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xl-offset-6{margin-left:25%}.form-item-col-xl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xl-offset-5{margin-left:20.83333333%}.form-item-col-xl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xl-offset-4{margin-left:16.66666667%}.form-item-col-xl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xl-offset-3{margin-left:12.5%}.form-item-col-xl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xl-offset-2{margin-left:8.33333333%}.form-item-col-xl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xl-offset-1{margin-left:4.16666667%}}@media (min-width: 1600px){.form-item-col-xxl-24{display:block;flex:0 0 100%;max-width:100%}.form-item-col-xxl-offset-24{margin-left:100%}.form-item-col-xxl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.form-item-col-xxl-offset-23{margin-left:95.83333333%}.form-item-col-xxl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.form-item-col-xxl-offset-22{margin-left:91.66666667%}.form-item-col-xxl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.form-item-col-xxl-offset-21{margin-left:87.5%}.form-item-col-xxl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.form-item-col-xxl-offset-20{margin-left:83.33333333%}.form-item-col-xxl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.form-item-col-xxl-offset-19{margin-left:79.16666667%}.form-item-col-xxl-18{display:block;flex:0 0 75%;max-width:75%}.form-item-col-xxl-offset-18{margin-left:75%}.form-item-col-xxl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.form-item-col-xxl-offset-17{margin-left:70.83333333%}.form-item-col-xxl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.form-item-col-xxl-offset-16{margin-left:66.66666667%}.form-item-col-xxl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.form-item-col-xxl-offset-15{margin-left:62.5%}.form-item-col-xxl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.form-item-col-xxl-offset-14{margin-left:58.33333333%}.form-item-col-xxl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.form-item-col-xxl-offset-13{margin-left:54.16666667%}.form-item-col-xxl-12{display:block;flex:0 0 50%;max-width:50%}.form-item-col-xxl-offset-12{margin-left:50%}.form-item-col-xxl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.form-item-col-xxl-offset-11{margin-left:45.83333333%}.form-item-col-xxl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.form-item-col-xxl-offset-10{margin-left:41.66666667%}.form-item-col-xxl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.form-item-col-xxl-offset-9{margin-left:37.5%}.form-item-col-xxl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.form-item-col-xxl-offset-8{margin-left:33.33333333%}.form-item-col-xxl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.form-item-col-xxl-offset-7{margin-left:29.16666667%}.form-item-col-xxl-6{display:block;flex:0 0 25%;max-width:25%}.form-item-col-xxl-offset-6{margin-left:25%}.form-item-col-xxl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.form-item-col-xxl-offset-5{margin-left:20.83333333%}.form-item-col-xxl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.form-item-col-xxl-offset-4{margin-left:16.66666667%}.form-item-col-xxl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.form-item-col-xxl-offset-3{margin-left:12.5%}.form-item-col-xxl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.form-item-col-xxl-offset-2{margin-left:8.33333333%}.form-item-col-xxl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.form-item-col-xxl-offset-1{margin-left:4.16666667%}}@media (max-width: 767px){.form-item.horizontal .form-item-label-wrapper,\n .form-item.horizontal .form-item-wrapper{flex:0 0 100%;max-width:100%;text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-sm-24 .form-item-label label::after{content:\"\"}}@media (max-width: 991px){.form-item.horizontal .form-item-col-md-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-md-24 .form-item-label label::after{content:\"\"}}@media (max-width: 1199px){.form-item.horizontal .form-item-col-lg-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-lg-24 .form-item-label label::after{content:\"\"}}@media (max-width: 1599px){.form-item.horizontal .form-item-col-xl-24 .form-item-label{text-align:left}.form-item.horizontal .form-item-col-xl-24 .form-item-label label::after{content:\"\"}}.form-item{display:flex;box-sizing:border-box;color:var(--antd-text-color);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:\"tnum\";vertical-align:top}.form-item.vertical{flex-direction:column}.form-item.vertical > .form-item-label-wrapper{text-align:left;line-height:20px;margin-bottom:8px}.form-item:not(.vertical) .form-item-label > label::after{content:\":\";position:relative;top:-0.5px;margin:0 0 0 2px}.form-item.horizontal{flex-flow:row wrap}.required{color:#ff4d4f;margin-right:4px}.form-item-label-wrapper{box-sizing:border-box;display:inline-block;white-space:nowrap;line-height:30px;text-align:right;vertical-align:middle;flex-grow:0;padding-right:8px}.form-item-label > label{margin-right:6px}.form-item-wrapper{flex:1 1 0;line-height:30px}.form-item-control{display:flex;gap:4px}.form-item-control slot{display:block;width:100%}.align-right{flex-direction:row}.align-bottom{flex-direction:column}.message{min-height:22px}.message.error{clear:both;min-height:23px;margin-top:-2px;color:var(--antd-error-color);font-size:14px;line-height:1.5715;transition:color 0.3s cubic-bezier(0.215,0.61,0.355,1)}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","import { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport type { AbstractForm, ColProps } from \"./Form.js\";\nimport { UseSingleBrickConf } from \"@next-core/types\";\n\nconst { method, property } = createDecorators();\n\nexport abstract class FormItemElementBase extends ReactNextElement {\n accessor #_notRender = false;\n accessor #validate = \"normal\";\n accessor #bindFormItem = false;\n\n get isFormItemElement(): true {\n return true;\n }\n\n set validateState(value: string) {\n this.#validate = value;\n this._render();\n }\n get validateState() {\n return this.#validate;\n }\n\n /**\n * 控制该表单项是否隐藏\n * @default false\n * @group ui\n */\n set notRender(value: boolean) {\n this.hidden = value;\n this.#_notRender = value;\n this._render();\n }\n get notRender(): boolean {\n return this.#_notRender;\n }\n\n get $bindFormItem() {\n return this.#bindFormItem;\n }\n set $bindFormItem(value: boolean) {\n this.#bindFormItem = value;\n this._render();\n }\n\n @property({\n attribute: false,\n })\n accessor helpBrick:\n | { useBrick: UseSingleBrickConf | UseSingleBrickConf[] }\n | undefined;\n\n @property({\n attribute: false,\n })\n accessor labelBrick:\n | { useBrick: UseSingleBrickConf | UseSingleBrickConf[] }\n | undefined;\n\n @property({\n attribute: false,\n })\n accessor labelCol: ColProps | undefined;\n\n @property({\n attribute: false,\n })\n accessor wrapperCol: ColProps | undefined;\n\n @method()\n setNotRender(value: boolean) {\n this.notRender = value;\n }\n\n @method()\n getFormElement(): AbstractForm | null {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n let element: AbstractForm | null = this as unknown as AbstractForm;\n while ((element = element.parentNode as AbstractForm | null)) {\n if (!element || element.isFormElement) {\n break;\n }\n }\n return element as AbstractForm | null;\n }\n}\n"],"names":["convertToItemColName","colConf","layout","cls","span","offset","forEach","size","sizeConf","includes","addLabelSizeToWrapperOffset","labelCol","wrapperCol","wrapperSpan","wrapperOffset","calcWrapperColOffsetWithoutLabel","undefined","Object","fromEntries","entries","map","_ref","key","value","___CSS_LOADER_EXPORT___","push","module","id","toString","method","property","createDecorators","_A","WeakMap","_FormItemElementBase_brand","WeakSet","_B","_C","_D","_E","_F","_G","FormItemElementBase","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_initProto","_init_helpBrick","_init_extra_helpBrick","_init_labelBrick","_init_extra_labelBrick","_init_labelCol","_init_extra_labelCol","_init_wrapperCol","_init_extra_wrapperCol","isFormItemElement","validateState","_classPrivateSetter","_set_validate","this","_render","_classPrivateGetter","_get_validate","notRender","hidden","_set__notRender","_get__notRender","$bindFormItem","_get_bindFormItem","_set_bindFormItem","helpBrick","_classPrivateFieldGet","v","_classPrivateFieldSet","labelBrick","setNotRender","getFormElement","element","parentNode","isFormElement","_this","_this2","_this3","_this4","_this5","_this6","_FormItemElementBase","_applyDecs","attribute","e"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_form=globalThis.webpackChunk_next_bricks_form||[]).push([[1940,9559],{9559:(e,t,r)=>{r.r(t),r.d(t,{supply:()=>s});var n=r(1030),a=r(1302),o=r(5575);function s(e,t,r){const n={undefined:void 0};for(const a of e)if(!Object.prototype.hasOwnProperty.call(n,a))if(t&&Object.prototype.hasOwnProperty.call(t,a))n[a]=t[a];else{const e=u(a,r);void 0!==e&&(n[a]=e)}return n}const i=new Set(["fill","pull","pullAll","pullAllBy","pullAllWith","pullAt","remove","reverse","assign","assignIn","assignInWith","assignWith","defaults","defaultsDeep","merge","mergeWith","set","setWith","unset","update","updateWith","after","ary","before","bind","bindKey","curry","curryRight","debounce","defer","delay","flip","memoize","negate","once","overArgs","partial","partialRight","rearg","rest","spread","throttle","unary","wrap"]),c=new Set(["lang","langData","locale","localeData","defineLocale","updateLocale","updateOffset"]),l=new Set(["Array","Boolean","Date","Infinity","JSON","Math","NaN","Number","String","RegExp","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","isFinite","isNaN","parseFloat","parseInt","Map","Set","URLSearchParams","WeakMap","WeakSet","atob","btoa"]);function u(e,t){switch(e){case"Object":return r=Object,s=["entries","fromEntries","keys","values"],Object.fromEntries(s.map((e=>[e,function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return r[e].apply(r,n)}])));case"_":return Object.fromEntries(Object.entries(n).filter((e=>!i.has(e[0]))).concat(t?[["uniqueId",e=>`${e??""}42`]]:[]));case"moment":return Object.assign((function(){return a(...arguments)}),Object.fromEntries(Object.entries(a).filter((e=>!c.has(e[0])))));case"PIPES":return o.pipes;case"TAG_URL":return p(!0);case"SAFE_TAG_URL":return p();default:if(l.has(e))return window[e]}var r,s}function p(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];const o=[];return t.forEach(((t,r)=>{o.push(t),r<n.length&&o.push(e?String(n[r]).replace(/[^/]+/g,(e=>encodeURIComponent(e))):encodeURIComponent(String(n[r])))})),o.join("")}}}}]);
2
- //# sourceMappingURL=1940.f196205c.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_form=globalThis.webpackChunk_next_bricks_form||[]).push([[1940,9559],{9559:(e,t,r)=>{r.r(t),r.d(t,{supply:()=>s});var n=r(1030),a=r(1302),o=r(1092);function s(e,t,r){const n={undefined:void 0};for(const a of e)if(!Object.prototype.hasOwnProperty.call(n,a))if(t&&Object.prototype.hasOwnProperty.call(t,a))n[a]=t[a];else{const e=u(a,r);void 0!==e&&(n[a]=e)}return n}const i=new Set(["fill","pull","pullAll","pullAllBy","pullAllWith","pullAt","remove","reverse","assign","assignIn","assignInWith","assignWith","defaults","defaultsDeep","merge","mergeWith","set","setWith","unset","update","updateWith","after","ary","before","bind","bindKey","curry","curryRight","debounce","defer","delay","flip","memoize","negate","once","overArgs","partial","partialRight","rearg","rest","spread","throttle","unary","wrap"]),c=new Set(["lang","langData","locale","localeData","defineLocale","updateLocale","updateOffset"]),l=new Set(["Array","Boolean","Date","Infinity","JSON","Math","NaN","Number","String","RegExp","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","isFinite","isNaN","parseFloat","parseInt","Map","Set","URLSearchParams","WeakMap","WeakSet","atob","btoa"]);function u(e,t){switch(e){case"Object":return r=Object,s=["entries","fromEntries","keys","values"],Object.fromEntries(s.map((e=>[e,function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return r[e].apply(r,n)}])));case"_":return Object.fromEntries(Object.entries(n).filter((e=>!i.has(e[0]))).concat(t?[["uniqueId",e=>`${e??""}42`]]:[]));case"moment":return Object.assign((function(){return a(...arguments)}),Object.fromEntries(Object.entries(a).filter((e=>!c.has(e[0])))));case"PIPES":return o.pipes;case"TAG_URL":return p(!0);case"SAFE_TAG_URL":return p();default:if(l.has(e))return window[e]}var r,s}function p(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];const o=[];return t.forEach(((t,r)=>{o.push(t),r<n.length&&o.push(e?String(n[r]).replace(/[^/]+/g,(e=>encodeURIComponent(e))):encodeURIComponent(String(n[r])))})),o.join("")}}}}]);
2
+ //# sourceMappingURL=1940.77437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O,EAAGA,EAAOL,EAAMK,IAC/EF,EAAKE,GAAQJ,UAAUI,GAEzB,OAAOV,EAAOI,GAAQO,MAAMX,EAAQQ,EACtC,MAxBE,IAAK,IACH,OAAOlB,OAAOY,YAAYZ,OAAOsB,QAAQ,GAAQC,QAAOC,IAAUlB,EAAmBmB,IAAID,EAAM,MAAKE,OAAO9B,EAAO,CAAC,CAAC,WAAY+B,GAAU,GAAGA,GAAU,SAAW,KACpK,IAAK,SACH,OAAO3B,OAAO4B,QAAO,WACnB,OAAO,KAAUZ,UACnB,GAAGhB,OAAOY,YAAYZ,OAAOsB,QAAQ,GAAQC,QAAOC,IAAUhB,EAAmBiB,IAAID,EAAM,QAC7F,IAAK,QACH,OAAO,EAAAK,MACT,IAAK,UACH,OAAOC,GAAc,GACvB,IAAK,eACH,OAAOA,IACT,QACE,GAAIrB,EAAqBgB,IAAI1B,GAC3B,OAAOgC,OAAOhC,GAItB,IAAyBW,EAAQC,CADjC,CAiCA,SAASmB,EAAcE,GACrB,OAAO,SAAUC,GACf,IAAK,IAAIC,EAAQlB,UAAUC,OAAQkB,EAAW,IAAIhB,MAAMe,EAAQ,EAAIA,EAAQ,EAAI,GAAIE,EAAQ,EAAGA,EAAQF,EAAOE,IAC5GD,EAASC,EAAQ,GAAKpB,UAAUoB,GAElC,MAAMC,EAAS,GAOf,OANAJ,EAAQK,SAAQ,CAACC,EAAKC,KACpBH,EAAOI,KAAKF,GACRC,EAAQL,EAASlB,QACnBoB,EAAOI,KAAKT,EAAgBU,OAAOP,EAASK,IAAQG,QAAQ,UAAUC,GAAKC,mBAAmBD,KAAMC,mBAAmBH,OAAOP,EAASK,KACzI,IAEKH,EAAOS,KAAK,GACrB,CACF,C","sources":["webpack:///../../node_modules/@next-core/supply/dist/esm/index.js"],"sourcesContent":["import lodash from \"lodash\";\nimport moment from \"moment\";\nimport { pipes } from \"@next-core/pipes\";\nexport function supply(attemptToVisitGlobals, providedGlobalVariables, mock) {\n const globalVariables = {\n undefined\n };\n // Allow limited browser builtin values.\n for (const variableName of attemptToVisitGlobals) {\n if (!Object.prototype.hasOwnProperty.call(globalVariables, variableName)) {\n if (providedGlobalVariables && Object.prototype.hasOwnProperty.call(providedGlobalVariables, variableName)) {\n globalVariables[variableName] = providedGlobalVariables[variableName];\n } else {\n const variable = supplyIndividual(variableName, mock);\n if (variable !== undefined) {\n globalVariables[variableName] = variable;\n }\n }\n }\n }\n return globalVariables;\n}\nconst shouldOmitInLodash = new Set([\n// Omit all mutable methods from lodash.\n// But allow sequence methods like `_.chain`.\n\"fill\", \"pull\", \"pullAll\", \"pullAllBy\", \"pullAllWith\", \"pullAt\", \"remove\", \"reverse\", \"assign\", \"assignIn\", \"assignInWith\", \"assignWith\", \"defaults\", \"defaultsDeep\", \"merge\", \"mergeWith\", \"set\", \"setWith\", \"unset\", \"update\", \"updateWith\",\n/**\n * Ignore `Function` methods from lodash, too.\n * There are chances to invoke `Object.assign`, etc.\n *\n * E.g.:\n *\n * ```\n * _.wrap(_.method('constructor.assign',{b:2},{b:3}),(func,...a) => func(...a))({})\n * ```\n */\n\"after\", \"ary\", \"before\", \"bind\", \"bindKey\", \"curry\", \"curryRight\", \"debounce\", \"defer\", \"delay\", \"flip\", \"memoize\", \"negate\", \"once\", \"overArgs\", \"partial\", \"partialRight\", \"rearg\", \"rest\", \"spread\", \"throttle\", \"unary\", \"wrap\"]);\n\n// Omit all mutable methods from moment.\nconst shouldOmitInMoment = new Set([\"lang\", \"langData\", \"locale\", \"localeData\", \"defineLocale\", \"updateLocale\", \"updateOffset\"]);\nconst allowedGlobalObjects = new Set([\"Array\", \"Boolean\", \"Date\", \"Infinity\", \"JSON\", \"Math\", \"NaN\", \"Number\", \"String\", \"RegExp\", \"decodeURI\", \"decodeURIComponent\", \"encodeURI\", \"encodeURIComponent\", \"isFinite\", \"isNaN\", \"parseFloat\", \"parseInt\", \"Map\", \"Set\", \"URLSearchParams\", \"WeakMap\", \"WeakSet\", \"atob\", \"btoa\"]);\nfunction supplyIndividual(variableName, mock) {\n switch (variableName) {\n case \"Object\":\n // Do not allow mutable methods like `Object.assign`.\n return delegateMethods(Object, [\"entries\", \"fromEntries\", \"keys\", \"values\"]);\n case \"_\":\n return Object.fromEntries(Object.entries(lodash).filter(entry => !shouldOmitInLodash.has(entry[0])).concat(mock ? [[\"uniqueId\", prefix => `${prefix ?? \"\"}42`]] : []));\n case \"moment\":\n return Object.assign(function () {\n return moment(...arguments);\n }, Object.fromEntries(Object.entries(moment).filter(entry => !shouldOmitInMoment.has(entry[0]))));\n case \"PIPES\":\n return pipes;\n case \"TAG_URL\":\n return tagUrlFactory(true);\n case \"SAFE_TAG_URL\":\n return tagUrlFactory();\n default:\n if (allowedGlobalObjects.has(variableName)) {\n return window[variableName];\n }\n }\n}\nfunction delegateMethods(target, methods) {\n return Object.fromEntries(methods.map(method => [method, function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return target[method].apply(target, args);\n }]));\n}\n/**\n * Pass `ignoreSlashes` as `true` to encode all tagged expressions\n * as URL components, except for `/` which maybe used in `APP.homepage`.\n *\n * Otherwise encode all tagged expressions as URL components.\n * This will encode `/` as `%2F`. So do not use it directly\n * with `APP.homepage` as in template expressions.\n *\n * @example\n *\n * ```js\n * TAG_URL`${APP.homepage}/list?q=${q}&redirect=${redirect}`\n * ```\n *\n * ```js\n * SAFE_TAG_URL`file/${path}?q=${q}`\n * // `path` will be fully transformed by `encodeURIComponent`.\n * ```\n *\n * ```js\n * // Wrap `APP.homepage` outside of `SAFE_TAG_URL`.\n * `${APP.homepage}/${SAFE_TAG_URL`file/${path}?q=${q}`}`\n * ```\n */\nfunction tagUrlFactory(ignoreSlashes) {\n return function (strings) {\n for (var _len2 = arguments.length, partials = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n partials[_key2 - 1] = arguments[_key2];\n }\n const result = [];\n strings.forEach((str, index) => {\n result.push(str);\n if (index < partials.length) {\n result.push(ignoreSlashes ? String(partials[index]).replace(/[^/]+/g, p => encodeURIComponent(p)) : encodeURIComponent(String(partials[index])));\n }\n });\n return result.join(\"\");\n };\n}\n//# sourceMappingURL=index.js.map"],"names":["supply","attemptToVisitGlobals","providedGlobalVariables","mock","globalVariables","undefined","variableName","Object","prototype","hasOwnProperty","call","variable","supplyIndividual","shouldOmitInLodash","Set","shouldOmitInMoment","allowedGlobalObjects","target","methods","fromEntries","map","method","_len","arguments","length","args","Array","_key","apply","entries","filter","entry","has","concat","prefix","assign","pipes","tagUrlFactory","window","ignoreSlashes","strings","_len2","partials","_key2","result","forEach","str","index","push","String","replace","p","encodeURIComponent","join"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/1940.77437a5b.js","mappings":"sMAGO,SAASA,EAAOC,EAAuBC,EAAyBC,GACrE,MAAMC,EAAkB,CACtBC,kBAGF,IAAK,MAAMC,KAAgBL,EACzB,IAAKM,OAAOC,UAAUC,eAAeC,KAAKN,EAAiBE,GACzD,GAAIJ,GAA2BK,OAAOC,UAAUC,eAAeC,KAAKR,EAAyBI,GAC3FF,EAAgBE,GAAgBJ,EAAwBI,OACnD,CACL,MAAMK,EAAWC,EAAiBN,EAAcH,QAC/BE,IAAbM,IACFP,EAAgBE,GAAgBK,EAEpC,CAGJ,OAAOP,CACT,CACA,MAAMS,EAAqB,IAAIC,IAAI,CAGnC,OAAQ,OAAQ,UAAW,YAAa,cAAe,SAAU,SAAU,UAAW,SAAU,WAAY,eAAgB,aAAc,WAAY,eAAgB,QAAS,YAAa,MAAO,UAAW,QAAS,SAAU,aAWjO,QAAS,MAAO,SAAU,OAAQ,UAAW,QAAS,aAAc,WAAY,QAAS,QAAS,OAAQ,UAAW,SAAU,OAAQ,WAAY,UAAW,eAAgB,QAAS,OAAQ,SAAU,WAAY,QAAS,SAGxNC,EAAqB,IAAID,IAAI,CAAC,OAAQ,WAAY,SAAU,aAAc,eAAgB,eAAgB,iBAC1GE,EAAuB,IAA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AAMC,EAAS,GAOf,OANAJ,EAAQK,SAAQ,CAACC,EAAKC,KACpBH,EAAOI,KAAKF,GACRC,EAAQL,EAASlB,QACnBoB,EAAOI,KAAKT,EAAgBU,OAAOP,EAASK,IAAQG,QAAQ,UAAUC,GAAKC,mBAAmBD,KAAMC,mBAAmBH,OAAOP,EAASK,KACzI,IAEKH,EAAOS,KAAK,GACrB,CACF,C","sources":["webpack:///../../node_modules/@next-core/supply/dist/esm/index.js"],"sourcesContent":["import lodash from \"lodash\";\nimport moment from \"moment\";\nimport { pipes } from \"@next-core/pipes\";\nexport function supply(attemptToVisitGlobals, providedGlobalVariables, mock) {\n const globalVariables = {\n undefined\n };\n // Allow limited browser builtin values.\n for (const variableName of attemptToVisitGlobals) {\n if (!Object.prototype.hasOwnProperty.call(globalVariables, variableName)) {\n if (providedGlobalVariables && Object.prototype.hasOwnProperty.call(providedGlobalVariables, variableName)) {\n globalVariables[variableName] = providedGlobalVariables[variableName];\n } else {\n const variable = supplyIndividual(variableName, mock);\n if (variable !== undefined) {\n globalVariables[variableName] = variable;\n }\n }\n }\n }\n return globalVariables;\n}\nconst shouldOmitInLodash = new Set([\n// Omit all mutable methods from lodash.\n// But allow sequence methods like `_.chain`.\n\"fill\", \"pull\", \"pullAll\", \"pullAllBy\", \"pullAllWith\", \"pullAt\", \"remove\", \"reverse\", \"assign\", \"assignIn\", \"assignInWith\", \"assignWith\", \"defaults\", \"defaultsDeep\", \"merge\", \"mergeWith\", \"set\", \"setWith\", \"unset\", \"update\", \"updateWith\",\n/**\n * Ignore `Function` methods from lodash, too.\n * There are chances to invoke `Object.assign`, etc.\n *\n * E.g.:\n *\n * ```\n * _.wrap(_.method('constructor.assign',{b:2},{b:3}),(func,...a) => func(...a))({})\n * ```\n */\n\"after\", \"ary\", \"before\", \"bind\", \"bindKey\", \"curry\", \"curryRight\", \"debounce\", \"defer\", \"delay\", \"flip\", \"memoize\", \"negate\", \"once\", \"overArgs\", \"partial\", \"partialRight\", \"rearg\", \"rest\", \"spread\", \"throttle\", \"unary\", \"wrap\"]);\n\n// Omit all mutable methods from moment.\nconst shouldOmitInMoment = new Set([\"lang\", \"langData\", \"locale\", \"localeData\", \"defineLocale\", \"updateLocale\", \"updateOffset\"]);\nconst allowedGlobalObjects = new Set([\"Array\", \"Boolean\", \"Date\", \"Infinity\", \"JSON\", \"Math\", \"NaN\", \"Number\", \"String\", \"RegExp\", \"decodeURI\", \"decodeURIComponent\", \"encodeURI\", \"encodeURIComponent\", \"isFinite\", \"isNaN\", \"parseFloat\", \"parseInt\", \"Map\", \"Set\", \"URLSearchParams\", \"WeakMap\", \"WeakSet\", \"atob\", \"btoa\"]);\nfunction supplyIndividual(variableName, mock) {\n switch (variableName) {\n case \"Object\":\n // Do not allow mutable methods like `Object.assign`.\n return delegateMethods(Object, [\"entries\", \"fromEntries\", \"keys\", \"values\"]);\n case \"_\":\n return Object.fromEntries(Object.entries(lodash).filter(entry => !shouldOmitInLodash.has(entry[0])).concat(mock ? [[\"uniqueId\", prefix => `${prefix ?? \"\"}42`]] : []));\n case \"moment\":\n return Object.assign(function () {\n return moment(...arguments);\n }, Object.fromEntries(Object.entries(moment).filter(entry => !shouldOmitInMoment.has(entry[0]))));\n case \"PIPES\":\n return pipes;\n case \"TAG_URL\":\n return tagUrlFactory(true);\n case \"SAFE_TAG_URL\":\n return tagUrlFactory();\n default:\n if (allowedGlobalObjects.has(variableName)) {\n return window[variableName];\n }\n }\n}\nfunction delegateMethods(target, methods) {\n return Object.fromEntries(methods.map(method => [method, function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return target[method].apply(target, args);\n }]));\n}\n/**\n * Pass `ignoreSlashes` as `true` to encode all tagged expressions\n * as URL components, except for `/` which maybe used in `APP.homepage`.\n *\n * Otherwise encode all tagged expressions as URL components.\n * This will encode `/` as `%2F`. So do not use it directly\n * with `APP.homepage` as in template expressions.\n *\n * @example\n *\n * ```js\n * TAG_URL`${APP.homepage}/list?q=${q}&redirect=${redirect}`\n * ```\n *\n * ```js\n * SAFE_TAG_URL`file/${path}?q=${q}`\n * // `path` will be fully transformed by `encodeURIComponent`.\n * ```\n *\n * ```js\n * // Wrap `APP.homepage` outside of `SAFE_TAG_URL`.\n * `${APP.homepage}/${SAFE_TAG_URL`file/${path}?q=${q}`}`\n * ```\n */\nfunction tagUrlFactory(ignoreSlashes) {\n return function (strings) {\n for (var _len2 = arguments.length, partials = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n partials[_key2 - 1] = arguments[_key2];\n }\n const result = [];\n strings.forEach((str, index) => {\n result.push(str);\n if (index < partials.length) {\n result.push(ignoreSlashes ? String(partials[index]).replace(/[^/]+/g, p => encodeURIComponent(p)) : encodeURIComponent(String(partials[index])));\n }\n });\n return result.join(\"\");\n };\n}\n//# sourceMappingURL=index.js.map"],"names":["supply","attemptToVisitGlobals","providedGlobalVariables","mock","globalVariables","undefined","variableName","Object","prototype","hasOwnProperty","call","variable","supplyIndividual","shouldOmitInLodash","Set","shouldOmitInMoment","allowedGlobalObjects","target","methods","fromEntries","map","method","_len","arguments","length","args","Array","_key","apply","entries","filter","entry","has","concat","prefix","assign","pipes","tagUrlFactory","window","ignoreSlashes","strings","_len2","partials","_key2","result","forEach","str","index","push","String","replace","p","encodeURIComponent","join"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_form=globalThis.webpackChunk_next_bricks_form||[]).push([[2277,4658],{2277:(e,t,r)=>{r.r(t),r.d(t,{inject:()=>v,transform:()=>m,transformAndInject:()=>w});var n=r(1030),a=r(5575);let i=function(e){return e[e.Initial=0]="Initial",e[e.ExpectField=1]="ExpectField",e[e.ExpectOptionalBeginDefault=2]="ExpectOptionalBeginDefault",e[e.ExpectDefaultValue=3]="ExpectDefaultValue",e[e.ExpectOptionalBeginPipe=4]="ExpectOptionalBeginPipe",e[e.ExpectPipeIdentifier=5]="ExpectPipeIdentifier",e[e.ExpectOptionalBeginPipeParameter=6]="ExpectOptionalBeginPipeParameter",e[e.ExpectPipeParameter=7]="ExpectPipeParameter",e[e.ExpectPlaceholderEnd=8]="ExpectPlaceholderEnd",e}({}),s=function(e){return e.Raw="Raw",e.BeginPlaceHolder="BeginPlaceHolder",e.Field="Field",e.BeginDefault="BeginDefault",e.LiteralString="LiteralString",e.BeginPipe="BeginPipe",e.PipeIdentifier="PipeIdentifier",e.BeginPipeParameter="BeginPipeParameter",e.EndPlaceHolder="EndPlaceHolder",e.JsonValue="JsonValue",e}({}),c=function(e){return e[e.Array=0]="Array",e[e.Object=1]="Object",e[e.String=2]="String",e[e.Others=3]="Others",e}({});function o(e){return new RegExp(`(${[].concat(e).map((e=>(0,n.escapeRegExp)(e))).join("|")})\\{`)}function l(e){var t;const r=y(e),n=null===(t=r.match(e.beginPlaceholder))||void 0===t?void 0:t[0],a=n?r.indexOf(n):-1;if(a>=0&&n&&"{"!==r.charAt(a+n.length)){const t=e.cursor+a;a>0&&e.tokens.push({type:s.Raw,value:r.substring(0,a)}),e.tokens.push({type:s.BeginPlaceHolder,loc:{start:t,end:t+n.length},value:n.substring(0,n.length-1)}),e.cursor+=a+n.length,e.status=i.ExpectField}else e.tokens.push({type:s.Raw,value:r}),e.cursor=e.raw.length}function u(e){e.cursor+=y(e).match(/^[ \r\n\t]*/)[0].length}function p(e){const[t]=y(e).match(/^[\w.*[\]\-\u{80}-\u{10FFFF}]*/u);e.tokens.push({type:s.Field,value:t}),e.cursor+=t.length,e.status=i.ExpectOptionalBeginDefault}function f(e){"="===y(e).charAt(0)?(e.tokens.push({type:s.BeginDefault}),e.cursor+=1,e.status=i.ExpectDefaultValue):e.status=i.ExpectOptionalBeginPipe}function d(e){k(e,i.ExpectOptionalBeginPipe)}function g(e){"|"===y(e).charAt(0)?(e.tokens.push({type:s.BeginPipe}),e.cursor+=1,e.status=i.ExpectPipeIdentifier):e.status=i.ExpectPlaceholderEnd}function h(e){const t=y(e).match(/^[a-zA-Z]\w*/);if(!t)throw new Error(`Expected a pipe identifier at index ${e.cursor} near: ${JSON.stringify(e.raw.substring(e.cursor))}`);const r=t[0];e.tokens.push({type:s.PipeIdentifier,value:r}),e.cursor+=r.length,e.status=i.ExpectOptionalBeginPipeParameter}function P(e){":"===y(e).charAt(0)?(e.tokens.push({type:s.BeginPipeParameter}),e.cursor+=1,e.status=i.ExpectPipeParameter):e.status=i.ExpectOptionalBeginPipe}function E(e){k(e,i.ExpectOptionalBeginPipeParameter)}function b(e){if("}"!==y(e).charAt(0))throw new Error(`Expected a placeholder end '}' at index ${e.cursor} near: ${JSON.stringify(e.raw.substring(e.cursor))}`);e.tokens.push({type:s.EndPlaceHolder,loc:{start:e.cursor,end:e.cursor+1}}),e.cursor+=1,e.status=i.Initial}const x=new Map([["false",!1],["null",null],["true",!0]]);function k(e,t){const r=y(e);if(/[0-9[{"]/.test(r.charAt(0))||/-[0-9]/.test(r.substring(0,2)))!function(e,t){const r=y(e),n=r.charAt(0),a="["===n?c.Array:"{"===n?c.Object:'"'===n?c.String:c.Others;let i=0,o=0,l=0,u=!1,p=!1,f=!1;for(;i<r.length;){const e=r.charAt(i);if(p)p=!1;else if(u)'"'===e?u=!1:"\\"===e&&(p=!0);else switch(e){case"[":l+=1;break;case"{":o+=1;break;case"]":l-=1;break;case"}":o-=1;break;case'"':u=!0}switch(i+=1,a){case c.Array:f=!l;break;case c.Object:f=!o;break;case c.String:f=!u;break;default:f=i<r.length&&/[^a-z0-9E.+-]/.test(r.charAt(i))}if(f)break}if(!f)throw new Error(`Failed to match a JSON value at index ${e.cursor} near: ${JSON.stringify(e.raw.substring(e.cursor))}`);e.tokens.push({type:s.JsonValue,value:JSON.parse(r.substring(0,i))}),e.cursor+=i,e.status=t}(e,t);else{const[r]=y(e).match(/^[\w\-\u{80}-\u{10FFFF}]*/u);x.has(r)?e.tokens.push({type:s.JsonValue,value:x.get(r)}):e.tokens.push({type:s.LiteralString,value:r}),e.cursor+=r.length,e.status=t}}function y(e){return e.raw.substring(e.cursor)}function m(e,t){return A(e,"@",t)}function v(e,t){return A(e,"$",t)}function w(e,t){return A(e,["@","$"],t)}function A(e,t,r){if(!function(e,t){return o(t).test(e)}(e,t))return e;const c=(x=r.data,function(e){let t=e.field?(0,n.get)(x,e.field):x;return void 0===t&&(t=e.defaultValue),(0,a.processPipes)(t,e.pipes)});var x;const k=function(e,t){return function(r){const i=r.field.match(/^(?:(QUERY(?:_ARRAY)?|EVENT|query|event|APP|HASH|ANCHOR|SYS|FLAGS|CTX)\.)?(.+)$/);if(!i)return t.substring(r.loc.start,r.loc.end);let s,[,c,o]=i;!c&&/^[A-Z_]+$/.test(o)&&(c=o,o="*");const l={SYS:"sys",FLAGS:"flags"};switch(c){case"QUERY":case"query":s="*"===o?e.query:e.query.has(o)?e.query.get(o):void 0;break;case"QUERY_ARRAY":s=e.query.has(o)?e.query.getAll(o):void 0;break;case"EVENT":case"event":if(void 0===e.event)return t.substring(r.loc.start,r.loc.end);s="*"===o?e.event:(0,n.get)(e.event,o);break;case"APP":s="*"===o?e.overrideApp??e.app:(0,n.get)(e.overrideApp??e.app,o);break;case"HASH":s=e.location.hash;break;case"SYS":case"FLAGS":s="*"===o?e[l[c]]:(0,n.get)(e[l[c]],o);break;case"ANCHOR":{const t=e.location.hash?e.location.hash.substr(1):null;s="*"===o?t:(0,n.get)(t,o);break}case"CTX":{const e=t.substring(r.loc.start,r.loc.end);return console.error(`CTX is not supported in placeholder any more: "${e}"`),e}default:if(!e.match)return t.substring(r.loc.start,r.loc.end);s=e.match.params[o]}return void 0===s&&(s=r.defaultValue),(0,a.processPipes)(s,r.pipes)}}(r,e);return y=function(e,t){return function(e){const t={type:"InjectableString",elements:[]};let r;function n(t){return t===e[0].type&&(r=e.shift(),!0)}function a(t){if(r=e.shift(),Array.isArray(t)?!t.includes(r.type):t!==r.type)throw new Error(`Expected token: ${t}, received token: ${r.type}`)}for(;e.length>0;)if(n(s.Raw))t.elements.push({type:"RawString",value:r.value});else{a(s.BeginPlaceHolder);const e=r.loc.start,i=r.value;a(s.Field);const c={type:"Placeholder",symbol:i,field:r.value,defaultValue:void 0,pipes:[],loc:{start:e,end:e}};for(t.elements.push(c),n(s.BeginDefault)&&(a([s.JsonValue,s.LiteralString]),c.defaultValue=r.value);n(s.BeginPipe);){a(s.PipeIdentifier);const e={type:"PipeCall",identifier:r.value,parameters:[]};for(c.pipes.push(e);n(s.BeginPipeParameter);)a([s.JsonValue,s.LiteralString]),e.parameters.push(r.value)}a(s.EndPlaceHolder),c.loc.end=r.loc.end}return t}(function(e,t){const r={beginPlaceholder:o(t),raw:e,cursor:0,status:i.Initial,tokens:[]};for(;r.cursor<e.length;)switch(r.status){case i.Initial:l(r);break;case i.ExpectField:u(r),p(r);break;case i.ExpectOptionalBeginDefault:u(r),f(r);break;case i.ExpectDefaultValue:u(r),d(r);break;case i.ExpectOptionalBeginPipe:u(r),g(r);break;case i.ExpectPipeIdentifier:u(r),h(r);break;case i.ExpectOptionalBeginPipeParameter:u(r),P(r);break;case i.ExpectPipeParameter:u(r),E(r);break;case i.ExpectPlaceholderEnd:u(r),b(r)}if(r.status!==i.Initial)throw new Error("Expected a placeholder end '}' at the end");return r.tokens}(e,t))}(e,t).elements.map((e=>"RawString"===e.type?e.value:"$"===e.symbol?k(e):c(e))),1===y.length?y[0]:y.join("");var y}}}]);
2
- //# sourceMappingURL=2277.380c131a.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_form=globalThis.webpackChunk_next_bricks_form||[]).push([[2277,4658],{2277:(e,t,r)=>{r.r(t),r.d(t,{inject:()=>v,transform:()=>m,transformAndInject:()=>w});var n=r(1030),a=r(1092);let i=function(e){return e[e.Initial=0]="Initial",e[e.ExpectField=1]="ExpectField",e[e.ExpectOptionalBeginDefault=2]="ExpectOptionalBeginDefault",e[e.ExpectDefaultValue=3]="ExpectDefaultValue",e[e.ExpectOptionalBeginPipe=4]="ExpectOptionalBeginPipe",e[e.ExpectPipeIdentifier=5]="ExpectPipeIdentifier",e[e.ExpectOptionalBeginPipeParameter=6]="ExpectOptionalBeginPipeParameter",e[e.ExpectPipeParameter=7]="ExpectPipeParameter",e[e.ExpectPlaceholderEnd=8]="ExpectPlaceholderEnd",e}({}),s=function(e){return e.Raw="Raw",e.BeginPlaceHolder="BeginPlaceHolder",e.Field="Field",e.BeginDefault="BeginDefault",e.LiteralString="LiteralString",e.BeginPipe="BeginPipe",e.PipeIdentifier="PipeIdentifier",e.BeginPipeParameter="BeginPipeParameter",e.EndPlaceHolder="EndPlaceHolder",e.JsonValue="JsonValue",e}({}),c=function(e){return e[e.Array=0]="Array",e[e.Object=1]="Object",e[e.String=2]="String",e[e.Others=3]="Others",e}({});function o(e){return new RegExp(`(${[].concat(e).map((e=>(0,n.escapeRegExp)(e))).join("|")})\\{`)}function l(e){var t;const r=y(e),n=null===(t=r.match(e.beginPlaceholder))||void 0===t?void 0:t[0],a=n?r.indexOf(n):-1;if(a>=0&&n&&"{"!==r.charAt(a+n.length)){const t=e.cursor+a;a>0&&e.tokens.push({type:s.Raw,value:r.substring(0,a)}),e.tokens.push({type:s.BeginPlaceHolder,loc:{start:t,end:t+n.length},value:n.substring(0,n.length-1)}),e.cursor+=a+n.length,e.status=i.ExpectField}else e.tokens.push({type:s.Raw,value:r}),e.cursor=e.raw.length}function u(e){e.cursor+=y(e).match(/^[ \r\n\t]*/)[0].length}function p(e){const[t]=y(e).match(/^[\w.*[\]\-\u{80}-\u{10FFFF}]*/u);e.tokens.push({type:s.Field,value:t}),e.cursor+=t.length,e.status=i.ExpectOptionalBeginDefault}function f(e){"="===y(e).charAt(0)?(e.tokens.push({type:s.BeginDefault}),e.cursor+=1,e.status=i.ExpectDefaultValue):e.status=i.ExpectOptionalBeginPipe}function d(e){k(e,i.ExpectOptionalBeginPipe)}function g(e){"|"===y(e).charAt(0)?(e.tokens.push({type:s.BeginPipe}),e.cursor+=1,e.status=i.ExpectPipeIdentifier):e.status=i.ExpectPlaceholderEnd}function h(e){const t=y(e).match(/^[a-zA-Z]\w*/);if(!t)throw new Error(`Expected a pipe identifier at index ${e.cursor} near: ${JSON.stringify(e.raw.substring(e.cursor))}`);const r=t[0];e.tokens.push({type:s.PipeIdentifier,value:r}),e.cursor+=r.length,e.status=i.ExpectOptionalBeginPipeParameter}function P(e){":"===y(e).charAt(0)?(e.tokens.push({type:s.BeginPipeParameter}),e.cursor+=1,e.status=i.ExpectPipeParameter):e.status=i.ExpectOptionalBeginPipe}function E(e){k(e,i.ExpectOptionalBeginPipeParameter)}function b(e){if("}"!==y(e).charAt(0))throw new Error(`Expected a placeholder end '}' at index ${e.cursor} near: ${JSON.stringify(e.raw.substring(e.cursor))}`);e.tokens.push({type:s.EndPlaceHolder,loc:{start:e.cursor,end:e.cursor+1}}),e.cursor+=1,e.status=i.Initial}const x=new Map([["false",!1],["null",null],["true",!0]]);function k(e,t){const r=y(e);if(/[0-9[{"]/.test(r.charAt(0))||/-[0-9]/.test(r.substring(0,2)))!function(e,t){const r=y(e),n=r.charAt(0),a="["===n?c.Array:"{"===n?c.Object:'"'===n?c.String:c.Others;let i=0,o=0,l=0,u=!1,p=!1,f=!1;for(;i<r.length;){const e=r.charAt(i);if(p)p=!1;else if(u)'"'===e?u=!1:"\\"===e&&(p=!0);else switch(e){case"[":l+=1;break;case"{":o+=1;break;case"]":l-=1;break;case"}":o-=1;break;case'"':u=!0}switch(i+=1,a){case c.Array:f=!l;break;case c.Object:f=!o;break;case c.String:f=!u;break;default:f=i<r.length&&/[^a-z0-9E.+-]/.test(r.charAt(i))}if(f)break}if(!f)throw new Error(`Failed to match a JSON value at index ${e.cursor} near: ${JSON.stringify(e.raw.substring(e.cursor))}`);e.tokens.push({type:s.JsonValue,value:JSON.parse(r.substring(0,i))}),e.cursor+=i,e.status=t}(e,t);else{const[r]=y(e).match(/^[\w\-\u{80}-\u{10FFFF}]*/u);x.has(r)?e.tokens.push({type:s.JsonValue,value:x.get(r)}):e.tokens.push({type:s.LiteralString,value:r}),e.cursor+=r.length,e.status=t}}function y(e){return e.raw.substring(e.cursor)}function m(e,t){return A(e,"@",t)}function v(e,t){return A(e,"$",t)}function w(e,t){return A(e,["@","$"],t)}function A(e,t,r){if(!function(e,t){return o(t).test(e)}(e,t))return e;const c=(x=r.data,function(e){let t=e.field?(0,n.get)(x,e.field):x;return void 0===t&&(t=e.defaultValue),(0,a.processPipes)(t,e.pipes)});var x;const k=function(e,t){return function(r){const i=r.field.match(/^(?:(QUERY(?:_ARRAY)?|EVENT|query|event|APP|HASH|ANCHOR|SYS|FLAGS|CTX)\.)?(.+)$/);if(!i)return t.substring(r.loc.start,r.loc.end);let s,[,c,o]=i;!c&&/^[A-Z_]+$/.test(o)&&(c=o,o="*");const l={SYS:"sys",FLAGS:"flags"};switch(c){case"QUERY":case"query":s="*"===o?e.query:e.query.has(o)?e.query.get(o):void 0;break;case"QUERY_ARRAY":s=e.query.has(o)?e.query.getAll(o):void 0;break;case"EVENT":case"event":if(void 0===e.event)return t.substring(r.loc.start,r.loc.end);s="*"===o?e.event:(0,n.get)(e.event,o);break;case"APP":s="*"===o?e.overrideApp??e.app:(0,n.get)(e.overrideApp??e.app,o);break;case"HASH":s=e.location.hash;break;case"SYS":case"FLAGS":s="*"===o?e[l[c]]:(0,n.get)(e[l[c]],o);break;case"ANCHOR":{const t=e.location.hash?e.location.hash.substr(1):null;s="*"===o?t:(0,n.get)(t,o);break}case"CTX":{const e=t.substring(r.loc.start,r.loc.end);return console.error(`CTX is not supported in placeholder any more: "${e}"`),e}default:if(!e.match)return t.substring(r.loc.start,r.loc.end);s=e.match.params[o]}return void 0===s&&(s=r.defaultValue),(0,a.processPipes)(s,r.pipes)}}(r,e);return y=function(e,t){return function(e){const t={type:"InjectableString",elements:[]};let r;function n(t){return t===e[0].type&&(r=e.shift(),!0)}function a(t){if(r=e.shift(),Array.isArray(t)?!t.includes(r.type):t!==r.type)throw new Error(`Expected token: ${t}, received token: ${r.type}`)}for(;e.length>0;)if(n(s.Raw))t.elements.push({type:"RawString",value:r.value});else{a(s.BeginPlaceHolder);const e=r.loc.start,i=r.value;a(s.Field);const c={type:"Placeholder",symbol:i,field:r.value,defaultValue:void 0,pipes:[],loc:{start:e,end:e}};for(t.elements.push(c),n(s.BeginDefault)&&(a([s.JsonValue,s.LiteralString]),c.defaultValue=r.value);n(s.BeginPipe);){a(s.PipeIdentifier);const e={type:"PipeCall",identifier:r.value,parameters:[]};for(c.pipes.push(e);n(s.BeginPipeParameter);)a([s.JsonValue,s.LiteralString]),e.parameters.push(r.value)}a(s.EndPlaceHolder),c.loc.end=r.loc.end}return t}(function(e,t){const r={beginPlaceholder:o(t),raw:e,cursor:0,status:i.Initial,tokens:[]};for(;r.cursor<e.length;)switch(r.status){case i.Initial:l(r);break;case i.ExpectField:u(r),p(r);break;case i.ExpectOptionalBeginDefault:u(r),f(r);break;case i.ExpectDefaultValue:u(r),d(r);break;case i.ExpectOptionalBeginPipe:u(r),g(r);break;case i.ExpectPipeIdentifier:u(r),h(r);break;case i.ExpectOptionalBeginPipeParameter:u(r),P(r);break;case i.ExpectPipeParameter:u(r),E(r);break;case i.ExpectPlaceholderEnd:u(r),b(r)}if(r.status!==i.Initial)throw new Error("Expected a placeholder end '}' at the end");return r.tokens}(e,t))}(e,t).elements.map((e=>"RawString"===e.type?e.value:"$"===e.symbol?k(e):c(e))),1===y.length?y[0]:y.join("");var y}}}]);
2
+ //# sourceMappingURL=2277.a4439182.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/4658.3a48d883.js","mappings":"qOAAO,IAAIA,EAA6B,SAAUA,GAUhD,OATAA,EAAcA,EAAuB,QAAI,GAAK,UAC9CA,EAAcA,EAA2B,YAAI,GAAK,cAClDA,EAAcA,EAA0C,2BAAI,GAAK,6BACjEA,EAAcA,EAAkC,mBAAI,GAAK,qBACzDA,EAAcA,EAAuC,wBAAI,GAAK,0BAC9DA,EAAcA,EAAoC,qBAAI,GAAK,uBAC3DA,EAAcA,EAAgD,iCAAI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,IAEV,KAAOb,EAAQY,OAASa,EAAIf,QAC1B,OAAQV,EAAQuB,QACd,KAAKnC,EAAciE,QACjBtD,EAA0CC,GAC1C,MACF,KAAKZ,EAAcoC,YACjBE,EAAc1B,GACd2B,EAAS3B,GACT,MACF,KAAKZ,EAAcyC,2BACjBH,EAAc1B,GACd8B,EAAmB9B,GACnB,MACF,KAAKZ,EAAc4C,mBACjBN,EAAc1B,GACdkC,EAAgBlC,GAChB,MACF,KAAKZ,EAAc6C,wBACjBP,EAAc1B,GACdoC,EAAqBpC,GACrB,MACF,KAAKZ,EAAckD,qBACjBZ,EAAc1B,GACdwC,EAAkBxC,GAClB,MACF,KAAKZ,EAAc0D,iCACjBpB,EAAc1B,GACd+C,EAA8B/C,GAC9B,MACF,KAAKZ,EAAc6D,oBACjBvB,EAAc1B,GACdkD,EAAiBlD,GACjB,MACF,KAAKZ,EAAcmD,qBACjBb,EAAc1B,GACdmD,EAAkBnD,GAIxB,GAAIA,EAAQuB,SAAWnC,EAAciE,QACnC,MAAM,IAAIX,MAAM,6CAElB,OAAO1C,EAAQa,MACjB,CErDqB+G,CAASnG,EAAKjC,GACnC,CDgBeqI,CAAsBpG,EAAKjC,GACpBwH,SAASrH,KAAIwF,GAAsB,cAAdA,EAAKpE,KAAuBoE,EAAKlE,MAAwB,MAAhBkE,EAAKvF,OAAiB8F,EAAWP,GAAQF,EAAcE,KAKnH,IAAlB2B,EAAOpG,OACFoG,EAAO,GAKTA,EAAOhH,KAAK,IARrB,IAA8BgH,CAD9B,C","sources":["webpack:///../../node_modules/@next-core/inject/dist/esm/interfaces.js","webpack:///../../node_modules/@next-core/inject/dist/esm/lexical.js","webpack:///../../node_modules/@next-core/inject/dist/esm/compile.js","webpack:///../../node_modules/@next-core/inject/dist/esm/syntax.js"],"sourcesContent":["export let LexicalStatus = /*#__PURE__*/function (LexicalStatus) {\n LexicalStatus[LexicalStatus[\"Initial\"] = 0] = \"Initial\";\n LexicalStatus[LexicalStatus[\"ExpectField\"] = 1] = \"ExpectField\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginDefault\"] = 2] = \"ExpectOptionalBeginDefault\";\n LexicalStatus[LexicalStatus[\"ExpectDefaultValue\"] = 3] = \"ExpectDefaultValue\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipe\"] = 4] = \"ExpectOptionalBeginPipe\";\n LexicalStatus[LexicalStatus[\"ExpectPipeIdentifier\"] = 5] = \"ExpectPipeIdentifier\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipeParameter\"] = 6] = \"ExpectOptionalBeginPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPipeParameter\"] = 7] = \"ExpectPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPlaceholderEnd\"] = 8] = \"ExpectPlaceholderEnd\";\n return LexicalStatus;\n}({});\nexport let TokenType = /*#__PURE__*/function (TokenType) {\n TokenType[\"Raw\"] = \"Raw\";\n TokenType[\"BeginPlaceHolder\"] = \"BeginPlaceHolder\";\n TokenType[\"Field\"] = \"Field\";\n TokenType[\"BeginDefault\"] = \"BeginDefault\";\n TokenType[\"LiteralString\"] = \"LiteralString\";\n TokenType[\"BeginPipe\"] = \"BeginPipe\";\n TokenType[\"PipeIdentifier\"] = \"PipeIdentifier\";\n TokenType[\"BeginPipeParameter\"] = \"BeginPipeParameter\";\n TokenType[\"EndPlaceHolder\"] = \"EndPlaceHolder\";\n TokenType[\"JsonValue\"] = \"JsonValue\";\n return TokenType;\n}({});\nexport let JsonValueType = /*#__PURE__*/function (JsonValueType) {\n JsonValueType[JsonValueType[\"Array\"] = 0] = \"Array\";\n JsonValueType[JsonValueType[\"Object\"] = 1] = \"Object\";\n JsonValueType[JsonValueType[\"String\"] = 2] = \"String\";\n JsonValueType[JsonValueType[\"Others\"] = 3] = \"Others\";\n return JsonValueType;\n}({});\n//# sourceMappingURL=interfaces.js.map","import { escapeRegExp } from \"lodash\";\nimport { LexicalStatus, TokenType, JsonValueType } from \"./interfaces.js\";\nexport function getRegExpOfPlaceholder(symbols) {\n return new RegExp(`(${[].concat(symbols).map(symbol => escapeRegExp(symbol)).join(\"|\")})\\\\{`);\n}\nexport function tokenize(raw, symbols) {\n const context = {\n beginPlaceholder: getRegExpOfPlaceholder(symbols),\n raw,\n cursor: 0,\n status: LexicalStatus.Initial,\n tokens: []\n };\n while (context.cursor < raw.length) {\n switch (context.status) {\n case LexicalStatus.Initial:\n eatOptionalRawAndOptionalPlaceholderBegin(context);\n break;\n case LexicalStatus.ExpectField:\n eatWhitespace(context);\n eatField(context);\n break;\n case LexicalStatus.ExpectOptionalBeginDefault:\n eatWhitespace(context);\n eatOptionalDefault(context);\n break;\n case LexicalStatus.ExpectDefaultValue:\n eatWhitespace(context);\n eatDefaultValue(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipe:\n eatWhitespace(context);\n eatOptionalBeginPipe(context);\n break;\n case LexicalStatus.ExpectPipeIdentifier:\n eatWhitespace(context);\n eatPipeIdentifier(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipeParameter:\n eatWhitespace(context);\n eatOptionalBeginPipeParameter(context);\n break;\n case LexicalStatus.ExpectPipeParameter:\n eatWhitespace(context);\n eatPipeParameter(context);\n break;\n case LexicalStatus.ExpectPlaceholderEnd:\n eatWhitespace(context);\n eatPlaceholderEnd(context);\n break;\n }\n }\n if (context.status !== LexicalStatus.Initial) {\n throw new Error(\"Expected a placeholder end '}' at the end\");\n }\n return context.tokens;\n}\nfunction eatOptionalRawAndOptionalPlaceholderBegin(context) {\n var _subRaw$match;\n const subRaw = getSubRaw(context);\n const matchedPlaceholder = (_subRaw$match = subRaw.match(context.beginPlaceholder)) === null || _subRaw$match === void 0 ? void 0 : _subRaw$match[0];\n const subCursor = matchedPlaceholder ? subRaw.indexOf(matchedPlaceholder) : -1;\n if (subCursor >= 0 && matchedPlaceholder && subRaw.charAt(subCursor + matchedPlaceholder.length) !== \"{\") {\n const nextCursor = context.cursor + subCursor;\n if (subCursor > 0) {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw.substring(0, subCursor)\n });\n }\n context.tokens.push({\n type: TokenType.BeginPlaceHolder,\n loc: {\n start: nextCursor,\n end: nextCursor + matchedPlaceholder.length\n },\n value: matchedPlaceholder.substring(0, matchedPlaceholder.length - 1)\n });\n context.cursor += subCursor + matchedPlaceholder.length;\n context.status = LexicalStatus.ExpectField;\n } else {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw\n });\n context.cursor = context.raw.length;\n }\n}\nfunction eatWhitespace(context) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n context.cursor += getSubRaw(context).match(/^[ \\r\\n\\t]*/)[0].length;\n}\nfunction eatField(context) {\n // Only allow alphanumeric, `_`, `.`, `*`, `[`, `]`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [value] = getSubRaw(context).match(/^[\\w.*[\\]\\-\\u{80}-\\u{10FFFF}]*/u);\n context.tokens.push({\n type: TokenType.Field,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginDefault;\n}\nfunction eatOptionalDefault(context) {\n if (getSubRaw(context).charAt(0) === \"=\") {\n context.tokens.push({\n type: TokenType.BeginDefault\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectDefaultValue;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatDefaultValue(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipe);\n}\nfunction eatOptionalBeginPipe(context) {\n if (getSubRaw(context).charAt(0) === \"|\") {\n context.tokens.push({\n type: TokenType.BeginPipe\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeIdentifier;\n } else {\n context.status = LexicalStatus.ExpectPlaceholderEnd;\n }\n}\nfunction eatPipeIdentifier(context) {\n const matches = getSubRaw(context).match(/^[a-zA-Z]\\w*/);\n if (!matches) {\n throw new Error(`Expected a pipe identifier at index ${context.cursor} near: ${JSON.stringify(context.raw.substring(context.cursor))}`);\n }\n const value = matches[0];\n context.tokens.push({\n type: TokenType.PipeIdentifier,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginPipeParameter;\n}\nfunction eatOptionalBeginPipeParameter(context) {\n if (getSubRaw(context).charAt(0) === \":\") {\n context.tokens.push({\n type: TokenType.BeginPipeParameter\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeParameter;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatPipeParameter(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipeParameter);\n}\nfunction eatPlaceholderEnd(context) {\n if (getSubRaw(context).charAt(0) === \"}\") {\n context.tokens.push({\n type: TokenType.EndPlaceHolder,\n loc: {\n start: context.cursor,\n end: context.cursor + 1\n }\n });\n context.cursor += 1;\n context.status = LexicalStatus.Initial;\n } else {\n throw new Error(`Expected a placeholder end '}' at index ${context.cursor} near: ${JSON.stringify(context.raw.substring(context.cursor))}`);\n }\n}\nconst jsonLiteralMap = new Map([[\"false\", false], [\"null\", null], [\"true\", true]]);\nfunction eatJsonValueOrLiteralString(context, nextStatus) {\n const subRaw = getSubRaw(context);\n if (/[0-9[{\"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.substring(0, 2))) {\n eatJsonValue(context, nextStatus);\n } else {\n // Accept any characters except controls and whitespace.\n // Only allow alphanumeric, `_`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [value] = getSubRaw(context).match(/^[\\w\\-\\u{80}-\\u{10FFFF}]*/u);\n if (jsonLiteralMap.has(value)) {\n context.tokens.push({\n type: TokenType.JsonValue,\n value: jsonLiteralMap.get(value)\n });\n } else {\n context.tokens.push({\n type: TokenType.LiteralString,\n value\n });\n }\n context.cursor += value.length;\n context.status = nextStatus;\n }\n}\n\n// 我们不需要非常精确地在一段字符串中匹配出一段*完整合法的* JSON value,\n// 而只需要找到一段*可能是完整合法的* JSON value 即可,解析的工作交给 `JSON.parse()`。\n// 由于 JSON 中 object/array/string 的镜像起止符特性,我们尝试去完成这些符号匹配即可。\nfunction eatJsonValue(context, nextStatus) {\n const subRaw = getSubRaw(context);\n const firstChar = subRaw.charAt(0);\n const valueType = firstChar === \"[\" ? JsonValueType.Array : firstChar === \"{\" ? JsonValueType.Object : firstChar === '\"' ? JsonValueType.String : JsonValueType.Others;\n let subCursor = 0;\n let objectBracesToMatch = 0;\n let arrayBracketsToMatch = 0;\n let stringQuotesToClose = false;\n let stringBackslashToEscape = false;\n let matched = false;\n while (subCursor < subRaw.length) {\n const char = subRaw.charAt(subCursor);\n if (stringBackslashToEscape) {\n stringBackslashToEscape = false;\n } else if (stringQuotesToClose) {\n if (char === '\"') {\n stringQuotesToClose = false;\n } else if (char === \"\\\\\") {\n stringBackslashToEscape = true;\n }\n } else {\n switch (char) {\n case \"[\":\n arrayBracketsToMatch += 1;\n break;\n case \"{\":\n objectBracesToMatch += 1;\n break;\n case \"]\":\n arrayBracketsToMatch -= 1;\n break;\n case \"}\":\n objectBracesToMatch -= 1;\n break;\n case '\"':\n stringQuotesToClose = true;\n break;\n }\n }\n subCursor += 1;\n switch (valueType) {\n case JsonValueType.Array:\n matched = !arrayBracketsToMatch;\n break;\n case JsonValueType.Object:\n matched = !objectBracesToMatch;\n break;\n case JsonValueType.String:\n matched = !stringQuotesToClose;\n break;\n default:\n // 对于其它类型,如果下一个字符不再是这些值类型可能的字符时,我们认为 JSON value 完成匹配。\n // 其它可能的值类型:number/boolean/null/undefined。\n matched = subCursor < subRaw.length && /[^a-z0-9E.+-]/.test(subRaw.charAt(subCursor));\n }\n if (matched) {\n break;\n }\n }\n if (!matched) {\n throw new Error(`Failed to match a JSON value at index ${context.cursor} near: ${JSON.stringify(context.raw.substring(context.cursor))}`);\n }\n context.tokens.push({\n type: TokenType.JsonValue,\n value: JSON.parse(subRaw.substring(0, subCursor))\n });\n context.cursor += subCursor;\n context.status = nextStatus;\n}\nfunction getSubRaw(context) {\n return context.raw.substring(context.cursor);\n}\n//# sourceMappingURL=lexical.js.map","import { get } from \"lodash\";\nimport { processPipes } from \"@next-core/pipes\";\nimport { parseInjectableString } from \"./syntax.js\";\nimport { getRegExpOfPlaceholder } from \"./lexical.js\";\nexport function transform(raw, context) {\n return compile(raw, \"@\", context);\n}\nexport function inject(raw, context) {\n return compile(raw, \"$\", context);\n}\nexport function transformAndInject(raw, context) {\n return compile(raw, [\"@\", \"$\"], context);\n}\nfunction compile(raw, symbols, context) {\n // const symbols = [\"@\", \"$\"];\n if (!isInjectable(raw, symbols)) {\n return raw;\n }\n const transformNode = transformNodeFactory(context.data);\n const injectNode = injectNodeFactory(context, raw);\n const tree = parseInjectableString(raw, symbols);\n const values = tree.elements.map(node => node.type === \"RawString\" ? node.value : node.symbol === \"$\" ? injectNode(node) : transformNode(node));\n return reduceCompiledValues(values);\n}\nfunction reduceCompiledValues(values) {\n // If the whole string is a placeholder, we should keep the original value.\n if (values.length === 1) {\n return values[0];\n }\n\n // If an element is `undefined`, `null` or an empty array `[]`, it is converted to an empty string.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join#Description\n return values.join(\"\");\n}\nfunction isInjectable(raw, symbols) {\n return getRegExpOfPlaceholder(symbols).test(raw);\n}\nfunction transformNodeFactory(data) {\n return function transformNode(node) {\n // If meet `@{}`, return `data`.\n let result = node.field ? get(data, node.field) : data;\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\nfunction injectNodeFactory(context, raw) {\n return function injectNode(node) {\n const matches = node.field.match(/^(?:(QUERY(?:_ARRAY)?|EVENT|query|event|APP|HASH|ANCHOR|SYS|FLAGS|CTX)\\.)?(.+)$/);\n if (!matches) {\n // Keep the original raw partial when meet a unknown namespace.\n return raw.substring(node.loc.start, node.loc.end);\n }\n let [, namespace, subField] = matches;\n\n // Support namespace with no subfield such as `${ANCHOR}`.\n // But distinguish with match params. E.g. `${query}` is a match param.\n if (!namespace && /^[A-Z_]+$/.test(subField)) {\n namespace = subField;\n subField = \"*\";\n }\n let result;\n const SimpleContextMap = {\n SYS: \"sys\",\n FLAGS: \"flags\"\n };\n switch (namespace) {\n case \"QUERY\":\n case \"query\":\n if (subField === \"*\") {\n result = context.query;\n } else {\n result = context.query.has(subField) ? context.query.get(subField) : undefined;\n }\n break;\n case \"QUERY_ARRAY\":\n result = context.query.has(subField) ? context.query.getAll(subField) : undefined;\n break;\n case \"EVENT\":\n case \"event\":\n if (context.event === undefined) {\n // Keep the original raw partial when meet a `${EVENT}` in non-event context.\n return raw.substring(node.loc.start, node.loc.end);\n }\n result = subField === \"*\" ? context.event : get(context.event, subField);\n break;\n case \"APP\":\n result = subField === \"*\" ? context.overrideApp ?? context.app : get(context.overrideApp ?? context.app, subField);\n break;\n case \"HASH\":\n result = context.location.hash;\n break;\n case \"SYS\":\n case \"FLAGS\":\n result = subField === \"*\" ? context[SimpleContextMap[namespace]] : get(context[SimpleContextMap[namespace]], subField);\n break;\n case \"ANCHOR\":\n {\n const anchor = context.location.hash ? context.location.hash.substr(1) : null;\n result = subField === \"*\" ? anchor : get(anchor, subField);\n break;\n }\n case \"CTX\":\n {\n const original = raw.substring(node.loc.start, node.loc.end);\n // eslint-disable-next-line no-console\n console.error(`CTX is not supported in placeholder any more: \"${original}\"`);\n return original;\n }\n default:\n if (context.match) {\n result = context.match.params[subField];\n } else {\n // If the context is empty, return the original raw partial.\n return raw.substring(node.loc.start, node.loc.end);\n }\n }\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\n//# sourceMappingURL=compile.js.map","import { tokenize } from \"./lexical.js\";\nimport { TokenType } from \"./interfaces.js\";\nexport function parseInjectableString(raw, symbols) {\n return parseTokens(tokenize(raw, symbols));\n}\nfunction parseTokens(tokens) {\n const tree = {\n type: \"InjectableString\",\n elements: []\n };\n let token;\n function optionalToken(type) {\n if (type === tokens[0].type) {\n token = tokens.shift();\n return true;\n }\n return false;\n }\n function acceptToken(type) {\n token = tokens.shift();\n if (Array.isArray(type) ? !type.includes(token.type) : type !== token.type) {\n throw new Error(`Expected token: ${type}, received token: ${token.type}`);\n }\n }\n while (tokens.length > 0) {\n if (optionalToken(TokenType.Raw)) {\n tree.elements.push({\n type: \"RawString\",\n value: token.value\n });\n } else {\n acceptToken(TokenType.BeginPlaceHolder);\n const start = token.loc.start;\n const symbol = token.value;\n acceptToken(TokenType.Field);\n const placeholder = {\n type: \"Placeholder\",\n symbol,\n field: token.value,\n defaultValue: undefined,\n pipes: [],\n loc: {\n start,\n end: start\n }\n };\n tree.elements.push(placeholder);\n if (optionalToken(TokenType.BeginDefault)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n placeholder.defaultValue = token.value;\n }\n while (optionalToken(TokenType.BeginPipe)) {\n acceptToken(TokenType.PipeIdentifier);\n const pipe = {\n type: \"PipeCall\",\n identifier: token.value,\n parameters: []\n };\n placeholder.pipes.push(pipe);\n while (optionalToken(TokenType.BeginPipeParameter)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n pipe.parameters.push(token.value);\n }\n }\n acceptToken(TokenType.EndPlaceHolder);\n placeholder.loc.end = token.loc.end;\n }\n }\n return tree;\n}\n//# sourceMappingURL=syntax.js.map"],"names":["LexicalStatus","TokenType","JsonValueType","getRegExpOfPlaceholder","symbols","RegExp","concat","map","symbol","escapeRegExp","join","eatOptionalRawAndOptionalPlaceholderBegin","context","_subRaw$match","subRaw","getSubRaw","matchedPlaceholder","match","beginPlaceholder","subCursor","indexOf","charAt","length","nextCursor","cursor","tokens","push","type","Raw","value","substring","BeginPlaceHolder","loc","start","end","status","ExpectField","raw","eatWhitespace","eatField","Field","ExpectOptionalBeginDefault","eatOptionalDefault","BeginDefault","ExpectDefaultValue","ExpectOptionalBeginPipe","eatDefaultValue","eatJsonValueOrLiteralString","eatOptionalBeginPipe","BeginPipe","ExpectPipeIdentifier","ExpectPlaceholderEnd","eatPipeIdentifier","matches","Error","JSON","stringify","PipeIdentifier","ExpectOptionalBeginPipeParameter","eatOptionalBeginPipeParameter","BeginPipeParameter","ExpectPipeParameter","eatPipeParameter","eatPlaceholderEnd","EndPlaceHolder","Initial","jsonLiteralMap","Map","nextStatus","test","firstChar","valueType","Array","Object","String","Others","objectBracesToMatch","arrayBracketsToMatch","stringQuotesToClose","stringBackslashToEscape","matched","char","JsonValue","parse","eatJsonValue","has","get","LiteralString","transform","compile","inject","transformAndInject","isInjectable","transformNode","data","node","result","field","undefined","defaultValue","processPipes","pipes","injectNode","namespace","subField","SimpleContextMap","SYS","FLAGS","query","getAll","event","overrideApp","app","location","hash","anchor","substr","original","console","error","params","injectNodeFactory","values","tree","elements","token","optionalToken","shift","acceptToken","isArray","includes","placeholder","pipe","identifier","parameters","parseTokens","tokenize","parseInjectableString"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/2277.a4439182.js","mappings":"qOAAO,IAAIA,EAA6B,SAAUA,GAUhD,OATAA,EAAcA,EAAuB,QAAI,GAAK,UAC9CA,EAAcA,EAA2B,YAAI,GAAK,cAClDA,EAAcA,EAA0C,2BAAI,GAAK,6BACjEA,EAAcA,EAAkC,mBAAI,GAAK,qBACzDA,EAAcA,EAAuC,wBAAI,GAAK,0BAC9DA,EAAcA,EAAoC,qBAAI,GAAK,uBAC3DA,EAAcA,EAAgD,iCAAI,GAAK,mCACvEA,EAAcA,EAAmC,oBAAI,GAAK,sBAC1DA,EAAcA,EAAoC,qBAAI,GAAK,uBACpDA,CACT,CAXwC,CAWtC,CAAC,GACQC,EAAyB,SAAUA,GAW5C,OAVAA,EAAe,IAAI,MACnBA,EAA4B,iBAAI,mBAChCA,EAAiB,MAAI,QACrBA,EAAwB,aAAI,eAC5BA,EAAyB,cAAI,gBAC7BA,EAAqB,UAAI,YACzBA,EAA0B,eAAI,iBAC9BA,EAA8B,mBAAI,qBAClCA,EAA0B,eAAI,iBAC9BA,EAAqB,UAA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,EAAckD,qBACjBZ,EAAc1B,GACdwC,EAAkBxC,GAClB,MACF,KAAKZ,EAAc0D,iCACjBpB,EAAc1B,GACd+C,EAA8B/C,GAC9B,MACF,KAAKZ,EAAc6D,oBACjBvB,EAAc1B,GACdkD,EAAiBlD,GACjB,MACF,KAAKZ,EAAcmD,qBACjBb,EAAc1B,GACdmD,EAAkBnD,GAIxB,GAAIA,EAAQuB,SAAWnC,EAAciE,QACnC,MAAM,IAAIX,MAAM,6CAElB,OAAO1C,EAAQa,MACjB,CErDqB+G,CAASnG,EAAKjC,GACnC,CDgBeqI,CAAsBpG,EAAKjC,GACpBwH,SAASrH,KAAIwF,GAAsB,cAAdA,EAAKpE,KAAuBoE,EAAKlE,MAAwB,MAAhBkE,EAAKvF,OAAiB8F,EAAWP,GAAQF,EAAcE,KAKnH,IAAlB2B,EAAOpG,OACFoG,EAAO,GAKTA,EAAOhH,KAAK,IARrB,IAA8BgH,CAD9B,C","sources":["webpack:///../../node_modules/@next-core/inject/dist/esm/interfaces.js","webpack:///../../node_modules/@next-core/inject/dist/esm/lexical.js","webpack:///../../node_modules/@next-core/inject/dist/esm/compile.js","webpack:///../../node_modules/@next-core/inject/dist/esm/syntax.js"],"sourcesContent":["export let LexicalStatus = /*#__PURE__*/function (LexicalStatus) {\n LexicalStatus[LexicalStatus[\"Initial\"] = 0] = \"Initial\";\n LexicalStatus[LexicalStatus[\"ExpectField\"] = 1] = \"ExpectField\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginDefault\"] = 2] = \"ExpectOptionalBeginDefault\";\n LexicalStatus[LexicalStatus[\"ExpectDefaultValue\"] = 3] = \"ExpectDefaultValue\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipe\"] = 4] = \"ExpectOptionalBeginPipe\";\n LexicalStatus[LexicalStatus[\"ExpectPipeIdentifier\"] = 5] = \"ExpectPipeIdentifier\";\n LexicalStatus[LexicalStatus[\"ExpectOptionalBeginPipeParameter\"] = 6] = \"ExpectOptionalBeginPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPipeParameter\"] = 7] = \"ExpectPipeParameter\";\n LexicalStatus[LexicalStatus[\"ExpectPlaceholderEnd\"] = 8] = \"ExpectPlaceholderEnd\";\n return LexicalStatus;\n}({});\nexport let TokenType = /*#__PURE__*/function (TokenType) {\n TokenType[\"Raw\"] = \"Raw\";\n TokenType[\"BeginPlaceHolder\"] = \"BeginPlaceHolder\";\n TokenType[\"Field\"] = \"Field\";\n TokenType[\"BeginDefault\"] = \"BeginDefault\";\n TokenType[\"LiteralString\"] = \"LiteralString\";\n TokenType[\"BeginPipe\"] = \"BeginPipe\";\n TokenType[\"PipeIdentifier\"] = \"PipeIdentifier\";\n TokenType[\"BeginPipeParameter\"] = \"BeginPipeParameter\";\n TokenType[\"EndPlaceHolder\"] = \"EndPlaceHolder\";\n TokenType[\"JsonValue\"] = \"JsonValue\";\n return TokenType;\n}({});\nexport let JsonValueType = /*#__PURE__*/function (JsonValueType) {\n JsonValueType[JsonValueType[\"Array\"] = 0] = \"Array\";\n JsonValueType[JsonValueType[\"Object\"] = 1] = \"Object\";\n JsonValueType[JsonValueType[\"String\"] = 2] = \"String\";\n JsonValueType[JsonValueType[\"Others\"] = 3] = \"Others\";\n return JsonValueType;\n}({});\n//# sourceMappingURL=interfaces.js.map","import { escapeRegExp } from \"lodash\";\nimport { LexicalStatus, TokenType, JsonValueType } from \"./interfaces.js\";\nexport function getRegExpOfPlaceholder(symbols) {\n return new RegExp(`(${[].concat(symbols).map(symbol => escapeRegExp(symbol)).join(\"|\")})\\\\{`);\n}\nexport function tokenize(raw, symbols) {\n const context = {\n beginPlaceholder: getRegExpOfPlaceholder(symbols),\n raw,\n cursor: 0,\n status: LexicalStatus.Initial,\n tokens: []\n };\n while (context.cursor < raw.length) {\n switch (context.status) {\n case LexicalStatus.Initial:\n eatOptionalRawAndOptionalPlaceholderBegin(context);\n break;\n case LexicalStatus.ExpectField:\n eatWhitespace(context);\n eatField(context);\n break;\n case LexicalStatus.ExpectOptionalBeginDefault:\n eatWhitespace(context);\n eatOptionalDefault(context);\n break;\n case LexicalStatus.ExpectDefaultValue:\n eatWhitespace(context);\n eatDefaultValue(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipe:\n eatWhitespace(context);\n eatOptionalBeginPipe(context);\n break;\n case LexicalStatus.ExpectPipeIdentifier:\n eatWhitespace(context);\n eatPipeIdentifier(context);\n break;\n case LexicalStatus.ExpectOptionalBeginPipeParameter:\n eatWhitespace(context);\n eatOptionalBeginPipeParameter(context);\n break;\n case LexicalStatus.ExpectPipeParameter:\n eatWhitespace(context);\n eatPipeParameter(context);\n break;\n case LexicalStatus.ExpectPlaceholderEnd:\n eatWhitespace(context);\n eatPlaceholderEnd(context);\n break;\n }\n }\n if (context.status !== LexicalStatus.Initial) {\n throw new Error(\"Expected a placeholder end '}' at the end\");\n }\n return context.tokens;\n}\nfunction eatOptionalRawAndOptionalPlaceholderBegin(context) {\n var _subRaw$match;\n const subRaw = getSubRaw(context);\n const matchedPlaceholder = (_subRaw$match = subRaw.match(context.beginPlaceholder)) === null || _subRaw$match === void 0 ? void 0 : _subRaw$match[0];\n const subCursor = matchedPlaceholder ? subRaw.indexOf(matchedPlaceholder) : -1;\n if (subCursor >= 0 && matchedPlaceholder && subRaw.charAt(subCursor + matchedPlaceholder.length) !== \"{\") {\n const nextCursor = context.cursor + subCursor;\n if (subCursor > 0) {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw.substring(0, subCursor)\n });\n }\n context.tokens.push({\n type: TokenType.BeginPlaceHolder,\n loc: {\n start: nextCursor,\n end: nextCursor + matchedPlaceholder.length\n },\n value: matchedPlaceholder.substring(0, matchedPlaceholder.length - 1)\n });\n context.cursor += subCursor + matchedPlaceholder.length;\n context.status = LexicalStatus.ExpectField;\n } else {\n context.tokens.push({\n type: TokenType.Raw,\n value: subRaw\n });\n context.cursor = context.raw.length;\n }\n}\nfunction eatWhitespace(context) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n context.cursor += getSubRaw(context).match(/^[ \\r\\n\\t]*/)[0].length;\n}\nfunction eatField(context) {\n // Only allow alphanumeric, `_`, `.`, `*`, `[`, `]`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [value] = getSubRaw(context).match(/^[\\w.*[\\]\\-\\u{80}-\\u{10FFFF}]*/u);\n context.tokens.push({\n type: TokenType.Field,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginDefault;\n}\nfunction eatOptionalDefault(context) {\n if (getSubRaw(context).charAt(0) === \"=\") {\n context.tokens.push({\n type: TokenType.BeginDefault\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectDefaultValue;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatDefaultValue(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipe);\n}\nfunction eatOptionalBeginPipe(context) {\n if (getSubRaw(context).charAt(0) === \"|\") {\n context.tokens.push({\n type: TokenType.BeginPipe\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeIdentifier;\n } else {\n context.status = LexicalStatus.ExpectPlaceholderEnd;\n }\n}\nfunction eatPipeIdentifier(context) {\n const matches = getSubRaw(context).match(/^[a-zA-Z]\\w*/);\n if (!matches) {\n throw new Error(`Expected a pipe identifier at index ${context.cursor} near: ${JSON.stringify(context.raw.substring(context.cursor))}`);\n }\n const value = matches[0];\n context.tokens.push({\n type: TokenType.PipeIdentifier,\n value\n });\n context.cursor += value.length;\n context.status = LexicalStatus.ExpectOptionalBeginPipeParameter;\n}\nfunction eatOptionalBeginPipeParameter(context) {\n if (getSubRaw(context).charAt(0) === \":\") {\n context.tokens.push({\n type: TokenType.BeginPipeParameter\n });\n context.cursor += 1;\n context.status = LexicalStatus.ExpectPipeParameter;\n } else {\n context.status = LexicalStatus.ExpectOptionalBeginPipe;\n }\n}\nfunction eatPipeParameter(context) {\n eatJsonValueOrLiteralString(context, LexicalStatus.ExpectOptionalBeginPipeParameter);\n}\nfunction eatPlaceholderEnd(context) {\n if (getSubRaw(context).charAt(0) === \"}\") {\n context.tokens.push({\n type: TokenType.EndPlaceHolder,\n loc: {\n start: context.cursor,\n end: context.cursor + 1\n }\n });\n context.cursor += 1;\n context.status = LexicalStatus.Initial;\n } else {\n throw new Error(`Expected a placeholder end '}' at index ${context.cursor} near: ${JSON.stringify(context.raw.substring(context.cursor))}`);\n }\n}\nconst jsonLiteralMap = new Map([[\"false\", false], [\"null\", null], [\"true\", true]]);\nfunction eatJsonValueOrLiteralString(context, nextStatus) {\n const subRaw = getSubRaw(context);\n if (/[0-9[{\"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.substring(0, 2))) {\n eatJsonValue(context, nextStatus);\n } else {\n // Accept any characters except controls and whitespace.\n // Only allow alphanumeric, `_`, `-` and other non-ascii.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [value] = getSubRaw(context).match(/^[\\w\\-\\u{80}-\\u{10FFFF}]*/u);\n if (jsonLiteralMap.has(value)) {\n context.tokens.push({\n type: TokenType.JsonValue,\n value: jsonLiteralMap.get(value)\n });\n } else {\n context.tokens.push({\n type: TokenType.LiteralString,\n value\n });\n }\n context.cursor += value.length;\n context.status = nextStatus;\n }\n}\n\n// 我们不需要非常精确地在一段字符串中匹配出一段*完整合法的* JSON value,\n// 而只需要找到一段*可能是完整合法的* JSON value 即可,解析的工作交给 `JSON.parse()`。\n// 由于 JSON 中 object/array/string 的镜像起止符特性,我们尝试去完成这些符号匹配即可。\nfunction eatJsonValue(context, nextStatus) {\n const subRaw = getSubRaw(context);\n const firstChar = subRaw.charAt(0);\n const valueType = firstChar === \"[\" ? JsonValueType.Array : firstChar === \"{\" ? JsonValueType.Object : firstChar === '\"' ? JsonValueType.String : JsonValueType.Others;\n let subCursor = 0;\n let objectBracesToMatch = 0;\n let arrayBracketsToMatch = 0;\n let stringQuotesToClose = false;\n let stringBackslashToEscape = false;\n let matched = false;\n while (subCursor < subRaw.length) {\n const char = subRaw.charAt(subCursor);\n if (stringBackslashToEscape) {\n stringBackslashToEscape = false;\n } else if (stringQuotesToClose) {\n if (char === '\"') {\n stringQuotesToClose = false;\n } else if (char === \"\\\\\") {\n stringBackslashToEscape = true;\n }\n } else {\n switch (char) {\n case \"[\":\n arrayBracketsToMatch += 1;\n break;\n case \"{\":\n objectBracesToMatch += 1;\n break;\n case \"]\":\n arrayBracketsToMatch -= 1;\n break;\n case \"}\":\n objectBracesToMatch -= 1;\n break;\n case '\"':\n stringQuotesToClose = true;\n break;\n }\n }\n subCursor += 1;\n switch (valueType) {\n case JsonValueType.Array:\n matched = !arrayBracketsToMatch;\n break;\n case JsonValueType.Object:\n matched = !objectBracesToMatch;\n break;\n case JsonValueType.String:\n matched = !stringQuotesToClose;\n break;\n default:\n // 对于其它类型,如果下一个字符不再是这些值类型可能的字符时,我们认为 JSON value 完成匹配。\n // 其它可能的值类型:number/boolean/null/undefined。\n matched = subCursor < subRaw.length && /[^a-z0-9E.+-]/.test(subRaw.charAt(subCursor));\n }\n if (matched) {\n break;\n }\n }\n if (!matched) {\n throw new Error(`Failed to match a JSON value at index ${context.cursor} near: ${JSON.stringify(context.raw.substring(context.cursor))}`);\n }\n context.tokens.push({\n type: TokenType.JsonValue,\n value: JSON.parse(subRaw.substring(0, subCursor))\n });\n context.cursor += subCursor;\n context.status = nextStatus;\n}\nfunction getSubRaw(context) {\n return context.raw.substring(context.cursor);\n}\n//# sourceMappingURL=lexical.js.map","import { get } from \"lodash\";\nimport { processPipes } from \"@next-core/pipes\";\nimport { parseInjectableString } from \"./syntax.js\";\nimport { getRegExpOfPlaceholder } from \"./lexical.js\";\nexport function transform(raw, context) {\n return compile(raw, \"@\", context);\n}\nexport function inject(raw, context) {\n return compile(raw, \"$\", context);\n}\nexport function transformAndInject(raw, context) {\n return compile(raw, [\"@\", \"$\"], context);\n}\nfunction compile(raw, symbols, context) {\n // const symbols = [\"@\", \"$\"];\n if (!isInjectable(raw, symbols)) {\n return raw;\n }\n const transformNode = transformNodeFactory(context.data);\n const injectNode = injectNodeFactory(context, raw);\n const tree = parseInjectableString(raw, symbols);\n const values = tree.elements.map(node => node.type === \"RawString\" ? node.value : node.symbol === \"$\" ? injectNode(node) : transformNode(node));\n return reduceCompiledValues(values);\n}\nfunction reduceCompiledValues(values) {\n // If the whole string is a placeholder, we should keep the original value.\n if (values.length === 1) {\n return values[0];\n }\n\n // If an element is `undefined`, `null` or an empty array `[]`, it is converted to an empty string.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join#Description\n return values.join(\"\");\n}\nfunction isInjectable(raw, symbols) {\n return getRegExpOfPlaceholder(symbols).test(raw);\n}\nfunction transformNodeFactory(data) {\n return function transformNode(node) {\n // If meet `@{}`, return `data`.\n let result = node.field ? get(data, node.field) : data;\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\nfunction injectNodeFactory(context, raw) {\n return function injectNode(node) {\n const matches = node.field.match(/^(?:(QUERY(?:_ARRAY)?|EVENT|query|event|APP|HASH|ANCHOR|SYS|FLAGS|CTX)\\.)?(.+)$/);\n if (!matches) {\n // Keep the original raw partial when meet a unknown namespace.\n return raw.substring(node.loc.start, node.loc.end);\n }\n let [, namespace, subField] = matches;\n\n // Support namespace with no subfield such as `${ANCHOR}`.\n // But distinguish with match params. E.g. `${query}` is a match param.\n if (!namespace && /^[A-Z_]+$/.test(subField)) {\n namespace = subField;\n subField = \"*\";\n }\n let result;\n const SimpleContextMap = {\n SYS: \"sys\",\n FLAGS: \"flags\"\n };\n switch (namespace) {\n case \"QUERY\":\n case \"query\":\n if (subField === \"*\") {\n result = context.query;\n } else {\n result = context.query.has(subField) ? context.query.get(subField) : undefined;\n }\n break;\n case \"QUERY_ARRAY\":\n result = context.query.has(subField) ? context.query.getAll(subField) : undefined;\n break;\n case \"EVENT\":\n case \"event\":\n if (context.event === undefined) {\n // Keep the original raw partial when meet a `${EVENT}` in non-event context.\n return raw.substring(node.loc.start, node.loc.end);\n }\n result = subField === \"*\" ? context.event : get(context.event, subField);\n break;\n case \"APP\":\n result = subField === \"*\" ? context.overrideApp ?? context.app : get(context.overrideApp ?? context.app, subField);\n break;\n case \"HASH\":\n result = context.location.hash;\n break;\n case \"SYS\":\n case \"FLAGS\":\n result = subField === \"*\" ? context[SimpleContextMap[namespace]] : get(context[SimpleContextMap[namespace]], subField);\n break;\n case \"ANCHOR\":\n {\n const anchor = context.location.hash ? context.location.hash.substr(1) : null;\n result = subField === \"*\" ? anchor : get(anchor, subField);\n break;\n }\n case \"CTX\":\n {\n const original = raw.substring(node.loc.start, node.loc.end);\n // eslint-disable-next-line no-console\n console.error(`CTX is not supported in placeholder any more: \"${original}\"`);\n return original;\n }\n default:\n if (context.match) {\n result = context.match.params[subField];\n } else {\n // If the context is empty, return the original raw partial.\n return raw.substring(node.loc.start, node.loc.end);\n }\n }\n if (result === undefined) {\n result = node.defaultValue;\n }\n return processPipes(result, node.pipes);\n };\n}\n//# sourceMappingURL=compile.js.map","import { tokenize } from \"./lexical.js\";\nimport { TokenType } from \"./interfaces.js\";\nexport function parseInjectableString(raw, symbols) {\n return parseTokens(tokenize(raw, symbols));\n}\nfunction parseTokens(tokens) {\n const tree = {\n type: \"InjectableString\",\n elements: []\n };\n let token;\n function optionalToken(type) {\n if (type === tokens[0].type) {\n token = tokens.shift();\n return true;\n }\n return false;\n }\n function acceptToken(type) {\n token = tokens.shift();\n if (Array.isArray(type) ? !type.includes(token.type) : type !== token.type) {\n throw new Error(`Expected token: ${type}, received token: ${token.type}`);\n }\n }\n while (tokens.length > 0) {\n if (optionalToken(TokenType.Raw)) {\n tree.elements.push({\n type: \"RawString\",\n value: token.value\n });\n } else {\n acceptToken(TokenType.BeginPlaceHolder);\n const start = token.loc.start;\n const symbol = token.value;\n acceptToken(TokenType.Field);\n const placeholder = {\n type: \"Placeholder\",\n symbol,\n field: token.value,\n defaultValue: undefined,\n pipes: [],\n loc: {\n start,\n end: start\n }\n };\n tree.elements.push(placeholder);\n if (optionalToken(TokenType.BeginDefault)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n placeholder.defaultValue = token.value;\n }\n while (optionalToken(TokenType.BeginPipe)) {\n acceptToken(TokenType.PipeIdentifier);\n const pipe = {\n type: \"PipeCall\",\n identifier: token.value,\n parameters: []\n };\n placeholder.pipes.push(pipe);\n while (optionalToken(TokenType.BeginPipeParameter)) {\n acceptToken([TokenType.JsonValue, TokenType.LiteralString]);\n pipe.parameters.push(token.value);\n }\n }\n acceptToken(TokenType.EndPlaceHolder);\n placeholder.loc.end = token.loc.end;\n }\n }\n return tree;\n}\n//# sourceMappingURL=syntax.js.map"],"names":["LexicalStatus","TokenType","JsonValueType","getRegExpOfPlaceholder","symbols","RegExp","concat","map","symbol","escapeRegExp","join","eatOptionalRawAndOptionalPlaceholderBegin","context","_subRaw$match","subRaw","getSubRaw","matchedPlaceholder","match","beginPlaceholder","subCursor","indexOf","charAt","length","nextCursor","cursor","tokens","push","type","Raw","value","substring","BeginPlaceHolder","loc","start","end","status","ExpectField","raw","eatWhitespace","eatField","Field","ExpectOptionalBeginDefault","eatOptionalDefault","BeginDefault","ExpectDefaultValue","ExpectOptionalBeginPipe","eatDefaultValue","eatJsonValueOrLiteralString","eatOptionalBeginPipe","BeginPipe","ExpectPipeIdentifier","ExpectPlaceholderEnd","eatPipeIdentifier","matches","Error","JSON","stringify","PipeIdentifier","ExpectOptionalBeginPipeParameter","eatOptionalBeginPipeParameter","BeginPipeParameter","ExpectPipeParameter","eatPipeParameter","eatPlaceholderEnd","EndPlaceHolder","Initial","jsonLiteralMap","Map","nextStatus","test","firstChar","valueType","Array","Object","String","Others","objectBracesToMatch","arrayBracketsToMatch","stringQuotesToClose","stringBackslashToEscape","matched","char","JsonValue","parse","eatJsonValue","has","get","LiteralString","transform","compile","inject","transformAndInject","isInjectable","transformNode","data","node","result","field","undefined","defaultValue","processPipes","pipes","injectNode","namespace","subField","SimpleContextMap","SYS","FLAGS","query","getAll","event","overrideApp","app","location","hash","anchor","substr","original","console","error","params","injectNodeFactory","values","tree","elements","token","optionalToken","shift","acceptToken","isArray","includes","placeholder","pipe","identifier","parameters","parseTokens","tokenize","parseInjectableString"],"sourceRoot":""}