@reapit/elements 5.0.0-beta.78 → 5.0.0-beta.79

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 (317) hide show
  1. package/dist/codemods/bin.js +1030 -609
  2. package/dist/codemods/codemods.js +9 -1
  3. package/dist/codemods/inline-use-click-outside/transform.js +253558 -0
  4. package/dist/codemods/manifest.json +9 -1
  5. package/dist/codemods/replace-deprecated-label/transform.js +253627 -0
  6. package/dist/codemods/rewrite-v5-imports/transform.js +0 -12
  7. package/dist/js/app-logo-DI6bR-xZ.js +63 -0
  8. package/dist/js/{app-switcher-DT-XTre7.js → app-switcher-Bm90a8vK.js} +1 -2
  9. package/dist/js/autocomplete-control-CZ4Vucbe.js +60 -0
  10. package/dist/js/checkbox-control-DpvEbZAD.js +24 -0
  11. package/dist/js/{checkbox-group-control-CGaYWkzO.js → checkbox-group-control-BHPHLTNj.js} +28 -22
  12. package/dist/js/core/app-switcher.js +1 -1
  13. package/dist/js/core/autocomplete-control.js +1 -1
  14. package/dist/js/core/checkbox-control.js +1 -1
  15. package/dist/js/core/checkbox-group-control.js +1 -1
  16. package/dist/js/core/date-time-control.js +1 -1
  17. package/dist/js/core/radio-group-control.js +1 -1
  18. package/dist/js/core/select-control.js +1 -1
  19. package/dist/js/core/select-native-control.js +1 -1
  20. package/dist/js/core/text-control.js +1 -1
  21. package/dist/js/core/textarea-control.js +1 -1
  22. package/dist/js/core/top-bar.js +96 -96
  23. package/dist/js/date-time-control-D3_FLY1i.js +37 -0
  24. package/dist/js/deprecated/nav.js +1 -1
  25. package/dist/js/deprecated/page-header.js +1 -1
  26. package/dist/js/index.js +1700 -1712
  27. package/dist/js/{nav-responsive-BMQZWB8l.js → nav-responsive-CgrAMnq3.js} +32 -32
  28. package/dist/js/page-header-mgRtDaDf.js +96 -0
  29. package/dist/js/{radio-group-control-F5aUqmQr.js → radio-group-control-DpWIWxQk.js} +35 -29
  30. package/dist/js/{select-control-DNlg4Orc.js → select-control-ClgSoo2Q.js} +22 -20
  31. package/dist/js/select-native-control-BJdng5Wq.js +37 -0
  32. package/dist/js/style.css +1 -1
  33. package/dist/js/text-control-CIDimADU.js +37 -0
  34. package/dist/js/textarea-control-QGH0MVlk.js +37 -0
  35. package/dist/js/{top-bar-B9BUqLL8.js → top-bar-BAtb9REF.js} +287 -276
  36. package/dist/types/core/autocomplete-control/autocomplete-control.d.ts +1 -1
  37. package/dist/types/core/autocomplete-control/autocomplete-control.d.ts.map +1 -1
  38. package/dist/types/core/autocomplete-control/autocomplete-control.stories.d.ts +3 -0
  39. package/dist/types/core/autocomplete-control/autocomplete-control.stories.d.ts.map +1 -1
  40. package/dist/types/core/checkbox-control/checkbox-control.d.ts +1 -1
  41. package/dist/types/core/checkbox-control/checkbox-control.d.ts.map +1 -1
  42. package/dist/types/core/checkbox-control/checkbox-control.stories.d.ts +4 -1
  43. package/dist/types/core/checkbox-control/checkbox-control.stories.d.ts.map +1 -1
  44. package/dist/types/core/checkbox-group-control/checkbox-group-control.d.ts.map +1 -1
  45. package/dist/types/core/checkbox-group-control/checkbox-group-control.stories.d.ts +3 -0
  46. package/dist/types/core/checkbox-group-control/checkbox-group-control.stories.d.ts.map +1 -1
  47. package/dist/types/core/checkbox-input/checkbox-input.stories.d.ts +6 -0
  48. package/dist/types/core/checkbox-input/checkbox-input.stories.d.ts.map +1 -1
  49. package/dist/types/core/checkbox-input/styles.d.ts.map +1 -1
  50. package/dist/types/core/combobox/button/button.stories.d.ts +7 -0
  51. package/dist/types/core/combobox/button/button.stories.d.ts.map +1 -1
  52. package/dist/types/core/combobox/combobox.stories.d.ts +16 -0
  53. package/dist/types/core/combobox/combobox.stories.d.ts.map +1 -1
  54. package/dist/types/core/combobox/styles.d.ts.map +1 -1
  55. package/dist/types/core/date-time-control/date-time-control.d.ts +1 -1
  56. package/dist/types/core/date-time-control/date-time-control.d.ts.map +1 -1
  57. package/dist/types/core/date-time-control/date-time-control.stories.d.ts +3 -0
  58. package/dist/types/core/date-time-control/date-time-control.stories.d.ts.map +1 -1
  59. package/dist/types/core/date-time-input/date-time-input.stories.d.ts +6 -0
  60. package/dist/types/core/date-time-input/date-time-input.stories.d.ts.map +1 -1
  61. package/dist/types/core/radio-group-control/radio-group-control.d.ts.map +1 -1
  62. package/dist/types/core/radio-group-control/radio-group-control.stories.d.ts +3 -0
  63. package/dist/types/core/radio-group-control/radio-group-control.stories.d.ts.map +1 -1
  64. package/dist/types/core/radio-input/radio-input.stories.d.ts +6 -0
  65. package/dist/types/core/radio-input/radio-input.stories.d.ts.map +1 -1
  66. package/dist/types/core/radio-input/styles.d.ts.map +1 -1
  67. package/dist/types/core/select-control/select-control.d.ts +1 -1
  68. package/dist/types/core/select-control/select-control.d.ts.map +1 -1
  69. package/dist/types/core/select-control/select-control.stories.d.ts +3 -0
  70. package/dist/types/core/select-control/select-control.stories.d.ts.map +1 -1
  71. package/dist/types/core/select-native/select-native.stories.d.ts +6 -0
  72. package/dist/types/core/select-native/select-native.stories.d.ts.map +1 -1
  73. package/dist/types/core/select-native/styles.d.ts.map +1 -1
  74. package/dist/types/core/select-native-control/select-native-control.d.ts +1 -1
  75. package/dist/types/core/select-native-control/select-native-control.d.ts.map +1 -1
  76. package/dist/types/core/select-native-control/select-native-control.stories.d.ts +3 -0
  77. package/dist/types/core/select-native-control/select-native-control.stories.d.ts.map +1 -1
  78. package/dist/types/core/text-control/text-control.d.ts +1 -1
  79. package/dist/types/core/text-control/text-control.d.ts.map +1 -1
  80. package/dist/types/core/text-control/text-control.stories.d.ts +3 -0
  81. package/dist/types/core/text-control/text-control.stories.d.ts.map +1 -1
  82. package/dist/types/core/text-input/styles.d.ts.map +1 -1
  83. package/dist/types/core/text-input/text-input.stories.d.ts +6 -0
  84. package/dist/types/core/text-input/text-input.stories.d.ts.map +1 -1
  85. package/dist/types/core/textarea/styles.d.ts.map +1 -1
  86. package/dist/types/core/textarea/textarea.stories.d.ts +6 -0
  87. package/dist/types/core/textarea/textarea.stories.d.ts.map +1 -1
  88. package/dist/types/core/textarea-control/textarea-control.d.ts +1 -1
  89. package/dist/types/core/textarea-control/textarea-control.d.ts.map +1 -1
  90. package/dist/types/core/textarea-control/textarea-control.stories.d.ts +3 -0
  91. package/dist/types/core/textarea-control/textarea-control.stories.d.ts.map +1 -1
  92. package/dist/types/deprecated/index.d.ts +0 -2
  93. package/dist/types/deprecated/index.d.ts.map +1 -1
  94. package/dist/types/deprecated/page-header/page-header.d.ts +7 -2
  95. package/dist/types/deprecated/page-header/page-header.d.ts.map +1 -1
  96. package/package.json +7 -8
  97. package/dist/js/autocomplete-control-BQWChKSS.js +0 -58
  98. package/dist/js/badge-B1_MUh5J.js +0 -24
  99. package/dist/js/brand-logo-CI4YsKra.js +0 -74
  100. package/dist/js/checkbox-control-BGeX2ngp.js +0 -23
  101. package/dist/js/date-time-control-y5SZfBjd.js +0 -35
  102. package/dist/js/deprecated/badge.js +0 -8
  103. package/dist/js/deprecated/tag.js +0 -8
  104. package/dist/js/icons/add.figma.js +0 -3
  105. package/dist/js/icons/announcement.figma.js +0 -3
  106. package/dist/js/icons/app-switcher.figma.js +0 -3
  107. package/dist/js/icons/archive.figma.js +0 -3
  108. package/dist/js/icons/arrow-down.figma.js +0 -3
  109. package/dist/js/icons/arrow-left.figma.js +0 -3
  110. package/dist/js/icons/arrow-right.figma.js +0 -3
  111. package/dist/js/icons/arrow-up.figma.js +0 -3
  112. package/dist/js/icons/asterisk.figma.js +0 -3
  113. package/dist/js/icons/attachment.figma.js +0 -3
  114. package/dist/js/icons/automation.figma.js +0 -3
  115. package/dist/js/icons/bath.figma.js +0 -3
  116. package/dist/js/icons/bed.figma.js +0 -3
  117. package/dist/js/icons/bill-bulk.figma.js +0 -3
  118. package/dist/js/icons/bill.figma.js +0 -3
  119. package/dist/js/icons/bookmark-bulk.figma.js +0 -3
  120. package/dist/js/icons/bookmark.figma.js +0 -3
  121. package/dist/js/icons/buy.figma.js +0 -3
  122. package/dist/js/icons/calculator.figma.js +0 -3
  123. package/dist/js/icons/calendar-user.figma.js +0 -3
  124. package/dist/js/icons/calendar.figma.js +0 -3
  125. package/dist/js/icons/camera.figma.js +0 -3
  126. package/dist/js/icons/car.figma.js +0 -3
  127. package/dist/js/icons/change-log.figma.js +0 -3
  128. package/dist/js/icons/check-outline.figma.js +0 -3
  129. package/dist/js/icons/check.figma.js +0 -3
  130. package/dist/js/icons/checkbox-disabled.figma.js +0 -3
  131. package/dist/js/icons/checkbox-indeterminate.figma.js +0 -3
  132. package/dist/js/icons/checkbox-selected.figma.js +0 -3
  133. package/dist/js/icons/checkbox.figma.js +0 -3
  134. package/dist/js/icons/chevron-down.figma.js +0 -3
  135. package/dist/js/icons/chevron-left.figma.js +0 -3
  136. package/dist/js/icons/chevron-right.figma.js +0 -3
  137. package/dist/js/icons/chevron-up.figma.js +0 -3
  138. package/dist/js/icons/circular-add-solid.figma.js +0 -3
  139. package/dist/js/icons/circular-add.figma.js +0 -3
  140. package/dist/js/icons/circular-remove-solid.figma.js +0 -3
  141. package/dist/js/icons/circular-remove.figma.js +0 -3
  142. package/dist/js/icons/clear.figma.js +0 -3
  143. package/dist/js/icons/close.figma.js +0 -3
  144. package/dist/js/icons/cloud.figma.js +0 -3
  145. package/dist/js/icons/compliance.figma.js +0 -3
  146. package/dist/js/icons/consolidate.figma.js +0 -3
  147. package/dist/js/icons/contact.figma.js +0 -3
  148. package/dist/js/icons/contacts-alt.figma.js +0 -3
  149. package/dist/js/icons/contacts.figma.js +0 -3
  150. package/dist/js/icons/copy.figma.js +0 -3
  151. package/dist/js/icons/dashboard.figma.js +0 -3
  152. package/dist/js/icons/drag-indicator-alt.figma.js +0 -3
  153. package/dist/js/icons/drag-indicator.figma.js +0 -3
  154. package/dist/js/icons/edit.figma.js +0 -3
  155. package/dist/js/icons/email-disabled.figma.js +0 -3
  156. package/dist/js/icons/email-fill.figma.js +0 -3
  157. package/dist/js/icons/email.figma.js +0 -3
  158. package/dist/js/icons/error.figma.js +0 -3
  159. package/dist/js/icons/euro.figma.js +0 -3
  160. package/dist/js/icons/exit.figma.js +0 -3
  161. package/dist/js/icons/expand.figma.js +0 -3
  162. package/dist/js/icons/export.figma.js +0 -3
  163. package/dist/js/icons/favourite.figma.js +0 -3
  164. package/dist/js/icons/feather.figma.js +0 -3
  165. package/dist/js/icons/feed.figma.js +0 -3
  166. package/dist/js/icons/file-attached.figma.js +0 -3
  167. package/dist/js/icons/file-audio.figma.js +0 -3
  168. package/dist/js/icons/file-document.figma.js +0 -3
  169. package/dist/js/icons/file-download.figma.js +0 -3
  170. package/dist/js/icons/file-excel.figma.js +0 -3
  171. package/dist/js/icons/file-image.figma.js +0 -3
  172. package/dist/js/icons/file-pdf.figma.js +0 -3
  173. package/dist/js/icons/file-powerpoint.figma.js +0 -3
  174. package/dist/js/icons/file-spreadsheet.figma.js +0 -3
  175. package/dist/js/icons/file-upload.figma.js +0 -3
  176. package/dist/js/icons/file-video.figma.js +0 -3
  177. package/dist/js/icons/file-word.figma.js +0 -3
  178. package/dist/js/icons/file-zip.figma.js +0 -3
  179. package/dist/js/icons/file.figma.js +0 -3
  180. package/dist/js/icons/filter.figma.js +0 -3
  181. package/dist/js/icons/folder.figma.js +0 -3
  182. package/dist/js/icons/forward.figma.js +0 -3
  183. package/dist/js/icons/fullscreen-exit.figma.js +0 -3
  184. package/dist/js/icons/fullscreen.figma.js +0 -3
  185. package/dist/js/icons/help.figma.js +0 -3
  186. package/dist/js/icons/info-outline.figma.js +0 -3
  187. package/dist/js/icons/info.figma.js +0 -3
  188. package/dist/js/icons/insights.figma.js +0 -3
  189. package/dist/js/icons/inspection-template.figma.js +0 -3
  190. package/dist/js/icons/inspection.figma.js +0 -3
  191. package/dist/js/icons/insurance.figma.js +0 -3
  192. package/dist/js/icons/key.figma.js +0 -3
  193. package/dist/js/icons/keyboard.figma.js +0 -3
  194. package/dist/js/icons/land-size.figma.js +0 -3
  195. package/dist/js/icons/laptop.figma.js +0 -3
  196. package/dist/js/icons/link.figma.js +0 -3
  197. package/dist/js/icons/location-alt.figma.js +0 -3
  198. package/dist/js/icons/location-disabled.figma.js +0 -3
  199. package/dist/js/icons/location-outline.figma.js +0 -3
  200. package/dist/js/icons/location.figma.js +0 -3
  201. package/dist/js/icons/lock-outline.figma.js +0 -3
  202. package/dist/js/icons/lock.figma.js +0 -3
  203. package/dist/js/icons/maintenance-alt.figma.js +0 -3
  204. package/dist/js/icons/maintenance.figma.js +0 -3
  205. package/dist/js/icons/marketplace.figma.js +0 -3
  206. package/dist/js/icons/menu-alt.figma.js +0 -3
  207. package/dist/js/icons/menu-collapse.figma.js +0 -3
  208. package/dist/js/icons/menu-expand.figma.js +0 -3
  209. package/dist/js/icons/menu.figma.js +0 -3
  210. package/dist/js/icons/message-alt.figma.js +0 -3
  211. package/dist/js/icons/message-disabled.figma.js +0 -3
  212. package/dist/js/icons/message-typing.figma.js +0 -3
  213. package/dist/js/icons/message.figma.js +0 -3
  214. package/dist/js/icons/mic-off.figma.js +0 -3
  215. package/dist/js/icons/mic-on.figma.js +0 -3
  216. package/dist/js/icons/minus.figma.js +0 -3
  217. package/dist/js/icons/mobile.figma.js +0 -3
  218. package/dist/js/icons/money.figma.js +0 -3
  219. package/dist/js/icons/monitor.figma.js +0 -3
  220. package/dist/js/icons/mood-happy.figma.js +0 -3
  221. package/dist/js/icons/mood-neutral.figma.js +0 -3
  222. package/dist/js/icons/mood-unhappy.figma.js +0 -3
  223. package/dist/js/icons/more-vert.figma.js +0 -3
  224. package/dist/js/icons/more.figma.js +0 -3
  225. package/dist/js/icons/note.figma.js +0 -3
  226. package/dist/js/icons/notification.figma.js +0 -3
  227. package/dist/js/icons/payment.figma.js +0 -3
  228. package/dist/js/icons/people-alt.figma.js +0 -3
  229. package/dist/js/icons/phone-disabled.figma.js +0 -3
  230. package/dist/js/icons/phone.figma.js +0 -3
  231. package/dist/js/icons/photo.figma.js +0 -3
  232. package/dist/js/icons/pin.figma.js +0 -3
  233. package/dist/js/icons/pound.figma.js +0 -3
  234. package/dist/js/icons/power-on.figma.js +0 -3
  235. package/dist/js/icons/printer.figma.js +0 -3
  236. package/dist/js/icons/priority-high.figma.js +0 -3
  237. package/dist/js/icons/priority-low.figma.js +0 -3
  238. package/dist/js/icons/priority-medium.figma.js +0 -3
  239. package/dist/js/icons/property-checked.figma.js +0 -3
  240. package/dist/js/icons/property.figma.js +0 -3
  241. package/dist/js/icons/radio-disabled.figma.js +0 -3
  242. package/dist/js/icons/radio-selected.figma.js +0 -3
  243. package/dist/js/icons/radio.figma.js +0 -3
  244. package/dist/js/icons/refresh.figma.js +0 -3
  245. package/dist/js/icons/rent.figma.js +0 -3
  246. package/dist/js/icons/repeat.figma.js +0 -3
  247. package/dist/js/icons/reply-all.figma.js +0 -3
  248. package/dist/js/icons/reply.figma.js +0 -3
  249. package/dist/js/icons/report.figma.js +0 -3
  250. package/dist/js/icons/restore.figma.js +0 -3
  251. package/dist/js/icons/sale.figma.js +0 -3
  252. package/dist/js/icons/search.figma.js +0 -3
  253. package/dist/js/icons/send.figma.js +0 -3
  254. package/dist/js/icons/separator-dot.figma.js +0 -3
  255. package/dist/js/icons/separator-line.figma.js +0 -3
  256. package/dist/js/icons/settings-alt.figma.js +0 -3
  257. package/dist/js/icons/settings.figma.js +0 -3
  258. package/dist/js/icons/share.figma.js +0 -3
  259. package/dist/js/icons/skip.figma.js +0 -3
  260. package/dist/js/icons/social-facebook.figma.js +0 -3
  261. package/dist/js/icons/social-instagram.figma.js +0 -3
  262. package/dist/js/icons/social-linkedin.figma.js +0 -3
  263. package/dist/js/icons/social-x.figma.js +0 -3
  264. package/dist/js/icons/social-youtube.figma.js +0 -3
  265. package/dist/js/icons/sort-ascend.figma.js +0 -3
  266. package/dist/js/icons/sort-descend.figma.js +0 -3
  267. package/dist/js/icons/sort.figma.js +0 -3
  268. package/dist/js/icons/sprout.figma.js +0 -3
  269. package/dist/js/icons/star.figma.js +0 -3
  270. package/dist/js/icons/status-bad.figma.js +0 -3
  271. package/dist/js/icons/status-good.figma.js +0 -3
  272. package/dist/js/icons/status-paused.figma.js +0 -3
  273. package/dist/js/icons/status-unknown.figma.js +0 -3
  274. package/dist/js/icons/status.figma.js +0 -3
  275. package/dist/js/icons/tag.figma.js +0 -3
  276. package/dist/js/icons/task.figma.js +0 -3
  277. package/dist/js/icons/time.figma.js +0 -3
  278. package/dist/js/icons/trash.figma.js +0 -3
  279. package/dist/js/icons/unarchive.figma.js +0 -3
  280. package/dist/js/icons/user-outline.figma.js +0 -3
  281. package/dist/js/icons/user.figma.js +0 -3
  282. package/dist/js/icons/video.figma.js +0 -3
  283. package/dist/js/icons/view-disabled.figma.js +0 -3
  284. package/dist/js/icons/view.figma.js +0 -3
  285. package/dist/js/icons/w3w.figma.js +0 -3
  286. package/dist/js/icons/walking.figma.js +0 -3
  287. package/dist/js/icons/wand.figma.js +0 -3
  288. package/dist/js/icons/warning-outline.figma.js +0 -3
  289. package/dist/js/icons/warning.figma.js +0 -3
  290. package/dist/js/icons/web.figma.js +0 -3
  291. package/dist/js/icons/workflow.figma.js +0 -3
  292. package/dist/js/index_react-U2RHnzO6.js +0 -18340
  293. package/dist/js/page-header-DYxMYNZx.js +0 -87
  294. package/dist/js/select-native-control-M9D5z1nK.js +0 -35
  295. package/dist/js/tag-BZTSNcnx.js +0 -24
  296. package/dist/js/text-control-DRYKDuD6.js +0 -35
  297. package/dist/js/textarea-control-DSfsLSQu.js +0 -35
  298. package/dist/types/deprecated/badge/__styles__/index.d.ts +0 -7
  299. package/dist/types/deprecated/badge/__styles__/index.d.ts.map +0 -1
  300. package/dist/types/deprecated/badge/__tests__/badge.test.d.ts +0 -2
  301. package/dist/types/deprecated/badge/__tests__/badge.test.d.ts.map +0 -1
  302. package/dist/types/deprecated/badge/badge.d.ts +0 -11
  303. package/dist/types/deprecated/badge/badge.d.ts.map +0 -1
  304. package/dist/types/deprecated/badge/badge.stories.d.ts +0 -12
  305. package/dist/types/deprecated/badge/badge.stories.d.ts.map +0 -1
  306. package/dist/types/deprecated/badge/index.d.ts +0 -3
  307. package/dist/types/deprecated/badge/index.d.ts.map +0 -1
  308. package/dist/types/deprecated/tag/__styles__/index.d.ts +0 -7
  309. package/dist/types/deprecated/tag/__styles__/index.d.ts.map +0 -1
  310. package/dist/types/deprecated/tag/__tests__/tag.test.d.ts +0 -2
  311. package/dist/types/deprecated/tag/__tests__/tag.test.d.ts.map +0 -1
  312. package/dist/types/deprecated/tag/index.d.ts +0 -3
  313. package/dist/types/deprecated/tag/index.d.ts.map +0 -1
  314. package/dist/types/deprecated/tag/tag.d.ts +0 -11
  315. package/dist/types/deprecated/tag/tag.d.ts.map +0 -1
  316. package/dist/types/deprecated/tag/tag.stories.d.ts +0 -40
  317. package/dist/types/deprecated/tag/tag.stories.d.ts.map +0 -1
@@ -207,7 +207,7 @@ var require_typescript = __commonJS({
207
207
  SymbolDisplayPartKind: /* @__PURE__ */ __name(() => SymbolDisplayPartKind, "SymbolDisplayPartKind"),
208
208
  SymbolFlags: /* @__PURE__ */ __name(() => SymbolFlags, "SymbolFlags"),
209
209
  SymbolFormatFlags: /* @__PURE__ */ __name(() => SymbolFormatFlags, "SymbolFormatFlags"),
210
- SyntaxKind: /* @__PURE__ */ __name(() => SyntaxKind10, "SyntaxKind"),
210
+ SyntaxKind: /* @__PURE__ */ __name(() => SyntaxKind12, "SyntaxKind"),
211
211
  Ternary: /* @__PURE__ */ __name(() => Ternary, "Ternary"),
212
212
  ThrottledCancellationToken: /* @__PURE__ */ __name(() => ThrottledCancellationToken, "ThrottledCancellationToken"),
213
213
  TokenClass: /* @__PURE__ */ __name(() => TokenClass, "TokenClass"),
@@ -2209,7 +2209,7 @@ var require_typescript = __commonJS({
2209
2209
  tracing: /* @__PURE__ */ __name(() => tracing, "tracing"),
2210
2210
  tracingEnabled: /* @__PURE__ */ __name(() => tracingEnabled, "tracingEnabled"),
2211
2211
  transferSourceFileChildren: /* @__PURE__ */ __name(() => transferSourceFileChildren, "transferSourceFileChildren"),
2212
- transform: /* @__PURE__ */ __name(() => transform14, "transform"),
2212
+ transform: /* @__PURE__ */ __name(() => transform16, "transform"),
2213
2213
  transformClassFields: /* @__PURE__ */ __name(() => transformClassFields, "transformClassFields"),
2214
2214
  transformDeclarations: /* @__PURE__ */ __name(() => transformDeclarations, "transformDeclarations"),
2215
2215
  transformECMAScriptModule: /* @__PURE__ */ __name(() => transformECMAScriptModule, "transformECMAScriptModule"),
@@ -4293,7 +4293,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
4293
4293
  function formatSyntaxKind(kind) {
4294
4294
  return formatEnum(
4295
4295
  kind,
4296
- SyntaxKind10,
4296
+ SyntaxKind12,
4297
4297
  /*isFlags*/
4298
4298
  false
4299
4299
  );
@@ -5842,7 +5842,7 @@ ${lanes.join("\n")}
5842
5842
  })(tracingEnabled || (tracingEnabled = {}));
5843
5843
  var startTracing = tracingEnabled.startTracing;
5844
5844
  var dumpTracingLegend = tracingEnabled.dumpLegend;
5845
- var SyntaxKind10 = /* @__PURE__ */ ((SyntaxKind52) => {
5845
+ var SyntaxKind12 = /* @__PURE__ */ ((SyntaxKind52) => {
5846
5846
  SyntaxKind52[SyntaxKind52["Unknown"] = 0] = "Unknown";
5847
5847
  SyntaxKind52[SyntaxKind52["EndOfFileToken"] = 1] = "EndOfFileToken";
5848
5848
  SyntaxKind52[SyntaxKind52["SingleLineCommentTrivia"] = 2] = "SingleLineCommentTrivia";
@@ -6348,7 +6348,7 @@ ${lanes.join("\n")}
6348
6348
  /* LastKeyword */
6349
6349
  ] = "LastContextualKeyword";
6350
6350
  return SyntaxKind52;
6351
- })(SyntaxKind10 || {});
6351
+ })(SyntaxKind12 || {});
6352
6352
  var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => {
6353
6353
  NodeFlags3[NodeFlags3["None"] = 0] = "None";
6354
6354
  NodeFlags3[NodeFlags3["Let"] = 1] = "Let";
@@ -173763,7 +173763,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173763
173763
  }
173764
173764
  __name(getDefaultLibFilePath, "getDefaultLibFilePath");
173765
173765
  setObjectAllocator(getServicesObjectAllocator());
173766
- function transform14(source, transformers, compilerOptions) {
173766
+ function transform16(source, transformers, compilerOptions) {
173767
173767
  const diagnostics = [];
173768
173768
  compilerOptions = fixupCompilerOptions(compilerOptions, diagnostics);
173769
173769
  const nodes = isArray(source) ? source : [source];
@@ -173782,7 +173782,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173782
173782
  result.diagnostics = concatenate(result.diagnostics, diagnostics);
173783
173783
  return result;
173784
173784
  }
173785
- __name(transform14, "transform");
173785
+ __name(transform16, "transform");
173786
173786
  var ts_BreakpointResolver_exports = {};
173787
173787
  __export2(ts_BreakpointResolver_exports, {
173788
173788
  spanInSourceFileAtLocation: /* @__PURE__ */ __name(() => spanInSourceFileAtLocation, "spanInSourceFileAtLocation")
@@ -206662,7 +206662,7 @@ ${options.prefix}` : "\n" : options.prefix
206662
206662
  SymbolDisplayPartKind: /* @__PURE__ */ __name(() => SymbolDisplayPartKind, "SymbolDisplayPartKind"),
206663
206663
  SymbolFlags: /* @__PURE__ */ __name(() => SymbolFlags, "SymbolFlags"),
206664
206664
  SymbolFormatFlags: /* @__PURE__ */ __name(() => SymbolFormatFlags, "SymbolFormatFlags"),
206665
- SyntaxKind: /* @__PURE__ */ __name(() => SyntaxKind10, "SyntaxKind"),
206665
+ SyntaxKind: /* @__PURE__ */ __name(() => SyntaxKind12, "SyntaxKind"),
206666
206666
  Ternary: /* @__PURE__ */ __name(() => Ternary, "Ternary"),
206667
206667
  ThrottledCancellationToken: /* @__PURE__ */ __name(() => ThrottledCancellationToken, "ThrottledCancellationToken"),
206668
206668
  TokenClass: /* @__PURE__ */ __name(() => TokenClass, "TokenClass"),
@@ -208664,7 +208664,7 @@ ${options.prefix}` : "\n" : options.prefix
208664
208664
  tracing: /* @__PURE__ */ __name(() => tracing, "tracing"),
208665
208665
  tracingEnabled: /* @__PURE__ */ __name(() => tracingEnabled, "tracingEnabled"),
208666
208666
  transferSourceFileChildren: /* @__PURE__ */ __name(() => transferSourceFileChildren, "transferSourceFileChildren"),
208667
- transform: /* @__PURE__ */ __name(() => transform14, "transform"),
208667
+ transform: /* @__PURE__ */ __name(() => transform16, "transform"),
208668
208668
  transformClassFields: /* @__PURE__ */ __name(() => transformClassFields, "transformClassFields"),
208669
208669
  transformDeclarations: /* @__PURE__ */ __name(() => transformDeclarations, "transformDeclarations"),
208670
208670
  transformECMAScriptModule: /* @__PURE__ */ __name(() => transformECMAScriptModule, "transformECMAScriptModule"),
@@ -230884,7 +230884,7 @@ var require_ts_morph = __commonJS({
230884
230884
  const nameNode = node.getNameNode();
230885
230885
  if (nameNode == null)
230886
230886
  return false;
230887
- if (Node3.isArrayBindingPattern(nameNode) || Node3.isObjectBindingPattern(nameNode))
230887
+ if (Node4.isArrayBindingPattern(nameNode) || Node4.isObjectBindingPattern(nameNode))
230888
230888
  return nameNode.getElements().some((element) => nodeHasName(element, name));
230889
230889
  const nodeName = node.getName != null ? node.getName() : nameNode.getText();
230890
230890
  return nodeName === name;
@@ -231364,7 +231364,7 @@ var require_ts_morph = __commonJS({
231364
231364
  __name(isNodeAmbientOrInAmbientContext, "isNodeAmbientOrInAmbientContext");
231365
231365
  function checkNodeIsAmbient(node) {
231366
231366
  const isThisAmbient = (node.getCombinedModifierFlags() & common.ts.ModifierFlags.Ambient) === common.ts.ModifierFlags.Ambient;
231367
- return isThisAmbient || Node3.isInterfaceDeclaration(node) || Node3.isTypeAliasDeclaration(node);
231367
+ return isThisAmbient || Node4.isInterfaceDeclaration(node) || Node4.isTypeAliasDeclaration(node);
231368
231368
  }
231369
231369
  __name(checkNodeIsAmbient, "checkNodeIsAmbient");
231370
231370
  function isStringKind(kind) {
@@ -231799,15 +231799,15 @@ var require_ts_morph = __commonJS({
231799
231799
  #getSourceFileForLiteral(literal) {
231800
231800
  const parent = literal.getParentOrThrow();
231801
231801
  const grandParent = parent.getParent();
231802
- if (Node3.isImportDeclaration(parent) || Node3.isExportDeclaration(parent))
231802
+ if (Node4.isImportDeclaration(parent) || Node4.isExportDeclaration(parent))
231803
231803
  return parent.getModuleSpecifierSourceFile();
231804
- else if (grandParent != null && Node3.isImportEqualsDeclaration(grandParent))
231804
+ else if (grandParent != null && Node4.isImportEqualsDeclaration(grandParent))
231805
231805
  return grandParent.getExternalModuleReferenceSourceFile();
231806
- else if (grandParent != null && Node3.isImportTypeNode(grandParent)) {
231806
+ else if (grandParent != null && Node4.isImportTypeNode(grandParent)) {
231807
231807
  const importTypeSymbol = grandParent.getSymbol();
231808
231808
  if (importTypeSymbol != null)
231809
231809
  return ModuleUtils.getReferencedSourceFileFromSymbol(importTypeSymbol);
231810
- } else if (Node3.isCallExpression(parent)) {
231810
+ } else if (Node4.isCallExpression(parent)) {
231811
231811
  const literalSymbol = literal.getSymbol();
231812
231812
  if (literalSymbol != null)
231813
231813
  return ModuleUtils.getReferencedSourceFileFromSymbol(literalSymbol);
@@ -231906,7 +231906,7 @@ var require_ts_morph = __commonJS({
231906
231906
  FormattingKind2[FormattingKind2["None"] = 3] = "None";
231907
231907
  })(FormattingKind || (FormattingKind = {}));
231908
231908
  function getClassMemberFormatting(parent, member) {
231909
- if (Node3.isAmbientable(parent) && parent.isAmbient())
231909
+ if (Node4.isAmbientable(parent) && parent.isAmbient())
231910
231910
  return FormattingKind.Newline;
231911
231911
  if (hasBody$1(member))
231912
231912
  return FormattingKind.Blankline;
@@ -231914,9 +231914,9 @@ var require_ts_morph = __commonJS({
231914
231914
  }
231915
231915
  __name(getClassMemberFormatting, "getClassMemberFormatting");
231916
231916
  function hasBody$1(node) {
231917
- if (Node3.isBodyable(node) && node.getBody() != null)
231917
+ if (Node4.isBodyable(node) && node.getBody() != null)
231918
231918
  return true;
231919
- if (Node3.isBodied(node))
231919
+ if (Node4.isBodied(node))
231920
231920
  return true;
231921
231921
  return false;
231922
231922
  }
@@ -231941,11 +231941,11 @@ var require_ts_morph = __commonJS({
231941
231941
  }
231942
231942
  __name(getInterfaceMemberFormatting, "getInterfaceMemberFormatting");
231943
231943
  function hasBody(node) {
231944
- if (Node3.isBodyable(node) && node.hasBody())
231944
+ if (Node4.isBodyable(node) && node.hasBody())
231945
231945
  return true;
231946
- if (Node3.isBodied(node))
231946
+ if (Node4.isBodied(node))
231947
231947
  return true;
231948
- return Node3.isInterfaceDeclaration(node) || Node3.isClassDeclaration(node) || Node3.isEnumDeclaration(node);
231948
+ return Node4.isInterfaceDeclaration(node) || Node4.isClassDeclaration(node) || Node4.isEnumDeclaration(node);
231949
231949
  }
231950
231950
  __name(hasBody, "hasBody");
231951
231951
  function getStatementedNodeChildFormatting(parent, member) {
@@ -231959,9 +231959,9 @@ var require_ts_morph = __commonJS({
231959
231959
  }
231960
231960
  __name(getClausedNodeChildFormatting, "getClausedNodeChildFormatting");
231961
231961
  function getGeneralFormatting(parent, child) {
231962
- if (Node3.isClassDeclaration(parent))
231962
+ if (Node4.isClassDeclaration(parent))
231963
231963
  return getClassMemberFormatting(parent, child);
231964
- if (Node3.isInterfaceDeclaration(parent))
231964
+ if (Node4.isInterfaceDeclaration(parent))
231965
231965
  return getInterfaceMemberFormatting();
231966
231966
  return getStatementedNodeChildFormatting(parent, child);
231967
231967
  }
@@ -232153,9 +232153,9 @@ var require_ts_morph = __commonJS({
232153
232153
  function getInsertPosFromIndex(index, syntaxList, children) {
232154
232154
  if (index === 0) {
232155
232155
  const parent = syntaxList.getParentOrThrow();
232156
- if (Node3.isSourceFile(parent))
232156
+ if (Node4.isSourceFile(parent))
232157
232157
  return 0;
232158
- else if (Node3.isCaseClause(parent) || Node3.isDefaultClause(parent)) {
232158
+ else if (Node4.isCaseClause(parent) || Node4.isDefaultClause(parent)) {
232159
232159
  const colonToken = parent.getFirstChildByKindOrThrow(common.SyntaxKind.ColonToken);
232160
232160
  return colonToken.getEnd();
232161
232161
  }
@@ -232173,9 +232173,9 @@ var require_ts_morph = __commonJS({
232173
232173
  function getEndPosFromIndex(index, parent, children, fullText) {
232174
232174
  let endPos;
232175
232175
  if (index === children.length) {
232176
- if (Node3.isSourceFile(parent))
232176
+ if (Node4.isSourceFile(parent))
232177
232177
  endPos = parent.getEnd();
232178
- else if (Node3.isCaseClause(parent) || Node3.isDefaultClause(parent))
232178
+ else if (Node4.isCaseClause(parent) || Node4.isDefaultClause(parent))
232179
232179
  endPos = parent.getEnd();
232180
232180
  else {
232181
232181
  const parentContainer = getParentContainerOrThrow(parent);
@@ -232192,14 +232192,14 @@ var require_ts_morph = __commonJS({
232192
232192
  }
232193
232193
  __name(getEndPosFromIndex, "getEndPosFromIndex");
232194
232194
  function getParentContainerOrThrow(parent) {
232195
- if (Node3.isModuleDeclaration(parent)) {
232195
+ if (Node4.isModuleDeclaration(parent)) {
232196
232196
  const innerBody = parent._getInnerBody();
232197
232197
  if (innerBody == null)
232198
232198
  throw new common.errors.InvalidOperationError("This operation requires the module to have a body.");
232199
232199
  return innerBody;
232200
- } else if (Node3.isBodied(parent))
232200
+ } else if (Node4.isBodied(parent))
232201
232201
  return parent.getBody();
232202
- else if (Node3.isBodyable(parent))
232202
+ else if (Node4.isBodyable(parent))
232203
232203
  return parent.getBodyOrThrow();
232204
232204
  else
232205
232205
  return parent;
@@ -232254,7 +232254,7 @@ var require_ts_morph = __commonJS({
232254
232254
  const result = [];
232255
232255
  for (let i = 0; i < newLength; i++) {
232256
232256
  const currentChild = newChildren[index + i];
232257
- if (allowCommentNodes || !Node3.isCommentNode(currentChild))
232257
+ if (allowCommentNodes || !Node4.isCommentNode(currentChild))
232258
232258
  result.push(currentChild);
232259
232259
  }
232260
232260
  return result;
@@ -232748,7 +232748,7 @@ var require_ts_morph = __commonJS({
232748
232748
  this.#handler = handler;
232749
232749
  }
232750
232750
  handleNode(currentNode, newNode, newSourceFile) {
232751
- if (!Node3.isSourceFile(currentNode))
232751
+ if (!Node4.isSourceFile(currentNode))
232752
232752
  throw new common.errors.InvalidOperationError(`Can only use a TryOrForgetNodeHandler with a source file.`);
232753
232753
  try {
232754
232754
  this.#handler.handleNode(currentNode, newNode, newSourceFile);
@@ -232915,7 +232915,7 @@ var require_ts_morph = __commonJS({
232915
232915
  const lowerIndex = Math.min(newIndex, oldIndex);
232916
232916
  const upperIndex = Math.max(newIndex, oldIndex);
232917
232917
  const childrenInNewOrder = getChildrenInNewOrder();
232918
- const isParentSourceFile = Node3.isSourceFile(parent.getParentOrThrow());
232918
+ const isParentSourceFile = Node4.isSourceFile(parent.getParentOrThrow());
232919
232919
  let finalText = "";
232920
232920
  fillPrefixText();
232921
232921
  fillTextForIndex(lowerIndex);
@@ -233286,14 +233286,14 @@ var require_ts_morph = __commonJS({
233286
233286
  const bodyNode = getBodyNodeOrThrow();
233287
233287
  return [bodyNode.getStart() + 1, bodyNode.getEnd() - 1];
233288
233288
  function getBodyNodeOrThrow() {
233289
- if (Node3.isModuleDeclaration(node)) {
233289
+ if (Node4.isModuleDeclaration(node)) {
233290
233290
  const bodyNode2 = node._getInnerBody();
233291
233291
  if (bodyNode2 == null)
233292
233292
  throw new common.errors.InvalidOperationError("This operation requires the module to have a body.");
233293
233293
  return bodyNode2;
233294
- } else if (Node3.isBodied(node))
233294
+ } else if (Node4.isBodied(node))
233295
233295
  return node.getBody();
233296
- else if (Node3.isBodyable(node))
233296
+ else if (Node4.isBodyable(node))
233297
233297
  return node.getBodyOrThrow();
233298
233298
  else
233299
233299
  common.errors.throwNotImplementedForSyntaxKindError(node.getKind(), node);
@@ -233483,7 +233483,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
233483
233483
  __name(prependCommaAndSeparator, "prependCommaAndSeparator");
233484
233484
  function getPreviousNonCommentNode() {
233485
233485
  for (let i = insertIndex - 1; i >= 0; i--) {
233486
- if (!Node3.isCommentNode(currentNodes[i]))
233486
+ if (!Node4.isCommentNode(currentNodes[i]))
233487
233487
  return currentNodes[i];
233488
233488
  }
233489
233489
  return void 0;
@@ -233491,7 +233491,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
233491
233491
  __name(getPreviousNonCommentNode, "getPreviousNonCommentNode");
233492
233492
  function getNextNonCommentNode() {
233493
233493
  for (let i = insertIndex; i < currentNodes.length; i++) {
233494
- if (!Node3.isCommentNode(currentNodes[i]))
233494
+ if (!Node4.isCommentNode(currentNodes[i]))
233495
233495
  return currentNodes[i];
233496
233496
  }
233497
233497
  return void 0;
@@ -233549,7 +233549,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
233549
233549
  function getChild(child) {
233550
233550
  if (child == null)
233551
233551
  return child;
233552
- else if (Node3.isOverloadable(child))
233552
+ else if (Node4.isOverloadable(child))
233553
233553
  return child.getImplementation() || child;
233554
233554
  else
233555
233555
  return child;
@@ -233584,7 +233584,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
233584
233584
  let count = 0;
233585
233585
  for (let i = index - 1; i >= 0; i--) {
233586
233586
  const node = startChildren[i];
233587
- if (Node3.isCommentNode(node)) {
233587
+ if (Node4.isCommentNode(node)) {
233588
233588
  commentCount++;
233589
233589
  if (node.getText().startsWith("/**"))
233590
233590
  count = commentCount;
@@ -233662,12 +233662,12 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
233662
233662
  }
233663
233663
  __name(removeChildrenWithFormatting, "removeChildrenWithFormatting");
233664
233664
  function removeClassMember(classMember) {
233665
- if (Node3.isOverloadable(classMember)) {
233665
+ if (Node4.isOverloadable(classMember)) {
233666
233666
  if (classMember.isImplementation())
233667
233667
  removeClassMembers([...classMember.getOverloads(), classMember]);
233668
233668
  else {
233669
233669
  const parent = classMember.getParentOrThrow();
233670
- if (Node3.isAmbientable(parent) && parent.isAmbient())
233670
+ if (Node4.isAmbientable(parent) && parent.isAmbient())
233671
233671
  removeClassMembers([classMember]);
233672
233672
  else
233673
233673
  removeChildren({ children: [classMember], removeFollowingSpaces: true, removeFollowingNewLines: true });
@@ -234021,7 +234021,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
234021
234021
  return this.compilerObject.kind;
234022
234022
  }
234023
234023
  };
234024
- var Node3 = class _Node {
234024
+ var Node4 = class _Node {
234025
234025
  static {
234026
234026
  __name(this, "Node");
234027
234027
  }
@@ -234822,10 +234822,10 @@ Node text: ${this.#forgottenText}`;
234822
234822
  const fileText = compilerSourceFile.getFullText();
234823
234823
  let finalText = "";
234824
234824
  let lastPos = replaceRange[0];
234825
- for (const transform14 of transformations) {
234826
- finalText += fileText.substring(lastPos, transform14.start);
234827
- finalText += printer.printNode(common.ts.EmitHint.Unspecified, transform14.compilerNode, transform14.compilerNode.getSourceFile() ?? compilerSourceFile);
234828
- lastPos = transform14.end;
234825
+ for (const transform16 of transformations) {
234826
+ finalText += fileText.substring(lastPos, transform16.start);
234827
+ finalText += printer.printNode(common.ts.EmitHint.Unspecified, transform16.compilerNode, transform16.compilerNode.getSourceFile() ?? compilerSourceFile);
234828
+ lastPos = transform16.end;
234829
234829
  }
234830
234830
  finalText += fileText.substring(lastPos, replaceRange[1]);
234831
234831
  return finalText;
@@ -236739,7 +236739,7 @@ Node text: ${this.#forgottenText}`;
236739
236739
  }
236740
236740
  __name(getWrappedCondition, "getWrappedCondition");
236741
236741
  function insertWhiteSpaceTextAtPos(node, insertPos, textOrWriterFunction, methodName) {
236742
- const parent = Node3.isSourceFile(node) ? node.getChildSyntaxListOrThrow() : node.getParentSyntaxList() || node.getParentOrThrow();
236742
+ const parent = Node4.isSourceFile(node) ? node.getChildSyntaxListOrThrow() : node.getParentSyntaxList() || node.getParentOrThrow();
236743
236743
  const newText = getTextFromStringOrWriter(node._getWriterWithQueuedIndentation(), textOrWriterFunction);
236744
236744
  if (!/^[\s\r\n]*$/.test(newText))
236745
236745
  throw new common.errors.InvalidOperationError(`Cannot insert non-whitespace into ${methodName}.`);
@@ -236788,7 +236788,7 @@ Node text: ${this.#forgottenText}`;
236788
236788
  Scope["Protected"] = "protected";
236789
236789
  Scope["Private"] = "private";
236790
236790
  })(exports.Scope || (exports.Scope = {}));
236791
- var SyntaxList = class extends Node3 {
236791
+ var SyntaxList = class extends Node4 {
236792
236792
  static {
236793
236793
  __name(this, "SyntaxList");
236794
236794
  }
@@ -236810,12 +236810,12 @@ Node text: ${this.#forgottenText}`;
236810
236810
  else
236811
236811
  insertText = " " + insertText;
236812
236812
  } else {
236813
- if (index === 0 && Node3.isSourceFile(parent)) {
236813
+ if (index === 0 && Node4.isSourceFile(parent)) {
236814
236814
  if (!insertText.endsWith("\n"))
236815
236815
  insertText += newLineKind;
236816
236816
  } else {
236817
236817
  insertText = newLineKind + insertText;
236818
- if (!Node3.isSourceFile(parent) && index === initialChildCount && insertText.endsWith("\n"))
236818
+ if (!Node4.isSourceFile(parent) && index === initialChildCount && insertText.endsWith("\n"))
236819
236819
  insertText = insertText.replace(/\r?\n$/, "");
236820
236820
  }
236821
236821
  }
@@ -237075,7 +237075,7 @@ Node text: ${this.#forgottenText}`;
237075
237075
  if (value === hasExclamationToken)
237076
237076
  return this;
237077
237077
  if (value) {
237078
- if (Node3.isQuestionTokenable(this))
237078
+ if (Node4.isQuestionTokenable(this))
237079
237079
  this.setHasQuestionToken(false);
237080
237080
  const colonNode = this.getFirstChildByKind(common.SyntaxKind.ColonToken);
237081
237081
  if (colonNode == null)
@@ -237110,11 +237110,11 @@ Node text: ${this.#forgottenText}`;
237110
237110
  return this.getExportKeyword() != null;
237111
237111
  }
237112
237112
  getExportKeyword() {
237113
- if (Node3.isVariableDeclaration(this)) {
237113
+ if (Node4.isVariableDeclaration(this)) {
237114
237114
  const variableStatement = this.getVariableStatement();
237115
237115
  return variableStatement?.getExportKeyword();
237116
237116
  }
237117
- if (!Node3.isModifierable(this))
237117
+ if (!Node4.isModifierable(this))
237118
237118
  return throwForNotModifierableNode();
237119
237119
  return this.getFirstModifierByKind(common.SyntaxKind.ExportKeyword);
237120
237120
  }
@@ -237125,11 +237125,11 @@ Node text: ${this.#forgottenText}`;
237125
237125
  return this.getDefaultKeyword() != null;
237126
237126
  }
237127
237127
  getDefaultKeyword() {
237128
- if (Node3.isVariableDeclaration(this)) {
237128
+ if (Node4.isVariableDeclaration(this)) {
237129
237129
  const variableStatement = this.getVariableStatement();
237130
237130
  return variableStatement?.getDefaultKeyword();
237131
237131
  }
237132
- if (!Node3.isModifierable(this))
237132
+ if (!Node4.isModifierable(this))
237133
237133
  return throwForNotModifierableNode();
237134
237134
  return this.getFirstModifierByKind(common.SyntaxKind.DefaultKeyword);
237135
237135
  }
@@ -237189,7 +237189,7 @@ Node text: ${this.#forgottenText}`;
237189
237189
  setIsDefaultExport(value) {
237190
237190
  if (value === this.isDefaultExport())
237191
237191
  return this;
237192
- if (value && !Node3.isSourceFile(this.getParentOrThrow()))
237192
+ if (value && !Node4.isSourceFile(this.getParentOrThrow()))
237193
237193
  throw new common.errors.InvalidOperationError("The parent must be a source file in order to set this node as a default export.");
237194
237194
  const sourceFile = this.getSourceFile();
237195
237195
  const fileDefaultExportSymbol = sourceFile.getDefaultExportSymbol();
@@ -237197,7 +237197,7 @@ Node text: ${this.#forgottenText}`;
237197
237197
  sourceFile.removeDefaultExport(fileDefaultExportSymbol);
237198
237198
  if (!value)
237199
237199
  return this;
237200
- if (Node3.hasName(this) && shouldWriteAsSeparateStatement.call(this)) {
237200
+ if (Node4.hasName(this) && shouldWriteAsSeparateStatement.call(this)) {
237201
237201
  const parentSyntaxList = this.getFirstAncestorByKindOrThrow(common.SyntaxKind.SyntaxList);
237202
237202
  const name = this.getName();
237203
237203
  parentSyntaxList.insertChildText(this.getChildIndex() + 1, (writer) => {
@@ -237209,16 +237209,16 @@ Node text: ${this.#forgottenText}`;
237209
237209
  }
237210
237210
  return this;
237211
237211
  function shouldWriteAsSeparateStatement() {
237212
- if (Node3.isEnumDeclaration(this) || Node3.isModuleDeclaration(this) || Node3.isTypeAliasDeclaration(this))
237212
+ if (Node4.isEnumDeclaration(this) || Node4.isModuleDeclaration(this) || Node4.isTypeAliasDeclaration(this))
237213
237213
  return true;
237214
- if (Node3.isAmbientable(this) && this.isAmbient())
237214
+ if (Node4.isAmbientable(this) && this.isAmbient())
237215
237215
  return true;
237216
237216
  return false;
237217
237217
  }
237218
237218
  __name(shouldWriteAsSeparateStatement, "shouldWriteAsSeparateStatement");
237219
237219
  }
237220
237220
  setIsExported(value) {
237221
- if (Node3.isSourceFile(this.getParentOrThrow()))
237221
+ if (Node4.isSourceFile(this.getParentOrThrow()))
237222
237222
  this.toggleModifier("default", false);
237223
237223
  this.toggleModifier("export", value);
237224
237224
  return this;
@@ -240419,8 +240419,8 @@ Node text: ${this.#forgottenText}`;
240419
240419
  this._standardWrite(writer, info, () => {
240420
240420
  this._context.structurePrinterFactory.forImportDeclaration().printTexts(writer, structures);
240421
240421
  }, {
240422
- previousNewLine: /* @__PURE__ */ __name((previousMember) => Node3.isImportDeclaration(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
240423
- nextNewLine: /* @__PURE__ */ __name((nextMember) => Node3.isImportDeclaration(nextMember), "nextNewLine")
240422
+ previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isImportDeclaration(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
240423
+ nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isImportDeclaration(nextMember), "nextNewLine")
240424
240424
  });
240425
240425
  }, "write")
240426
240426
  });
@@ -240439,7 +240439,7 @@ Node text: ${this.#forgottenText}`;
240439
240439
  return common.errors.throwIfNullOrUndefined(this.getImportDeclaration(conditionOrModuleSpecifier), message ?? "Expected to find an import with the provided condition.", this);
240440
240440
  }
240441
240441
  getImportDeclarations() {
240442
- return this.getStatements().filter(Node3.isImportDeclaration);
240442
+ return this.getStatements().filter(Node4.isImportDeclaration);
240443
240443
  }
240444
240444
  addExportDeclaration(structure) {
240445
240445
  return this.addExportDeclarations([structure])[0];
@@ -240459,8 +240459,8 @@ Node text: ${this.#forgottenText}`;
240459
240459
  this._standardWrite(writer, info, () => {
240460
240460
  this._context.structurePrinterFactory.forExportDeclaration().printTexts(writer, structures);
240461
240461
  }, {
240462
- previousNewLine: /* @__PURE__ */ __name((previousMember) => Node3.isExportDeclaration(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
240463
- nextNewLine: /* @__PURE__ */ __name((nextMember) => Node3.isExportDeclaration(nextMember), "nextNewLine")
240462
+ previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isExportDeclaration(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
240463
+ nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isExportDeclaration(nextMember), "nextNewLine")
240464
240464
  });
240465
240465
  }, "write")
240466
240466
  });
@@ -240479,7 +240479,7 @@ Node text: ${this.#forgottenText}`;
240479
240479
  return common.errors.throwIfNullOrUndefined(this.getExportDeclaration(conditionOrModuleSpecifier), message ?? "Expected to find an export declaration with the provided condition.", this);
240480
240480
  }
240481
240481
  getExportDeclarations() {
240482
- return this.getStatements().filter(Node3.isExportDeclaration);
240482
+ return this.getStatements().filter(Node4.isExportDeclaration);
240483
240483
  }
240484
240484
  addExportAssignment(structure) {
240485
240485
  return this.addExportAssignments([structure])[0];
@@ -240499,8 +240499,8 @@ Node text: ${this.#forgottenText}`;
240499
240499
  this._standardWrite(writer, info, () => {
240500
240500
  this._context.structurePrinterFactory.forExportAssignment().printTexts(writer, structures);
240501
240501
  }, {
240502
- previousNewLine: /* @__PURE__ */ __name((previousMember) => Node3.isExportAssignment(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
240503
- nextNewLine: /* @__PURE__ */ __name((nextMember) => Node3.isExportAssignment(nextMember), "nextNewLine")
240502
+ previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isExportAssignment(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
240503
+ nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isExportAssignment(nextMember), "nextNewLine")
240504
240504
  });
240505
240505
  }, "write")
240506
240506
  });
@@ -240512,7 +240512,7 @@ Node text: ${this.#forgottenText}`;
240512
240512
  return common.errors.throwIfNullOrUndefined(this.getExportAssignment(condition), message ?? "Expected to find an export assignment with the provided condition.", this);
240513
240513
  }
240514
240514
  getExportAssignments() {
240515
- return this.getStatements().filter(Node3.isExportAssignment);
240515
+ return this.getStatements().filter(Node4.isExportAssignment);
240516
240516
  }
240517
240517
  getDefaultExportSymbol() {
240518
240518
  const sourceFileSymbol = this.getSymbol();
@@ -240543,23 +240543,23 @@ Node text: ${this.#forgottenText}`;
240543
240543
  }
240544
240544
  return result;
240545
240545
  function* getDeclarationHandlingImportsAndExports(declaration) {
240546
- if (Node3.isExportSpecifier(declaration)) {
240546
+ if (Node4.isExportSpecifier(declaration)) {
240547
240547
  for (const d of declaration.getLocalTargetDeclarations())
240548
240548
  yield* getDeclarationHandlingImportsAndExports(d);
240549
- } else if (Node3.isExportAssignment(declaration)) {
240549
+ } else if (Node4.isExportAssignment(declaration)) {
240550
240550
  const expression = declaration.getExpression();
240551
240551
  if (expression == null || expression.getKind() !== common.SyntaxKind.Identifier) {
240552
240552
  yield expression;
240553
240553
  return;
240554
240554
  }
240555
240555
  yield* getDeclarationsForSymbol(expression.getSymbol());
240556
- } else if (Node3.isImportSpecifier(declaration)) {
240556
+ } else if (Node4.isImportSpecifier(declaration)) {
240557
240557
  const identifier = declaration.getNameNode();
240558
240558
  const symbol = identifier.getSymbol();
240559
240559
  if (symbol == null)
240560
240560
  return;
240561
240561
  yield* getDeclarationsForSymbol(symbol.getAliasedSymbol() || symbol);
240562
- } else if (Node3.isImportClause(declaration)) {
240562
+ } else if (Node4.isImportClause(declaration)) {
240563
240563
  const identifier = declaration.getDefaultImport();
240564
240564
  if (identifier == null)
240565
240565
  return;
@@ -240567,7 +240567,7 @@ Node text: ${this.#forgottenText}`;
240567
240567
  if (symbol == null)
240568
240568
  return;
240569
240569
  yield* getDeclarationsForSymbol(symbol.getAliasedSymbol() || symbol);
240570
- } else if (Node3.isNamespaceImport(declaration) || Node3.isNamespaceExport(declaration)) {
240570
+ } else if (Node4.isNamespaceImport(declaration) || Node4.isNamespaceExport(declaration)) {
240571
240571
  const symbol = declaration.getNameNode().getSymbol();
240572
240572
  if (symbol == null)
240573
240573
  return;
@@ -240592,7 +240592,7 @@ Node text: ${this.#forgottenText}`;
240592
240592
  const declaration = defaultExportSymbol.getDeclarations()[0];
240593
240593
  if (declaration.compilerNode.kind === common.SyntaxKind.ExportAssignment)
240594
240594
  removeChildrenWithFormatting({ children: [declaration], getSiblingFormatting: /* @__PURE__ */ __name(() => FormattingKind.Newline, "getSiblingFormatting") });
240595
- else if (Node3.isModifierable(declaration)) {
240595
+ else if (Node4.isModifierable(declaration)) {
240596
240596
  declaration.toggleModifier("default", false);
240597
240597
  declaration.toggleModifier("export", false);
240598
240598
  }
@@ -240635,12 +240635,12 @@ Node text: ${this.#forgottenText}`;
240635
240635
  }
240636
240636
  __name(ReferenceFindableNode, "ReferenceFindableNode");
240637
240637
  function getNodeForReferences(node) {
240638
- if (Node3.isIdentifier(node) || Node3.isStringLiteral(node))
240638
+ if (Node4.isIdentifier(node) || Node4.isStringLiteral(node))
240639
240639
  return node;
240640
240640
  const nameNode = node.getNodeProperty("name");
240641
240641
  if (nameNode != null)
240642
240642
  return nameNode;
240643
- if (Node3.isExportable(node))
240643
+ if (Node4.isExportable(node))
240644
240644
  return node.getDefaultKeyword() || node;
240645
240645
  return node;
240646
240646
  }
@@ -240651,12 +240651,12 @@ Node text: ${this.#forgottenText}`;
240651
240651
  renameNode(getNodeToRename(this), newName, options);
240652
240652
  return this;
240653
240653
  function getNodeToRename(thisNode) {
240654
- if (Node3.isIdentifier(thisNode) || Node3.isPrivateIdentifier(thisNode) || Node3.isStringLiteral(thisNode))
240654
+ if (Node4.isIdentifier(thisNode) || Node4.isPrivateIdentifier(thisNode) || Node4.isStringLiteral(thisNode))
240655
240655
  return thisNode;
240656
240656
  else if (thisNode.getNameNode != null) {
240657
240657
  const node = thisNode.getNameNode();
240658
240658
  common.errors.throwIfNullOrUndefined(node, "Expected to find a name node when renaming.");
240659
- if (Node3.isArrayBindingPattern(node) || Node3.isObjectBindingPattern(node))
240659
+ if (Node4.isArrayBindingPattern(node) || Node4.isObjectBindingPattern(node))
240660
240660
  throw new common.errors.NotImplementedError(`Not implemented renameable scenario for ${node.getKindName()}.`);
240661
240661
  return node;
240662
240662
  } else {
@@ -240745,7 +240745,7 @@ Node text: ${this.#forgottenText}`;
240745
240745
  }
240746
240746
  __name(NameableNodeInternal, "NameableNodeInternal");
240747
240747
  function addNameNode(node, newName) {
240748
- if (Node3.isClassDeclaration(node) || Node3.isClassExpression(node)) {
240748
+ if (Node4.isClassDeclaration(node) || Node4.isClassExpression(node)) {
240749
240749
  const classKeyword = node.getFirstChildByKindOrThrow(common.SyntaxKind.ClassKeyword);
240750
240750
  insertIntoParentTextRange({
240751
240751
  insertPos: classKeyword.getEnd(),
@@ -240872,7 +240872,7 @@ Node text: ${this.#forgottenText}`;
240872
240872
  if (value === hasQuestionDotToken)
240873
240873
  return this;
240874
240874
  if (value) {
240875
- if (Node3.isPropertyAccessExpression(this))
240875
+ if (Node4.isPropertyAccessExpression(this))
240876
240876
  this.getFirstChildByKindOrThrow(common.SyntaxKind.DotToken).replaceWithText("?.");
240877
240877
  else {
240878
240878
  insertIntoParentTextRange({
@@ -240882,16 +240882,16 @@ Node text: ${this.#forgottenText}`;
240882
240882
  });
240883
240883
  }
240884
240884
  } else {
240885
- if (Node3.isPropertyAccessExpression(this))
240885
+ if (Node4.isPropertyAccessExpression(this))
240886
240886
  questionDotTokenNode.replaceWithText(".");
240887
240887
  else
240888
240888
  removeChildren({ children: [questionDotTokenNode] });
240889
240889
  }
240890
240890
  return this;
240891
240891
  function getInsertPos2() {
240892
- if (Node3.isCallExpression(this))
240892
+ if (Node4.isCallExpression(this))
240893
240893
  return this.getFirstChildByKindOrThrow(common.SyntaxKind.OpenParenToken).getStart();
240894
- if (Node3.isElementAccessExpression(this))
240894
+ if (Node4.isElementAccessExpression(this))
240895
240895
  return this.getFirstChildByKindOrThrow(common.SyntaxKind.OpenBracketToken).getStart();
240896
240896
  common.errors.throwNotImplementedForSyntaxKindError(this.compilerNode.kind);
240897
240897
  }
@@ -240928,7 +240928,7 @@ Node text: ${this.#forgottenText}`;
240928
240928
  if (value === hasQuestionToken)
240929
240929
  return this;
240930
240930
  if (value) {
240931
- if (Node3.isExclamationTokenable(this))
240931
+ if (Node4.isExclamationTokenable(this))
240932
240932
  this.setHasExclamationToken(false);
240933
240933
  insertIntoParentTextRange({
240934
240934
  insertPos: getInsertPos2.call(this),
@@ -240940,7 +240940,7 @@ Node text: ${this.#forgottenText}`;
240940
240940
  }
240941
240941
  return this;
240942
240942
  function getInsertPos2() {
240943
- if (Node3.hasName(this))
240943
+ if (Node4.hasName(this))
240944
240944
  return this.getNameNode().getEnd();
240945
240945
  const colonNode = this.getFirstChildByKind(common.SyntaxKind.ColonToken);
240946
240946
  if (colonNode != null)
@@ -241066,7 +241066,7 @@ Node text: ${this.#forgottenText}`;
241066
241066
  const scope = getScopeForNode(this);
241067
241067
  if (scope != null)
241068
241068
  return scope;
241069
- if (Node3.isParameterDeclaration(this) && this.isReadonly())
241069
+ if (Node4.isParameterDeclaration(this) && this.isReadonly())
241070
241070
  return exports.Scope.Public;
241071
241071
  return void 0;
241072
241072
  }
@@ -241222,14 +241222,14 @@ Node text: ${this.#forgottenText}`;
241222
241222
  __name(TextInsertableNode, "TextInsertableNode");
241223
241223
  function getValidRange(thisNode) {
241224
241224
  const rangeNode = getRangeNode();
241225
- const openBrace = Node3.isSourceFile(rangeNode) ? void 0 : rangeNode.getPreviousSiblingIfKind(common.SyntaxKind.OpenBraceToken);
241225
+ const openBrace = Node4.isSourceFile(rangeNode) ? void 0 : rangeNode.getPreviousSiblingIfKind(common.SyntaxKind.OpenBraceToken);
241226
241226
  const closeBrace = openBrace == null ? void 0 : rangeNode.getNextSiblingIfKind(common.SyntaxKind.CloseBraceToken);
241227
241227
  if (openBrace != null && closeBrace != null)
241228
241228
  return [openBrace.getEnd(), closeBrace.getStart()];
241229
241229
  else
241230
241230
  return [rangeNode.getPos(), rangeNode.getEnd()];
241231
241231
  function getRangeNode() {
241232
- if (Node3.isSourceFile(thisNode))
241232
+ if (Node4.isSourceFile(thisNode))
241233
241233
  return thisNode;
241234
241234
  return thisNode.getChildSyntaxListOrThrow();
241235
241235
  }
@@ -241754,7 +241754,7 @@ Node text: ${this.#forgottenText}`;
241754
241754
  const namedNode = node;
241755
241755
  if (namedNode.getNameNode != null)
241756
241756
  return namedNode.getNameNode().getEnd();
241757
- else if (Node3.isCallSignatureDeclaration(node) || Node3.isFunctionTypeNode(node))
241757
+ else if (Node4.isCallSignatureDeclaration(node) || Node4.isFunctionTypeNode(node))
241758
241758
  return node.getFirstChildByKindOrThrow(common.SyntaxKind.OpenParenToken).getStart();
241759
241759
  else
241760
241760
  throw new common.errors.NotImplementedError(`Not implemented scenario inserting type parameters for node with kind ${node.getKindName()}.`);
@@ -241768,7 +241768,7 @@ Node text: ${this.#forgottenText}`;
241768
241768
  };
241769
241769
  }
241770
241770
  __name(UnwrappableNode, "UnwrappableNode");
241771
- var ArrayBindingPattern = class extends Node3 {
241771
+ var ArrayBindingPattern = class extends Node4 {
241772
241772
  static {
241773
241773
  __name(this, "ArrayBindingPattern");
241774
241774
  }
@@ -241777,7 +241777,7 @@ Node text: ${this.#forgottenText}`;
241777
241777
  }
241778
241778
  };
241779
241779
  var createBase$F = /* @__PURE__ */ __name((ctor) => DotDotDotTokenableNode(InitializerExpressionableNode(BindingNamedNode(ctor))), "createBase$F");
241780
- var BindingElementBase = createBase$F(Node3);
241780
+ var BindingElementBase = createBase$F(Node4);
241781
241781
  var BindingElement = class extends BindingElementBase {
241782
241782
  static {
241783
241783
  __name(this, "BindingElement");
@@ -241789,7 +241789,7 @@ Node text: ${this.#forgottenText}`;
241789
241789
  return this._getNodeFromCompilerNodeIfExists(this.compilerNode.propertyName);
241790
241790
  }
241791
241791
  };
241792
- var ObjectBindingPattern2 = class extends Node3 {
241792
+ var ObjectBindingPattern2 = class extends Node4 {
241793
241793
  static {
241794
241794
  __name(this, "ObjectBindingPattern");
241795
241795
  }
@@ -241826,7 +241826,7 @@ Node text: ${this.#forgottenText}`;
241826
241826
  };
241827
241827
  }
241828
241828
  __name(AbstractableNode, "AbstractableNode");
241829
- var Expression = class extends Node3 {
241829
+ var Expression = class extends Node4 {
241830
241830
  static {
241831
241831
  __name(this, "Expression");
241832
241832
  }
@@ -242131,7 +242131,7 @@ Node text: ${this.#forgottenText}`;
242131
242131
  __name(this, "NonNullExpression");
242132
242132
  }
242133
242133
  };
242134
- var ObjectLiteralElement = class extends Node3 {
242134
+ var ObjectLiteralElement = class extends Node4 {
242135
242135
  static {
242136
242136
  __name(this, "ObjectLiteralElement");
242137
242137
  }
@@ -242544,7 +242544,7 @@ Node text: ${this.#forgottenText}`;
242544
242544
  __name(this, "YieldExpression");
242545
242545
  }
242546
242546
  };
242547
- var StatementBase = ChildOrderableNode(Node3);
242547
+ var StatementBase = ChildOrderableNode(Node4);
242548
242548
  var Statement = class extends StatementBase {
242549
242549
  static {
242550
242550
  __name(this, "Statement");
@@ -242588,7 +242588,7 @@ Node text: ${this.#forgottenText}`;
242588
242588
  return getChildSyntaxList.call(this).insertChildText(index, writerFunction);
242589
242589
  function getChildSyntaxList() {
242590
242590
  const childSyntaxList = this.getChildSyntaxListOrThrow();
242591
- if (Node3.isCaseClause(this) || Node3.isDefaultClause(this)) {
242591
+ if (Node4.isCaseClause(this) || Node4.isDefaultClause(this)) {
242592
242592
  const block = childSyntaxList.getFirstChildIfKind(common.SyntaxKind.Block);
242593
242593
  if (block != null)
242594
242594
  return block.getChildSyntaxListOrThrow();
@@ -242629,7 +242629,7 @@ Node text: ${this.#forgottenText}`;
242629
242629
  });
242630
242630
  }
242631
242631
  getClasses() {
242632
- return this.getStatements().filter(Node3.isClassDeclaration);
242632
+ return this.getStatements().filter(Node4.isClassDeclaration);
242633
242633
  }
242634
242634
  getClass(nameOrFindFunction) {
242635
242635
  return getNodeByNameOrFindFunction(this.getClasses(), nameOrFindFunction);
@@ -242659,7 +242659,7 @@ Node text: ${this.#forgottenText}`;
242659
242659
  });
242660
242660
  }
242661
242661
  getEnums() {
242662
- return this.getStatements().filter(Node3.isEnumDeclaration);
242662
+ return this.getStatements().filter(Node4.isEnumDeclaration);
242663
242663
  }
242664
242664
  getEnum(nameOrFindFunction) {
242665
242665
  return getNodeByNameOrFindFunction(this.getEnums(), nameOrFindFunction);
@@ -242687,14 +242687,14 @@ Node text: ${this.#forgottenText}`;
242687
242687
  isAmbient: isNodeAmbientOrInAmbientContext(this)
242688
242688
  }).printTexts(writer, structures);
242689
242689
  }, {
242690
- previousNewLine: /* @__PURE__ */ __name((previousMember) => structures[0].hasDeclareKeyword === true && Node3.isFunctionDeclaration(previousMember) && previousMember.getBody() == null, "previousNewLine"),
242691
- nextNewLine: /* @__PURE__ */ __name((nextMember) => structures[structures.length - 1].hasDeclareKeyword === true && Node3.isFunctionDeclaration(nextMember) && nextMember.getBody() == null, "nextNewLine")
242690
+ previousNewLine: /* @__PURE__ */ __name((previousMember) => structures[0].hasDeclareKeyword === true && Node4.isFunctionDeclaration(previousMember) && previousMember.getBody() == null, "previousNewLine"),
242691
+ nextNewLine: /* @__PURE__ */ __name((nextMember) => structures[structures.length - 1].hasDeclareKeyword === true && Node4.isFunctionDeclaration(nextMember) && nextMember.getBody() == null, "nextNewLine")
242692
242692
  });
242693
242693
  }, "write")
242694
242694
  });
242695
242695
  }
242696
242696
  getFunctions() {
242697
- return this.getStatements().filter(Node3.isFunctionDeclaration).filter((f) => f.isAmbient() || f.isImplementation());
242697
+ return this.getStatements().filter(Node4.isFunctionDeclaration).filter((f) => f.isAmbient() || f.isImplementation());
242698
242698
  }
242699
242699
  getFunction(nameOrFindFunction) {
242700
242700
  return getNodeByNameOrFindFunction(this.getFunctions(), nameOrFindFunction);
@@ -242724,7 +242724,7 @@ Node text: ${this.#forgottenText}`;
242724
242724
  });
242725
242725
  }
242726
242726
  getInterfaces() {
242727
- return this.getStatements().filter(Node3.isInterfaceDeclaration);
242727
+ return this.getStatements().filter(Node4.isInterfaceDeclaration);
242728
242728
  }
242729
242729
  getInterface(nameOrFindFunction) {
242730
242730
  return getNodeByNameOrFindFunction(this.getInterfaces(), nameOrFindFunction);
@@ -242754,7 +242754,7 @@ Node text: ${this.#forgottenText}`;
242754
242754
  });
242755
242755
  }
242756
242756
  getModules() {
242757
- return this.getStatements().filter(Node3.isModuleDeclaration);
242757
+ return this.getStatements().filter(Node4.isModuleDeclaration);
242758
242758
  }
242759
242759
  getModule(nameOrFindFunction) {
242760
242760
  return getNodeByNameOrFindFunction(this.getModules(), nameOrFindFunction);
@@ -242780,14 +242780,14 @@ Node text: ${this.#forgottenText}`;
242780
242780
  this._standardWrite(writer, info, () => {
242781
242781
  this._context.structurePrinterFactory.forTypeAliasDeclaration().printTexts(writer, structures);
242782
242782
  }, {
242783
- previousNewLine: /* @__PURE__ */ __name((previousMember) => Node3.isTypeAliasDeclaration(previousMember), "previousNewLine"),
242784
- nextNewLine: /* @__PURE__ */ __name((nextMember) => Node3.isTypeAliasDeclaration(nextMember), "nextNewLine")
242783
+ previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isTypeAliasDeclaration(previousMember), "previousNewLine"),
242784
+ nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isTypeAliasDeclaration(nextMember), "nextNewLine")
242785
242785
  });
242786
242786
  }, "write")
242787
242787
  });
242788
242788
  }
242789
242789
  getTypeAliases() {
242790
- return this.getStatements().filter(Node3.isTypeAliasDeclaration);
242790
+ return this.getStatements().filter(Node4.isTypeAliasDeclaration);
242791
242791
  }
242792
242792
  getTypeAlias(nameOrFindFunction) {
242793
242793
  return getNodeByNameOrFindFunction(this.getTypeAliases(), nameOrFindFunction);
@@ -242796,7 +242796,7 @@ Node text: ${this.#forgottenText}`;
242796
242796
  return common.errors.throwIfNullOrUndefined(this.getTypeAlias(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("type alias", nameOrFindFunction));
242797
242797
  }
242798
242798
  getVariableStatements() {
242799
- return this.getStatements().filter(Node3.isVariableStatement);
242799
+ return this.getStatements().filter(Node4.isVariableStatement);
242800
242800
  }
242801
242801
  getVariableStatement(nameOrFindFunction) {
242802
242802
  return this.getVariableStatements().find(getFindFunction());
@@ -242828,8 +242828,8 @@ Node text: ${this.#forgottenText}`;
242828
242828
  this._standardWrite(writer, info, () => {
242829
242829
  this._context.structurePrinterFactory.forVariableStatement().printTexts(writer, structures);
242830
242830
  }, {
242831
- previousNewLine: /* @__PURE__ */ __name((previousMember) => Node3.isVariableStatement(previousMember), "previousNewLine"),
242832
- nextNewLine: /* @__PURE__ */ __name((nextMember) => Node3.isVariableStatement(nextMember), "nextNewLine")
242831
+ previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isVariableStatement(previousMember), "previousNewLine"),
242832
+ nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isVariableStatement(nextMember), "nextNewLine")
242833
242833
  });
242834
242834
  }, "write")
242835
242835
  });
@@ -242848,11 +242848,11 @@ Node text: ${this.#forgottenText}`;
242848
242848
  }
242849
242849
  getStructure() {
242850
242850
  const structure = {};
242851
- if (Node3.isBodyable(this) && !this.hasBody())
242851
+ if (Node4.isBodyable(this) && !this.hasBody())
242852
242852
  structure.statements = void 0;
242853
242853
  else {
242854
242854
  structure.statements = this.getStatements().map((s) => {
242855
- if (Node3._hasStructure(s))
242855
+ if (Node4._hasStructure(s))
242856
242856
  return s.getStructure();
242857
242857
  return s.getText({ trimLeadingIndentation: true });
242858
242858
  });
@@ -242860,7 +242860,7 @@ Node text: ${this.#forgottenText}`;
242860
242860
  return callBaseGetStructure(Base.prototype, this, structure);
242861
242861
  }
242862
242862
  set(structure) {
242863
- if (Node3.isBodyable(this) && structure.statements == null && structure.hasOwnProperty(common.nameof(structure, "statements")))
242863
+ if (Node4.isBodyable(this) && structure.statements == null && structure.hasOwnProperty(common.nameof(structure, "statements")))
242864
242864
  this.removeBody();
242865
242865
  else if (structure.statements != null) {
242866
242866
  const statementCount = this._getCompilerStatementsWithComments().length;
@@ -242881,17 +242881,17 @@ Node text: ${this.#forgottenText}`;
242881
242881
  }
242882
242882
  }
242883
242883
  _getCompilerStatementsContainer() {
242884
- if (Node3.isSourceFile(this) || Node3.isCaseClause(this) || Node3.isDefaultClause(this))
242884
+ if (Node4.isSourceFile(this) || Node4.isCaseClause(this) || Node4.isDefaultClause(this))
242885
242885
  return this.compilerNode;
242886
- else if (Node3.isModuleDeclaration(this)) {
242886
+ else if (Node4.isModuleDeclaration(this)) {
242887
242887
  const body = this._getInnerBody();
242888
242888
  if (body == null)
242889
242889
  return void 0;
242890
242890
  else
242891
242891
  return body.compilerNode;
242892
- } else if (Node3.isBodyable(this) || Node3.isBodied(this))
242892
+ } else if (Node4.isBodyable(this) || Node4.isBodied(this))
242893
242893
  return this.getBody()?.compilerNode;
242894
- else if (Node3.isBlock(this) || Node3.isModuleBlock(this))
242894
+ else if (Node4.isBlock(this) || Node4.isModuleBlock(this))
242895
242895
  return this.compilerNode;
242896
242896
  else
242897
242897
  throw new common.errors.NotImplementedError(`Could not find the statements for node kind: ${this.getKindName()}, text: ${this.getText()}`);
@@ -242908,7 +242908,7 @@ Node text: ${this.#forgottenText}`;
242908
242908
  });
242909
242909
  }
242910
242910
  _standardWrite(writer, info, writeStructures, opts = {}) {
242911
- if (info.previousMember != null && (opts.previousNewLine == null || !opts.previousNewLine(info.previousMember)) && !Node3.isCommentNode(info.previousMember)) {
242911
+ if (info.previousMember != null && (opts.previousNewLine == null || !opts.previousNewLine(info.previousMember)) && !Node4.isCommentNode(info.previousMember)) {
242912
242912
  writer.blankLine();
242913
242913
  } else if (!info.isStartOfFile) {
242914
242914
  writer.newLineIfLastNot();
@@ -242923,7 +242923,7 @@ Node text: ${this.#forgottenText}`;
242923
242923
  }
242924
242924
  __name(StatementedNode, "StatementedNode");
242925
242925
  function addBodyIfNotExists(node) {
242926
- if (Node3.isBodyable(node) && !node.hasBody())
242926
+ if (Node4.isBodyable(node) && !node.hasBody())
242927
242927
  node.addBody();
242928
242928
  }
242929
242929
  __name(addBodyIfNotExists, "addBodyIfNotExists");
@@ -242945,7 +242945,7 @@ Node text: ${this.#forgottenText}`;
242945
242945
  return common.errors.throwIfNullOrUndefined(this.getLabel(), message ?? "Expected to find a label.", this);
242946
242946
  }
242947
242947
  };
242948
- var CaseBlockBase = TextInsertableNode(Node3);
242948
+ var CaseBlockBase = TextInsertableNode(Node4);
242949
242949
  var CaseBlock = class extends CaseBlockBase {
242950
242950
  static {
242951
242951
  __name(this, "CaseBlock");
@@ -242966,7 +242966,7 @@ Node text: ${this.#forgottenText}`;
242966
242966
  }
242967
242967
  };
242968
242968
  var createBase$u = /* @__PURE__ */ __name((ctor) => JSDocableNode(ExpressionedNode(TextInsertableNode(StatementedNode(ctor)))), "createBase$u");
242969
- var CaseClauseBase = createBase$u(Node3);
242969
+ var CaseClauseBase = createBase$u(Node4);
242970
242970
  var CaseClause = class extends CaseClauseBase {
242971
242971
  static {
242972
242972
  __name(this, "CaseClause");
@@ -242975,7 +242975,7 @@ Node text: ${this.#forgottenText}`;
242975
242975
  removeClausedNodeChild(this);
242976
242976
  }
242977
242977
  };
242978
- var CatchClauseBase = Node3;
242978
+ var CatchClauseBase = Node4;
242979
242979
  var CatchClause = class extends CatchClauseBase {
242980
242980
  static {
242981
242981
  __name(this, "CatchClause");
@@ -243013,7 +243013,7 @@ Node text: ${this.#forgottenText}`;
243013
243013
  }
243014
243014
  };
243015
243015
  var createBase$t = /* @__PURE__ */ __name((ctor) => TextInsertableNode(StatementedNode(ctor)), "createBase$t");
243016
- var DefaultClauseBase = createBase$t(Node3);
243016
+ var DefaultClauseBase = createBase$t(Node4);
243017
243017
  var DefaultClause = class extends DefaultClauseBase {
243018
243018
  static {
243019
243019
  __name(this, "DefaultClause");
@@ -243103,7 +243103,7 @@ Node text: ${this.#forgottenText}`;
243103
243103
  }
243104
243104
  remove() {
243105
243105
  const nodes = [];
243106
- if (Node3.isIfStatement(this.getParentOrThrow()))
243106
+ if (Node4.isIfStatement(this.getParentOrThrow()))
243107
243107
  nodes.push(this.getPreviousSiblingIfKindOrThrow(common.SyntaxKind.ElseKeyword));
243108
243108
  nodes.push(this);
243109
243109
  removeStatementedNodeChildren(nodes);
@@ -243241,7 +243241,7 @@ Node text: ${this.#forgottenText}`;
243241
243241
  }
243242
243242
  getNamespaceExport() {
243243
243243
  const exportClause = this.getNodeProperty("exportClause");
243244
- return exportClause != null && Node3.isNamespaceExport(exportClause) ? exportClause : void 0;
243244
+ return exportClause != null && Node4.isNamespaceExport(exportClause) ? exportClause : void 0;
243245
243245
  }
243246
243246
  getNamespaceExportOrThrow(message) {
243247
243247
  return common.errors.throwIfNullOrUndefined(this.getNamespaceExport(), message ?? "Expected to find a namespace export.", this);
@@ -243259,7 +243259,7 @@ Node text: ${this.#forgottenText}`;
243259
243259
  textLength: 1
243260
243260
  }
243261
243261
  });
243262
- } else if (Node3.isNamespaceExport(exportClause))
243262
+ } else if (Node4.isNamespaceExport(exportClause))
243263
243263
  exportClause.getNameNode().replaceWithText(name);
243264
243264
  else {
243265
243265
  insertIntoParentTextRange({
@@ -243297,7 +243297,7 @@ Node text: ${this.#forgottenText}`;
243297
243297
  const moduleSpecifier = this._getNodeFromCompilerNodeIfExists(this.compilerNode.moduleSpecifier);
243298
243298
  if (moduleSpecifier == null)
243299
243299
  return void 0;
243300
- if (!Node3.isStringLiteral(moduleSpecifier))
243300
+ if (!Node4.isStringLiteral(moduleSpecifier))
243301
243301
  throw new common.errors.InvalidOperationError("Expected the module specifier to be a string literal.");
243302
243302
  return moduleSpecifier;
243303
243303
  }
@@ -243316,7 +243316,7 @@ Node text: ${this.#forgottenText}`;
243316
243316
  if (symbol == null)
243317
243317
  return void 0;
243318
243318
  const declaration = symbol.getDeclarations()[0];
243319
- return declaration != null && Node3.isSourceFile(declaration) ? declaration : void 0;
243319
+ return declaration != null && Node4.isSourceFile(declaration) ? declaration : void 0;
243320
243320
  }
243321
243321
  isModuleSpecifierRelative() {
243322
243322
  const moduleSpecifierValue = this.getModuleSpecifierValue();
@@ -243498,7 +243498,7 @@ Node text: ${this.#forgottenText}`;
243498
243498
  });
243499
243499
  }
243500
243500
  __name(setEmptyNamedExport, "setEmptyNamedExport");
243501
- var ExportSpecifierBase = Node3;
243501
+ var ExportSpecifierBase = Node4;
243502
243502
  var ExportSpecifier = class extends ExportSpecifierBase {
243503
243503
  static {
243504
243504
  __name(this, "ExportSpecifier");
@@ -243634,7 +243634,7 @@ Node text: ${this.#forgottenText}`;
243634
243634
  }
243635
243635
  getStructure() {
243636
243636
  const alias = this.getAliasNode();
243637
- return callBaseGetStructure(Node3.prototype, this, {
243637
+ return callBaseGetStructure(Node4.prototype, this, {
243638
243638
  kind: exports.StructureKind.ExportSpecifier,
243639
243639
  alias: alias ? alias.getText() : void 0,
243640
243640
  name: this.getNameNode().getText(),
@@ -243642,7 +243642,7 @@ Node text: ${this.#forgottenText}`;
243642
243642
  });
243643
243643
  }
243644
243644
  };
243645
- var ExternalModuleReferenceBase = ExpressionableNode(Node3);
243645
+ var ExternalModuleReferenceBase = ExpressionableNode(Node4);
243646
243646
  var ExternalModuleReference = class extends ExternalModuleReferenceBase {
243647
243647
  static {
243648
243648
  __name(this, "ExternalModuleReference");
@@ -243652,7 +243652,7 @@ Node text: ${this.#forgottenText}`;
243652
243652
  }
243653
243653
  isRelative() {
243654
243654
  const expression = this.getExpression();
243655
- if (expression == null || !Node3.isStringLiteral(expression))
243655
+ if (expression == null || !Node4.isStringLiteral(expression))
243656
243656
  return false;
243657
243657
  return ModuleUtils.isModuleSpecifierRelative(expression.getLiteralText());
243658
243658
  }
@@ -243666,7 +243666,7 @@ Node text: ${this.#forgottenText}`;
243666
243666
  return ModuleUtils.getReferencedSourceFileFromSymbol(symbol);
243667
243667
  }
243668
243668
  };
243669
- var ImportAttributeBase = ImportAttributeNamedNode(Node3);
243669
+ var ImportAttributeBase = ImportAttributeNamedNode(Node4);
243670
243670
  var ImportAttribute = class extends ImportAttributeBase {
243671
243671
  static {
243672
243672
  __name(this, "ImportAttribute");
@@ -243687,7 +243687,7 @@ Node text: ${this.#forgottenText}`;
243687
243687
  });
243688
243688
  }
243689
243689
  };
243690
- var ImportAttributesBase = Node3;
243690
+ var ImportAttributesBase = Node4;
243691
243691
  var ImportAttributes = class extends ImportAttributesBase {
243692
243692
  static {
243693
243693
  __name(this, "ImportAttributes");
@@ -243710,7 +243710,7 @@ Node text: ${this.#forgottenText}`;
243710
243710
  });
243711
243711
  }
243712
243712
  };
243713
- var ImportClauseBase = Node3;
243713
+ var ImportClauseBase = Node4;
243714
243714
  var ImportClause = class extends ImportClauseBase {
243715
243715
  static {
243716
243716
  __name(this, "ImportClause");
@@ -243779,13 +243779,13 @@ Node text: ${this.#forgottenText}`;
243779
243779
  }
243780
243780
  getNamespaceImport() {
243781
243781
  const namedBindings = this.getNamedBindings();
243782
- if (namedBindings == null || !Node3.isNamespaceImport(namedBindings))
243782
+ if (namedBindings == null || !Node4.isNamespaceImport(namedBindings))
243783
243783
  return void 0;
243784
243784
  return namedBindings.getNameNode();
243785
243785
  }
243786
243786
  getNamedImports() {
243787
243787
  const namedBindings = this.getNamedBindings();
243788
- if (namedBindings == null || !Node3.isNamedImports(namedBindings))
243788
+ if (namedBindings == null || !Node4.isNamedImports(namedBindings))
243789
243789
  return [];
243790
243790
  return namedBindings.getElements();
243791
243791
  }
@@ -243833,7 +243833,7 @@ Node text: ${this.#forgottenText}`;
243833
243833
  }
243834
243834
  getModuleSpecifier() {
243835
243835
  const moduleSpecifier = this._getNodeFromCompilerNode(this.compilerNode.moduleSpecifier);
243836
- if (!Node3.isStringLiteral(moduleSpecifier))
243836
+ if (!Node4.isStringLiteral(moduleSpecifier))
243837
243837
  throw new common.errors.InvalidOperationError("Expected the module specifier to be a string literal.");
243838
243838
  return moduleSpecifier;
243839
243839
  }
@@ -244202,14 +244202,14 @@ Node text: ${this.#forgottenText}`;
244202
244202
  }
244203
244203
  isExternalModuleReferenceRelative() {
244204
244204
  const moduleReference = this.getModuleReference();
244205
- if (!Node3.isExternalModuleReference(moduleReference))
244205
+ if (!Node4.isExternalModuleReference(moduleReference))
244206
244206
  return false;
244207
244207
  return moduleReference.isRelative();
244208
244208
  }
244209
244209
  setExternalModuleReference(textOrSourceFile) {
244210
244210
  const text = typeof textOrSourceFile === "string" ? textOrSourceFile : this._sourceFile.getRelativePathAsModuleSpecifierTo(textOrSourceFile);
244211
244211
  const moduleReference = this.getModuleReference();
244212
- if (Node3.isExternalModuleReference(moduleReference) && moduleReference.getExpression() != null)
244212
+ if (Node4.isExternalModuleReference(moduleReference) && moduleReference.getExpression() != null)
244213
244213
  moduleReference.getExpressionOrThrow().replaceWithText((writer) => writer.quote(text));
244214
244214
  else
244215
244215
  moduleReference.replaceWithText((writer) => writer.write("require(").quote(text).write(")"));
@@ -244220,12 +244220,12 @@ Node text: ${this.#forgottenText}`;
244220
244220
  }
244221
244221
  getExternalModuleReferenceSourceFile() {
244222
244222
  const moduleReference = this.getModuleReference();
244223
- if (!Node3.isExternalModuleReference(moduleReference))
244223
+ if (!Node4.isExternalModuleReference(moduleReference))
244224
244224
  return void 0;
244225
244225
  return moduleReference.getReferencedSourceFile();
244226
244226
  }
244227
244227
  };
244228
- var ImportSpecifierBase = Node3;
244228
+ var ImportSpecifierBase = Node4;
244229
244229
  var ImportSpecifier = class extends ImportSpecifierBase {
244230
244230
  static {
244231
244231
  __name(this, "ImportSpecifier");
@@ -244370,7 +244370,7 @@ Node text: ${this.#forgottenText}`;
244370
244370
  }
244371
244371
  getParentModule() {
244372
244372
  let parent = this.getParentOrThrow();
244373
- if (!Node3.isModuleBlock(parent))
244373
+ if (!Node4.isModuleBlock(parent))
244374
244374
  return void 0;
244375
244375
  while (parent.getParentOrThrow().getKind() === common.SyntaxKind.ModuleDeclaration)
244376
244376
  parent = parent.getParentOrThrow();
@@ -244433,7 +244433,7 @@ Node text: ${this.#forgottenText}`;
244433
244433
  }
244434
244434
  getNameNodes() {
244435
244435
  const name = this.getNameNode();
244436
- if (Node3.isStringLiteral(name))
244436
+ if (Node4.isStringLiteral(name))
244437
244437
  return name;
244438
244438
  else {
244439
244439
  const nodes = [];
@@ -244505,7 +244505,7 @@ Node text: ${this.#forgottenText}`;
244505
244505
  }
244506
244506
  _getInnerBody() {
244507
244507
  let node = this.getBody();
244508
- while (node != null && Node3.isBodyable(node) && node.compilerNode.statements == null)
244508
+ while (node != null && Node4.isBodyable(node) && node.compilerNode.statements == null)
244509
244509
  node = node.getBody();
244510
244510
  return node;
244511
244511
  }
@@ -244522,7 +244522,7 @@ Node text: ${this.#forgottenText}`;
244522
244522
  namespaceDec.setHasDeclareKeyword(true);
244523
244523
  }
244524
244524
  __name(changeToAmbientModuleIfNecessary, "changeToAmbientModuleIfNecessary");
244525
- var NamedExportsBase = Node3;
244525
+ var NamedExportsBase = Node4;
244526
244526
  var NamedExports = class extends NamedExportsBase {
244527
244527
  static {
244528
244528
  __name(this, "NamedExports");
@@ -244531,7 +244531,7 @@ Node text: ${this.#forgottenText}`;
244531
244531
  return this.compilerNode.elements.map((e) => this._getNodeFromCompilerNode(e));
244532
244532
  }
244533
244533
  };
244534
- var NamedImportsBase = Node3;
244534
+ var NamedImportsBase = Node4;
244535
244535
  var NamedImports = class extends NamedImportsBase {
244536
244536
  static {
244537
244537
  __name(this, "NamedImports");
@@ -244540,7 +244540,7 @@ Node text: ${this.#forgottenText}`;
244540
244540
  return this.compilerNode.elements.map((e) => this._getNodeFromCompilerNode(e));
244541
244541
  }
244542
244542
  };
244543
- var NamespaceExportBase = RenameableNode(Node3);
244543
+ var NamespaceExportBase = RenameableNode(Node4);
244544
244544
  var NamespaceExport = class extends NamespaceExportBase {
244545
244545
  static {
244546
244546
  __name(this, "NamespaceExport");
@@ -244566,7 +244566,7 @@ Node text: ${this.#forgottenText}`;
244566
244566
  return this._getNodeFromCompilerNode(this.compilerNode.name);
244567
244567
  }
244568
244568
  };
244569
- var NamespaceImportBase = RenameableNode(Node3);
244569
+ var NamespaceImportBase = RenameableNode(Node4);
244570
244570
  var NamespaceImport = class extends NamespaceImportBase {
244571
244571
  static {
244572
244572
  __name(this, "NamespaceImport");
@@ -244644,8 +244644,8 @@ Node text: ${this.#forgottenText}`;
244644
244644
  return useValue ? value : void 0;
244645
244645
  }
244646
244646
  __name(__runInitializers, "__runInitializers");
244647
- var SourceFileBase = ModuledNode(TextInsertableNode(StatementedNode(Node3)));
244648
- var SourceFile13 = (() => {
244647
+ var SourceFileBase = ModuledNode(TextInsertableNode(StatementedNode(Node4)));
244648
+ var SourceFile15 = (() => {
244649
244649
  let _classSuper = SourceFileBase;
244650
244650
  let _instanceExtraInitializers = [];
244651
244651
  let _isFromExternalLibrary_decorators;
@@ -245162,7 +245162,7 @@ Node text: ${this.#forgottenText}`;
245162
245162
  function getReferencingNodeFromStringLiteral(literal) {
245163
245163
  const parent = literal.getParentOrThrow();
245164
245164
  const grandParent = parent.getParent();
245165
- if (grandParent != null && Node3.isImportEqualsDeclaration(grandParent))
245165
+ if (grandParent != null && Node4.isImportEqualsDeclaration(grandParent))
245166
245166
  return grandParent;
245167
245167
  else
245168
245168
  return parent;
@@ -245403,7 +245403,7 @@ Node text: ${this.#forgottenText}`;
245403
245403
  }
245404
245404
  };
245405
245405
  var createBase$m = /* @__PURE__ */ __name((ctor) => OverrideableNode(QuestionTokenableNode(DecoratableNode(ScopeableNode(ReadonlyableNode(ModifierableNode(DotDotDotTokenableNode(TypedNode(InitializerExpressionableNode(BindingNamedNode(ctor)))))))))), "createBase$m");
245406
- var ParameterDeclarationBase = createBase$m(Node3);
245406
+ var ParameterDeclarationBase = createBase$m(Node4);
245407
245407
  var ParameterDeclaration = class extends ParameterDeclarationBase {
245408
245408
  static {
245409
245409
  __name(this, "ParameterDeclaration");
@@ -245469,7 +245469,7 @@ Node text: ${this.#forgottenText}`;
245469
245469
  if (isParameterWithoutParens())
245470
245470
  addParens();
245471
245471
  function isParameterWithoutParens() {
245472
- return Node3.isArrowFunction(parent) && parent.compilerNode.parameters.length === 1 && parameter.getParentSyntaxListOrThrow().getPreviousSiblingIfKind(common.SyntaxKind.OpenParenToken) == null;
245472
+ return Node4.isArrowFunction(parent) && parent.compilerNode.parameters.length === 1 && parameter.getParentSyntaxListOrThrow().getPreviousSiblingIfKind(common.SyntaxKind.OpenParenToken) == null;
245473
245473
  }
245474
245474
  __name(isParameterWithoutParens, "isParameterWithoutParens");
245475
245475
  function addParens() {
@@ -245489,17 +245489,17 @@ Node text: ${this.#forgottenText}`;
245489
245489
  __name(addParens, "addParens");
245490
245490
  }
245491
245491
  __name(addParensIfNecessary, "addParensIfNecessary");
245492
- var ClassElement = class extends Node3 {
245492
+ var ClassElement = class extends Node4 {
245493
245493
  static {
245494
245494
  __name(this, "ClassElement");
245495
245495
  }
245496
245496
  remove() {
245497
245497
  const parent = this.getParentOrThrow();
245498
- if (Node3.isClassDeclaration(parent) || Node3.isClassExpression(parent))
245498
+ if (Node4.isClassDeclaration(parent) || Node4.isClassExpression(parent))
245499
245499
  removeClassMember(this);
245500
- else if (Node3.isObjectLiteralExpression(parent))
245500
+ else if (Node4.isObjectLiteralExpression(parent))
245501
245501
  removeCommaSeparatedChild(this);
245502
- else if (Node3.isInterfaceDeclaration(parent))
245502
+ else if (Node4.isInterfaceDeclaration(parent))
245503
245503
  removeInterfaceMember(this);
245504
245504
  else
245505
245505
  common.errors.throwNotImplementedForSyntaxKindError(parent.getKind());
@@ -245648,7 +245648,7 @@ Node text: ${this.#forgottenText}`;
245648
245648
  index,
245649
245649
  parent: this,
245650
245650
  write: /* @__PURE__ */ __name((writer, info) => {
245651
- const previousMemberHasBody = !isAmbient && info.previousMember != null && Node3.isBodyable(info.previousMember) && info.previousMember.hasBody();
245651
+ const previousMemberHasBody = !isAmbient && info.previousMember != null && Node4.isBodyable(info.previousMember) && info.previousMember.hasBody();
245652
245652
  const firstStructureHasBody = !isAmbient && members instanceof Array && structureHasBody(members[0]);
245653
245653
  if (previousMemberHasBody || info.previousMember != null && firstStructureHasBody)
245654
245654
  writer.blankLineIfLastNot();
@@ -245659,7 +245659,7 @@ Node text: ${this.#forgottenText}`;
245659
245659
  memberPrinter.printTexts(memberWriter, members);
245660
245660
  writer.write(memberWriter.toString());
245661
245661
  const lastStructureHasBody = !isAmbient && members instanceof Array && structureHasBody(members[members.length - 1]);
245662
- const nextMemberHasBody = !isAmbient && info.nextMember != null && Node3.isBodyable(info.nextMember) && info.nextMember.hasBody();
245662
+ const nextMemberHasBody = !isAmbient && info.nextMember != null && Node4.isBodyable(info.nextMember) && info.nextMember.hasBody();
245663
245663
  if (info.nextMember != null && lastStructureHasBody || nextMemberHasBody)
245664
245664
  writer.blankLineIfLastNot();
245665
245665
  else
@@ -245690,7 +245690,7 @@ Node text: ${this.#forgottenText}`;
245690
245690
  structures,
245691
245691
  expectedKind: common.SyntaxKind.Constructor,
245692
245692
  write: /* @__PURE__ */ __name((writer, info) => {
245693
- if (!isAmbient && info.previousMember != null && !Node3.isCommentNode(info.previousMember))
245693
+ if (!isAmbient && info.previousMember != null && !Node4.isCommentNode(info.previousMember))
245694
245694
  writer.blankLineIfLastNot();
245695
245695
  else
245696
245696
  writer.newLineIfLastNot();
@@ -245703,7 +245703,7 @@ Node text: ${this.#forgottenText}`;
245703
245703
  });
245704
245704
  }
245705
245705
  getConstructors() {
245706
- return this.getMembers().filter((m) => Node3.isConstructorDeclaration(m));
245706
+ return this.getMembers().filter((m) => Node4.isConstructorDeclaration(m));
245707
245707
  }
245708
245708
  addStaticBlock(structure = {}) {
245709
245709
  return this.insertStaticBlock(getEndIndexFromArray(this.getMembersWithComments()), structure);
@@ -245721,7 +245721,7 @@ Node text: ${this.#forgottenText}`;
245721
245721
  structures,
245722
245722
  expectedKind: common.SyntaxKind.ClassStaticBlockDeclaration,
245723
245723
  write: /* @__PURE__ */ __name((writer, info) => {
245724
- if (!isAmbient && info.previousMember != null && !Node3.isCommentNode(info.previousMember))
245724
+ if (!isAmbient && info.previousMember != null && !Node4.isCommentNode(info.previousMember))
245725
245725
  writer.blankLineIfLastNot();
245726
245726
  else
245727
245727
  writer.newLineIfLastNot();
@@ -245734,7 +245734,7 @@ Node text: ${this.#forgottenText}`;
245734
245734
  });
245735
245735
  }
245736
245736
  getStaticBlocks() {
245737
- return this.getMembers().filter((m) => Node3.isClassStaticBlockDeclaration(m));
245737
+ return this.getMembers().filter((m) => Node4.isClassStaticBlockDeclaration(m));
245738
245738
  }
245739
245739
  addGetAccessor(structure) {
245740
245740
  return this.addGetAccessors([structure])[0];
@@ -245751,7 +245751,7 @@ Node text: ${this.#forgottenText}`;
245751
245751
  structures,
245752
245752
  expectedKind: common.SyntaxKind.GetAccessor,
245753
245753
  write: /* @__PURE__ */ __name((writer, info) => {
245754
- if (info.previousMember != null && !Node3.isCommentNode(info.previousMember))
245754
+ if (info.previousMember != null && !Node4.isCommentNode(info.previousMember))
245755
245755
  writer.blankLineIfLastNot();
245756
245756
  else
245757
245757
  writer.newLineIfLastNot();
@@ -245780,7 +245780,7 @@ Node text: ${this.#forgottenText}`;
245780
245780
  structures,
245781
245781
  expectedKind: common.SyntaxKind.SetAccessor,
245782
245782
  write: /* @__PURE__ */ __name((writer, info) => {
245783
- if (info.previousMember != null && !Node3.isCommentNode(info.previousMember))
245783
+ if (info.previousMember != null && !Node4.isCommentNode(info.previousMember))
245784
245784
  writer.blankLineIfLastNot();
245785
245785
  else
245786
245786
  writer.newLineIfLastNot();
@@ -245809,12 +245809,12 @@ Node text: ${this.#forgottenText}`;
245809
245809
  structures,
245810
245810
  expectedKind: common.SyntaxKind.PropertyDeclaration,
245811
245811
  write: /* @__PURE__ */ __name((writer, info) => {
245812
- if (info.previousMember != null && Node3.hasBody(info.previousMember))
245812
+ if (info.previousMember != null && Node4.hasBody(info.previousMember))
245813
245813
  writer.blankLineIfLastNot();
245814
245814
  else
245815
245815
  writer.newLineIfLastNot();
245816
245816
  this._context.structurePrinterFactory.forPropertyDeclaration().printTexts(writer, structures);
245817
- if (info.nextMember != null && Node3.hasBody(info.nextMember))
245817
+ if (info.nextMember != null && Node4.hasBody(info.nextMember))
245818
245818
  writer.blankLineIfLastNot();
245819
245819
  else
245820
245820
  writer.newLineIfLastNot();
@@ -245836,7 +245836,7 @@ Node text: ${this.#forgottenText}`;
245836
245836
  return insertChildren(this, {
245837
245837
  index,
245838
245838
  write: /* @__PURE__ */ __name((writer, info) => {
245839
- if (!isAmbient && info.previousMember != null && !Node3.isCommentNode(info.previousMember))
245839
+ if (!isAmbient && info.previousMember != null && !Node4.isCommentNode(info.previousMember))
245840
245840
  writer.blankLineIfLastNot();
245841
245841
  else
245842
245842
  writer.newLineIfLastNot();
@@ -245875,7 +245875,7 @@ Node text: ${this.#forgottenText}`;
245875
245875
  return common.errors.throwIfNullOrUndefined(this.getProperty(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class property declaration", nameOrFindFunction));
245876
245876
  }
245877
245877
  getProperties() {
245878
- return this.getMembers().filter((m) => Node3.isPropertyDeclaration(m));
245878
+ return this.getMembers().filter((m) => Node4.isPropertyDeclaration(m));
245879
245879
  }
245880
245880
  getGetAccessor(nameOrFindFunction) {
245881
245881
  return getNodeByNameOrFindFunction(this.getGetAccessors(), nameOrFindFunction);
@@ -245884,7 +245884,7 @@ Node text: ${this.#forgottenText}`;
245884
245884
  return common.errors.throwIfNullOrUndefined(this.getGetAccessor(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class getAccessor declaration", nameOrFindFunction));
245885
245885
  }
245886
245886
  getGetAccessors() {
245887
- return this.getMembers().filter((m) => Node3.isGetAccessorDeclaration(m));
245887
+ return this.getMembers().filter((m) => Node4.isGetAccessorDeclaration(m));
245888
245888
  }
245889
245889
  getSetAccessor(nameOrFindFunction) {
245890
245890
  return getNodeByNameOrFindFunction(this.getSetAccessors(), nameOrFindFunction);
@@ -245893,7 +245893,7 @@ Node text: ${this.#forgottenText}`;
245893
245893
  return common.errors.throwIfNullOrUndefined(this.getSetAccessor(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class setAccessor declaration", nameOrFindFunction));
245894
245894
  }
245895
245895
  getSetAccessors() {
245896
- return this.getMembers().filter((m) => Node3.isSetAccessorDeclaration(m));
245896
+ return this.getMembers().filter((m) => Node4.isSetAccessorDeclaration(m));
245897
245897
  }
245898
245898
  getMethod(nameOrFindFunction) {
245899
245899
  return getNodeByNameOrFindFunction(this.getMethods(), nameOrFindFunction);
@@ -245902,7 +245902,7 @@ Node text: ${this.#forgottenText}`;
245902
245902
  return common.errors.throwIfNullOrUndefined(this.getMethod(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class method declaration", nameOrFindFunction));
245903
245903
  }
245904
245904
  getMethods() {
245905
- return this.getMembers().filter((m) => Node3.isMethodDeclaration(m));
245905
+ return this.getMembers().filter((m) => Node4.isMethodDeclaration(m));
245906
245906
  }
245907
245907
  getInstanceMethod(nameOrFindFunction) {
245908
245908
  return getNodeByNameOrFindFunction(this.getInstanceMethods(), nameOrFindFunction);
@@ -245930,9 +245930,9 @@ Node text: ${this.#forgottenText}`;
245930
245930
  }
245931
245931
  getInstanceMembers() {
245932
245932
  return this.getMembersWithParameterProperties().filter((m) => {
245933
- if (Node3.isConstructorDeclaration(m))
245933
+ if (Node4.isConstructorDeclaration(m))
245934
245934
  return false;
245935
- return Node3.isParameterDeclaration(m) || !m.isStatic();
245935
+ return Node4.isParameterDeclaration(m) || !m.isStatic();
245936
245936
  });
245937
245937
  }
245938
245938
  getStaticMember(nameOrFindFunction) {
@@ -245943,14 +245943,14 @@ Node text: ${this.#forgottenText}`;
245943
245943
  }
245944
245944
  getStaticMembers() {
245945
245945
  return this.getMembers().filter((m) => {
245946
- if (Node3.isConstructorDeclaration(m))
245946
+ if (Node4.isConstructorDeclaration(m))
245947
245947
  return false;
245948
- return !Node3.isParameterDeclaration(m) && m.isStatic();
245948
+ return !Node4.isParameterDeclaration(m) && m.isStatic();
245949
245949
  });
245950
245950
  }
245951
245951
  getMembersWithParameterProperties() {
245952
245952
  const members = this.getMembers();
245953
- const implementationCtors = members.filter((c) => Node3.isConstructorDeclaration(c) && c.isImplementation());
245953
+ const implementationCtors = members.filter((c) => Node4.isConstructorDeclaration(c) && c.isImplementation());
245954
245954
  for (const ctor of implementationCtors) {
245955
245955
  let insertIndex = members.indexOf(ctor) + 1;
245956
245956
  for (const param of ctor.getParameters()) {
@@ -245968,7 +245968,7 @@ Node text: ${this.#forgottenText}`;
245968
245968
  getMembersWithComments() {
245969
245969
  const compilerNode = this.compilerNode;
245970
245970
  const members = ExtendedParser.getContainerArray(compilerNode, this.getSourceFile().compilerNode);
245971
- return getAllMembers(this, members).filter((m) => isSupportedClassMember(m) || Node3.isCommentClassElement(m));
245971
+ return getAllMembers(this, members).filter((m) => isSupportedClassMember(m) || Node4.isCommentClassElement(m));
245972
245972
  }
245973
245973
  getMember(nameOrFindFunction) {
245974
245974
  return getNodeByNameOrFindFunction(this.getMembers(), nameOrFindFunction);
@@ -246007,9 +246007,9 @@ Node text: ${this.#forgottenText}`;
246007
246007
  const isAmbient = isNodeAmbientOrInAmbientContext(classDec);
246008
246008
  const members = compilerMembers.map((m) => classDec._getNodeFromCompilerNode(m));
246009
246009
  return isAmbient ? members : members.filter((m) => {
246010
- if (!(Node3.isConstructorDeclaration(m) || Node3.isMethodDeclaration(m)))
246010
+ if (!(Node4.isConstructorDeclaration(m) || Node4.isMethodDeclaration(m)))
246011
246011
  return true;
246012
- if (Node3.isMethodDeclaration(m) && m.isAbstract())
246012
+ if (Node4.isMethodDeclaration(m) && m.isAbstract())
246013
246013
  return true;
246014
246014
  return m.isImplementation();
246015
246015
  });
@@ -246037,11 +246037,11 @@ Node text: ${this.#forgottenText}`;
246037
246037
  }
246038
246038
  __name(getImmediateDerivedClasses, "getImmediateDerivedClasses");
246039
246039
  function isClassPropertyType(m) {
246040
- return Node3.isPropertyDeclaration(m) || Node3.isSetAccessorDeclaration(m) || Node3.isGetAccessorDeclaration(m) || Node3.isParameterDeclaration(m);
246040
+ return Node4.isPropertyDeclaration(m) || Node4.isSetAccessorDeclaration(m) || Node4.isGetAccessorDeclaration(m) || Node4.isParameterDeclaration(m);
246041
246041
  }
246042
246042
  __name(isClassPropertyType, "isClassPropertyType");
246043
246043
  function isSupportedClassMember(m) {
246044
- return Node3.isMethodDeclaration(m) || Node3.isPropertyDeclaration(m) || Node3.isGetAccessorDeclaration(m) || Node3.isSetAccessorDeclaration(m) || Node3.isConstructorDeclaration(m) || Node3.isClassStaticBlockDeclaration(m);
246044
+ return Node4.isMethodDeclaration(m) || Node4.isPropertyDeclaration(m) || Node4.isGetAccessorDeclaration(m) || Node4.isSetAccessorDeclaration(m) || Node4.isConstructorDeclaration(m) || Node4.isClassStaticBlockDeclaration(m);
246045
246045
  }
246046
246046
  __name(isSupportedClassMember, "isSupportedClassMember");
246047
246047
  function insertChildren(classDeclaration, opts) {
@@ -246114,7 +246114,7 @@ Node text: ${this.#forgottenText}`;
246114
246114
  typeParameters: this.getTypeParameters().map((p) => p.getStructure()),
246115
246115
  properties: [
246116
246116
  ...parameterProperties.map((p) => {
246117
- const jsDocComment = p.getParentOrThrow().getJsDocs().map((j) => j.getTags()).flat().filter(Node3.isJSDocParameterTag).filter((t) => t.getTagName() === "param" && t.getName() === p.getName() && t.getComment() != null).map((t) => t.getCommentText().trim())[0];
246117
+ const jsDocComment = p.getParentOrThrow().getJsDocs().map((j) => j.getTags()).flat().filter(Node4.isJSDocParameterTag).filter((t) => t.getTagName() === "param" && t.getName() === p.getName() && t.getComment() != null).map((t) => t.getCommentText().trim())[0];
246118
246118
  return {
246119
246119
  kind: exports.StructureKind.PropertySignature,
246120
246120
  docs: jsDocComment == null ? [] : [{ kind: exports.StructureKind.JSDoc, description: jsDocComment }],
@@ -246193,7 +246193,7 @@ Node text: ${this.#forgottenText}`;
246193
246193
  name: getAndSet[0].getName(),
246194
246194
  type: getAndSet[0].getType().getText(getAndSet[0]),
246195
246195
  hasQuestionToken: false,
246196
- isReadonly: getAndSet.every(Node3.isGetAccessorDeclaration)
246196
+ isReadonly: getAndSet.every(Node4.isGetAccessorDeclaration)
246197
246197
  };
246198
246198
  }
246199
246199
  __name(getExtractedInterfaceAccessorStructure, "getExtractedInterfaceAccessorStructure");
@@ -246331,7 +246331,7 @@ Node text: ${this.#forgottenText}`;
246331
246331
  const thisName = this.getName();
246332
246332
  const isStatic = this.isStatic();
246333
246333
  return this.getParentOrThrow().forEachChild((sibling) => {
246334
- if (Node3.isSetAccessorDeclaration(sibling) && sibling.getName() === thisName && sibling.isStatic() === isStatic)
246334
+ if (Node4.isSetAccessorDeclaration(sibling) && sibling.getName() === thisName && sibling.isStatic() === isStatic)
246335
246335
  return sibling;
246336
246336
  return void 0;
246337
246337
  });
@@ -246394,7 +246394,7 @@ Node text: ${this.#forgottenText}`;
246394
246394
  const thisName = this.getName();
246395
246395
  const isStatic = this.isStatic();
246396
246396
  return this.getParentOrThrow().forEachChild((sibling) => {
246397
- if (Node3.isGetAccessorDeclaration(sibling) && sibling.getName() === thisName && sibling.isStatic() === isStatic)
246397
+ if (Node4.isGetAccessorDeclaration(sibling) && sibling.getName() === thisName && sibling.isStatic() === isStatic)
246398
246398
  return sibling;
246399
246399
  return void 0;
246400
246400
  });
@@ -246408,7 +246408,7 @@ Node text: ${this.#forgottenText}`;
246408
246408
  });
246409
246409
  }
246410
246410
  };
246411
- var DecoratorBase = LeftHandSideExpressionedNode(Node3);
246411
+ var DecoratorBase = LeftHandSideExpressionedNode(Node4);
246412
246412
  var Decorator = class extends DecoratorBase {
246413
246413
  static {
246414
246414
  __name(this, "Decorator");
@@ -246424,14 +246424,14 @@ Node text: ${this.#forgottenText}`;
246424
246424
  return getIdentifierFromName(this._getInnerExpression());
246425
246425
  function getIdentifierFromName(expression) {
246426
246426
  const identifier = getNameFromExpression(expression);
246427
- if (!Node3.isIdentifier(identifier)) {
246427
+ if (!Node4.isIdentifier(identifier)) {
246428
246428
  throw new common.errors.NotImplementedError(`Expected the decorator expression '${identifier.getText()}' to be an identifier. Please deal directly with 'getExpression()' on the decorator to handle more complex scenarios.`);
246429
246429
  }
246430
246430
  return identifier;
246431
246431
  }
246432
246432
  __name(getIdentifierFromName, "getIdentifierFromName");
246433
246433
  function getNameFromExpression(expression) {
246434
- if (Node3.isPropertyAccessExpression(expression))
246434
+ if (Node4.isPropertyAccessExpression(expression))
246435
246435
  return expression.getNameNode();
246436
246436
  return expression;
246437
246437
  }
@@ -246444,7 +246444,7 @@ Node text: ${this.#forgottenText}`;
246444
246444
  return this.compilerNode.expression.getText(sourceFile.compilerNode);
246445
246445
  }
246446
246446
  isDecoratorFactory() {
246447
- return Node3.isCallExpression(this._getInnerExpression());
246447
+ return Node4.isCallExpression(this._getInnerExpression());
246448
246448
  }
246449
246449
  setIsDecoratorFactory(isDecoratorFactory) {
246450
246450
  if (this.isDecoratorFactory() === isDecoratorFactory)
@@ -246486,7 +246486,7 @@ Node text: ${this.#forgottenText}`;
246486
246486
  }
246487
246487
  getCallExpression() {
246488
246488
  const expression = this._getInnerExpression();
246489
- return Node3.isCallExpression(expression) ? expression : void 0;
246489
+ return Node4.isCallExpression(expression) ? expression : void 0;
246490
246490
  }
246491
246491
  getArguments() {
246492
246492
  return this.getCallExpression()?.getArguments() ?? [];
@@ -246550,7 +246550,7 @@ Node text: ${this.#forgottenText}`;
246550
246550
  }
246551
246551
  _getInnerExpression() {
246552
246552
  let expr = this.getExpression();
246553
- while (Node3.isParenthesizedExpression(expr))
246553
+ while (Node4.isParenthesizedExpression(expr))
246554
246554
  expr = expr.getExpression();
246555
246555
  return expr;
246556
246556
  }
@@ -246644,7 +246644,7 @@ Node text: ${this.#forgottenText}`;
246644
246644
  __name(getStarPosIfFirstNonWhitespaceChar, "getStarPosIfFirstNonWhitespaceChar");
246645
246645
  }
246646
246646
  __name(getTextWithoutStars, "getTextWithoutStars");
246647
- var JSDocBase = Node3;
246647
+ var JSDocBase = Node4;
246648
246648
  var JSDoc = class extends JSDocBase {
246649
246649
  static {
246650
246650
  __name(this, "JSDoc");
@@ -246793,7 +246793,7 @@ Node text: ${this.#forgottenText}`;
246793
246793
  });
246794
246794
  }
246795
246795
  };
246796
- var TypeNode = class extends Node3 {
246796
+ var TypeNode = class extends Node4 {
246797
246797
  static {
246798
246798
  __name(this, "TypeNode");
246799
246799
  }
@@ -246859,9 +246859,9 @@ Node text: ${this.#forgottenText}`;
246859
246859
  }
246860
246860
  setArgument(text) {
246861
246861
  const arg = this.getArgument();
246862
- if (Node3.isLiteralTypeNode(arg)) {
246862
+ if (Node4.isLiteralTypeNode(arg)) {
246863
246863
  const literal = arg.getLiteral();
246864
- if (Node3.isStringLiteral(literal)) {
246864
+ if (Node4.isStringLiteral(literal)) {
246865
246865
  literal.setLiteralValue(text);
246866
246866
  return this;
246867
246867
  }
@@ -247085,7 +247085,7 @@ Node text: ${this.#forgottenText}`;
247085
247085
  TypeParameterVariance[TypeParameterVariance["InOut"] = 3] = "InOut";
247086
247086
  })(exports.TypeParameterVariance || (exports.TypeParameterVariance = {}));
247087
247087
  var createBase$c = /* @__PURE__ */ __name((ctor) => ModifierableNode(NamedNode(ctor)), "createBase$c");
247088
- var TypeParameterDeclarationBase = createBase$c(Node3);
247088
+ var TypeParameterDeclarationBase = createBase$c(Node4);
247089
247089
  var TypeParameterDeclaration = class extends TypeParameterDeclarationBase {
247090
247090
  static {
247091
247091
  __name(this, "TypeParameterDeclaration");
@@ -247278,7 +247278,7 @@ Node text: ${this.#forgottenText}`;
247278
247278
  __name(this, "JSDocAllType");
247279
247279
  }
247280
247280
  };
247281
- var JSDocTagBase = Node3;
247281
+ var JSDocTagBase = Node4;
247282
247282
  var JSDocTag = class extends JSDocTagBase {
247283
247283
  static {
247284
247284
  __name(this, "JSDocTag");
@@ -247441,22 +247441,22 @@ Node text: ${this.#forgottenText}`;
247441
247441
  __name(this, "JSDocImportTag");
247442
247442
  }
247443
247443
  };
247444
- var JSDocLink = class extends Node3 {
247444
+ var JSDocLink = class extends Node4 {
247445
247445
  static {
247446
247446
  __name(this, "JSDocLink");
247447
247447
  }
247448
247448
  };
247449
- var JSDocLinkCode = class extends Node3 {
247449
+ var JSDocLinkCode = class extends Node4 {
247450
247450
  static {
247451
247451
  __name(this, "JSDocLinkCode");
247452
247452
  }
247453
247453
  };
247454
- var JSDocLinkPlain = class extends Node3 {
247454
+ var JSDocLinkPlain = class extends Node4 {
247455
247455
  static {
247456
247456
  __name(this, "JSDocLinkPlain");
247457
247457
  }
247458
247458
  };
247459
- var JSDocMemberName = class extends Node3 {
247459
+ var JSDocMemberName = class extends Node4 {
247460
247460
  static {
247461
247461
  __name(this, "JSDocMemberName");
247462
247462
  }
@@ -247469,7 +247469,7 @@ Node text: ${this.#forgottenText}`;
247469
247469
  return this._getNodeFromCompilerNode(this.compilerNode.type);
247470
247470
  }
247471
247471
  };
247472
- var JSDocNameReference = class extends Node3 {
247472
+ var JSDocNameReference = class extends Node4 {
247473
247473
  static {
247474
247474
  __name(this, "JSDocNameReference");
247475
247475
  }
@@ -247606,7 +247606,7 @@ Node text: ${this.#forgottenText}`;
247606
247606
  return common.errors.throwIfNullOrUndefined(this.getConstraint(), message ?? "Expected to find the JS doc template tag's constraint.", this);
247607
247607
  }
247608
247608
  };
247609
- var JSDocText = class extends Node3 {
247609
+ var JSDocText = class extends Node4 {
247610
247610
  static {
247611
247611
  __name(this, "JSDocText");
247612
247612
  }
@@ -247676,7 +247676,7 @@ Node text: ${this.#forgottenText}`;
247676
247676
  return this._getNodeFromCompilerNode(this.compilerNode.type);
247677
247677
  }
247678
247678
  };
247679
- var CommentEnumMember = class extends Node3 {
247679
+ var CommentEnumMember = class extends Node4 {
247680
247680
  static {
247681
247681
  __name(this, "CommentEnumMember");
247682
247682
  }
@@ -247767,7 +247767,7 @@ Node text: ${this.#forgottenText}`;
247767
247767
  }
247768
247768
  };
247769
247769
  var createBase$a = /* @__PURE__ */ __name((ctor) => JSDocableNode(InitializerExpressionableNode(PropertyNamedNode(ctor))), "createBase$a");
247770
- var EnumMemberBase = createBase$a(Node3);
247770
+ var EnumMemberBase = createBase$a(Node4);
247771
247771
  var EnumMember = class extends EnumMemberBase {
247772
247772
  static {
247773
247773
  __name(this, "EnumMember");
@@ -247811,7 +247811,7 @@ Node text: ${this.#forgottenText}`;
247811
247811
  });
247812
247812
  }
247813
247813
  };
247814
- var HeritageClause = class extends Node3 {
247814
+ var HeritageClause = class extends Node4 {
247815
247815
  static {
247816
247816
  __name(this, "HeritageClause");
247817
247817
  }
@@ -247840,7 +247840,7 @@ Node text: ${this.#forgottenText}`;
247840
247840
  __name(getExpressionFromIndex, "getExpressionFromIndex");
247841
247841
  }
247842
247842
  };
247843
- var TypeElement = class extends Node3 {
247843
+ var TypeElement = class extends Node4 {
247844
247844
  static {
247845
247845
  __name(this, "TypeElement");
247846
247846
  }
@@ -248080,7 +248080,7 @@ Node text: ${this.#forgottenText}`;
248080
248080
  };
248081
248081
  }
248082
248082
  __name(CommonIdentifierBase, "CommonIdentifierBase");
248083
- var ComputedPropertyNameBase = ExpressionedNode(Node3);
248083
+ var ComputedPropertyNameBase = ExpressionedNode(Node4);
248084
248084
  var ComputedPropertyName = class extends ComputedPropertyNameBase {
248085
248085
  static {
248086
248086
  __name(this, "ComputedPropertyName");
@@ -248095,13 +248095,13 @@ Node text: ${this.#forgottenText}`;
248095
248095
  return this._context.languageService.getImplementations(this);
248096
248096
  }
248097
248097
  };
248098
- var PrivateIdentifierBase = CommonIdentifierBase(ReferenceFindableNode(RenameableNode(Node3)));
248098
+ var PrivateIdentifierBase = CommonIdentifierBase(ReferenceFindableNode(RenameableNode(Node4)));
248099
248099
  var PrivateIdentifier = class extends PrivateIdentifierBase {
248100
248100
  static {
248101
248101
  __name(this, "PrivateIdentifier");
248102
248102
  }
248103
248103
  };
248104
- var QualifiedName = class extends Node3 {
248104
+ var QualifiedName = class extends Node4 {
248105
248105
  static {
248106
248106
  __name(this, "QualifiedName");
248107
248107
  }
@@ -248112,7 +248112,7 @@ Node text: ${this.#forgottenText}`;
248112
248112
  return this._getNodeFromCompilerNode(this.compilerNode.right);
248113
248113
  }
248114
248114
  };
248115
- var JsxAttributeBase = Node3;
248115
+ var JsxAttributeBase = Node4;
248116
248116
  var JsxAttribute2 = class extends JsxAttributeBase {
248117
248117
  static {
248118
248118
  __name(this, "JsxAttribute");
@@ -248192,7 +248192,7 @@ Node text: ${this.#forgottenText}`;
248192
248192
  }
248193
248193
  };
248194
248194
  var createBase$3 = /* @__PURE__ */ __name((ctor) => JsxTagNamedNode(ctor), "createBase$3");
248195
- var JsxClosingElementBase = createBase$3(Node3);
248195
+ var JsxClosingElementBase = createBase$3(Node4);
248196
248196
  var JsxClosingElement = class extends JsxClosingElementBase {
248197
248197
  static {
248198
248198
  __name(this, "JsxClosingElement");
@@ -248297,7 +248297,7 @@ Node text: ${this.#forgottenText}`;
248297
248297
  return this._getNodeFromCompilerNode(this.compilerNode.closingFragment);
248298
248298
  }
248299
248299
  };
248300
- var JsxNamespacedNameBase = Node3;
248300
+ var JsxNamespacedNameBase = Node4;
248301
248301
  var JsxNamespacedName = class extends JsxNamespacedNameBase {
248302
248302
  static {
248303
248303
  __name(this, "JsxNamespacedName");
@@ -248348,7 +248348,7 @@ Node text: ${this.#forgottenText}`;
248348
248348
  });
248349
248349
  }
248350
248350
  };
248351
- var JsxSpreadAttributeBase = ExpressionedNode(Node3);
248351
+ var JsxSpreadAttributeBase = ExpressionedNode(Node4);
248352
248352
  var JsxSpreadAttribute = class extends JsxSpreadAttributeBase {
248353
248353
  static {
248354
248354
  __name(this, "JsxSpreadAttribute");
@@ -248373,7 +248373,7 @@ Node text: ${this.#forgottenText}`;
248373
248373
  });
248374
248374
  }
248375
248375
  };
248376
- var JsxTextBase = LiteralLikeNode(Node3);
248376
+ var JsxTextBase = LiteralLikeNode(Node4);
248377
248377
  var JsxText = class extends JsxTextBase {
248378
248378
  static {
248379
248379
  __name(this, "JsxText");
@@ -248474,9 +248474,9 @@ Node text: ${this.#forgottenText}`;
248474
248474
  }
248475
248475
  };
248476
248476
  exports.QuoteKind = void 0;
248477
- (function(QuoteKind10) {
248478
- QuoteKind10["Single"] = "'";
248479
- QuoteKind10["Double"] = '"';
248477
+ (function(QuoteKind12) {
248478
+ QuoteKind12["Single"] = "'";
248479
+ QuoteKind12["Double"] = '"';
248480
248480
  })(exports.QuoteKind || (exports.QuoteKind = {}));
248481
248481
  var RegularExpressionLiteralBase = LiteralExpression;
248482
248482
  var RegularExpressionLiteral = class extends RegularExpressionLiteralBase {
@@ -248597,19 +248597,19 @@ Node text: ${this.#forgottenText}`;
248597
248597
  return parent.getChildAtIndex(childIndex);
248598
248598
  }
248599
248599
  };
248600
- var TemplateHeadBase = LiteralLikeNode(Node3);
248600
+ var TemplateHeadBase = LiteralLikeNode(Node4);
248601
248601
  var TemplateHead = class extends TemplateHeadBase {
248602
248602
  static {
248603
248603
  __name(this, "TemplateHead");
248604
248604
  }
248605
248605
  };
248606
- var TemplateMiddleBase = LiteralLikeNode(Node3);
248606
+ var TemplateMiddleBase = LiteralLikeNode(Node4);
248607
248607
  var TemplateMiddle = class extends TemplateMiddleBase {
248608
248608
  static {
248609
248609
  __name(this, "TemplateMiddle");
248610
248610
  }
248611
248611
  };
248612
- var TemplateSpanBase = ExpressionedNode(Node3);
248612
+ var TemplateSpanBase = ExpressionedNode(Node4);
248613
248613
  var TemplateSpan = class extends TemplateSpanBase {
248614
248614
  static {
248615
248615
  __name(this, "TemplateSpan");
@@ -248618,14 +248618,14 @@ Node text: ${this.#forgottenText}`;
248618
248618
  return this._getNodeFromCompilerNode(this.compilerNode.literal);
248619
248619
  }
248620
248620
  };
248621
- var TemplateTailBase = LiteralLikeNode(Node3);
248621
+ var TemplateTailBase = LiteralLikeNode(Node4);
248622
248622
  var TemplateTail = class extends TemplateTailBase {
248623
248623
  static {
248624
248624
  __name(this, "TemplateTail");
248625
248625
  }
248626
248626
  };
248627
248627
  var createBase = /* @__PURE__ */ __name((ctor) => ExportGetableNode(ExclamationTokenableNode(TypedNode(InitializerExpressionableNode(BindingNamedNode(ctor))))), "createBase");
248628
- var VariableDeclarationBase = createBase(Node3);
248628
+ var VariableDeclarationBase = createBase(Node4);
248629
248629
  var VariableDeclaration2 = class extends VariableDeclarationBase {
248630
248630
  static {
248631
248631
  __name(this, "VariableDeclaration");
@@ -248668,7 +248668,7 @@ Node text: ${this.#forgottenText}`;
248668
248668
  }
248669
248669
  getVariableStatement() {
248670
248670
  const grandParent = this.getParentOrThrow().getParentOrThrow();
248671
- return Node3.isVariableStatement(grandParent) ? grandParent : void 0;
248671
+ return Node4.isVariableStatement(grandParent) ? grandParent : void 0;
248672
248672
  }
248673
248673
  set(structure) {
248674
248674
  callBaseSet(VariableDeclarationBase.prototype, this, structure);
@@ -248680,7 +248680,7 @@ Node text: ${this.#forgottenText}`;
248680
248680
  });
248681
248681
  }
248682
248682
  };
248683
- var VariableDeclarationListBase = ModifierableNode(Node3);
248683
+ var VariableDeclarationListBase = ModifierableNode(Node4);
248684
248684
  var VariableDeclarationList = class extends VariableDeclarationListBase {
248685
248685
  static {
248686
248686
  __name(this, "VariableDeclarationList");
@@ -250235,7 +250235,7 @@ Node text: ${this.#forgottenText}`;
250235
250235
  if (symbol == null)
250236
250236
  return false;
250237
250237
  const valueDeclaration = symbol.getValueDeclaration();
250238
- return valueDeclaration != null && Node3.isEnumDeclaration(valueDeclaration);
250238
+ return valueDeclaration != null && Node4.isEnumDeclaration(valueDeclaration);
250239
250239
  }
250240
250240
  isInterface() {
250241
250241
  return this.#hasObjectFlag(common.ObjectFlags.Interface);
@@ -250323,7 +250323,7 @@ Node text: ${this.#forgottenText}`;
250323
250323
  const declaration = symbol.getDeclarations()[0];
250324
250324
  if (declaration == null)
250325
250325
  return void 0;
250326
- if (!Node3.isTypeParameterDeclaration(declaration))
250326
+ if (!Node4.isTypeParameterDeclaration(declaration))
250327
250327
  return void 0;
250328
250328
  return declaration;
250329
250329
  }
@@ -250774,7 +250774,7 @@ Node text: ${this.#forgottenText}`;
250774
250774
  const thisDirectory = this;
250775
250775
  return common.FileUtils.getRelativePathTo(this.getPath(), getPath());
250776
250776
  function getPath() {
250777
- return sourceFileDirOrPath instanceof SourceFile13 ? sourceFileDirOrPath.getFilePath() : sourceFileDirOrPath instanceof _Directory ? sourceFileDirOrPath.getPath() : thisDirectory._context.fileSystemWrapper.getStandardizedAbsolutePath(sourceFileDirOrPath, thisDirectory.getPath());
250777
+ return sourceFileDirOrPath instanceof SourceFile15 ? sourceFileDirOrPath.getFilePath() : sourceFileDirOrPath instanceof _Directory ? sourceFileDirOrPath.getPath() : thisDirectory._context.fileSystemWrapper.getStandardizedAbsolutePath(sourceFileDirOrPath, thisDirectory.getPath());
250778
250778
  }
250779
250779
  __name(getPath, "getPath");
250780
250780
  }
@@ -250784,7 +250784,7 @@ Node text: ${this.#forgottenText}`;
250784
250784
  const moduleSpecifier = common.FileUtils.getRelativePathTo(this.getPath(), getPath()).replace(/((\.d\.ts$)|(\.[^/.]+$))/i, "");
250785
250785
  return moduleSpecifier.startsWith("../") ? moduleSpecifier : "./" + moduleSpecifier;
250786
250786
  function getPath() {
250787
- return sourceFileDirOrFilePath instanceof SourceFile13 ? getPathForSourceFile(sourceFileDirOrFilePath) : sourceFileDirOrFilePath instanceof _Directory ? getPathForDirectory(sourceFileDirOrFilePath) : getPathForFilePath(thisDirectory._context.fileSystemWrapper.getStandardizedAbsolutePath(sourceFileDirOrFilePath, thisDirectory.getPath()));
250787
+ return sourceFileDirOrFilePath instanceof SourceFile15 ? getPathForSourceFile(sourceFileDirOrFilePath) : sourceFileDirOrFilePath instanceof _Directory ? getPathForDirectory(sourceFileDirOrFilePath) : getPathForFilePath(thisDirectory._context.fileSystemWrapper.getStandardizedAbsolutePath(sourceFileDirOrFilePath, thisDirectory.getPath()));
250788
250788
  function getPathForSourceFile(sourceFile) {
250789
250789
  return getPathForFilePath(sourceFile.getFilePath());
250790
250790
  }
@@ -250856,7 +250856,7 @@ Node text: ${this.#forgottenText}`;
250856
250856
  };
250857
250857
  }
250858
250858
  static #isAncestorOfDir(ancestor, descendant) {
250859
- if (descendant instanceof SourceFile13) {
250859
+ if (descendant instanceof SourceFile15) {
250860
250860
  descendant = descendant.getDirectory();
250861
250861
  if (ancestor === descendant)
250862
250862
  return true;
@@ -251141,7 +251141,7 @@ Node text: ${this.#forgottenText}`;
251141
251141
  }
251142
251142
  };
251143
251143
  var kindToWrapperMappings = {
251144
- [common.SyntaxKind.SourceFile]: SourceFile13,
251144
+ [common.SyntaxKind.SourceFile]: SourceFile15,
251145
251145
  [common.SyntaxKind.ArrayBindingPattern]: ArrayBindingPattern,
251146
251146
  [common.SyntaxKind.ArrayLiteralExpression]: ArrayLiteralExpression,
251147
251147
  [common.SyntaxKind.ArrayType]: ArrayTypeNode,
@@ -251333,13 +251333,13 @@ Node text: ${this.#forgottenText}`;
251333
251333
  [common.SyntaxKind.WhileStatement]: WhileStatement,
251334
251334
  [common.SyntaxKind.WithStatement]: WithStatement,
251335
251335
  [common.SyntaxKind.YieldExpression]: YieldExpression,
251336
- [common.SyntaxKind.SemicolonToken]: Node3,
251336
+ [common.SyntaxKind.SemicolonToken]: Node4,
251337
251337
  [common.SyntaxKind.AnyKeyword]: Expression,
251338
251338
  [common.SyntaxKind.BooleanKeyword]: Expression,
251339
251339
  [common.SyntaxKind.FalseKeyword]: FalseLiteral,
251340
251340
  [common.SyntaxKind.ImportKeyword]: ImportExpression,
251341
- [common.SyntaxKind.InferKeyword]: Node3,
251342
- [common.SyntaxKind.NeverKeyword]: Node3,
251341
+ [common.SyntaxKind.InferKeyword]: Node4,
251342
+ [common.SyntaxKind.NeverKeyword]: Node4,
251343
251343
  [common.SyntaxKind.NullKeyword]: NullLiteral,
251344
251344
  [common.SyntaxKind.NumberKeyword]: Expression,
251345
251345
  [common.SyntaxKind.ObjectKeyword]: Expression,
@@ -251506,7 +251506,7 @@ Node text: ${this.#forgottenText}`;
251506
251506
  return new CommentEnumMember(this.#context, compilerNode, sourceFile);
251507
251507
  return common.errors.throwNotImplementedForNeverValueError(compilerNode);
251508
251508
  }
251509
- const ctor = kindToWrapperMappings[compilerNode.kind] || Node3;
251509
+ const ctor = kindToWrapperMappings[compilerNode.kind] || Node4;
251510
251510
  return new ctor(this.#context, compilerNode, sourceFile);
251511
251511
  }
251512
251512
  __name(createNode, "createNode");
@@ -251546,7 +251546,7 @@ Node text: ${this.#forgottenText}`;
251546
251546
  getSourceFile(compilerSourceFile, options) {
251547
251547
  let wasAdded = false;
251548
251548
  const sourceFile = this.#sourceFileCacheByFilePath.get(compilerSourceFile.fileName) ?? this.#nodeCache.getOrCreate(compilerSourceFile, () => {
251549
- const createdSourceFile = new SourceFile13(this.#context, compilerSourceFile);
251549
+ const createdSourceFile = new SourceFile15(this.#context, compilerSourceFile);
251550
251550
  if (!options.markInProject)
251551
251551
  this.#context.inProjectCoordinator.setSourceFileNotInProject(createdSourceFile);
251552
251552
  this.#addSourceFileToCache(createdSourceFile);
@@ -251640,8 +251640,8 @@ Node text: ${this.#forgottenText}`;
251640
251640
  return this.#jsDocTagInfoCache.getOrCreate(jsDocTagInfo, () => new JSDocTagInfo(jsDocTagInfo));
251641
251641
  }
251642
251642
  replaceCompilerNode(oldNode, newNode) {
251643
- const nodeToReplace = oldNode instanceof Node3 ? oldNode.compilerNode : oldNode;
251644
- const node = oldNode instanceof Node3 ? oldNode : this.#nodeCache.get(oldNode);
251643
+ const nodeToReplace = oldNode instanceof Node4 ? oldNode.compilerNode : oldNode;
251644
+ const node = oldNode instanceof Node4 ? oldNode : this.#nodeCache.get(oldNode);
251645
251645
  if (nodeToReplace.kind === common.SyntaxKind.SourceFile && nodeToReplace.fileName !== newNode.fileName) {
251646
251646
  const sourceFile = node;
251647
251647
  this.#removeCompilerNodeFromCache(nodeToReplace);
@@ -251686,12 +251686,12 @@ Node text: ${this.#forgottenText}`;
251686
251686
  for (const node of nodes)
251687
251687
  this.#nodeCache.rememberNode(node);
251688
251688
  });
251689
- if (Node3.isNode(result))
251689
+ if (Node4.isNode(result))
251690
251690
  this.#nodeCache.rememberNode(result);
251691
251691
  if (isPromise(result)) {
251692
251692
  wasPromise = true;
251693
251693
  return result.then((value) => {
251694
- if (Node3.isNode(value))
251694
+ if (Node4.isNode(value))
251695
251695
  this.#nodeCache.rememberNode(value);
251696
251696
  this.#nodeCache.forgetLastPoint();
251697
251697
  return value;
@@ -252277,7 +252277,7 @@ Node text: ${this.#forgottenText}`;
252277
252277
  }
252278
252278
  };
252279
252279
  })();
252280
- var Project13 = class {
252280
+ var Project15 = class {
252281
252281
  static {
252282
252282
  __name(this, "Project");
252283
252283
  }
@@ -253181,7 +253181,7 @@ Node text: ${this.#forgottenText}`;
253181
253181
  exports.NewExpressionBase = NewExpressionBase;
253182
253182
  exports.NoSubstitutionTemplateLiteral = NoSubstitutionTemplateLiteral;
253183
253183
  exports.NoSubstitutionTemplateLiteralBase = NoSubstitutionTemplateLiteralBase;
253184
- exports.Node = Node3;
253184
+ exports.Node = Node4;
253185
253185
  exports.NodeWithTypeArguments = NodeWithTypeArguments;
253186
253186
  exports.NodeWithTypeArgumentsBase = NodeWithTypeArgumentsBase;
253187
253187
  exports.NonNullExpression = NonNullExpression;
@@ -253223,7 +253223,7 @@ Node text: ${this.#forgottenText}`;
253223
253223
  exports.PrivateIdentifier = PrivateIdentifier;
253224
253224
  exports.PrivateIdentifierBase = PrivateIdentifierBase;
253225
253225
  exports.Program = Program;
253226
- exports.Project = Project13;
253226
+ exports.Project = Project15;
253227
253227
  exports.PropertyAccessExpression = PropertyAccessExpression;
253228
253228
  exports.PropertyAccessExpressionBase = PropertyAccessExpressionBase;
253229
253229
  exports.PropertyAssignment = PropertyAssignment;
@@ -253261,7 +253261,7 @@ Node text: ${this.#forgottenText}`;
253261
253261
  exports.ShorthandPropertyAssignmentBase = ShorthandPropertyAssignmentBase;
253262
253262
  exports.Signature = Signature;
253263
253263
  exports.SignaturedDeclaration = SignaturedDeclaration;
253264
- exports.SourceFile = SourceFile13;
253264
+ exports.SourceFile = SourceFile15;
253265
253265
  exports.SourceFileBase = SourceFileBase;
253266
253266
  exports.SpreadAssignment = SpreadAssignment;
253267
253267
  exports.SpreadAssignmentBase = SpreadAssignmentBase;
@@ -253638,11 +253638,434 @@ var init_transform2 = __esm({
253638
253638
  }
253639
253639
  });
253640
253640
 
253641
- // codemods/rewrite-text-font-imports/transform.ts
253641
+ // codemods/inline-use-click-outside/transform.ts
253642
253642
  var transform_exports3 = {};
253643
253643
  __export(transform_exports3, {
253644
253644
  default: () => transform3
253645
253645
  });
253646
+ function getUseClickOutsideAliases(sourceFile, facadePackage) {
253647
+ const aliases = /* @__PURE__ */ new Set();
253648
+ for (const importDecl of sourceFile.getImportDeclarations()) {
253649
+ const moduleSpecifier = importDecl.getModuleSpecifierValue();
253650
+ if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
253651
+ for (const namedImport of importDecl.getNamedImports()) {
253652
+ if (namedImport.getName() === "useClickOutside") {
253653
+ aliases.add(namedImport.getAliasNode()?.getText() ?? "useClickOutside");
253654
+ }
253655
+ }
253656
+ }
253657
+ return aliases;
253658
+ }
253659
+ function hasIdentifierUsage(sourceFile, identifier) {
253660
+ return sourceFile.getDescendantsOfKind(import_ts_morph3.SyntaxKind.Identifier).filter((node) => node.getText() === identifier).some((node) => node.getParentIfKind(import_ts_morph3.SyntaxKind.ImportSpecifier) === void 0);
253661
+ }
253662
+ function removeUnusedUseClickOutsideImports(sourceFile, aliases, facadePackage) {
253663
+ for (const importDecl of sourceFile.getImportDeclarations().slice()) {
253664
+ if (importDecl.wasForgotten()) continue;
253665
+ const moduleSpecifier = importDecl.getModuleSpecifierValue();
253666
+ if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
253667
+ for (const namedImport of importDecl.getNamedImports().slice()) {
253668
+ if (namedImport.getName() !== "useClickOutside") continue;
253669
+ const alias = namedImport.getAliasNode()?.getText() ?? "useClickOutside";
253670
+ if (!aliases.has(alias)) continue;
253671
+ if (!hasIdentifierUsage(sourceFile, alias)) {
253672
+ namedImport.remove();
253673
+ }
253674
+ }
253675
+ if (importDecl.getNamedImports().length === 0 && !importDecl.getDefaultImport() && !importDecl.getNamespaceImport()) {
253676
+ importDecl.remove();
253677
+ }
253678
+ }
253679
+ }
253680
+ function ensureUseEffectIdentifier(sourceFile) {
253681
+ const reactImports = sourceFile.getImportDeclarations().filter((importDecl) => importDecl.getModuleSpecifierValue() === "react");
253682
+ for (const reactImport of reactImports) {
253683
+ if (reactImport.isTypeOnly()) continue;
253684
+ const existingUseEffect = reactImport.getNamedImports().find((namedImport) => namedImport.getName() === "useEffect");
253685
+ if (!existingUseEffect) continue;
253686
+ if (existingUseEffect.isTypeOnly()) {
253687
+ existingUseEffect.setIsTypeOnly(false);
253688
+ }
253689
+ return existingUseEffect.getAliasNode()?.getText() ?? "useEffect";
253690
+ }
253691
+ const importWithoutNamespace = reactImports.find(
253692
+ (importDecl) => !importDecl.isTypeOnly() && !importDecl.getNamespaceImport()
253693
+ );
253694
+ if (importWithoutNamespace) {
253695
+ importWithoutNamespace.addNamedImport("useEffect");
253696
+ return "useEffect";
253697
+ }
253698
+ sourceFile.addImportDeclaration({
253699
+ moduleSpecifier: "react",
253700
+ namedImports: ["useEffect"]
253701
+ });
253702
+ return "useEffect";
253703
+ }
253704
+ function buildInlinedEffect(refArgText, callbackArgText, useEffectIdentifier, uniqueId) {
253705
+ const refConst = `__inlineUseClickOutsideRef${uniqueId}`;
253706
+ const callbackConst = `__inlineUseClickOutsideOnClickOutside${uniqueId}`;
253707
+ return `const ${refConst} = ${refArgText}
253708
+ const ${callbackConst} = ${callbackArgText}
253709
+
253710
+ ${useEffectIdentifier}(() => {
253711
+ const controller = new AbortController()
253712
+ const handleClickOutside = (event) => {
253713
+ const outsideParentElementForClickOutside = ${refConst}.current?.parentElement
253714
+ if (outsideParentElementForClickOutside && !outsideParentElementForClickOutside.contains(event?.target)) {
253715
+ (${callbackConst})()
253716
+ }
253717
+ }
253718
+
253719
+ document.addEventListener('mousedown', handleClickOutside, {
253720
+ signal: controller.signal,
253721
+ })
253722
+
253723
+ return () => {
253724
+ controller.abort()
253725
+ }
253726
+ }, [${refConst}, ${callbackConst}])`;
253727
+ }
253728
+ function annotateUnsupportedStatement(statement) {
253729
+ if (!statement) return;
253730
+ const statementText = statement.getText();
253731
+ if (statementText.includes(TODO_INLINE_MANUALLY)) return;
253732
+ statement.replaceWithText(`${TODO_INLINE_MANUALLY}
253733
+ ${statementText}`);
253734
+ }
253735
+ function transform3(source, filePath = "file.tsx", options) {
253736
+ if (!source.includes("useClickOutside")) {
253737
+ return source;
253738
+ }
253739
+ const project = new import_ts_morph3.Project({
253740
+ useInMemoryFileSystem: true,
253741
+ compilerOptions: {
253742
+ jsx: 2
253743
+ },
253744
+ manipulationSettings: {
253745
+ quoteKind: import_ts_morph3.QuoteKind.Single,
253746
+ useTrailingCommas: false
253747
+ }
253748
+ });
253749
+ const sourceFile = project.createSourceFile(filePath, source);
253750
+ const aliases = getUseClickOutsideAliases(sourceFile, options?.facadePackage);
253751
+ if (aliases.size === 0) {
253752
+ return source;
253753
+ }
253754
+ let useEffectIdentifier = "useEffect";
253755
+ let nextUniqueId = 1;
253756
+ const processedUnsupportedStatements = /* @__PURE__ */ new Set();
253757
+ const supportedStatements = /* @__PURE__ */ new Map();
253758
+ const unsupportedStatements = /* @__PURE__ */ new Map();
253759
+ const callExpressions = sourceFile.getDescendantsOfKind(import_ts_morph3.SyntaxKind.CallExpression);
253760
+ for (const callExpression of callExpressions) {
253761
+ if (callExpression.wasForgotten()) continue;
253762
+ const calleeText = callExpression.getExpression().getText();
253763
+ if (!aliases.has(calleeText)) continue;
253764
+ const expressionStatement = callExpression.getParentIfKind(import_ts_morph3.SyntaxKind.ExpressionStatement);
253765
+ if (expressionStatement && callExpression.getArguments().length === 2) {
253766
+ const [refArg, callbackArg] = callExpression.getArguments();
253767
+ supportedStatements.set(expressionStatement.getStart(), {
253768
+ expressionStatement,
253769
+ refArgText: refArg.getText(),
253770
+ callbackArgText: callbackArg.getText()
253771
+ });
253772
+ continue;
253773
+ }
253774
+ const statement = callExpression.getFirstAncestor((ancestor) => import_ts_morph3.Node.isStatement(ancestor));
253775
+ if (!statement) continue;
253776
+ const position = statement.getStart();
253777
+ if (supportedStatements.has(position)) continue;
253778
+ if (processedUnsupportedStatements.has(position)) continue;
253779
+ unsupportedStatements.set(position, statement);
253780
+ processedUnsupportedStatements.add(position);
253781
+ }
253782
+ if (supportedStatements.size > 0) {
253783
+ useEffectIdentifier = ensureUseEffectIdentifier(sourceFile);
253784
+ const orderedSupportedStatements = [...supportedStatements.entries()].sort((a, b) => b[0] - a[0]);
253785
+ for (const [, { expressionStatement, refArgText, callbackArgText }] of orderedSupportedStatements) {
253786
+ if (expressionStatement.wasForgotten()) continue;
253787
+ expressionStatement.replaceWithText(
253788
+ buildInlinedEffect(refArgText, callbackArgText, useEffectIdentifier, nextUniqueId)
253789
+ );
253790
+ nextUniqueId++;
253791
+ }
253792
+ }
253793
+ const orderedUnsupportedStatements = [...unsupportedStatements.entries()].sort((a, b) => b[0] - a[0]);
253794
+ for (const [, statement] of orderedUnsupportedStatements) {
253795
+ if (statement.wasForgotten()) continue;
253796
+ annotateUnsupportedStatement(statement);
253797
+ }
253798
+ removeUnusedUseClickOutsideImports(sourceFile, aliases, options?.facadePackage);
253799
+ return sourceFile.getFullText();
253800
+ }
253801
+ var import_ts_morph3, TODO_INLINE_MANUALLY;
253802
+ var init_transform3 = __esm({
253803
+ "codemods/inline-use-click-outside/transform.ts"() {
253804
+ "use strict";
253805
+ import_ts_morph3 = __toESM(require_ts_morph(), 1);
253806
+ init_elements_import();
253807
+ TODO_INLINE_MANUALLY = "// TODO: Inline useClickOutside manually \u2014 this call shape could not be transformed safely";
253808
+ __name(getUseClickOutsideAliases, "getUseClickOutsideAliases");
253809
+ __name(hasIdentifierUsage, "hasIdentifierUsage");
253810
+ __name(removeUnusedUseClickOutsideImports, "removeUnusedUseClickOutsideImports");
253811
+ __name(ensureUseEffectIdentifier, "ensureUseEffectIdentifier");
253812
+ __name(buildInlinedEffect, "buildInlinedEffect");
253813
+ __name(annotateUnsupportedStatement, "annotateUnsupportedStatement");
253814
+ __name(transform3, "transform");
253815
+ }
253816
+ });
253817
+
253818
+ // codemods/replace-deprecated-label/transform.ts
253819
+ var transform_exports4 = {};
253820
+ __export(transform_exports4, {
253821
+ default: () => transform4
253822
+ });
253823
+ function resolveTargetSpecifier(sourceSpecifier, facadePackage) {
253824
+ if (facadePackage && matchesPackage(sourceSpecifier, facadePackage)) {
253825
+ return sourceSpecifier;
253826
+ }
253827
+ return TARGET_SPECIFIER;
253828
+ }
253829
+ function getDeprecatedLabelAliases(sourceFile, facadePackage) {
253830
+ const aliases = /* @__PURE__ */ new Set();
253831
+ for (const importDecl of sourceFile.getImportDeclarations()) {
253832
+ const moduleSpecifier = importDecl.getModuleSpecifierValue();
253833
+ if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
253834
+ for (const namedImport of importDecl.getNamedImports()) {
253835
+ if (namedImport.getName() === "DeprecatedLabel") {
253836
+ aliases.add(namedImport.getAliasNode()?.getText() ?? "DeprecatedLabel");
253837
+ }
253838
+ }
253839
+ }
253840
+ if (aliases.size === 0 && sourceFile.getImportDeclarations().length === 0) {
253841
+ aliases.add("DeprecatedLabel");
253842
+ }
253843
+ return aliases;
253844
+ }
253845
+ function getDeprecatedLabelPropsAliases(sourceFile, facadePackage) {
253846
+ const aliases = /* @__PURE__ */ new Set();
253847
+ for (const importDecl of sourceFile.getImportDeclarations()) {
253848
+ const moduleSpecifier = importDecl.getModuleSpecifierValue();
253849
+ if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
253850
+ for (const namedImport of importDecl.getNamedImports()) {
253851
+ if (namedImport.getName() === "DeprecatedLabelProps") {
253852
+ aliases.add(namedImport.getAliasNode()?.getText() ?? "DeprecatedLabelProps");
253853
+ }
253854
+ }
253855
+ }
253856
+ if (aliases.size === 0 && sourceFile.getImportDeclarations().length === 0) {
253857
+ aliases.add("DeprecatedLabelProps");
253858
+ }
253859
+ return aliases;
253860
+ }
253861
+ function hasIdentifierUsage2(sourceFile, localNames) {
253862
+ for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.Identifier)) {
253863
+ if (!localNames.has(identifier.getText())) continue;
253864
+ const parent = identifier.getParent();
253865
+ if (!parent) continue;
253866
+ const kind = parent.getKind();
253867
+ if (kind === import_ts_morph4.SyntaxKind.ImportSpecifier || kind === import_ts_morph4.SyntaxKind.ExportSpecifier || kind === import_ts_morph4.SyntaxKind.JsxOpeningElement || kind === import_ts_morph4.SyntaxKind.JsxSelfClosingElement || kind === import_ts_morph4.SyntaxKind.JsxClosingElement) {
253868
+ continue;
253869
+ }
253870
+ return true;
253871
+ }
253872
+ return false;
253873
+ }
253874
+ function hasDeprecatedLabelJsxUsage(sourceFile, labelAliases) {
253875
+ const elements = [
253876
+ ...sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxOpeningElement),
253877
+ ...sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxSelfClosingElement)
253878
+ ];
253879
+ return elements.some((element) => labelAliases.has(element.getTagNameNode().getText()));
253880
+ }
253881
+ function addImportsToTarget(sourceFile, importsToAdd, targetSpecifier) {
253882
+ if (importsToAdd.length === 0) return;
253883
+ const currentImportDeclarations = sourceFile.getImportDeclarations();
253884
+ let targetDecl = currentImportDeclarations.find(
253885
+ (importDecl) => importDecl.getModuleSpecifierValue() === targetSpecifier
253886
+ );
253887
+ if (!targetDecl) {
253888
+ targetDecl = sourceFile.addImportDeclaration({ moduleSpecifier: targetSpecifier });
253889
+ }
253890
+ for (const { name, alias, isTypeOnly } of importsToAdd) {
253891
+ const existingImport = targetDecl.getNamedImports().find((namedImport) => {
253892
+ return namedImport.getName() === name && namedImport.getAliasNode()?.getText() === alias;
253893
+ });
253894
+ if (existingImport) {
253895
+ if (existingImport.isTypeOnly() && !isTypeOnly) {
253896
+ existingImport.setIsTypeOnly(false);
253897
+ }
253898
+ continue;
253899
+ }
253900
+ if (alias && alias !== name) {
253901
+ const typePrefix = isTypeOnly ? "type " : "";
253902
+ targetDecl.addNamedImport(`${typePrefix}${name} as ${alias}`);
253903
+ } else if (isTypeOnly) {
253904
+ targetDecl.addNamedImport({ name, isTypeOnly: true });
253905
+ } else {
253906
+ targetDecl.addNamedImport(name);
253907
+ }
253908
+ }
253909
+ }
253910
+ function transformImports(sourceFile, needsLabelTextImport, facadePackage) {
253911
+ const importsToAdd = [];
253912
+ const alreadyMigratedPath = facadePackage ? null : TARGET_SPECIFIER;
253913
+ for (const importDecl of sourceFile.getImportDeclarations().slice()) {
253914
+ if (importDecl.wasForgotten()) continue;
253915
+ const moduleSpecifier = importDecl.getModuleSpecifierValue();
253916
+ if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
253917
+ if (alreadyMigratedPath && moduleSpecifier === alreadyMigratedPath) continue;
253918
+ const namedImports = importDecl.getNamedImports();
253919
+ const namedImportsToRemove = [];
253920
+ for (const namedImport of namedImports) {
253921
+ const originalName = namedImport.getName();
253922
+ if (originalName === "DeprecatedLabel") {
253923
+ if (needsLabelTextImport) {
253924
+ importsToAdd.push({
253925
+ name: "LabelText",
253926
+ alias: namedImport.getAliasNode()?.getText(),
253927
+ isTypeOnly: namedImport.isTypeOnly(),
253928
+ targetSpecifier: resolveTargetSpecifier(moduleSpecifier, facadePackage)
253929
+ });
253930
+ }
253931
+ namedImportsToRemove.push(namedImport);
253932
+ continue;
253933
+ }
253934
+ if (originalName === "DeprecatedLabelProps") {
253935
+ if (needsLabelTextImport) {
253936
+ importsToAdd.push({
253937
+ name: "LabelText",
253938
+ isTypeOnly: namedImport.isTypeOnly(),
253939
+ targetSpecifier: resolveTargetSpecifier(moduleSpecifier, facadePackage)
253940
+ });
253941
+ }
253942
+ namedImportsToRemove.push(namedImport);
253943
+ }
253944
+ }
253945
+ namedImportsToRemove.forEach((namedImport) => namedImport.remove());
253946
+ if (importDecl.getNamedImports().length === 0 && !importDecl.getDefaultImport()) {
253947
+ importDecl.remove();
253948
+ }
253949
+ }
253950
+ if (needsLabelTextImport && importsToAdd.length === 0) {
253951
+ importsToAdd.push({
253952
+ name: "LabelText",
253953
+ isTypeOnly: false,
253954
+ targetSpecifier: facadePackage ?? TARGET_SPECIFIER
253955
+ });
253956
+ }
253957
+ const groupedBySpecifier = /* @__PURE__ */ new Map();
253958
+ for (const { targetSpecifier, ...entry } of importsToAdd) {
253959
+ const group = groupedBySpecifier.get(targetSpecifier) ?? [];
253960
+ group.push(entry);
253961
+ groupedBySpecifier.set(targetSpecifier, group);
253962
+ }
253963
+ for (const [specifier, entries] of groupedBySpecifier) {
253964
+ addImportsToTarget(sourceFile, entries, specifier);
253965
+ }
253966
+ }
253967
+ function transformTypeReferences(sourceFile, propsAliases) {
253968
+ for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.TypeReference)) {
253969
+ const typeName = typeRef.getTypeName();
253970
+ if (propsAliases.has(typeName.getText())) {
253971
+ typeName.replaceWithText("LabelText.Props");
253972
+ }
253973
+ }
253974
+ for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.ExpressionWithTypeArguments)) {
253975
+ const expression = heritage.getExpression();
253976
+ if (propsAliases.has(expression.getText())) {
253977
+ expression.replaceWithText("LabelText.Props");
253978
+ }
253979
+ }
253980
+ }
253981
+ function transformIdentifierReferences(sourceFile) {
253982
+ for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.Identifier)) {
253983
+ if (identifier.getText() !== "DeprecatedLabel") continue;
253984
+ const parent = identifier.getParent();
253985
+ if (!parent) continue;
253986
+ const parentKind = parent.getKind();
253987
+ if (parentKind === import_ts_morph4.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph4.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph4.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph4.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph4.SyntaxKind.JsxClosingElement) {
253988
+ continue;
253989
+ }
253990
+ identifier.replaceWithText("LabelText");
253991
+ }
253992
+ }
253993
+ function transformJsxElements2(sourceFile, labelAliases) {
253994
+ const elements = [
253995
+ ...sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxOpeningElement),
253996
+ ...sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxSelfClosingElement)
253997
+ ];
253998
+ for (const element of elements) {
253999
+ const tagName = element.getTagNameNode();
254000
+ const tagNameText = tagName.getText();
254001
+ if (!labelAliases.has(tagNameText)) continue;
254002
+ if (tagNameText === "DeprecatedLabel") {
254003
+ tagName.replaceWithText("LabelText");
254004
+ }
254005
+ if (element.getKind() === import_ts_morph4.SyntaxKind.JsxOpeningElement) {
254006
+ const parent = element.getParent();
254007
+ if (parent?.getKind() !== import_ts_morph4.SyntaxKind.JsxElement) continue;
254008
+ const jsxElement = parent.asKind(import_ts_morph4.SyntaxKind.JsxElement);
254009
+ const closingTag = jsxElement?.getClosingElement();
254010
+ if (closingTag?.getTagNameNode().getText() === "DeprecatedLabel") {
254011
+ closingTag.getTagNameNode().replaceWithText("LabelText");
254012
+ }
254013
+ }
254014
+ }
254015
+ }
254016
+ function transform4(source, filePath = "file.tsx", options) {
254017
+ if (!source.includes("DeprecatedLabel") && !source.includes("DeprecatedLabelProps")) {
254018
+ return source;
254019
+ }
254020
+ const project = new import_ts_morph4.Project({
254021
+ useInMemoryFileSystem: true,
254022
+ compilerOptions: {
254023
+ jsx: 2
254024
+ // JsxEmit.React
254025
+ },
254026
+ manipulationSettings: {
254027
+ quoteKind: import_ts_morph4.QuoteKind.Single
254028
+ }
254029
+ });
254030
+ const sourceFile = project.createSourceFile(filePath, source);
254031
+ const facadePackage = options?.facadePackage;
254032
+ const labelAliases = getDeprecatedLabelAliases(sourceFile, facadePackage);
254033
+ const propsAliases = getDeprecatedLabelPropsAliases(sourceFile, facadePackage);
254034
+ const hasLabelUsage = hasDeprecatedLabelJsxUsage(sourceFile, labelAliases) || hasIdentifierUsage2(sourceFile, labelAliases);
254035
+ const hasPropsUsage = hasIdentifierUsage2(sourceFile, propsAliases);
254036
+ const needsLabelTextImport = hasLabelUsage || hasPropsUsage;
254037
+ transformImports(sourceFile, needsLabelTextImport, facadePackage);
254038
+ transformTypeReferences(sourceFile, propsAliases);
254039
+ transformIdentifierReferences(sourceFile);
254040
+ transformJsxElements2(sourceFile, labelAliases);
254041
+ return sourceFile.getFullText();
254042
+ }
254043
+ var import_ts_morph4, TARGET_SPECIFIER;
254044
+ var init_transform4 = __esm({
254045
+ "codemods/replace-deprecated-label/transform.ts"() {
254046
+ "use strict";
254047
+ import_ts_morph4 = __toESM(require_ts_morph(), 1);
254048
+ init_elements_import();
254049
+ TARGET_SPECIFIER = "@reapit/elements/core/label-text";
254050
+ __name(resolveTargetSpecifier, "resolveTargetSpecifier");
254051
+ __name(getDeprecatedLabelAliases, "getDeprecatedLabelAliases");
254052
+ __name(getDeprecatedLabelPropsAliases, "getDeprecatedLabelPropsAliases");
254053
+ __name(hasIdentifierUsage2, "hasIdentifierUsage");
254054
+ __name(hasDeprecatedLabelJsxUsage, "hasDeprecatedLabelJsxUsage");
254055
+ __name(addImportsToTarget, "addImportsToTarget");
254056
+ __name(transformImports, "transformImports");
254057
+ __name(transformTypeReferences, "transformTypeReferences");
254058
+ __name(transformIdentifierReferences, "transformIdentifierReferences");
254059
+ __name(transformJsxElements2, "transformJsxElements");
254060
+ __name(transform4, "transform");
254061
+ }
254062
+ });
254063
+
254064
+ // codemods/rewrite-text-font-imports/transform.ts
254065
+ var transform_exports5 = {};
254066
+ __export(transform_exports5, {
254067
+ default: () => transform5
254068
+ });
253646
254069
  function isCoreTextImport(moduleSpecifier, facadePackage) {
253647
254070
  if (!isElementsImport(moduleSpecifier, facadePackage)) {
253648
254071
  return false;
@@ -253672,7 +254095,7 @@ function groupImportsFromDeclaration(importDecl) {
253672
254095
  }
253673
254096
  return { textImports, fontImports };
253674
254097
  }
253675
- function transformImports(sourceFile, facadePackage) {
254098
+ function transformImports2(sourceFile, facadePackage) {
253676
254099
  const importDeclarations = sourceFile.getImportDeclarations();
253677
254100
  const coreTextImports = importDeclarations.filter((importDecl) => {
253678
254101
  const moduleSpecifier = importDecl.getModuleSpecifierValue();
@@ -253704,47 +254127,47 @@ function transformImports(sourceFile, facadePackage) {
253704
254127
  }
253705
254128
  }
253706
254129
  }
253707
- function transform3(source, filePath = "file.tsx", options) {
254130
+ function transform5(source, filePath = "file.tsx", options) {
253708
254131
  if (!source.includes("/core/text")) {
253709
254132
  return source;
253710
254133
  }
253711
- const project = new import_ts_morph3.Project({
254134
+ const project = new import_ts_morph5.Project({
253712
254135
  useInMemoryFileSystem: true,
253713
254136
  compilerOptions: {
253714
254137
  jsx: 2
253715
254138
  // JsxEmit.React
253716
254139
  },
253717
254140
  manipulationSettings: {
253718
- quoteKind: import_ts_morph3.QuoteKind.Single,
254141
+ quoteKind: import_ts_morph5.QuoteKind.Single,
253719
254142
  useTrailingCommas: false
253720
254143
  }
253721
254144
  });
253722
254145
  const sourceFile = project.createSourceFile(filePath, source);
253723
- transformImports(sourceFile, options?.facadePackage);
254146
+ transformImports2(sourceFile, options?.facadePackage);
253724
254147
  let result = sourceFile.getFullText();
253725
254148
  result = result.replace(/^(import\s+.*?from\s+'[^']+');$/gm, "$1");
253726
254149
  return result;
253727
254150
  }
253728
- var import_ts_morph3, TEXT_EXPORTS, FONT_EXPORTS;
253729
- var init_transform3 = __esm({
254151
+ var import_ts_morph5, TEXT_EXPORTS, FONT_EXPORTS;
254152
+ var init_transform5 = __esm({
253730
254153
  "codemods/rewrite-text-font-imports/transform.ts"() {
253731
254154
  "use strict";
253732
- import_ts_morph3 = __toESM(require_ts_morph(), 1);
254155
+ import_ts_morph5 = __toESM(require_ts_morph(), 1);
253733
254156
  init_elements_import();
253734
254157
  TEXT_EXPORTS = /* @__PURE__ */ new Set(["Text", "TextColour", "textColours", "elText"]);
253735
254158
  FONT_EXPORTS = /* @__PURE__ */ new Set(["font", "FontSize", "FontWeight", "FontStyle", "fontSizes", "fontWeights"]);
253736
254159
  __name(isCoreTextImport, "isCoreTextImport");
253737
254160
  __name(buildImportPath, "buildImportPath");
253738
254161
  __name(groupImportsFromDeclaration, "groupImportsFromDeclaration");
253739
- __name(transformImports, "transformImports");
253740
- __name(transform3, "transform");
254162
+ __name(transformImports2, "transformImports");
254163
+ __name(transform5, "transform");
253741
254164
  }
253742
254165
  });
253743
254166
 
253744
254167
  // codemods/rewrite-v4-imports/transform.ts
253745
- var transform_exports4 = {};
253746
- __export(transform_exports4, {
253747
- default: () => transform4
254168
+ var transform_exports6 = {};
254169
+ __export(transform_exports6, {
254170
+ default: () => transform6
253748
254171
  });
253749
254172
  function matchesPackage2(moduleSpecifier, packageName) {
253750
254173
  return moduleSpecifier === packageName || moduleSpecifier.startsWith(packageName + "/");
@@ -253769,7 +254192,7 @@ function getDeprecatedName(name) {
253769
254192
  }
253770
254193
  return null;
253771
254194
  }
253772
- function transformImports2(sourceFile, facadePackage) {
254195
+ function transformImports3(sourceFile, facadePackage) {
253773
254196
  const importDeclarations = sourceFile.getImportDeclarations();
253774
254197
  for (const importDecl of importDeclarations) {
253775
254198
  const moduleSpecifier = importDecl.getModuleSpecifierValue();
@@ -253791,8 +254214,8 @@ function transformImports2(sourceFile, facadePackage) {
253791
254214
  }
253792
254215
  }
253793
254216
  }
253794
- function transform4(source, filePath = "file.tsx", options) {
253795
- const project = new import_ts_morph4.Project({
254217
+ function transform6(source, filePath = "file.tsx", options) {
254218
+ const project = new import_ts_morph6.Project({
253796
254219
  useInMemoryFileSystem: true,
253797
254220
  compilerOptions: {
253798
254221
  jsx: 2
@@ -253800,14 +254223,14 @@ function transform4(source, filePath = "file.tsx", options) {
253800
254223
  }
253801
254224
  });
253802
254225
  const sourceFile = project.createSourceFile(filePath, source);
253803
- transformImports2(sourceFile, options?.facadePackage);
254226
+ transformImports3(sourceFile, options?.facadePackage);
253804
254227
  return sourceFile.getFullText();
253805
254228
  }
253806
- var import_ts_morph4, moduleTransformations;
253807
- var init_transform4 = __esm({
254229
+ var import_ts_morph6, moduleTransformations;
254230
+ var init_transform6 = __esm({
253808
254231
  "codemods/rewrite-v4-imports/transform.ts"() {
253809
254232
  "use strict";
253810
- import_ts_morph4 = __toESM(require_ts_morph(), 1);
254233
+ import_ts_morph6 = __toESM(require_ts_morph(), 1);
253811
254234
  moduleTransformations = {
253812
254235
  // Main Components
253813
254236
  Accordion: "DeprecatedAccordion",
@@ -253957,8 +254380,8 @@ var init_transform4 = __esm({
253957
254380
  __name(matchesPackage2, "matchesPackage");
253958
254381
  __name(isElementsImport2, "isElementsImport");
253959
254382
  __name(getDeprecatedName, "getDeprecatedName");
253960
- __name(transformImports2, "transformImports");
253961
- __name(transform4, "transform");
254383
+ __name(transformImports3, "transformImports");
254384
+ __name(transform6, "transform");
253962
254385
  }
253963
254386
  });
253964
254387
 
@@ -254198,9 +254621,6 @@ var init_export_map = __esm({
254198
254621
  DeprecatedAccordionTitleItemProps: "deprecated/accordion",
254199
254622
  DeprecatedAvatar: "deprecated/avatar",
254200
254623
  DeprecatedAvatarProps: "deprecated/avatar",
254201
- DeprecatedBadge: "deprecated/badge",
254202
- DeprecatedBadgeGroup: "deprecated/badge",
254203
- DeprecatedBadgeProps: "deprecated/badge",
254204
254624
  DeprecatedBreadCrumb: "deprecated/breadcrumb",
254205
254625
  DeprecatedBreadCrumbItem: "deprecated/breadcrumb",
254206
254626
  DeprecatedBreadCrumbProps: "deprecated/breadcrumb",
@@ -254280,9 +254700,6 @@ var init_export_map = __esm({
254280
254700
  DeprecatedTableRowContainerProps: "deprecated/table",
254281
254701
  DeprecatedTableSortHeader: "deprecated/table",
254282
254702
  DeprecatedTableSortHeaderProps: "deprecated/table",
254283
- DeprecatedTag: "deprecated/tag",
254284
- DeprecatedTagGroup: "deprecated/tag",
254285
- DeprecatedTagProps: "deprecated/tag",
254286
254703
  DeprecatedToolTip: "deprecated/tool-tip",
254287
254704
  DeprecatedToolTipChild: "deprecated/tool-tip",
254288
254705
  DeprecatedToolTipChildProps: "deprecated/tool-tip",
@@ -254465,9 +254882,6 @@ var init_export_map = __esm({
254465
254882
  ElDeprecatedAccordionTitleContentWrapper: "deprecated/accordion",
254466
254883
  ElDeprecatedAvatar: "deprecated/avatar",
254467
254884
  ElDeprecatedAvatarImage: "deprecated/avatar",
254468
- ElDeprecatedBadge: "deprecated/badge",
254469
- ElDeprecatedBadgeGroup: "deprecated/badge",
254470
- ElDeprecatedBadgeGroupInner: "deprecated/badge",
254471
254885
  ElDeprecatedBreadCrumbContainer: "deprecated/breadcrumb",
254472
254886
  ElDeprecatedBreadCrumbItem: "deprecated/breadcrumb",
254473
254887
  ElDeprecatedChipCheckbox: "deprecated/chip",
@@ -254538,9 +254952,6 @@ var init_export_map = __esm({
254538
254952
  ElDeprecatedTableRow: "deprecated/table",
254539
254953
  ElDeprecatedTableRowContainer: "deprecated/table",
254540
254954
  ElDeprecatedTableSortHeader: "deprecated/table",
254541
- ElDeprecatedTag: "deprecated/tag",
254542
- ElDeprecatedTagGroup: "deprecated/tag",
254543
- ElDeprecatedTagGroupInner: "deprecated/tag",
254544
254955
  ElDeprecatedToolTipChild: "deprecated/tool-tip",
254545
254956
  ElDeprecatedToolTipContainer: "deprecated/tool-tip",
254546
254957
  elDialog: "core/dialog",
@@ -255608,9 +256019,9 @@ var init_export_map = __esm({
255608
256019
  });
255609
256020
 
255610
256021
  // codemods/rewrite-v5-imports/transform.ts
255611
- var transform_exports5 = {};
255612
- __export(transform_exports5, {
255613
- default: () => transform5
256022
+ var transform_exports7 = {};
256023
+ __export(transform_exports7, {
256024
+ default: () => transform7
255614
256025
  });
255615
256026
  function isBarrelImport(moduleSpecifier) {
255616
256027
  return moduleSpecifier === "@reapit/elements";
@@ -255657,48 +256068,48 @@ function transformDeclaration(sourceFile, importDecl) {
255657
256068
  });
255658
256069
  }
255659
256070
  }
255660
- function transformImports3(sourceFile) {
256071
+ function transformImports4(sourceFile) {
255661
256072
  const importDeclarations = sourceFile.getImportDeclarations();
255662
256073
  const barrelImports = importDeclarations.filter((decl) => isBarrelImport(decl.getModuleSpecifierValue()));
255663
256074
  for (const decl of barrelImports) {
255664
256075
  transformDeclaration(sourceFile, decl);
255665
256076
  }
255666
256077
  }
255667
- function transform5(source, filePath = "file.tsx") {
256078
+ function transform7(source, filePath = "file.tsx") {
255668
256079
  const hasBarrelImport = source.includes("'@reapit/elements'") || source.includes('"@reapit/elements"');
255669
256080
  if (!hasBarrelImport) {
255670
256081
  return source;
255671
256082
  }
255672
- const project = new import_ts_morph5.Project({
256083
+ const project = new import_ts_morph7.Project({
255673
256084
  useInMemoryFileSystem: true,
255674
256085
  compilerOptions: {
255675
256086
  jsx: 2
255676
256087
  // JsxEmit.React
255677
256088
  },
255678
256089
  manipulationSettings: {
255679
- quoteKind: import_ts_morph5.QuoteKind.Single,
256090
+ quoteKind: import_ts_morph7.QuoteKind.Single,
255680
256091
  useTrailingCommas: false
255681
256092
  }
255682
256093
  });
255683
256094
  const sourceFile = project.createSourceFile(filePath, source);
255684
- transformImports3(sourceFile);
256095
+ transformImports4(sourceFile);
255685
256096
  let result = sourceFile.getFullText();
255686
256097
  result = result.replace(/^(import\s+.*?\sfrom\s)"([^"]+)"/gm, "$1'$2'");
255687
256098
  result = result.replace(/^(import\s+.*?from\s+'[^']+');$/gm, "$1");
255688
256099
  return result;
255689
256100
  }
255690
- var import_ts_morph5;
255691
- var init_transform5 = __esm({
256101
+ var import_ts_morph7;
256102
+ var init_transform7 = __esm({
255692
256103
  "codemods/rewrite-v5-imports/transform.ts"() {
255693
256104
  "use strict";
255694
- import_ts_morph5 = __toESM(require_ts_morph(), 1);
256105
+ import_ts_morph7 = __toESM(require_ts_morph(), 1);
255695
256106
  init_export_map();
255696
256107
  __name(isBarrelImport, "isBarrelImport");
255697
256108
  __name(buildSubpathSpecifier, "buildSubpathSpecifier");
255698
256109
  __name(serialiseNamedImport, "serialiseNamedImport");
255699
256110
  __name(transformDeclaration, "transformDeclaration");
255700
- __name(transformImports3, "transformImports");
255701
- __name(transform5, "transform");
256111
+ __name(transformImports4, "transformImports");
256112
+ __name(transform7, "transform");
255702
256113
  }
255703
256114
  });
255704
256115
 
@@ -256263,9 +256674,9 @@ var init_css_variable_map = __esm({
256263
256674
  });
256264
256675
 
256265
256676
  // codemods/upgrade-css-variables/transform.ts
256266
- var transform_exports6 = {};
256267
- __export(transform_exports6, {
256268
- default: () => transform6
256677
+ var transform_exports8 = {};
256678
+ __export(transform_exports8, {
256679
+ default: () => transform8
256269
256680
  });
256270
256681
  function replaceCssVarCalls(source) {
256271
256682
  let result = "";
@@ -256361,25 +256772,25 @@ function replaceCssVarCalls(source) {
256361
256772
  }
256362
256773
  return result;
256363
256774
  }
256364
- function transform6(source, _filePath, _options) {
256775
+ function transform8(source, _filePath, _options) {
256365
256776
  if (!source.includes("var(--")) {
256366
256777
  return source;
256367
256778
  }
256368
256779
  return replaceCssVarCalls(source);
256369
256780
  }
256370
- var init_transform6 = __esm({
256781
+ var init_transform8 = __esm({
256371
256782
  "codemods/upgrade-css-variables/transform.ts"() {
256372
256783
  "use strict";
256373
256784
  init_css_variable_map();
256374
256785
  __name(replaceCssVarCalls, "replaceCssVarCalls");
256375
- __name(transform6, "transform");
256786
+ __name(transform8, "transform");
256376
256787
  }
256377
256788
  });
256378
256789
 
256379
256790
  // codemods/upgrade-deprecated-badge/transform.ts
256380
- var transform_exports7 = {};
256381
- __export(transform_exports7, {
256382
- default: () => transform7
256791
+ var transform_exports9 = {};
256792
+ __export(transform_exports9, {
256793
+ default: () => transform9
256383
256794
  });
256384
256795
  function getDeprecatedBadgeAliases(sourceFile, facadePackage) {
256385
256796
  const aliases = /* @__PURE__ */ new Set();
@@ -256413,7 +256824,7 @@ function getDeprecatedBadgeGroupAliases(sourceFile, facadePackage) {
256413
256824
  }
256414
256825
  return aliases;
256415
256826
  }
256416
- function transformImports4(sourceFile, facadePackage) {
256827
+ function transformImports5(sourceFile, facadePackage) {
256417
256828
  const badgeImportsToAdd = [];
256418
256829
  const targetModuleSpecifier = facadePackage ?? "@reapit/elements/core/badge";
256419
256830
  const alreadyMigratedPath = facadePackage ? null : "@reapit/elements/core/badge";
@@ -256475,14 +256886,14 @@ function transformImports4(sourceFile, facadePackage) {
256475
256886
  }
256476
256887
  }
256477
256888
  }
256478
- function transformTypeReferences(sourceFile) {
256479
- for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph6.SyntaxKind.TypeReference)) {
256889
+ function transformTypeReferences2(sourceFile) {
256890
+ for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.TypeReference)) {
256480
256891
  const typeName = typeRef.getTypeName();
256481
256892
  if (typeName.getText() === "DeprecatedBadgeProps") {
256482
256893
  typeName.replaceWithText("Badge.Props");
256483
256894
  }
256484
256895
  }
256485
- for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph6.SyntaxKind.ExpressionWithTypeArguments)) {
256896
+ for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.ExpressionWithTypeArguments)) {
256486
256897
  const expression = heritage.getExpression();
256487
256898
  if (expression.getText() === "DeprecatedBadgeProps") {
256488
256899
  expression.replaceWithText("Badge.Props");
@@ -256491,12 +256902,12 @@ function transformTypeReferences(sourceFile) {
256491
256902
  }
256492
256903
  function extractStringValue(init) {
256493
256904
  const kind = init.getKind();
256494
- if (kind === import_ts_morph6.SyntaxKind.StringLiteral) {
256905
+ if (kind === import_ts_morph8.SyntaxKind.StringLiteral) {
256495
256906
  return init.getLiteralText();
256496
256907
  }
256497
- if (kind === import_ts_morph6.SyntaxKind.JsxExpression) {
256908
+ if (kind === import_ts_morph8.SyntaxKind.JsxExpression) {
256498
256909
  const expr = init.getExpression();
256499
- if (expr?.getKind() === import_ts_morph6.SyntaxKind.StringLiteral) {
256910
+ if (expr?.getKind() === import_ts_morph8.SyntaxKind.StringLiteral) {
256500
256911
  return expr.getLiteralText();
256501
256912
  }
256502
256913
  }
@@ -256504,8 +256915,8 @@ function extractStringValue(init) {
256504
256915
  }
256505
256916
  function transformBadgeElements(sourceFile, aliases) {
256506
256917
  const elements = [
256507
- ...sourceFile.getDescendantsOfKind(import_ts_morph6.SyntaxKind.JsxOpeningElement),
256508
- ...sourceFile.getDescendantsOfKind(import_ts_morph6.SyntaxKind.JsxSelfClosingElement)
256918
+ ...sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxOpeningElement),
256919
+ ...sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxSelfClosingElement)
256509
256920
  ];
256510
256921
  for (const element of elements) {
256511
256922
  const tagName = element.getTagNameNode();
@@ -256520,8 +256931,8 @@ function transformBadgeElements(sourceFile, aliases) {
256520
256931
  let hasIntentAttr = false;
256521
256932
  let hasColourAttr = false;
256522
256933
  for (const attr of attributes) {
256523
- if (attr.getKind() !== import_ts_morph6.SyntaxKind.JsxAttribute) continue;
256524
- const jsxAttr = attr.asKind(import_ts_morph6.SyntaxKind.JsxAttribute);
256934
+ if (attr.getKind() !== import_ts_morph8.SyntaxKind.JsxAttribute) continue;
256935
+ const jsxAttr = attr.asKind(import_ts_morph8.SyntaxKind.JsxAttribute);
256525
256936
  const name = jsxAttr.getNameNode().getText();
256526
256937
  if (name === "intent") {
256527
256938
  hasIntentAttr = true;
@@ -256542,8 +256953,8 @@ function transformBadgeElements(sourceFile, aliases) {
256542
256953
  }
256543
256954
  if (hasIntentAttr) {
256544
256955
  for (const attr of attributes.slice()) {
256545
- if (attr.getKind() !== import_ts_morph6.SyntaxKind.JsxAttribute) continue;
256546
- const jsxAttr = attr.asKind(import_ts_morph6.SyntaxKind.JsxAttribute);
256956
+ if (attr.getKind() !== import_ts_morph8.SyntaxKind.JsxAttribute) continue;
256957
+ const jsxAttr = attr.asKind(import_ts_morph8.SyntaxKind.JsxAttribute);
256547
256958
  if (jsxAttr.getNameNode().getText() !== "intent") continue;
256548
256959
  if (intentIsDynamic) {
256549
256960
  jsxAttr.getNameNode().replaceWithText("colour");
@@ -256556,10 +256967,10 @@ function transformBadgeElements(sourceFile, aliases) {
256556
256967
  } else if (!hasColourAttr) {
256557
256968
  element.addAttribute({ name: "colour", initializer: '"neutral"' });
256558
256969
  }
256559
- if (element.getKind() === import_ts_morph6.SyntaxKind.JsxOpeningElement) {
256970
+ if (element.getKind() === import_ts_morph8.SyntaxKind.JsxOpeningElement) {
256560
256971
  const parent = element.getParent();
256561
- if (parent?.getKind() === import_ts_morph6.SyntaxKind.JsxElement) {
256562
- const closingTag = parent.asKind(import_ts_morph6.SyntaxKind.JsxElement)?.getClosingElement();
256972
+ if (parent?.getKind() === import_ts_morph8.SyntaxKind.JsxElement) {
256973
+ const closingTag = parent.asKind(import_ts_morph8.SyntaxKind.JsxElement)?.getClosingElement();
256563
256974
  if (closingTag?.getTagNameNode().getText() === "DeprecatedBadge") {
256564
256975
  closingTag.getTagNameNode().replaceWithText("Badge");
256565
256976
  }
@@ -256569,20 +256980,20 @@ function transformBadgeElements(sourceFile, aliases) {
256569
256980
  }
256570
256981
  function transformBadgeGroupElements(sourceFile, aliases) {
256571
256982
  const commentPositions = [];
256572
- for (const element of sourceFile.getDescendantsOfKind(import_ts_morph6.SyntaxKind.JsxSelfClosingElement)) {
256983
+ for (const element of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxSelfClosingElement)) {
256573
256984
  if (!aliases.has(element.getTagNameNode().getText())) continue;
256574
256985
  const startPos = element.getStart();
256575
256986
  element.getTagNameNode().replaceWithText("div");
256576
256987
  element.addAttribute({ name: "style", initializer: '{{ display: "flex", flexWrap: "wrap", gap: "0.25rem" }}' });
256577
256988
  commentPositions.push(startPos);
256578
256989
  }
256579
- for (const element of sourceFile.getDescendantsOfKind(import_ts_morph6.SyntaxKind.JsxOpeningElement)) {
256990
+ for (const element of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxOpeningElement)) {
256580
256991
  if (!aliases.has(element.getTagNameNode().getText())) continue;
256581
256992
  element.getTagNameNode().replaceWithText("div");
256582
256993
  element.addAttribute({ name: "style", initializer: '{{ display: "flex", flexWrap: "wrap", gap: "0.25rem" }}' });
256583
256994
  const parent = element.getParent();
256584
- if (parent?.getKind() === import_ts_morph6.SyntaxKind.JsxElement) {
256585
- const closingTag = parent.asKind(import_ts_morph6.SyntaxKind.JsxElement)?.getClosingElement();
256995
+ if (parent?.getKind() === import_ts_morph8.SyntaxKind.JsxElement) {
256996
+ const closingTag = parent.asKind(import_ts_morph8.SyntaxKind.JsxElement)?.getClosingElement();
256586
256997
  if (closingTag && aliases.has(closingTag.getTagNameNode().getText())) {
256587
256998
  closingTag.getTagNameNode().replaceWithText("div");
256588
256999
  }
@@ -256595,33 +257006,33 @@ function transformBadgeGroupElements(sourceFile, aliases) {
256595
257006
  `);
256596
257007
  }
256597
257008
  }
256598
- function transform7(source, filePath = "file.tsx", options) {
257009
+ function transform9(source, filePath = "file.tsx", options) {
256599
257010
  if (!source.includes("DeprecatedBadge")) return source;
256600
- const project = new import_ts_morph6.Project({
257011
+ const project = new import_ts_morph8.Project({
256601
257012
  useInMemoryFileSystem: true,
256602
257013
  compilerOptions: {
256603
257014
  jsx: 2
256604
257015
  // JsxEmit.React
256605
257016
  },
256606
257017
  manipulationSettings: {
256607
- quoteKind: import_ts_morph6.QuoteKind.Single
257018
+ quoteKind: import_ts_morph8.QuoteKind.Single
256608
257019
  }
256609
257020
  });
256610
257021
  const sourceFile = project.createSourceFile(filePath, source);
256611
257022
  const facadePackage = options?.facadePackage;
256612
257023
  const badgeAliases = getDeprecatedBadgeAliases(sourceFile, facadePackage);
256613
257024
  const badgeGroupAliases = getDeprecatedBadgeGroupAliases(sourceFile, facadePackage);
256614
- transformImports4(sourceFile, facadePackage);
256615
- transformTypeReferences(sourceFile);
257025
+ transformImports5(sourceFile, facadePackage);
257026
+ transformTypeReferences2(sourceFile);
256616
257027
  transformBadgeElements(sourceFile, badgeAliases);
256617
257028
  transformBadgeGroupElements(sourceFile, badgeGroupAliases);
256618
257029
  return sourceFile.getFullText();
256619
257030
  }
256620
- var import_ts_morph6, INTENT_TO_COLOUR, IMPORTS_TO_REMOVE, TODO_COMMENT;
256621
- var init_transform7 = __esm({
257031
+ var import_ts_morph8, INTENT_TO_COLOUR, IMPORTS_TO_REMOVE, TODO_COMMENT;
257032
+ var init_transform9 = __esm({
256622
257033
  "codemods/upgrade-deprecated-badge/transform.ts"() {
256623
257034
  "use strict";
256624
- import_ts_morph6 = __toESM(require_ts_morph(), 1);
257035
+ import_ts_morph8 = __toESM(require_ts_morph(), 1);
256625
257036
  init_elements_import();
256626
257037
  INTENT_TO_COLOUR = {
256627
257038
  primary: "neutral",
@@ -256644,24 +257055,24 @@ var init_transform7 = __esm({
256644
257055
  "ElDeprecatedBadgeGroup",
256645
257056
  "ElDeprecatedBadgeGroupInner"
256646
257057
  ]);
256647
- __name(transformImports4, "transformImports");
256648
- __name(transformTypeReferences, "transformTypeReferences");
257058
+ __name(transformImports5, "transformImports");
257059
+ __name(transformTypeReferences2, "transformTypeReferences");
256649
257060
  __name(extractStringValue, "extractStringValue");
256650
257061
  __name(transformBadgeElements, "transformBadgeElements");
256651
257062
  TODO_COMMENT = "{/* TODO: DeprecatedBadgeGroup has no core equivalent \u2014 review this layout */}";
256652
257063
  __name(transformBadgeGroupElements, "transformBadgeGroupElements");
256653
- __name(transform7, "transform");
257064
+ __name(transform9, "transform");
256654
257065
  }
256655
257066
  });
256656
257067
 
256657
257068
  // codemods/upgrade-deprecated-button/transform.ts
256658
- var transform_exports8 = {};
256659
- __export(transform_exports8, {
256660
- default: () => transform8
257069
+ var transform_exports10 = {};
257070
+ __export(transform_exports10, {
257071
+ default: () => transform10
256661
257072
  });
256662
257073
  function usesDeprecatedIconInJsx(sourceFile) {
256663
- const jsxElements = sourceFile.getDescendantsOfKind(import_ts_morph7.SyntaxKind.JsxOpeningElement);
256664
- const jsxSelfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph7.SyntaxKind.JsxSelfClosingElement);
257074
+ const jsxElements = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxOpeningElement);
257075
+ const jsxSelfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxSelfClosingElement);
256665
257076
  const allElements = [...jsxElements, ...jsxSelfClosingElements];
256666
257077
  return allElements.some((element) => {
256667
257078
  const tagName = element.getTagNameNode().getText();
@@ -256708,8 +257119,8 @@ function addDeprecatedIconImportIfNeeded(sourceFile, facadePackage) {
256708
257119
  mainImport.addNamedImport("DeprecatedIcon");
256709
257120
  }
256710
257121
  }
256711
- function transformTypeReferences2(sourceFile) {
256712
- const typeReferences = sourceFile.getDescendantsOfKind(import_ts_morph7.SyntaxKind.TypeReference);
257122
+ function transformTypeReferences3(sourceFile) {
257123
+ const typeReferences = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.TypeReference);
256713
257124
  for (const typeRef of typeReferences) {
256714
257125
  const typeName = typeRef.getTypeName();
256715
257126
  const typeNameText = typeName.getText();
@@ -256717,7 +257128,7 @@ function transformTypeReferences2(sourceFile) {
256717
257128
  typeName.replaceWithText("Button.Props");
256718
257129
  }
256719
257130
  }
256720
- const heritageExpressions = sourceFile.getDescendantsOfKind(import_ts_morph7.SyntaxKind.ExpressionWithTypeArguments);
257131
+ const heritageExpressions = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.ExpressionWithTypeArguments);
256721
257132
  for (const heritage of heritageExpressions) {
256722
257133
  const expression = heritage.getExpression();
256723
257134
  const expressionText = expression.getText();
@@ -256726,7 +257137,7 @@ function transformTypeReferences2(sourceFile) {
256726
257137
  }
256727
257138
  }
256728
257139
  }
256729
- function transformImports5(sourceFile, facadePackage) {
257140
+ function transformImports6(sourceFile, facadePackage) {
256730
257141
  const buttonImportsToAdd = [];
256731
257142
  const importDeclarations = sourceFile.getImportDeclarations().slice();
256732
257143
  const elementsTargetSpecifier = "@reapit/elements/core/button";
@@ -256844,10 +257255,10 @@ function getDeprecatedButtonAliases(sourceFile, facadePackage) {
256844
257255
  }
256845
257256
  return aliases;
256846
257257
  }
256847
- function transformJsxElements2(sourceFile, aliases) {
257258
+ function transformJsxElements3(sourceFile, aliases) {
256848
257259
  const jsxElements = [
256849
- ...sourceFile.getDescendantsOfKind(import_ts_morph7.SyntaxKind.JsxOpeningElement),
256850
- ...sourceFile.getDescendantsOfKind(import_ts_morph7.SyntaxKind.JsxSelfClosingElement)
257260
+ ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxOpeningElement),
257261
+ ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxSelfClosingElement)
256851
257262
  ];
256852
257263
  for (const element of jsxElements) {
256853
257264
  const tagName = element.getTagNameNode();
@@ -256866,10 +257277,10 @@ function transformJsxElements2(sourceFile, aliases) {
256866
257277
  let loadingValue;
256867
257278
  let sizeValue;
256868
257279
  for (const attr of attributes) {
256869
- if (attr.getKind() !== import_ts_morph7.SyntaxKind.JsxAttribute) {
257280
+ if (attr.getKind() !== import_ts_morph9.SyntaxKind.JsxAttribute) {
256870
257281
  continue;
256871
257282
  }
256872
- const jsxAttr = attr.asKind(import_ts_morph7.SyntaxKind.JsxAttribute);
257283
+ const jsxAttr = attr.asKind(import_ts_morph9.SyntaxKind.JsxAttribute);
256873
257284
  const name = jsxAttr.getNameNode().getText();
256874
257285
  if (name === "href") {
256875
257286
  hasHref = true;
@@ -256907,10 +257318,10 @@ function transformJsxElements2(sourceFile, aliases) {
256907
257318
  }
256908
257319
  }
256909
257320
  for (const attr of attributes.slice()) {
256910
- if (attr.getKind() !== import_ts_morph7.SyntaxKind.JsxAttribute) {
257321
+ if (attr.getKind() !== import_ts_morph9.SyntaxKind.JsxAttribute) {
256911
257322
  continue;
256912
257323
  }
256913
- const jsxAttr = attr.asKind(import_ts_morph7.SyntaxKind.JsxAttribute);
257324
+ const jsxAttr = attr.asKind(import_ts_morph9.SyntaxKind.JsxAttribute);
256914
257325
  const name = jsxAttr.getNameNode().getText();
256915
257326
  if (name === "intent") {
256916
257327
  if (variantValue) {
@@ -256925,17 +257336,17 @@ function transformJsxElements2(sourceFile, aliases) {
256925
257336
  const init = jsxAttr.getInitializer();
256926
257337
  if (init) {
256927
257338
  const kind = init.getKind();
256928
- if (kind === import_ts_morph7.SyntaxKind.StringLiteral) {
256929
- const stringLiteral = init.asKind(import_ts_morph7.SyntaxKind.StringLiteral);
257339
+ if (kind === import_ts_morph9.SyntaxKind.StringLiteral) {
257340
+ const stringLiteral = init.asKind(import_ts_morph9.SyntaxKind.StringLiteral);
256930
257341
  if (stringLiteral) {
256931
257342
  stringLiteral.setLiteralValue("secondary");
256932
257343
  }
256933
- } else if (kind === import_ts_morph7.SyntaxKind.JsxExpression) {
256934
- const jsxExpr = init.asKind(import_ts_morph7.SyntaxKind.JsxExpression);
257344
+ } else if (kind === import_ts_morph9.SyntaxKind.JsxExpression) {
257345
+ const jsxExpr = init.asKind(import_ts_morph9.SyntaxKind.JsxExpression);
256935
257346
  if (jsxExpr) {
256936
257347
  const expression = jsxExpr.getExpression();
256937
- if (expression && expression.getKind() === import_ts_morph7.SyntaxKind.StringLiteral) {
256938
- const stringLiteral = expression.asKind(import_ts_morph7.SyntaxKind.StringLiteral);
257348
+ if (expression && expression.getKind() === import_ts_morph9.SyntaxKind.StringLiteral) {
257349
+ const stringLiteral = expression.asKind(import_ts_morph9.SyntaxKind.StringLiteral);
256939
257350
  if (stringLiteral) {
256940
257351
  stringLiteral.setLiteralValue("secondary");
256941
257352
  }
@@ -256947,17 +257358,17 @@ function transformJsxElements2(sourceFile, aliases) {
256947
257358
  const init = jsxAttr.getInitializer();
256948
257359
  if (init) {
256949
257360
  const kind = init.getKind();
256950
- if (kind === import_ts_morph7.SyntaxKind.StringLiteral) {
256951
- const stringLiteral = init.asKind(import_ts_morph7.SyntaxKind.StringLiteral);
257361
+ if (kind === import_ts_morph9.SyntaxKind.StringLiteral) {
257362
+ const stringLiteral = init.asKind(import_ts_morph9.SyntaxKind.StringLiteral);
256952
257363
  if (stringLiteral) {
256953
257364
  stringLiteral.setLiteralValue("primary");
256954
257365
  }
256955
- } else if (kind === import_ts_morph7.SyntaxKind.JsxExpression) {
256956
- const jsxExpr = init.asKind(import_ts_morph7.SyntaxKind.JsxExpression);
257366
+ } else if (kind === import_ts_morph9.SyntaxKind.JsxExpression) {
257367
+ const jsxExpr = init.asKind(import_ts_morph9.SyntaxKind.JsxExpression);
256957
257368
  if (jsxExpr) {
256958
257369
  const expression = jsxExpr.getExpression();
256959
- if (expression && expression.getKind() === import_ts_morph7.SyntaxKind.StringLiteral) {
256960
- const stringLiteral = expression.asKind(import_ts_morph7.SyntaxKind.StringLiteral);
257370
+ if (expression && expression.getKind() === import_ts_morph9.SyntaxKind.StringLiteral) {
257371
+ const stringLiteral = expression.asKind(import_ts_morph9.SyntaxKind.StringLiteral);
256961
257372
  if (stringLiteral) {
256962
257373
  stringLiteral.setLiteralValue("primary");
256963
257374
  }
@@ -256978,10 +257389,10 @@ function transformJsxElements2(sourceFile, aliases) {
256978
257389
  let shouldRemove = false;
256979
257390
  if (init) {
256980
257391
  const kind = init.getKind();
256981
- if (kind === import_ts_morph7.SyntaxKind.JsxExpression) {
256982
- const jsxExpr = init.asKind(import_ts_morph7.SyntaxKind.JsxExpression);
257392
+ if (kind === import_ts_morph9.SyntaxKind.JsxExpression) {
257393
+ const jsxExpr = init.asKind(import_ts_morph9.SyntaxKind.JsxExpression);
256983
257394
  const expression = jsxExpr?.getExpression();
256984
- if (expression?.getKind() === import_ts_morph7.SyntaxKind.FalseKeyword) {
257395
+ if (expression?.getKind() === import_ts_morph9.SyntaxKind.FalseKeyword) {
256985
257396
  shouldRemove = true;
256986
257397
  }
256987
257398
  }
@@ -256998,8 +257409,8 @@ function transformJsxElements2(sourceFile, aliases) {
256998
257409
  }
256999
257410
  } else if (name === "size" && sizeValue) {
257000
257411
  const init = jsxAttr.getInitializer();
257001
- if (init && init.getKind() === import_ts_morph7.SyntaxKind.JsxExpression) {
257002
- const jsxExpr = init.asKind(import_ts_morph7.SyntaxKind.JsxExpression);
257412
+ if (init && init.getKind() === import_ts_morph9.SyntaxKind.JsxExpression) {
257413
+ const jsxExpr = init.asKind(import_ts_morph9.SyntaxKind.JsxExpression);
257003
257414
  if (jsxExpr) {
257004
257415
  const expression = jsxExpr.getExpression();
257005
257416
  if (expression) {
@@ -257045,10 +257456,10 @@ function transformJsxElements2(sourceFile, aliases) {
257045
257456
  }
257046
257457
  }
257047
257458
  }
257048
- if (element.getKind() === import_ts_morph7.SyntaxKind.JsxOpeningElement) {
257459
+ if (element.getKind() === import_ts_morph9.SyntaxKind.JsxOpeningElement) {
257049
257460
  const parent = element.getParent();
257050
- if (parent && parent.getKind() === import_ts_morph7.SyntaxKind.JsxElement) {
257051
- const closingElement = parent.asKind(import_ts_morph7.SyntaxKind.JsxElement)?.getClosingElement();
257461
+ if (parent && parent.getKind() === import_ts_morph9.SyntaxKind.JsxElement) {
257462
+ const closingElement = parent.asKind(import_ts_morph9.SyntaxKind.JsxElement)?.getClosingElement();
257052
257463
  if (closingElement) {
257053
257464
  const closingTagName = closingElement.getTagNameNode();
257054
257465
  if (closingTagName.getText() === "DeprecatedButton") {
@@ -257061,19 +257472,19 @@ function transformJsxElements2(sourceFile, aliases) {
257061
257472
  }
257062
257473
  function extractStringOrExpressionValue(init) {
257063
257474
  const kind = init.getKind();
257064
- if (kind === import_ts_morph7.SyntaxKind.StringLiteral) {
257065
- const stringLiteral = init.asKind(import_ts_morph7.SyntaxKind.StringLiteral);
257475
+ if (kind === import_ts_morph9.SyntaxKind.StringLiteral) {
257476
+ const stringLiteral = init.asKind(import_ts_morph9.SyntaxKind.StringLiteral);
257066
257477
  if (stringLiteral) {
257067
257478
  return stringLiteral.getLiteralText();
257068
257479
  }
257069
- } else if (kind === import_ts_morph7.SyntaxKind.JsxExpression) {
257070
- const jsxExpr = init.asKind(import_ts_morph7.SyntaxKind.JsxExpression);
257480
+ } else if (kind === import_ts_morph9.SyntaxKind.JsxExpression) {
257481
+ const jsxExpr = init.asKind(import_ts_morph9.SyntaxKind.JsxExpression);
257071
257482
  if (jsxExpr) {
257072
257483
  const expression = jsxExpr.getExpression();
257073
257484
  if (expression) {
257074
257485
  const exprKind = expression.getKind();
257075
- if (exprKind === import_ts_morph7.SyntaxKind.StringLiteral) {
257076
- const stringLiteral = expression.asKind(import_ts_morph7.SyntaxKind.StringLiteral);
257486
+ if (exprKind === import_ts_morph9.SyntaxKind.StringLiteral) {
257487
+ const stringLiteral = expression.asKind(import_ts_morph9.SyntaxKind.StringLiteral);
257077
257488
  if (stringLiteral) {
257078
257489
  return stringLiteral.getLiteralText();
257079
257490
  }
@@ -257085,61 +257496,61 @@ function extractStringOrExpressionValue(init) {
257085
257496
  }
257086
257497
  return void 0;
257087
257498
  }
257088
- function transform8(source, filePath = "file.tsx", options) {
257499
+ function transform10(source, filePath = "file.tsx", options) {
257089
257500
  if (!source.includes("DeprecatedButton")) {
257090
257501
  return source;
257091
257502
  }
257092
- const project = new import_ts_morph7.Project({
257503
+ const project = new import_ts_morph9.Project({
257093
257504
  useInMemoryFileSystem: true,
257094
257505
  compilerOptions: {
257095
257506
  jsx: 2
257096
257507
  // JsxEmit.React
257097
257508
  },
257098
257509
  manipulationSettings: {
257099
- quoteKind: import_ts_morph7.QuoteKind.Single
257510
+ quoteKind: import_ts_morph9.QuoteKind.Single
257100
257511
  }
257101
257512
  });
257102
257513
  const sourceFile = project.createSourceFile(filePath, source);
257103
257514
  const deprecatedButtonAliases = getDeprecatedButtonAliases(sourceFile, options?.facadePackage);
257104
- transformImports5(sourceFile, options?.facadePackage);
257105
- transformTypeReferences2(sourceFile);
257106
- transformJsxElements2(sourceFile, deprecatedButtonAliases);
257515
+ transformImports6(sourceFile, options?.facadePackage);
257516
+ transformTypeReferences3(sourceFile);
257517
+ transformJsxElements3(sourceFile, deprecatedButtonAliases);
257107
257518
  return sourceFile.getFullText();
257108
257519
  }
257109
- var import_ts_morph7;
257110
- var init_transform8 = __esm({
257520
+ var import_ts_morph9;
257521
+ var init_transform10 = __esm({
257111
257522
  "codemods/upgrade-deprecated-button/transform.ts"() {
257112
257523
  "use strict";
257113
- import_ts_morph7 = __toESM(require_ts_morph(), 1);
257524
+ import_ts_morph9 = __toESM(require_ts_morph(), 1);
257114
257525
  init_elements_import();
257115
257526
  __name(usesDeprecatedIconInJsx, "usesDeprecatedIconInJsx");
257116
257527
  __name(hasDeprecatedIconImport, "hasDeprecatedIconImport");
257117
257528
  __name(addDeprecatedIconImportIfNeeded, "addDeprecatedIconImportIfNeeded");
257118
- __name(transformTypeReferences2, "transformTypeReferences");
257119
- __name(transformImports5, "transformImports");
257529
+ __name(transformTypeReferences3, "transformTypeReferences");
257530
+ __name(transformImports6, "transformImports");
257120
257531
  __name(getDeprecatedButtonAliases, "getDeprecatedButtonAliases");
257121
- __name(transformJsxElements2, "transformJsxElements");
257532
+ __name(transformJsxElements3, "transformJsxElements");
257122
257533
  __name(extractStringOrExpressionValue, "extractStringOrExpressionValue");
257123
- __name(transform8, "transform");
257534
+ __name(transform10, "transform");
257124
257535
  }
257125
257536
  });
257126
257537
 
257127
257538
  // codemods/upgrade-deprecated-button-group/transform.ts
257128
- var transform_exports9 = {};
257129
- __export(transform_exports9, {
257130
- default: () => transform9
257539
+ var transform_exports11 = {};
257540
+ __export(transform_exports11, {
257541
+ default: () => transform11
257131
257542
  });
257132
257543
  function shouldUseJsxComment(element) {
257133
257544
  let parent = element.getParent();
257134
257545
  while (parent) {
257135
257546
  const kind = parent.getKind();
257136
- if (kind === import_ts_morph8.SyntaxKind.JsxElement || kind === import_ts_morph8.SyntaxKind.JsxFragment) {
257547
+ if (kind === import_ts_morph10.SyntaxKind.JsxElement || kind === import_ts_morph10.SyntaxKind.JsxFragment) {
257137
257548
  return true;
257138
257549
  }
257139
- if (kind === import_ts_morph8.SyntaxKind.JsxExpression) {
257550
+ if (kind === import_ts_morph10.SyntaxKind.JsxExpression) {
257140
257551
  return false;
257141
257552
  }
257142
- if (kind === import_ts_morph8.SyntaxKind.PropertyAssignment || kind === import_ts_morph8.SyntaxKind.ArrayLiteralExpression || kind === import_ts_morph8.SyntaxKind.VariableDeclaration || kind === import_ts_morph8.SyntaxKind.CallExpression || kind === import_ts_morph8.SyntaxKind.ReturnStatement || kind === import_ts_morph8.SyntaxKind.ArrowFunction) {
257553
+ if (kind === import_ts_morph10.SyntaxKind.PropertyAssignment || kind === import_ts_morph10.SyntaxKind.ArrayLiteralExpression || kind === import_ts_morph10.SyntaxKind.VariableDeclaration || kind === import_ts_morph10.SyntaxKind.CallExpression || kind === import_ts_morph10.SyntaxKind.ReturnStatement || kind === import_ts_morph10.SyntaxKind.ArrowFunction) {
257143
257554
  return false;
257144
257555
  }
257145
257556
  parent = parent.getParent();
@@ -257162,7 +257573,7 @@ function getDeprecatedButtonGroupAliases(sourceFile, facadePackage) {
257162
257573
  }
257163
257574
  return aliases;
257164
257575
  }
257165
- function transformImports6(sourceFile, facadePackage) {
257576
+ function transformImports7(sourceFile, facadePackage) {
257166
257577
  const importsToAdd = [];
257167
257578
  const targetModuleSpecifier = facadePackage ?? "@reapit/elements/core/button-group";
257168
257579
  const alreadyMigratedPath = facadePackage ? null : "@reapit/elements/core/button-group";
@@ -257227,16 +257638,16 @@ function transformImports6(sourceFile, facadePackage) {
257227
257638
  }
257228
257639
  return resolvedLocalName;
257229
257640
  }
257230
- function transformTypeReferences3(sourceFile) {
257641
+ function transformTypeReferences4(sourceFile) {
257231
257642
  let rewrote = false;
257232
- for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.TypeReference)) {
257643
+ for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.TypeReference)) {
257233
257644
  const typeName = typeRef.getTypeName();
257234
257645
  if (typeName.getText() === "DeprecatedButtonGroupProps") {
257235
257646
  typeName.replaceWithText("ButtonGroup.Props");
257236
257647
  rewrote = true;
257237
257648
  }
257238
257649
  }
257239
- for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.ExpressionWithTypeArguments)) {
257650
+ for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.ExpressionWithTypeArguments)) {
257240
257651
  const expression = heritage.getExpression();
257241
257652
  if (expression.getText() === "DeprecatedButtonGroupProps") {
257242
257653
  expression.replaceWithText("ButtonGroup.Props");
@@ -257245,10 +257656,10 @@ function transformTypeReferences3(sourceFile) {
257245
257656
  }
257246
257657
  return rewrote;
257247
257658
  }
257248
- function transformJsxElements3(sourceFile, aliases) {
257659
+ function transformJsxElements4(sourceFile, aliases) {
257249
257660
  const commentInsertions = [];
257250
- const openingElements = sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxOpeningElement).slice();
257251
- const selfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxSelfClosingElement).slice();
257661
+ const openingElements = sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.JsxOpeningElement).slice();
257662
+ const selfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.JsxSelfClosingElement).slice();
257252
257663
  for (const element of selfClosingElements) {
257253
257664
  if (element.wasForgotten()) continue;
257254
257665
  const tagName = element.getTagNameNode();
@@ -257267,8 +257678,8 @@ function transformJsxElements3(sourceFile, aliases) {
257267
257678
  }
257268
257679
  transformAlignmentProp(element, commentInsertions);
257269
257680
  const parent = element.getParent();
257270
- if (parent?.getKind() === import_ts_morph8.SyntaxKind.JsxElement) {
257271
- const jsxElement = parent.asKind(import_ts_morph8.SyntaxKind.JsxElement);
257681
+ if (parent?.getKind() === import_ts_morph10.SyntaxKind.JsxElement) {
257682
+ const jsxElement = parent.asKind(import_ts_morph10.SyntaxKind.JsxElement);
257272
257683
  const closingTag = jsxElement.getClosingElement();
257273
257684
  if (closingTag.getTagNameNode().getText() === "DeprecatedButtonGroup") {
257274
257685
  closingTag.getTagNameNode().replaceWithText("ButtonGroup");
@@ -257282,22 +257693,22 @@ function transformJsxElements3(sourceFile, aliases) {
257282
257693
  }
257283
257694
  }
257284
257695
  function transformAlignmentProp(element, commentInsertions) {
257285
- const jsxElement = element.asKind(import_ts_morph8.SyntaxKind.JsxOpeningElement) ?? element.asKind(import_ts_morph8.SyntaxKind.JsxSelfClosingElement);
257696
+ const jsxElement = element.asKind(import_ts_morph10.SyntaxKind.JsxOpeningElement) ?? element.asKind(import_ts_morph10.SyntaxKind.JsxSelfClosingElement);
257286
257697
  if (!jsxElement) return;
257287
257698
  const alignmentAttr = jsxElement.getAttribute("alignment");
257288
257699
  if (!alignmentAttr) return;
257289
- const jsxAttr = alignmentAttr.asKind(import_ts_morph8.SyntaxKind.JsxAttribute);
257700
+ const jsxAttr = alignmentAttr.asKind(import_ts_morph10.SyntaxKind.JsxAttribute);
257290
257701
  if (!jsxAttr) return;
257291
257702
  const init = jsxAttr.getInitializer();
257292
257703
  let staticValue;
257293
257704
  if (!init) {
257294
257705
  staticValue = void 0;
257295
- } else if (init.getKind() === import_ts_morph8.SyntaxKind.StringLiteral) {
257296
- staticValue = init.asKind(import_ts_morph8.SyntaxKind.StringLiteral).getLiteralText();
257297
- } else if (init.getKind() === import_ts_morph8.SyntaxKind.JsxExpression) {
257298
- const expr = init.asKind(import_ts_morph8.SyntaxKind.JsxExpression).getExpression();
257299
- if (expr?.getKind() === import_ts_morph8.SyntaxKind.StringLiteral) {
257300
- staticValue = expr.asKind(import_ts_morph8.SyntaxKind.StringLiteral).getLiteralText();
257706
+ } else if (init.getKind() === import_ts_morph10.SyntaxKind.StringLiteral) {
257707
+ staticValue = init.asKind(import_ts_morph10.SyntaxKind.StringLiteral).getLiteralText();
257708
+ } else if (init.getKind() === import_ts_morph10.SyntaxKind.JsxExpression) {
257709
+ const expr = init.asKind(import_ts_morph10.SyntaxKind.JsxExpression).getExpression();
257710
+ if (expr?.getKind() === import_ts_morph10.SyntaxKind.StringLiteral) {
257711
+ staticValue = expr.asKind(import_ts_morph10.SyntaxKind.StringLiteral).getLiteralText();
257301
257712
  }
257302
257713
  }
257303
257714
  const mappedValue = staticValue !== void 0 ? ALIGNMENT_TO_JUSTIFY_CONTENT[staticValue] : void 0;
@@ -257307,28 +257718,28 @@ function transformAlignmentProp(element, commentInsertions) {
257307
257718
  } else {
257308
257719
  const useJsx = shouldUseJsxComment(jsxElement);
257309
257720
  const todoText = useJsx ? TODO_DYNAMIC_ALIGNMENT_JSX : TODO_DYNAMIC_ALIGNMENT_JS;
257310
- const elementStart = jsxElement.getParent()?.getKind() === import_ts_morph8.SyntaxKind.JsxElement ? jsxElement.getParent().getStart() : jsxElement.getStart();
257721
+ const elementStart = jsxElement.getParent()?.getKind() === import_ts_morph10.SyntaxKind.JsxElement ? jsxElement.getParent().getStart() : jsxElement.getStart();
257311
257722
  jsxAttr.remove();
257312
257723
  commentInsertions.push({ pos: elementStart, text: todoText });
257313
257724
  }
257314
257725
  }
257315
- function transform9(source, filePath = "file.tsx", options) {
257726
+ function transform11(source, filePath = "file.tsx", options) {
257316
257727
  if (!source.includes("DeprecatedButtonGroup")) return source;
257317
- const project = new import_ts_morph8.Project({
257728
+ const project = new import_ts_morph10.Project({
257318
257729
  useInMemoryFileSystem: true,
257319
257730
  compilerOptions: {
257320
257731
  jsx: 2
257321
257732
  // JsxEmit.React
257322
257733
  },
257323
257734
  manipulationSettings: {
257324
- quoteKind: import_ts_morph8.QuoteKind.Single
257735
+ quoteKind: import_ts_morph10.QuoteKind.Single
257325
257736
  }
257326
257737
  });
257327
257738
  const sourceFile = project.createSourceFile(filePath, source);
257328
257739
  const facadePackage = options?.facadePackage;
257329
257740
  const aliases = getDeprecatedButtonGroupAliases(sourceFile, facadePackage);
257330
- const importLocalName = transformImports6(sourceFile, facadePackage);
257331
- const typeRewriteOccurred = transformTypeReferences3(sourceFile);
257741
+ const importLocalName = transformImports7(sourceFile, facadePackage);
257742
+ const typeRewriteOccurred = transformTypeReferences4(sourceFile);
257332
257743
  if (typeRewriteOccurred && importLocalName === null) {
257333
257744
  const targetModuleSpecifier = facadePackage ?? "@reapit/elements/core/button-group";
257334
257745
  let targetImportDecl = sourceFile.getImportDeclarations().find((d) => d.getModuleSpecifierValue() === targetModuleSpecifier);
@@ -257340,14 +257751,14 @@ function transform9(source, filePath = "file.tsx", options) {
257340
257751
  targetImportDecl.addNamedImport({ name: "ButtonGroup", isTypeOnly: true });
257341
257752
  }
257342
257753
  }
257343
- transformJsxElements3(sourceFile, aliases);
257754
+ transformJsxElements4(sourceFile, aliases);
257344
257755
  return sourceFile.getFullText();
257345
257756
  }
257346
- var import_ts_morph8, ALIGNMENT_TO_JUSTIFY_CONTENT, TODO_DYNAMIC_ALIGNMENT_JSX, TODO_DYNAMIC_ALIGNMENT_JS, IMPORTS_TO_REMOVE2;
257347
- var init_transform9 = __esm({
257757
+ var import_ts_morph10, ALIGNMENT_TO_JUSTIFY_CONTENT, TODO_DYNAMIC_ALIGNMENT_JSX, TODO_DYNAMIC_ALIGNMENT_JS, IMPORTS_TO_REMOVE2;
257758
+ var init_transform11 = __esm({
257348
257759
  "codemods/upgrade-deprecated-button-group/transform.ts"() {
257349
257760
  "use strict";
257350
- import_ts_morph8 = __toESM(require_ts_morph(), 1);
257761
+ import_ts_morph10 = __toESM(require_ts_morph(), 1);
257351
257762
  init_elements_import();
257352
257763
  ALIGNMENT_TO_JUSTIFY_CONTENT = {
257353
257764
  left: "start",
@@ -257359,18 +257770,18 @@ var init_transform9 = __esm({
257359
257770
  __name(shouldUseJsxComment, "shouldUseJsxComment");
257360
257771
  __name(getDeprecatedButtonGroupAliases, "getDeprecatedButtonGroupAliases");
257361
257772
  IMPORTS_TO_REMOVE2 = /* @__PURE__ */ new Set(["DeprecatedButtonGroupProps", "DeprecatedButtonGroupAlignment"]);
257362
- __name(transformImports6, "transformImports");
257363
- __name(transformTypeReferences3, "transformTypeReferences");
257364
- __name(transformJsxElements3, "transformJsxElements");
257773
+ __name(transformImports7, "transformImports");
257774
+ __name(transformTypeReferences4, "transformTypeReferences");
257775
+ __name(transformJsxElements4, "transformJsxElements");
257365
257776
  __name(transformAlignmentProp, "transformAlignmentProp");
257366
- __name(transform9, "transform");
257777
+ __name(transform11, "transform");
257367
257778
  }
257368
257779
  });
257369
257780
 
257370
257781
  // codemods/upgrade-deprecated-icon/transform.ts
257371
- var transform_exports10 = {};
257372
- __export(transform_exports10, {
257373
- default: () => transform10
257782
+ var transform_exports12 = {};
257783
+ __export(transform_exports12, {
257784
+ default: () => transform12
257374
257785
  });
257375
257786
  function getDeprecatedIconAlias(sourceFile, facadePackage) {
257376
257787
  const importDeclarations = sourceFile.getImportDeclarations();
@@ -257392,8 +257803,8 @@ function getDeprecatedIconAlias(sourceFile, facadePackage) {
257392
257803
  function collectIconUsages(sourceFile, deprecatedIconAlias) {
257393
257804
  const iconUsages = /* @__PURE__ */ new Map();
257394
257805
  const jsxElements = [
257395
- ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxOpeningElement),
257396
- ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxSelfClosingElement)
257806
+ ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement),
257807
+ ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement)
257397
257808
  ];
257398
257809
  const validTagNames = ["DeprecatedIcon"];
257399
257810
  if (deprecatedIconAlias) {
@@ -257404,8 +257815,8 @@ function collectIconUsages(sourceFile, deprecatedIconAlias) {
257404
257815
  if (!validTagNames.includes(tagName)) continue;
257405
257816
  const attributes = element.getAttributes();
257406
257817
  for (const attr of attributes) {
257407
- if (attr.getKind() !== import_ts_morph9.SyntaxKind.JsxAttribute) continue;
257408
- const jsxAttr = attr.asKind(import_ts_morph9.SyntaxKind.JsxAttribute);
257818
+ if (attr.getKind() !== import_ts_morph11.SyntaxKind.JsxAttribute) continue;
257819
+ const jsxAttr = attr.asKind(import_ts_morph11.SyntaxKind.JsxAttribute);
257409
257820
  const name = jsxAttr.getNameNode().getText();
257410
257821
  if (name === "icon") {
257411
257822
  const init = jsxAttr.getInitializer();
@@ -257469,15 +257880,15 @@ function mapIntentToColor(intent) {
257469
257880
  }
257470
257881
  function extractStringLiteral(initializer) {
257471
257882
  const kind = initializer.getKind();
257472
- if (kind === import_ts_morph9.SyntaxKind.StringLiteral) {
257473
- return initializer.asKind(import_ts_morph9.SyntaxKind.StringLiteral)?.getLiteralText() ?? null;
257883
+ if (kind === import_ts_morph11.SyntaxKind.StringLiteral) {
257884
+ return initializer.asKind(import_ts_morph11.SyntaxKind.StringLiteral)?.getLiteralText() ?? null;
257474
257885
  }
257475
- if (kind === import_ts_morph9.SyntaxKind.JsxExpression) {
257476
- const jsxExpr = initializer.asKind(import_ts_morph9.SyntaxKind.JsxExpression);
257886
+ if (kind === import_ts_morph11.SyntaxKind.JsxExpression) {
257887
+ const jsxExpr = initializer.asKind(import_ts_morph11.SyntaxKind.JsxExpression);
257477
257888
  if (jsxExpr) {
257478
257889
  const expression = jsxExpr.getExpression();
257479
- if (expression && expression.getKind() === import_ts_morph9.SyntaxKind.StringLiteral) {
257480
- return expression.asKind(import_ts_morph9.SyntaxKind.StringLiteral)?.getLiteralText() ?? null;
257890
+ if (expression && expression.getKind() === import_ts_morph11.SyntaxKind.StringLiteral) {
257891
+ return expression.asKind(import_ts_morph11.SyntaxKind.StringLiteral)?.getLiteralText() ?? null;
257481
257892
  }
257482
257893
  }
257483
257894
  }
@@ -257521,11 +257932,11 @@ function removeUnusedDeprecatedIconImport(sourceFile, deprecatedIconAlias, facad
257521
257932
  const deprecatedIconImport = namedImports.find((namedImport) => namedImport.getName() === "DeprecatedIcon");
257522
257933
  if (deprecatedIconImport) {
257523
257934
  const importedName = deprecatedIconImport.getAliasNode()?.getText() || deprecatedIconImport.getName();
257524
- const allIdentifiers = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.Identifier);
257935
+ const allIdentifiers = sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.Identifier);
257525
257936
  const references = allIdentifiers.filter((id) => id.getText() === importedName);
257526
257937
  const usages = references.filter((ref) => {
257527
257938
  const parent = ref.getParent();
257528
- return parent?.getKind() !== import_ts_morph9.SyntaxKind.ImportSpecifier;
257939
+ return parent?.getKind() !== import_ts_morph11.SyntaxKind.ImportSpecifier;
257529
257940
  });
257530
257941
  if (usages.length === 0) {
257531
257942
  deprecatedIconImport.remove();
@@ -257535,15 +257946,15 @@ function removeUnusedDeprecatedIconImport(sourceFile, deprecatedIconAlias, facad
257535
257946
  } else {
257536
257947
  const allJsxUsages = usages.every((ref) => {
257537
257948
  const parent = ref.getParent();
257538
- return parent?.getKind() === import_ts_morph9.SyntaxKind.JsxOpeningElement || parent?.getKind() === import_ts_morph9.SyntaxKind.JsxSelfClosingElement || parent?.getKind() === import_ts_morph9.SyntaxKind.JsxClosingElement;
257949
+ return parent?.getKind() === import_ts_morph11.SyntaxKind.JsxOpeningElement || parent?.getKind() === import_ts_morph11.SyntaxKind.JsxSelfClosingElement || parent?.getKind() === import_ts_morph11.SyntaxKind.JsxClosingElement;
257539
257950
  });
257540
257951
  if (allJsxUsages) {
257541
257952
  const validTagNames2 = ["DeprecatedIcon"];
257542
257953
  if (deprecatedIconAlias) {
257543
257954
  validTagNames2.push(deprecatedIconAlias);
257544
257955
  }
257545
- const selfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxSelfClosingElement);
257546
- const openingElements = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxOpeningElement);
257956
+ const selfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement);
257957
+ const openingElements = sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement);
257547
257958
  const stillUsedInJsx = [...selfClosingElements, ...openingElements].some(
257548
257959
  (element) => validTagNames2.includes(element.getTagNameNode().getText())
257549
257960
  );
@@ -257558,10 +257969,10 @@ function removeUnusedDeprecatedIconImport(sourceFile, deprecatedIconAlias, facad
257558
257969
  }
257559
257970
  }
257560
257971
  }
257561
- function transformJsxElements4(sourceFile, iconUsages, deprecatedIconAlias) {
257972
+ function transformJsxElements5(sourceFile, iconUsages, deprecatedIconAlias) {
257562
257973
  const jsxElements = [
257563
- ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxSelfClosingElement),
257564
- ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxOpeningElement)
257974
+ ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement),
257975
+ ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement)
257565
257976
  ];
257566
257977
  const validTagNames = ["DeprecatedIcon"];
257567
257978
  if (deprecatedIconAlias) {
@@ -257579,8 +257990,8 @@ function transformJsxElements4(sourceFile, iconUsages, deprecatedIconAlias) {
257579
257990
  const propsToRemove = [];
257580
257991
  const propsToPreserve = /* @__PURE__ */ new Map();
257581
257992
  for (const attr of attributes) {
257582
- if (attr.getKind() !== import_ts_morph9.SyntaxKind.JsxAttribute) continue;
257583
- const jsxAttr = attr.asKind(import_ts_morph9.SyntaxKind.JsxAttribute);
257993
+ if (attr.getKind() !== import_ts_morph11.SyntaxKind.JsxAttribute) continue;
257994
+ const jsxAttr = attr.asKind(import_ts_morph11.SyntaxKind.JsxAttribute);
257584
257995
  const name = jsxAttr.getNameNode().getText();
257585
257996
  const init = jsxAttr.getInitializer();
257586
257997
  if (name === "icon") {
@@ -257698,14 +258109,14 @@ function transformJsxElements4(sourceFile, iconUsages, deprecatedIconAlias) {
257698
258109
  if (needsStyleMerge) {
257699
258110
  const existingStyleAttr = propsToPreserve.get("style");
257700
258111
  if (existingStyleAttr) {
257701
- const existingInit = existingStyleAttr.asKind(import_ts_morph9.SyntaxKind.JsxAttribute)?.getInitializer();
257702
- if (existingInit && existingInit.getKind() === import_ts_morph9.SyntaxKind.JsxExpression) {
257703
- const jsxExpr = existingInit.asKind(import_ts_morph9.SyntaxKind.JsxExpression);
258112
+ const existingInit = existingStyleAttr.asKind(import_ts_morph11.SyntaxKind.JsxAttribute)?.getInitializer();
258113
+ if (existingInit && existingInit.getKind() === import_ts_morph11.SyntaxKind.JsxExpression) {
258114
+ const jsxExpr = existingInit.asKind(import_ts_morph11.SyntaxKind.JsxExpression);
257704
258115
  const expression = jsxExpr?.getExpression();
257705
258116
  if (expression) {
257706
258117
  const existingStyleText = expression.getText();
257707
258118
  const mergedStyle = `{{ ...${existingStyleText}, ${stylesToMerge.join(", ")} }}`;
257708
- existingStyleAttr.asKind(import_ts_morph9.SyntaxKind.JsxAttribute)?.setInitializer(mergedStyle);
258119
+ existingStyleAttr.asKind(import_ts_morph11.SyntaxKind.JsxAttribute)?.setInitializer(mergedStyle);
257709
258120
  const useJsxComment = shouldUseJsxComment2(element);
257710
258121
  if (!todosNeeded.has(componentName)) {
257711
258122
  todosNeeded.set(componentName, /* @__PURE__ */ new Set());
@@ -257725,10 +258136,10 @@ function transformJsxElements4(sourceFile, iconUsages, deprecatedIconAlias) {
257725
258136
  todosNeeded.get(componentName).add(commentText);
257726
258137
  }
257727
258138
  }
257728
- if (element.getKind() === import_ts_morph9.SyntaxKind.JsxOpeningElement) {
258139
+ if (element.getKind() === import_ts_morph11.SyntaxKind.JsxOpeningElement) {
257729
258140
  const parent = element.getParent();
257730
- if (parent && parent.getKind() === import_ts_morph9.SyntaxKind.JsxElement) {
257731
- const closingElement = parent.asKind(import_ts_morph9.SyntaxKind.JsxElement)?.getClosingElement();
258141
+ if (parent && parent.getKind() === import_ts_morph11.SyntaxKind.JsxElement) {
258142
+ const closingElement = parent.asKind(import_ts_morph11.SyntaxKind.JsxElement)?.getClosingElement();
257732
258143
  if (closingElement) {
257733
258144
  const closingTagName = closingElement.getTagNameNode();
257734
258145
  const closingTagNameText = closingTagName.getText();
@@ -257770,13 +258181,13 @@ function shouldUseJsxComment2(element) {
257770
258181
  let parent = element.getParent();
257771
258182
  while (parent) {
257772
258183
  const kind = parent.getKind();
257773
- if (kind === import_ts_morph9.SyntaxKind.JsxElement || kind === import_ts_morph9.SyntaxKind.JsxFragment) {
258184
+ if (kind === import_ts_morph11.SyntaxKind.JsxElement || kind === import_ts_morph11.SyntaxKind.JsxFragment) {
257774
258185
  return true;
257775
258186
  }
257776
- if (kind === import_ts_morph9.SyntaxKind.JsxExpression) {
258187
+ if (kind === import_ts_morph11.SyntaxKind.JsxExpression) {
257777
258188
  return false;
257778
258189
  }
257779
- if (kind === import_ts_morph9.SyntaxKind.PropertyAssignment || kind === import_ts_morph9.SyntaxKind.ArrayLiteralExpression || kind === import_ts_morph9.SyntaxKind.VariableDeclaration || kind === import_ts_morph9.SyntaxKind.CallExpression || kind === import_ts_morph9.SyntaxKind.ReturnStatement || kind === import_ts_morph9.SyntaxKind.ArrowFunction) {
258190
+ if (kind === import_ts_morph11.SyntaxKind.PropertyAssignment || kind === import_ts_morph11.SyntaxKind.ArrayLiteralExpression || kind === import_ts_morph11.SyntaxKind.VariableDeclaration || kind === import_ts_morph11.SyntaxKind.CallExpression || kind === import_ts_morph11.SyntaxKind.ReturnStatement || kind === import_ts_morph11.SyntaxKind.ArrowFunction) {
257780
258191
  return false;
257781
258192
  }
257782
258193
  parent = parent.getParent();
@@ -257785,8 +258196,8 @@ function shouldUseJsxComment2(element) {
257785
258196
  }
257786
258197
  function collectDeprecatedIconTodoInsertions(sourceFile, alias) {
257787
258198
  const jsxElements = [
257788
- ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxSelfClosingElement),
257789
- ...sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.JsxOpeningElement)
258199
+ ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement),
258200
+ ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement)
257790
258201
  ];
257791
258202
  const elementsNeedingComments = [];
257792
258203
  for (const element of jsxElements) {
@@ -257797,8 +258208,8 @@ function collectDeprecatedIconTodoInsertions(sourceFile, alias) {
257797
258208
  let iconValue = null;
257798
258209
  let hasIconProp = false;
257799
258210
  for (const attr of attributes) {
257800
- if (attr.getKind() !== import_ts_morph9.SyntaxKind.JsxAttribute) continue;
257801
- const jsxAttr = attr.asKind(import_ts_morph9.SyntaxKind.JsxAttribute);
258211
+ if (attr.getKind() !== import_ts_morph11.SyntaxKind.JsxAttribute) continue;
258212
+ const jsxAttr = attr.asKind(import_ts_morph11.SyntaxKind.JsxAttribute);
257802
258213
  const name = jsxAttr.getNameNode().getText();
257803
258214
  if (name === "icon") {
257804
258215
  hasIconProp = true;
@@ -257838,11 +258249,11 @@ function collectNonJsxUsageTodoInsertions(sourceFile) {
257838
258249
  const deprecatedIconImport = sourceFile.getImportDeclarations().flatMap((imp) => imp.getNamedImports()).find((named) => named.getName() === "DeprecatedIcon");
257839
258250
  if (!deprecatedIconImport) return [];
257840
258251
  const actualName = deprecatedIconImport.getAliasNode()?.getText() || deprecatedIconImport.getName();
257841
- const allIdentifiers = sourceFile.getDescendantsOfKind(import_ts_morph9.SyntaxKind.Identifier);
258252
+ const allIdentifiers = sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.Identifier);
257842
258253
  const references = allIdentifiers.filter((id) => id.getText() === actualName);
257843
258254
  const nonJsxUsages = references.filter((ref) => {
257844
258255
  const parent = ref.getParent();
257845
- return parent?.getKind() !== import_ts_morph9.SyntaxKind.ImportSpecifier && parent?.getKind() !== import_ts_morph9.SyntaxKind.JsxOpeningElement && parent?.getKind() !== import_ts_morph9.SyntaxKind.JsxSelfClosingElement && parent?.getKind() !== import_ts_morph9.SyntaxKind.JsxClosingElement;
258256
+ return parent?.getKind() !== import_ts_morph11.SyntaxKind.ImportSpecifier && parent?.getKind() !== import_ts_morph11.SyntaxKind.JsxOpeningElement && parent?.getKind() !== import_ts_morph11.SyntaxKind.JsxSelfClosingElement && parent?.getKind() !== import_ts_morph11.SyntaxKind.JsxClosingElement;
257846
258257
  });
257847
258258
  const message = "TODO: DeprecatedIcon used as value - needs manual migration";
257848
258259
  return nonJsxUsages.map((usage) => ({
@@ -257864,25 +258275,25 @@ function applyInsertions(output, insertions) {
257864
258275
  }
257865
258276
  return result;
257866
258277
  }
257867
- function transform10(source, filePath = "file.tsx", options) {
258278
+ function transform12(source, filePath = "file.tsx", options) {
257868
258279
  if (!source.includes("DeprecatedIcon")) {
257869
258280
  return source;
257870
258281
  }
257871
- const project = new import_ts_morph9.Project({
258282
+ const project = new import_ts_morph11.Project({
257872
258283
  useInMemoryFileSystem: true,
257873
258284
  compilerOptions: {
257874
258285
  jsx: 2
257875
258286
  // JsxEmit.React
257876
258287
  },
257877
258288
  manipulationSettings: {
257878
- quoteKind: import_ts_morph9.QuoteKind.Single
258289
+ quoteKind: import_ts_morph11.QuoteKind.Single
257879
258290
  }
257880
258291
  });
257881
258292
  const sourceFile = project.createSourceFile(filePath, source);
257882
258293
  const alias = getDeprecatedIconAlias(sourceFile, options?.facadePackage);
257883
258294
  const iconUsages = collectIconUsages(sourceFile, alias);
257884
258295
  addIconImports(sourceFile, iconUsages, options?.facadePackage);
257885
- const todosNeeded = transformJsxElements4(sourceFile, iconUsages, alias);
258296
+ const todosNeeded = transformJsxElements5(sourceFile, iconUsages, alias);
257886
258297
  removeUnusedDeprecatedIconImport(sourceFile, alias, options?.facadePackage);
257887
258298
  let output = sourceFile.getFullText();
257888
258299
  const deprecatedIconInsertions = collectDeprecatedIconTodoInsertions(sourceFile, alias);
@@ -257894,11 +258305,11 @@ function transform10(source, filePath = "file.tsx", options) {
257894
258305
  }
257895
258306
  return output;
257896
258307
  }
257897
- var import_ts_morph9;
257898
- var init_transform10 = __esm({
258308
+ var import_ts_morph11;
258309
+ var init_transform12 = __esm({
257899
258310
  "codemods/upgrade-deprecated-icon/transform.ts"() {
257900
258311
  "use strict";
257901
- import_ts_morph9 = __toESM(require_ts_morph(), 1);
258312
+ import_ts_morph11 = __toESM(require_ts_morph(), 1);
257902
258313
  init_elements_import();
257903
258314
  __name(getDeprecatedIconAlias, "getDeprecatedIconAlias");
257904
258315
  __name(collectIconUsages, "collectIconUsages");
@@ -257910,20 +258321,20 @@ var init_transform10 = __esm({
257910
258321
  __name(camelToKebab, "camelToKebab");
257911
258322
  __name(addIconImports, "addIconImports");
257912
258323
  __name(removeUnusedDeprecatedIconImport, "removeUnusedDeprecatedIconImport");
257913
- __name(transformJsxElements4, "transformJsxElements");
258324
+ __name(transformJsxElements5, "transformJsxElements");
257914
258325
  __name(addTodoComments, "addTodoComments");
257915
258326
  __name(shouldUseJsxComment2, "shouldUseJsxComment");
257916
258327
  __name(collectDeprecatedIconTodoInsertions, "collectDeprecatedIconTodoInsertions");
257917
258328
  __name(collectNonJsxUsageTodoInsertions, "collectNonJsxUsageTodoInsertions");
257918
258329
  __name(applyInsertions, "applyInsertions");
257919
- __name(transform10, "transform");
258330
+ __name(transform12, "transform");
257920
258331
  }
257921
258332
  });
257922
258333
 
257923
258334
  // codemods/upgrade-deprecated-split-button/transform.ts
257924
- var transform_exports11 = {};
257925
- __export(transform_exports11, {
257926
- default: () => transform11
258335
+ var transform_exports13 = {};
258336
+ __export(transform_exports13, {
258337
+ default: () => transform13
257927
258338
  });
257928
258339
  function getDeprecatedAliasMap(sourceFile, facadePackage) {
257929
258340
  const aliasMap = /* @__PURE__ */ new Map();
@@ -257947,7 +258358,7 @@ function getDeprecatedAliasMap(sourceFile, facadePackage) {
257947
258358
  }
257948
258359
  return aliasMap;
257949
258360
  }
257950
- function transformImports7(sourceFile, facadePackage) {
258361
+ function transformImports8(sourceFile, facadePackage) {
257951
258362
  const elementsImportsToAdd = [];
257952
258363
  const importDeclarations = sourceFile.getImportDeclarations().slice();
257953
258364
  const targetModuleSpecifier = "@reapit/elements/core/split-button";
@@ -258022,15 +258433,15 @@ function transformImports7(sourceFile, facadePackage) {
258022
258433
  }
258023
258434
  }
258024
258435
  }
258025
- function transformTypeReferences4(sourceFile) {
258026
- const typeReferences = sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.TypeReference);
258436
+ function transformTypeReferences5(sourceFile) {
258437
+ const typeReferences = sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.TypeReference);
258027
258438
  for (const typeRef of typeReferences) {
258028
258439
  const typeName = typeRef.getTypeName();
258029
258440
  if (typeName.getText() === "DeprecatedSplitButtonProps") {
258030
258441
  typeName.replaceWithText("SplitButton.Props");
258031
258442
  }
258032
258443
  }
258033
- const heritageExpressions = sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.ExpressionWithTypeArguments);
258444
+ const heritageExpressions = sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.ExpressionWithTypeArguments);
258034
258445
  for (const heritage of heritageExpressions) {
258035
258446
  const expression = heritage.getExpression();
258036
258447
  if (expression.getText() === "DeprecatedSplitButtonProps") {
@@ -258038,30 +258449,30 @@ function transformTypeReferences4(sourceFile) {
258038
258449
  }
258039
258450
  }
258040
258451
  }
258041
- function transformJsxElements5(sourceFile, aliasMap) {
258452
+ function transformJsxElements6(sourceFile, aliasMap) {
258042
258453
  const todoLines = /* @__PURE__ */ new Set();
258043
258454
  const jsxElements = [
258044
- ...sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.JsxOpeningElement),
258045
- ...sourceFile.getDescendantsOfKind(import_ts_morph10.SyntaxKind.JsxSelfClosingElement)
258455
+ ...sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.JsxOpeningElement),
258456
+ ...sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.JsxSelfClosingElement)
258046
258457
  ];
258047
258458
  for (const element of jsxElements) {
258048
258459
  const tagNameNode = element.getTagNameNode();
258049
258460
  const tagNameText = tagNameNode.getText();
258050
- if (tagNameNode.getKind() === import_ts_morph10.SyntaxKind.PropertyAccessExpression) {
258051
- const propAccess = tagNameNode.asKind(import_ts_morph10.SyntaxKind.PropertyAccessExpression);
258461
+ if (tagNameNode.getKind() === import_ts_morph12.SyntaxKind.PropertyAccessExpression) {
258462
+ const propAccess = tagNameNode.asKind(import_ts_morph12.SyntaxKind.PropertyAccessExpression);
258052
258463
  const objectText = propAccess.getExpression().getText();
258053
258464
  const originalName2 = aliasMap.get(objectText);
258054
258465
  if (originalName2 === "DeprecatedSplitButton" && objectText === "DeprecatedSplitButton") {
258055
258466
  propAccess.getExpression().replaceWithText("SplitButton");
258056
258467
  }
258057
- if (element.getKind() === import_ts_morph10.SyntaxKind.JsxOpeningElement) {
258468
+ if (element.getKind() === import_ts_morph12.SyntaxKind.JsxOpeningElement) {
258058
258469
  const parent = element.getParent();
258059
- if (parent?.getKind() === import_ts_morph10.SyntaxKind.JsxElement) {
258060
- const closingElement = parent.asKind(import_ts_morph10.SyntaxKind.JsxElement)?.getClosingElement();
258470
+ if (parent?.getKind() === import_ts_morph12.SyntaxKind.JsxElement) {
258471
+ const closingElement = parent.asKind(import_ts_morph12.SyntaxKind.JsxElement)?.getClosingElement();
258061
258472
  if (closingElement) {
258062
258473
  const closingTag = closingElement.getTagNameNode();
258063
- if (closingTag.getKind() === import_ts_morph10.SyntaxKind.PropertyAccessExpression) {
258064
- const closingPropAccess = closingTag.asKind(import_ts_morph10.SyntaxKind.PropertyAccessExpression);
258474
+ if (closingTag.getKind() === import_ts_morph12.SyntaxKind.PropertyAccessExpression) {
258475
+ const closingPropAccess = closingTag.asKind(import_ts_morph12.SyntaxKind.PropertyAccessExpression);
258065
258476
  const closingObjectText = closingPropAccess.getExpression().getText();
258066
258477
  if (closingObjectText === "DeprecatedSplitButton") {
258067
258478
  closingPropAccess.getExpression().replaceWithText("SplitButton");
@@ -258079,13 +258490,13 @@ function transformJsxElements5(sourceFile, aliasMap) {
258079
258490
  if (tagNameText !== originalName) continue;
258080
258491
  tagNameNode.replaceWithText(newName);
258081
258492
  if (originalName === "DeprecatedSplitButton") {
258082
- const containingNode = element.getKind() === import_ts_morph10.SyntaxKind.JsxOpeningElement ? element.getParent() : element;
258493
+ const containingNode = element.getKind() === import_ts_morph12.SyntaxKind.JsxOpeningElement ? element.getParent() : element;
258083
258494
  todoLines.add(containingNode.getStartLineNumber());
258084
258495
  }
258085
- if (element.getKind() === import_ts_morph10.SyntaxKind.JsxOpeningElement) {
258496
+ if (element.getKind() === import_ts_morph12.SyntaxKind.JsxOpeningElement) {
258086
258497
  const parent = element.getParent();
258087
- if (parent?.getKind() === import_ts_morph10.SyntaxKind.JsxElement) {
258088
- const closingElement = parent.asKind(import_ts_morph10.SyntaxKind.JsxElement)?.getClosingElement();
258498
+ if (parent?.getKind() === import_ts_morph12.SyntaxKind.JsxElement) {
258499
+ const closingElement = parent.asKind(import_ts_morph12.SyntaxKind.JsxElement)?.getClosingElement();
258089
258500
  if (closingElement) {
258090
258501
  const closingTagName = closingElement.getTagNameNode();
258091
258502
  if (closingTagName.getText() === originalName) {
@@ -258112,34 +258523,34 @@ function insertTodoComments(text, todoLines) {
258112
258523
  }
258113
258524
  return lines.join("\n");
258114
258525
  }
258115
- function transform11(source, filePath = "file.tsx", options) {
258526
+ function transform13(source, filePath = "file.tsx", options) {
258116
258527
  if (!source.includes("DeprecatedSplitButton") && !source.includes("DeprecatedActionButton") && !source.includes("DeprecatedMenuButton") && !source.includes("DeprecatedSplitButtonProps")) {
258117
258528
  return source;
258118
258529
  }
258119
- const project = new import_ts_morph10.Project({
258530
+ const project = new import_ts_morph12.Project({
258120
258531
  useInMemoryFileSystem: true,
258121
258532
  compilerOptions: {
258122
258533
  jsx: 2
258123
258534
  // JsxEmit.React
258124
258535
  },
258125
258536
  manipulationSettings: {
258126
- quoteKind: import_ts_morph10.QuoteKind.Single
258537
+ quoteKind: import_ts_morph12.QuoteKind.Single
258127
258538
  }
258128
258539
  });
258129
258540
  const sourceFile = project.createSourceFile(filePath, source);
258130
258541
  const aliasMap = getDeprecatedAliasMap(sourceFile, options?.facadePackage);
258131
- transformImports7(sourceFile, options?.facadePackage);
258132
- transformTypeReferences4(sourceFile);
258133
- const todoLines = transformJsxElements5(sourceFile, aliasMap);
258542
+ transformImports8(sourceFile, options?.facadePackage);
258543
+ transformTypeReferences5(sourceFile);
258544
+ const todoLines = transformJsxElements6(sourceFile, aliasMap);
258134
258545
  let result = sourceFile.getFullText();
258135
258546
  result = insertTodoComments(result, todoLines);
258136
258547
  return result;
258137
258548
  }
258138
- var import_ts_morph10, IDENTIFIER_MAP, TODO_COMMENT2;
258139
- var init_transform11 = __esm({
258549
+ var import_ts_morph12, IDENTIFIER_MAP, TODO_COMMENT2;
258550
+ var init_transform13 = __esm({
258140
258551
  "codemods/upgrade-deprecated-split-button/transform.ts"() {
258141
258552
  "use strict";
258142
- import_ts_morph10 = __toESM(require_ts_morph(), 1);
258553
+ import_ts_morph12 = __toESM(require_ts_morph(), 1);
258143
258554
  init_elements_import();
258144
258555
  IDENTIFIER_MAP = {
258145
258556
  DeprecatedSplitButton: "SplitButton",
@@ -258152,18 +258563,18 @@ var init_transform11 = __esm({
258152
258563
  // \`variant="busy"\` on sub-components maps to \`busy="action"\` or \`busy="menu-item"\` on the parent.
258153
258564
  // <SplitButton.Menu> now requires \`aria-label\` and children (menu items).`;
258154
258565
  __name(getDeprecatedAliasMap, "getDeprecatedAliasMap");
258155
- __name(transformImports7, "transformImports");
258156
- __name(transformTypeReferences4, "transformTypeReferences");
258157
- __name(transformJsxElements5, "transformJsxElements");
258566
+ __name(transformImports8, "transformImports");
258567
+ __name(transformTypeReferences5, "transformTypeReferences");
258568
+ __name(transformJsxElements6, "transformJsxElements");
258158
258569
  __name(insertTodoComments, "insertTodoComments");
258159
- __name(transform11, "transform");
258570
+ __name(transform13, "transform");
258160
258571
  }
258161
258572
  });
258162
258573
 
258163
258574
  // codemods/upgrade-deprecated-tag/transform.ts
258164
- var transform_exports12 = {};
258165
- __export(transform_exports12, {
258166
- default: () => transform12
258575
+ var transform_exports14 = {};
258576
+ __export(transform_exports14, {
258577
+ default: () => transform14
258167
258578
  });
258168
258579
  function getDeprecatedTagAliases(sourceFile, facadePackage) {
258169
258580
  const aliases = /* @__PURE__ */ new Set();
@@ -258197,7 +258608,7 @@ function getDeprecatedTagGroupAliases(sourceFile, facadePackage) {
258197
258608
  }
258198
258609
  return aliases;
258199
258610
  }
258200
- function resolveTargetSpecifier(sourceSpecifier, canonicalSubpath, facadePackage) {
258611
+ function resolveTargetSpecifier2(sourceSpecifier, canonicalSubpath, facadePackage) {
258201
258612
  if (facadePackage && matchesPackage(sourceSpecifier, facadePackage)) {
258202
258613
  return sourceSpecifier;
258203
258614
  }
@@ -258206,18 +258617,18 @@ function resolveTargetSpecifier(sourceSpecifier, canonicalSubpath, facadePackage
258206
258617
  function isInsideTagGroup(element, tagGroupAliases) {
258207
258618
  const kind = element.getKind();
258208
258619
  let current;
258209
- if (kind === import_ts_morph11.SyntaxKind.JsxOpeningElement) {
258620
+ if (kind === import_ts_morph13.SyntaxKind.JsxOpeningElement) {
258210
258621
  const tagElement = element.getParent();
258211
- if (!tagElement || tagElement.getKind() !== import_ts_morph11.SyntaxKind.JsxElement) return false;
258622
+ if (!tagElement || tagElement.getKind() !== import_ts_morph13.SyntaxKind.JsxElement) return false;
258212
258623
  current = tagElement.getParent();
258213
- } else if (kind === import_ts_morph11.SyntaxKind.JsxSelfClosingElement) {
258624
+ } else if (kind === import_ts_morph13.SyntaxKind.JsxSelfClosingElement) {
258214
258625
  current = element.getParent();
258215
258626
  } else {
258216
258627
  return false;
258217
258628
  }
258218
258629
  while (current) {
258219
- if (current.getKind() === import_ts_morph11.SyntaxKind.JsxElement) {
258220
- const jsxElement = current.asKind(import_ts_morph11.SyntaxKind.JsxElement);
258630
+ if (current.getKind() === import_ts_morph13.SyntaxKind.JsxElement) {
258631
+ const jsxElement = current.asKind(import_ts_morph13.SyntaxKind.JsxElement);
258221
258632
  if (!jsxElement) return false;
258222
258633
  const openingTag = jsxElement.getOpeningElement();
258223
258634
  const tagName = openingTag.getTagNameNode().getText();
@@ -258231,20 +258642,20 @@ function isInsideTagGroup(element, tagGroupAliases) {
258231
258642
  }
258232
258643
  function hasStandaloneTagUsage(sourceFile, tagAliases, tagGroupAliases) {
258233
258644
  const elements = [
258234
- ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement),
258235
- ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement)
258645
+ ...sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxOpeningElement),
258646
+ ...sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxSelfClosingElement)
258236
258647
  ];
258237
258648
  for (const element of elements) {
258238
258649
  const tagName = element.getTagNameNode().getText();
258239
258650
  if (!tagAliases.has(tagName)) continue;
258240
258651
  if (!isInsideTagGroup(element, tagGroupAliases)) return true;
258241
258652
  }
258242
- for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.Identifier)) {
258653
+ for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.Identifier)) {
258243
258654
  if (!tagAliases.has(identifier.getText())) continue;
258244
258655
  const parent = identifier.getParent();
258245
258656
  if (!parent) continue;
258246
258657
  const parentKind = parent.getKind();
258247
- if (parentKind === import_ts_morph11.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph11.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph11.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph11.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph11.SyntaxKind.JsxClosingElement)
258658
+ if (parentKind === import_ts_morph13.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph13.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph13.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph13.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph13.SyntaxKind.JsxClosingElement)
258248
258659
  continue;
258249
258660
  return true;
258250
258661
  }
@@ -258252,22 +258663,22 @@ function hasStandaloneTagUsage(sourceFile, tagAliases, tagGroupAliases) {
258252
258663
  }
258253
258664
  function hasTagGroupUsage(sourceFile, tagGroupAliases) {
258254
258665
  const elements = [
258255
- ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement),
258256
- ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement)
258666
+ ...sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxOpeningElement),
258667
+ ...sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxSelfClosingElement)
258257
258668
  ];
258258
258669
  if (elements.some((element) => tagGroupAliases.has(element.getTagNameNode().getText()))) return true;
258259
- for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.Identifier)) {
258670
+ for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.Identifier)) {
258260
258671
  if (!tagGroupAliases.has(identifier.getText())) continue;
258261
258672
  const parent = identifier.getParent();
258262
258673
  if (!parent) continue;
258263
258674
  const parentKind = parent.getKind();
258264
- if (parentKind === import_ts_morph11.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph11.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph11.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph11.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph11.SyntaxKind.JsxClosingElement)
258675
+ if (parentKind === import_ts_morph13.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph13.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph13.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph13.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph13.SyntaxKind.JsxClosingElement)
258265
258676
  continue;
258266
258677
  return true;
258267
258678
  }
258268
258679
  return false;
258269
258680
  }
258270
- function transformImports8(sourceFile, needsTagImport, needsTagGroupImport, facadePackage) {
258681
+ function transformImports9(sourceFile, needsTagImport, needsTagGroupImport, facadePackage) {
258271
258682
  const tagImportsToAdd = [];
258272
258683
  const tagGroupImportsToAdd = [];
258273
258684
  const alreadyMigratedTagPath = facadePackage ? null : "@reapit/elements/core/tag";
@@ -258289,7 +258700,7 @@ function transformImports8(sourceFile, needsTagImport, needsTagGroupImport, faca
258289
258700
  name: "Tag",
258290
258701
  alias: namedImport.getAliasNode()?.getText(),
258291
258702
  isTypeOnly: namedImport.isTypeOnly(),
258292
- targetSpecifier: resolveTargetSpecifier(moduleSpecifier, "@reapit/elements/core/tag", facadePackage)
258703
+ targetSpecifier: resolveTargetSpecifier2(moduleSpecifier, "@reapit/elements/core/tag", facadePackage)
258293
258704
  });
258294
258705
  }
258295
258706
  importsToRemove.push(namedImport);
@@ -258301,7 +258712,7 @@ function transformImports8(sourceFile, needsTagImport, needsTagGroupImport, faca
258301
258712
  name: "TagGroup",
258302
258713
  alias: namedImport.getAliasNode()?.getText(),
258303
258714
  isTypeOnly: namedImport.isTypeOnly(),
258304
- targetSpecifier: resolveTargetSpecifier(moduleSpecifier, "@reapit/elements/core/tag-group", facadePackage)
258715
+ targetSpecifier: resolveTargetSpecifier2(moduleSpecifier, "@reapit/elements/core/tag-group", facadePackage)
258305
258716
  });
258306
258717
  }
258307
258718
  importsToRemove.push(namedImport);
@@ -258337,7 +258748,7 @@ function transformImports8(sourceFile, needsTagImport, needsTagGroupImport, faca
258337
258748
  tagBySpecifier.set(targetSpecifier, group);
258338
258749
  }
258339
258750
  for (const [specifier, entries] of tagBySpecifier) {
258340
- addImportsToTarget(sourceFile, entries, specifier);
258751
+ addImportsToTarget2(sourceFile, entries, specifier);
258341
258752
  }
258342
258753
  const tagGroupBySpecifier = /* @__PURE__ */ new Map();
258343
258754
  for (const { targetSpecifier, ...entry } of tagGroupImportsToAdd) {
@@ -258346,10 +258757,10 @@ function transformImports8(sourceFile, needsTagImport, needsTagGroupImport, faca
258346
258757
  tagGroupBySpecifier.set(targetSpecifier, group);
258347
258758
  }
258348
258759
  for (const [specifier, entries] of tagGroupBySpecifier) {
258349
- addImportsToTarget(sourceFile, entries, specifier);
258760
+ addImportsToTarget2(sourceFile, entries, specifier);
258350
258761
  }
258351
258762
  }
258352
- function addImportsToTarget(sourceFile, importsToAdd, targetModuleSpecifier) {
258763
+ function addImportsToTarget2(sourceFile, importsToAdd, targetModuleSpecifier) {
258353
258764
  if (importsToAdd.length === 0) return;
258354
258765
  const currentImportDeclarations = sourceFile.getImportDeclarations();
258355
258766
  let targetDecl = currentImportDeclarations.find(
@@ -258380,31 +258791,31 @@ function addImportsToTarget(sourceFile, importsToAdd, targetModuleSpecifier) {
258380
258791
  }
258381
258792
  }
258382
258793
  }
258383
- function transformIdentifierReferences(sourceFile) {
258794
+ function transformIdentifierReferences2(sourceFile) {
258384
258795
  const rewrites = /* @__PURE__ */ new Map([
258385
258796
  ["DeprecatedTag", "Tag"],
258386
258797
  ["DeprecatedTagGroup", "TagGroup"]
258387
258798
  ]);
258388
- for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.Identifier)) {
258799
+ for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.Identifier)) {
258389
258800
  const text = identifier.getText();
258390
258801
  const replacement = rewrites.get(text);
258391
258802
  if (!replacement) continue;
258392
258803
  const parent = identifier.getParent();
258393
258804
  if (!parent) continue;
258394
258805
  const parentKind = parent.getKind();
258395
- if (parentKind === import_ts_morph11.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph11.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph11.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph11.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph11.SyntaxKind.JsxClosingElement)
258806
+ if (parentKind === import_ts_morph13.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph13.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph13.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph13.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph13.SyntaxKind.JsxClosingElement)
258396
258807
  continue;
258397
258808
  identifier.replaceWithText(replacement);
258398
258809
  }
258399
258810
  }
258400
- function transformTypeReferences5(sourceFile) {
258401
- for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.TypeReference)) {
258811
+ function transformTypeReferences6(sourceFile) {
258812
+ for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.TypeReference)) {
258402
258813
  const typeName = typeRef.getTypeName();
258403
258814
  if (typeName.getText() === "DeprecatedTagProps") {
258404
258815
  typeName.replaceWithText("Tag.Props");
258405
258816
  }
258406
258817
  }
258407
- for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.ExpressionWithTypeArguments)) {
258818
+ for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.ExpressionWithTypeArguments)) {
258408
258819
  const expression = heritage.getExpression();
258409
258820
  if (expression.getText() === "DeprecatedTagProps") {
258410
258821
  expression.replaceWithText("Tag.Props");
@@ -258415,8 +258826,8 @@ function processIntentProp(element) {
258415
258826
  const attributes = element.getAttributes();
258416
258827
  let hasIntentAttr = false;
258417
258828
  for (const attr of attributes.slice()) {
258418
- if (attr.getKind() !== import_ts_morph11.SyntaxKind.JsxAttribute) continue;
258419
- const jsxAttr = attr.asKind(import_ts_morph11.SyntaxKind.JsxAttribute);
258829
+ if (attr.getKind() !== import_ts_morph13.SyntaxKind.JsxAttribute) continue;
258830
+ const jsxAttr = attr.asKind(import_ts_morph13.SyntaxKind.JsxAttribute);
258420
258831
  const name = jsxAttr.getNameNode().getText();
258421
258832
  if (name === "intent") {
258422
258833
  hasIntentAttr = true;
@@ -258428,8 +258839,8 @@ function processIntentProp(element) {
258428
258839
  function transformTagElements(sourceFile, tagAliases, tagGroupAliases) {
258429
258840
  const commentInsertions = [];
258430
258841
  const elements = [
258431
- ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement),
258432
- ...sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement)
258842
+ ...sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxOpeningElement),
258843
+ ...sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxSelfClosingElement)
258433
258844
  ];
258434
258845
  for (const element of elements) {
258435
258846
  const tagName = element.getTagNameNode();
@@ -258453,10 +258864,10 @@ function transformTagElements(sourceFile, tagAliases, tagGroupAliases) {
258453
258864
  if (hadIntent) {
258454
258865
  comments.push(INTENT_REMOVED_TODO);
258455
258866
  }
258456
- if (element.getKind() === import_ts_morph11.SyntaxKind.JsxOpeningElement) {
258867
+ if (element.getKind() === import_ts_morph13.SyntaxKind.JsxOpeningElement) {
258457
258868
  const parent = element.getParent();
258458
- if (parent?.getKind() === import_ts_morph11.SyntaxKind.JsxElement) {
258459
- const closingTag = parent.asKind(import_ts_morph11.SyntaxKind.JsxElement)?.getClosingElement();
258869
+ if (parent?.getKind() === import_ts_morph13.SyntaxKind.JsxElement) {
258870
+ const closingTag = parent.asKind(import_ts_morph13.SyntaxKind.JsxElement)?.getClosingElement();
258460
258871
  if (closingTag) {
258461
258872
  const closingTagName = closingTag.getTagNameNode().getText();
258462
258873
  if (closingTagName === "DeprecatedTag") {
@@ -258467,7 +258878,7 @@ function transformTagElements(sourceFile, tagAliases, tagGroupAliases) {
258467
258878
  commentInsertions.push({ position: parent.getStart(), comments });
258468
258879
  }
258469
258880
  }
258470
- } else if (element.getKind() === import_ts_morph11.SyntaxKind.JsxSelfClosingElement) {
258881
+ } else if (element.getKind() === import_ts_morph13.SyntaxKind.JsxSelfClosingElement) {
258471
258882
  if (comments.length > 0) {
258472
258883
  commentInsertions.push({ position: element.getStart(), comments });
258473
258884
  }
@@ -258481,38 +258892,38 @@ function transformTagElements(sourceFile, tagAliases, tagGroupAliases) {
258481
258892
  }
258482
258893
  }
258483
258894
  function transformTagGroupElements(sourceFile, aliases) {
258484
- for (const element of sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxSelfClosingElement)) {
258895
+ for (const element of sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxSelfClosingElement)) {
258485
258896
  const tagNameText = element.getTagNameNode().getText();
258486
258897
  if (!aliases.has(tagNameText)) continue;
258487
258898
  if (tagNameText === "DeprecatedTagGroup") {
258488
258899
  element.getTagNameNode().replaceWithText("TagGroup");
258489
258900
  }
258490
258901
  }
258491
- for (const element of sourceFile.getDescendantsOfKind(import_ts_morph11.SyntaxKind.JsxOpeningElement)) {
258902
+ for (const element of sourceFile.getDescendantsOfKind(import_ts_morph13.SyntaxKind.JsxOpeningElement)) {
258492
258903
  const tagNameText = element.getTagNameNode().getText();
258493
258904
  if (!aliases.has(tagNameText)) continue;
258494
258905
  if (tagNameText === "DeprecatedTagGroup") {
258495
258906
  element.getTagNameNode().replaceWithText("TagGroup");
258496
258907
  }
258497
258908
  const parent = element.getParent();
258498
- if (parent?.getKind() === import_ts_morph11.SyntaxKind.JsxElement) {
258499
- const closingTag = parent.asKind(import_ts_morph11.SyntaxKind.JsxElement)?.getClosingElement();
258909
+ if (parent?.getKind() === import_ts_morph13.SyntaxKind.JsxElement) {
258910
+ const closingTag = parent.asKind(import_ts_morph13.SyntaxKind.JsxElement)?.getClosingElement();
258500
258911
  if (closingTag?.getTagNameNode().getText() === "DeprecatedTagGroup") {
258501
258912
  closingTag.getTagNameNode().replaceWithText("TagGroup");
258502
258913
  }
258503
258914
  }
258504
258915
  }
258505
258916
  }
258506
- function transform12(source, filePath = "file.tsx", options) {
258917
+ function transform14(source, filePath = "file.tsx", options) {
258507
258918
  if (!source.includes("DeprecatedTag")) return source;
258508
- const project = new import_ts_morph11.Project({
258919
+ const project = new import_ts_morph13.Project({
258509
258920
  useInMemoryFileSystem: true,
258510
258921
  compilerOptions: {
258511
258922
  jsx: 2
258512
258923
  // JsxEmit.React
258513
258924
  },
258514
258925
  manipulationSettings: {
258515
- quoteKind: import_ts_morph11.QuoteKind.Single
258926
+ quoteKind: import_ts_morph13.QuoteKind.Single
258516
258927
  }
258517
258928
  });
258518
258929
  const sourceFile = project.createSourceFile(filePath, source);
@@ -258523,18 +258934,18 @@ function transform12(source, filePath = "file.tsx", options) {
258523
258934
  const needsTagGroup = hasTagGroupUsage(sourceFile, tagGroupAliases);
258524
258935
  const hasTagPropsRef = source.includes("DeprecatedTagProps");
258525
258936
  const needsTagImport = needsTag || hasTagPropsRef;
258526
- transformImports8(sourceFile, needsTagImport, needsTagGroup, facadePackage);
258527
- transformTypeReferences5(sourceFile);
258528
- transformIdentifierReferences(sourceFile);
258937
+ transformImports9(sourceFile, needsTagImport, needsTagGroup, facadePackage);
258938
+ transformTypeReferences6(sourceFile);
258939
+ transformIdentifierReferences2(sourceFile);
258529
258940
  transformTagElements(sourceFile, tagAliases, tagGroupAliases);
258530
258941
  transformTagGroupElements(sourceFile, tagGroupAliases);
258531
258942
  return sourceFile.getFullText();
258532
258943
  }
258533
- var import_ts_morph11, IMPORTS_TO_REMOVE3, STANDALONE_TODO, INTENT_REMOVED_TODO, ALIASED_GROUP_CHILD_TODO;
258534
- var init_transform12 = __esm({
258944
+ var import_ts_morph13, IMPORTS_TO_REMOVE3, STANDALONE_TODO, INTENT_REMOVED_TODO, ALIASED_GROUP_CHILD_TODO;
258945
+ var init_transform14 = __esm({
258535
258946
  "codemods/upgrade-deprecated-tag/transform.ts"() {
258536
258947
  "use strict";
258537
- import_ts_morph11 = __toESM(require_ts_morph(), 1);
258948
+ import_ts_morph13 = __toESM(require_ts_morph(), 1);
258538
258949
  init_elements_import();
258539
258950
  __name(getDeprecatedTagAliases, "getDeprecatedTagAliases");
258540
258951
  __name(getDeprecatedTagGroupAliases, "getDeprecatedTagGroupAliases");
@@ -258544,28 +258955,28 @@ var init_transform12 = __esm({
258544
258955
  "ElDeprecatedTagGroup",
258545
258956
  "ElDeprecatedTagGroupInner"
258546
258957
  ]);
258547
- __name(resolveTargetSpecifier, "resolveTargetSpecifier");
258958
+ __name(resolveTargetSpecifier2, "resolveTargetSpecifier");
258548
258959
  __name(isInsideTagGroup, "isInsideTagGroup");
258549
258960
  __name(hasStandaloneTagUsage, "hasStandaloneTagUsage");
258550
258961
  __name(hasTagGroupUsage, "hasTagGroupUsage");
258551
- __name(transformImports8, "transformImports");
258552
- __name(addImportsToTarget, "addImportsToTarget");
258553
- __name(transformIdentifierReferences, "transformIdentifierReferences");
258554
- __name(transformTypeReferences5, "transformTypeReferences");
258962
+ __name(transformImports9, "transformImports");
258963
+ __name(addImportsToTarget2, "addImportsToTarget");
258964
+ __name(transformIdentifierReferences2, "transformIdentifierReferences");
258965
+ __name(transformTypeReferences6, "transformTypeReferences");
258555
258966
  STANDALONE_TODO = "{/* TODO: Standalone DeprecatedTag migrated to Tag \u2014 verify this is correct */}";
258556
258967
  INTENT_REMOVED_TODO = "{/* TODO: intent prop removed \u2014 the new Tag and TagGroup.Item have no colour/intent equivalent */}";
258557
258968
  ALIASED_GROUP_CHILD_TODO = "{/* TODO: This aliased DeprecatedTag is inside a group and should be TagGroup.Item, but the alias resolves to Tag \u2014 replace this with <TagGroup.Item> */}";
258558
258969
  __name(processIntentProp, "processIntentProp");
258559
258970
  __name(transformTagElements, "transformTagElements");
258560
258971
  __name(transformTagGroupElements, "transformTagGroupElements");
258561
- __name(transform12, "transform");
258972
+ __name(transform14, "transform");
258562
258973
  }
258563
258974
  });
258564
258975
 
258565
258976
  // codemods/upgrade-deprecated-use-media-query/transform.ts
258566
- var transform_exports13 = {};
258567
- __export(transform_exports13, {
258568
- default: () => transform13
258977
+ var transform_exports15 = {};
258978
+ __export(transform_exports15, {
258979
+ default: () => transform15
258569
258980
  });
258570
258981
  function buildMediaQueryExpression(property) {
258571
258982
  const expr = PROPERTY_TO_MEDIA_QUERY[property];
@@ -258644,22 +259055,22 @@ function neededBreakpointHelpers(propertyNames) {
258644
259055
  function transformDestructuredUseMediaQuery(sourceFile, useMediaQueryAlias) {
258645
259056
  const transformedProperties = [];
258646
259057
  const declarationsToProcess = [];
258647
- for (const varDecl of sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.VariableDeclaration)) {
259058
+ for (const varDecl of sourceFile.getDescendantsOfKind(import_ts_morph14.SyntaxKind.VariableDeclaration)) {
258648
259059
  const initializer = varDecl.getInitializer();
258649
259060
  if (!initializer) continue;
258650
- if (initializer.getKind() !== import_ts_morph12.SyntaxKind.CallExpression) continue;
258651
- const callExpr = initializer.asKind(import_ts_morph12.SyntaxKind.CallExpression);
259061
+ if (initializer.getKind() !== import_ts_morph14.SyntaxKind.CallExpression) continue;
259062
+ const callExpr = initializer.asKind(import_ts_morph14.SyntaxKind.CallExpression);
258652
259063
  if (callExpr.getExpression().getText() !== useMediaQueryAlias) continue;
258653
259064
  const nameNode = varDecl.getNameNode();
258654
- if (nameNode.getKind() !== import_ts_morph12.SyntaxKind.ObjectBindingPattern) continue;
259065
+ if (nameNode.getKind() !== import_ts_morph14.SyntaxKind.ObjectBindingPattern) continue;
258655
259066
  declarationsToProcess.push(varDecl);
258656
259067
  }
258657
259068
  for (const varDecl of declarationsToProcess) {
258658
259069
  const varDeclList = varDecl.getParent();
258659
- if (!varDeclList || varDeclList.getKind() !== import_ts_morph12.SyntaxKind.VariableDeclarationList) continue;
259070
+ if (!varDeclList || varDeclList.getKind() !== import_ts_morph14.SyntaxKind.VariableDeclarationList) continue;
258660
259071
  const varStatement = varDeclList.getParent();
258661
- if (!varStatement || varStatement.getKind() !== import_ts_morph12.SyntaxKind.VariableStatement) continue;
258662
- const allDeclarations = varDeclList.asKind(import_ts_morph12.SyntaxKind.VariableDeclarationList)?.getDeclarations() ?? [];
259072
+ if (!varStatement || varStatement.getKind() !== import_ts_morph14.SyntaxKind.VariableStatement) continue;
259073
+ const allDeclarations = varDeclList.asKind(import_ts_morph14.SyntaxKind.VariableDeclarationList)?.getDeclarations() ?? [];
258663
259074
  if (allDeclarations.length > 1) {
258664
259075
  const existingText = varStatement.getText();
258665
259076
  varStatement.replaceWithText(
@@ -258687,21 +259098,21 @@ ${existingText}`
258687
259098
  }
258688
259099
  function addTodosForNonDestructuredUseMediaQuery(sourceFile, useMediaQueryAlias) {
258689
259100
  const declarationsToAnnotate = [];
258690
- for (const varDecl of sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.VariableDeclaration)) {
259101
+ for (const varDecl of sourceFile.getDescendantsOfKind(import_ts_morph14.SyntaxKind.VariableDeclaration)) {
258691
259102
  const initializer = varDecl.getInitializer();
258692
259103
  if (!initializer) continue;
258693
- if (initializer.getKind() !== import_ts_morph12.SyntaxKind.CallExpression) continue;
258694
- const callExpr = initializer.asKind(import_ts_morph12.SyntaxKind.CallExpression);
259104
+ if (initializer.getKind() !== import_ts_morph14.SyntaxKind.CallExpression) continue;
259105
+ const callExpr = initializer.asKind(import_ts_morph14.SyntaxKind.CallExpression);
258695
259106
  if (callExpr.getExpression().getText() !== useMediaQueryAlias) continue;
258696
259107
  const nameNode = varDecl.getNameNode();
258697
- if (nameNode.getKind() !== import_ts_morph12.SyntaxKind.Identifier) continue;
259108
+ if (nameNode.getKind() !== import_ts_morph14.SyntaxKind.Identifier) continue;
258698
259109
  declarationsToAnnotate.push(varDecl);
258699
259110
  }
258700
259111
  for (const varDecl of declarationsToAnnotate) {
258701
259112
  const varDeclList = varDecl.getParent();
258702
- if (!varDeclList || varDeclList.getKind() !== import_ts_morph12.SyntaxKind.VariableDeclarationList) continue;
259113
+ if (!varDeclList || varDeclList.getKind() !== import_ts_morph14.SyntaxKind.VariableDeclarationList) continue;
258703
259114
  const varStatement = varDeclList.getParent();
258704
- if (!varStatement || varStatement.getKind() !== import_ts_morph12.SyntaxKind.VariableStatement) continue;
259115
+ if (!varStatement || varStatement.getKind() !== import_ts_morph14.SyntaxKind.VariableStatement) continue;
258705
259116
  const existingText = varStatement.getText();
258706
259117
  varStatement.replaceWithText(
258707
259118
  `// TODO: Migrate to useMatchMedia \u2014 see @reapit/elements migration guide
@@ -258711,14 +259122,14 @@ ${existingText}`
258711
259122
  }
258712
259123
  function transformMediaStateProvider(sourceFile, mediaStateProviderAlias) {
258713
259124
  const processElements = /* @__PURE__ */ __name(() => {
258714
- const jsxElements = sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.JsxElement);
259125
+ const jsxElements = sourceFile.getDescendantsOfKind(import_ts_morph14.SyntaxKind.JsxElement);
258715
259126
  for (const jsxElement of jsxElements) {
258716
259127
  const openingTag = jsxElement.getOpeningElement();
258717
259128
  const tagName = openingTag.getTagNameNode().getText();
258718
259129
  if (tagName !== mediaStateProviderAlias) continue;
258719
259130
  const children = jsxElement.getJsxChildren();
258720
259131
  const meaningfulChildren = children.filter((child) => {
258721
- if (child.getKind() === import_ts_morph12.SyntaxKind.JsxText) {
259132
+ if (child.getKind() === import_ts_morph14.SyntaxKind.JsxText) {
258722
259133
  return child.getText().trim().length > 0;
258723
259134
  }
258724
259135
  return true;
@@ -258751,9 +259162,9 @@ function inlineBreakpointConstants(sourceFile, aliases) {
258751
259162
  for (const [exportName, alias] of aliases.entries()) {
258752
259163
  if (!(exportName in BREAKPOINT_VALUES)) continue;
258753
259164
  const value = BREAKPOINT_VALUES[exportName];
258754
- const identifiers = sourceFile.getDescendantsOfKind(import_ts_morph12.SyntaxKind.Identifier).filter((id) => id.getText() === alias).filter((id) => {
259165
+ const identifiers = sourceFile.getDescendantsOfKind(import_ts_morph14.SyntaxKind.Identifier).filter((id) => id.getText() === alias).filter((id) => {
258755
259166
  const parent = id.getParent();
258756
- return parent?.getKind() !== import_ts_morph12.SyntaxKind.ImportSpecifier;
259167
+ return parent?.getKind() !== import_ts_morph14.SyntaxKind.ImportSpecifier;
258757
259168
  });
258758
259169
  for (const id of identifiers) {
258759
259170
  id.replaceWithText(
@@ -258774,19 +259185,19 @@ function addTodosForMediaStateContext(output, mediaStateContextAlias) {
258774
259185
  `undefined /* TODO: MediaStateContext has been removed \u2014 migrate to individual useMatchMedia calls */`
258775
259186
  );
258776
259187
  }
258777
- function transform13(source, filePath = "file.tsx", options) {
259188
+ function transform15(source, filePath = "file.tsx", options) {
258778
259189
  const hasAny = DEPRECATED_EXPORTS.some((name) => source.includes(name));
258779
259190
  if (!hasAny) {
258780
259191
  return source;
258781
259192
  }
258782
- const project = new import_ts_morph12.Project({
259193
+ const project = new import_ts_morph14.Project({
258783
259194
  useInMemoryFileSystem: true,
258784
259195
  compilerOptions: {
258785
259196
  jsx: 2
258786
259197
  // JsxEmit.React
258787
259198
  },
258788
259199
  manipulationSettings: {
258789
- quoteKind: import_ts_morph12.QuoteKind.Single,
259200
+ quoteKind: import_ts_morph14.QuoteKind.Single,
258790
259201
  useTrailingCommas: false
258791
259202
  }
258792
259203
  });
@@ -258831,11 +259242,11 @@ function transform13(source, filePath = "file.tsx", options) {
258831
259242
  result = result.replace(/^(import\s+.*?from\s+'[^']+\/utils\/(?:match-media|breakpoints)');$/gm, "$1");
258832
259243
  return result;
258833
259244
  }
258834
- var import_ts_morph12, DEPRECATED_EXPORTS, BREAKPOINT_VALUES, PROPERTY_TO_MEDIA_QUERY;
258835
- var init_transform13 = __esm({
259245
+ var import_ts_morph14, DEPRECATED_EXPORTS, BREAKPOINT_VALUES, PROPERTY_TO_MEDIA_QUERY;
259246
+ var init_transform15 = __esm({
258836
259247
  "codemods/upgrade-deprecated-use-media-query/transform.ts"() {
258837
259248
  "use strict";
258838
- import_ts_morph12 = __toESM(require_ts_morph(), 1);
259249
+ import_ts_morph14 = __toESM(require_ts_morph(), 1);
258839
259250
  init_elements_import();
258840
259251
  DEPRECATED_EXPORTS = [
258841
259252
  "useMediaQuery",
@@ -258875,7 +259286,7 @@ var init_transform13 = __esm({
258875
259286
  __name(inlineBreakpointConstants, "inlineBreakpointConstants");
258876
259287
  __name(addTodosForMediaType, "addTodosForMediaType");
258877
259288
  __name(addTodosForMediaStateContext, "addTodosForMediaStateContext");
258878
- __name(transform13, "transform");
259289
+ __name(transform15, "transform");
258879
259290
  }
258880
259291
  });
258881
259292
 
@@ -258953,7 +259364,7 @@ Examples:
258953
259364
  `);
258954
259365
  }
258955
259366
  __name(printUsage, "printUsage");
258956
- async function run({ transform: transform14, codemodName, args }) {
259367
+ async function run({ transform: transform16, codemodName, args }) {
258957
259368
  if (args.length === 0 || args.includes("--help") || args.includes("-h")) {
258958
259369
  printUsage(codemodName);
258959
259370
  process.exit(0);
@@ -259019,7 +259430,7 @@ async function run({ transform: transform14, codemodName, args }) {
259019
259430
  for (const filePath of files) {
259020
259431
  try {
259021
259432
  const source = readFileSync(filePath, "utf-8");
259022
- const result = transform14(source, filePath, facadePackage ? { facadePackage } : void 0);
259433
+ const result = transform16(source, filePath, facadePackage ? { facadePackage } : void 0);
259023
259434
  if (result !== source) {
259024
259435
  transformedCount++;
259025
259436
  const relativePath = relative(process.cwd(), filePath);
@@ -259041,7 +259452,7 @@ __name(run, "run");
259041
259452
  // codemods/manifest.json
259042
259453
  var manifest_default = {
259043
259454
  $schema: "./manifest.schema.json",
259044
- generated: "2026-03-05T03:40:10.112Z",
259455
+ generated: "2026-03-08T23:38:10.340Z",
259045
259456
  codemods: [
259046
259457
  {
259047
259458
  name: "apply-textarea-field-sizing",
@@ -259051,6 +259462,14 @@ var manifest_default = {
259051
259462
  name: "at-a-glance-article-card",
259052
259463
  description: "Migrates AtAGlance.Card to AtAGlance.ArticleCard"
259053
259464
  },
259465
+ {
259466
+ name: "inline-use-click-outside",
259467
+ description: "Inlines deprecated useClickOutside calls and removes Elements imports"
259468
+ },
259469
+ {
259470
+ name: "replace-deprecated-label",
259471
+ description: "Replaces DeprecatedLabel and DeprecatedLabelProps with LabelText and LabelText.Props"
259472
+ },
259054
259473
  {
259055
259474
  name: "rewrite-text-font-imports",
259056
259475
  description: "Migrates Text and font imports from core/text to utils/text and utils/font"
@@ -259119,17 +259538,19 @@ __name(validateCodemodName, "validateCodemodName");
259119
259538
  var transforms = {
259120
259539
  "apply-textarea-field-sizing": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform(), transform_exports)), "apply-textarea-field-sizing"),
259121
259540
  "at-a-glance-article-card": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform2(), transform_exports2)), "at-a-glance-article-card"),
259122
- "rewrite-text-font-imports": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform3(), transform_exports3)), "rewrite-text-font-imports"),
259123
- "rewrite-v4-imports": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform4(), transform_exports4)), "rewrite-v4-imports"),
259124
- "rewrite-v5-imports": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform5(), transform_exports5)), "rewrite-v5-imports"),
259125
- "upgrade-css-variables": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform6(), transform_exports6)), "upgrade-css-variables"),
259126
- "upgrade-deprecated-badge": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform7(), transform_exports7)), "upgrade-deprecated-badge"),
259127
- "upgrade-deprecated-button": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform8(), transform_exports8)), "upgrade-deprecated-button"),
259128
- "upgrade-deprecated-button-group": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform9(), transform_exports9)), "upgrade-deprecated-button-group"),
259129
- "upgrade-deprecated-icon": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform10(), transform_exports10)), "upgrade-deprecated-icon"),
259130
- "upgrade-deprecated-split-button": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform11(), transform_exports11)), "upgrade-deprecated-split-button"),
259131
- "upgrade-deprecated-tag": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform12(), transform_exports12)), "upgrade-deprecated-tag"),
259132
- "upgrade-deprecated-use-media-query": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform13(), transform_exports13)), "upgrade-deprecated-use-media-query")
259541
+ "inline-use-click-outside": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform3(), transform_exports3)), "inline-use-click-outside"),
259542
+ "replace-deprecated-label": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform4(), transform_exports4)), "replace-deprecated-label"),
259543
+ "rewrite-text-font-imports": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform5(), transform_exports5)), "rewrite-text-font-imports"),
259544
+ "rewrite-v4-imports": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform6(), transform_exports6)), "rewrite-v4-imports"),
259545
+ "rewrite-v5-imports": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform7(), transform_exports7)), "rewrite-v5-imports"),
259546
+ "upgrade-css-variables": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform8(), transform_exports8)), "upgrade-css-variables"),
259547
+ "upgrade-deprecated-badge": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform9(), transform_exports9)), "upgrade-deprecated-badge"),
259548
+ "upgrade-deprecated-button": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform10(), transform_exports10)), "upgrade-deprecated-button"),
259549
+ "upgrade-deprecated-button-group": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform11(), transform_exports11)), "upgrade-deprecated-button-group"),
259550
+ "upgrade-deprecated-icon": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform12(), transform_exports12)), "upgrade-deprecated-icon"),
259551
+ "upgrade-deprecated-split-button": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform13(), transform_exports13)), "upgrade-deprecated-split-button"),
259552
+ "upgrade-deprecated-tag": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform14(), transform_exports14)), "upgrade-deprecated-tag"),
259553
+ "upgrade-deprecated-use-media-query": /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_transform15(), transform_exports15)), "upgrade-deprecated-use-media-query")
259133
259554
  };
259134
259555
 
259135
259556
  // codemods/bin.ts
@@ -259252,13 +259673,13 @@ async function handleApply(args) {
259252
259673
  process.exit(1);
259253
259674
  }
259254
259675
  const codemodModule = await loader();
259255
- const transform14 = codemodModule.default;
259256
- if (typeof transform14 !== "function") {
259676
+ const transform16 = codemodModule.default;
259677
+ if (typeof transform16 !== "function") {
259257
259678
  console.error(`Error: Codemod '${codemodName}' does not export a default transform function`);
259258
259679
  process.exit(1);
259259
259680
  }
259260
259681
  await run({
259261
- transform: transform14,
259682
+ transform: transform16,
259262
259683
  codemodName,
259263
259684
  args: remainingArgs
259264
259685
  });