@janbox/storefront-builder 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/dist/components/canvas/index.d.ts +6 -0
  2. package/dist/components/canvas-placeholder/index.d.ts +3 -0
  3. package/dist/components/composer/dataset.d.ts +32 -0
  4. package/dist/components/composer/index.d.ts +4 -0
  5. package/dist/components/index.d.ts +4 -0
  6. package/dist/components/resolver/index.d.ts +5 -0
  7. package/dist/constants/index.d.ts +49 -0
  8. package/dist/countdown-timer.node-CTPWHLr7.js +4374 -0
  9. package/dist/editor/components/breakpoint-selection.d.ts +2 -0
  10. package/dist/editor/components/color-picker-popover.d.ts +10 -0
  11. package/dist/editor/components/color-preview.d.ts +6 -0
  12. package/dist/editor/components/css-size-input.d.ts +10 -0
  13. package/dist/editor/components/degree-picker.d.ts +1 -0
  14. package/dist/editor/components/frame-preview/index.d.ts +9 -0
  15. package/dist/editor/components/image-source-selection.d.ts +8 -0
  16. package/dist/editor/components/index.d.ts +11 -0
  17. package/dist/editor/components/text-inline-editor.d.ts +10 -0
  18. package/dist/editor/components/toolbar-container.d.ts +1 -0
  19. package/dist/editor/components/toolbar-field.d.ts +9 -0
  20. package/dist/editor/components/toolbar-group.d.ts +10 -0
  21. package/dist/editor/constants/index.d.ts +20 -0
  22. package/dist/editor/hooks/index.d.ts +22 -0
  23. package/dist/editor/hooks/use-editor-state.d.ts +5 -0
  24. package/dist/editor/index.d.ts +2 -0
  25. package/dist/editor/lib/events.d.ts +5 -0
  26. package/dist/editor/lib/header/index.d.ts +1 -0
  27. package/dist/editor/lib/index.d.ts +10 -0
  28. package/dist/editor/lib/node-renderer/index.d.ts +3 -0
  29. package/dist/editor/lib/node-renderer/node-actions.d.ts +1 -0
  30. package/dist/editor/lib/node-renderer/node-focused.d.ts +1 -0
  31. package/dist/editor/lib/node-renderer/node-renderer.d.ts +4 -0
  32. package/dist/editor/lib/register.d.ts +1 -0
  33. package/dist/editor/lib/sidebar/index.d.ts +5 -0
  34. package/dist/editor/lib/sidebar/insert-action.d.ts +30 -0
  35. package/dist/editor/lib/sidebar/layers-action.d.ts +4 -0
  36. package/dist/editor/toolbars/anchor-target/anchor-target.d.ts +7 -0
  37. package/dist/editor/toolbars/anchor-target/index.d.ts +1 -0
  38. package/dist/editor/toolbars/aspect-ratio/aspect-ratio.d.ts +17 -0
  39. package/dist/editor/toolbars/aspect-ratio/index.d.ts +1 -0
  40. package/dist/editor/toolbars/background/background-toolbar.d.ts +2 -0
  41. package/dist/editor/toolbars/background/bg-color-tab.d.ts +7 -0
  42. package/dist/editor/toolbars/background/bg-image-tab.d.ts +7 -0
  43. package/dist/editor/toolbars/background/dataset.d.ts +11 -0
  44. package/dist/editor/toolbars/background/index.d.ts +2 -0
  45. package/dist/editor/toolbars/background/types.d.ts +14 -0
  46. package/dist/editor/toolbars/border/border.d.ts +8 -0
  47. package/dist/editor/toolbars/border/index.d.ts +2 -0
  48. package/dist/editor/toolbars/border/types.d.ts +9 -0
  49. package/dist/editor/toolbars/border-radius/border-radius.d.ts +14 -0
  50. package/dist/editor/toolbars/border-radius/index.d.ts +1 -0
  51. package/dist/editor/toolbars/child-nodes/child-node.d.ts +7 -0
  52. package/dist/editor/toolbars/child-nodes/index.d.ts +6 -0
  53. package/dist/editor/toolbars/color/color.d.ts +12 -0
  54. package/dist/editor/toolbars/color/index.d.ts +1 -0
  55. package/dist/editor/toolbars/color-variant/color-variant.d.ts +5 -0
  56. package/dist/editor/toolbars/color-variant/index.d.ts +1 -0
  57. package/dist/editor/toolbars/column-gap/column-gap.d.ts +11 -0
  58. package/dist/editor/toolbars/column-gap/index.d.ts +1 -0
  59. package/dist/editor/toolbars/display/display.d.ts +13 -0
  60. package/dist/editor/toolbars/display/index.d.ts +1 -0
  61. package/dist/editor/toolbars/display-on/display-on.d.ts +5 -0
  62. package/dist/editor/toolbars/display-on/index.d.ts +1 -0
  63. package/dist/editor/toolbars/flex/flex.d.ts +13 -0
  64. package/dist/editor/toolbars/flex/index.d.ts +1 -0
  65. package/dist/editor/toolbars/flex-align-items/flex-align-items.d.ts +14 -0
  66. package/dist/editor/toolbars/flex-align-items/index.d.ts +1 -0
  67. package/dist/editor/toolbars/flex-wrap/flex-wrap.d.ts +12 -0
  68. package/dist/editor/toolbars/flex-wrap/index.d.ts +1 -0
  69. package/dist/editor/toolbars/font-size/font-size.d.ts +12 -0
  70. package/dist/editor/toolbars/font-size/index.d.ts +1 -0
  71. package/dist/editor/toolbars/font-weight/dataset.d.ts +5 -0
  72. package/dist/editor/toolbars/font-weight/font-weight.d.ts +9 -0
  73. package/dist/editor/toolbars/font-weight/index.d.ts +1 -0
  74. package/dist/editor/toolbars/grid-align-items/grid-align-items.d.ts +12 -0
  75. package/dist/editor/toolbars/grid-align-items/index.d.ts +1 -0
  76. package/dist/editor/toolbars/height/height.d.ts +22 -0
  77. package/dist/editor/toolbars/height/index.d.ts +1 -0
  78. package/dist/editor/toolbars/index.d.ts +38 -0
  79. package/dist/editor/toolbars/justify-content/index.d.ts +1 -0
  80. package/dist/editor/toolbars/justify-content/justify-content.d.ts +13 -0
  81. package/dist/editor/toolbars/justify-items/index.d.ts +1 -0
  82. package/dist/editor/toolbars/justify-items/justify-items.d.ts +12 -0
  83. package/dist/editor/toolbars/line-height/dataset.d.ts +8 -0
  84. package/dist/editor/toolbars/line-height/index.d.ts +1 -0
  85. package/dist/editor/toolbars/line-height/line-height.d.ts +12 -0
  86. package/dist/editor/toolbars/margin/index.d.ts +1 -0
  87. package/dist/editor/toolbars/margin/margin.d.ts +15 -0
  88. package/dist/editor/toolbars/min-width/index.d.ts +1 -0
  89. package/dist/editor/toolbars/min-width/min-width.d.ts +12 -0
  90. package/dist/editor/toolbars/number-field/index.d.ts +1 -0
  91. package/dist/editor/toolbars/number-field/number-field.d.ts +14 -0
  92. package/dist/editor/toolbars/number-field-mix-options/index.d.ts +1 -0
  93. package/dist/editor/toolbars/number-field-mix-options/number-field-mix-options.d.ts +13 -0
  94. package/dist/editor/toolbars/object-fit/dataset.d.ts +2 -0
  95. package/dist/editor/toolbars/object-fit/index.d.ts +1 -0
  96. package/dist/editor/toolbars/object-fit/object-fit.d.ts +11 -0
  97. package/dist/editor/toolbars/order/index.d.ts +1 -0
  98. package/dist/editor/toolbars/order/order.d.ts +12 -0
  99. package/dist/editor/toolbars/padding/index.d.ts +1 -0
  100. package/dist/editor/toolbars/padding/padding.d.ts +10 -0
  101. package/dist/editor/toolbars/row-gap/index.d.ts +1 -0
  102. package/dist/editor/toolbars/row-gap/row-gap.d.ts +10 -0
  103. package/dist/editor/toolbars/spacing/index.d.ts +2 -0
  104. package/dist/editor/toolbars/spacing/spacing.d.ts +2 -0
  105. package/dist/editor/toolbars/spacing/types.d.ts +15 -0
  106. package/dist/editor/toolbars/svg-source/index.d.ts +1 -0
  107. package/dist/editor/toolbars/svg-source/svg-source.d.ts +7 -0
  108. package/dist/editor/toolbars/svg-source/uploaded-source.d.ts +4 -0
  109. package/dist/editor/toolbars/tag-name/index.d.ts +1 -0
  110. package/dist/editor/toolbars/tag-name/tag-name.d.ts +8 -0
  111. package/dist/editor/toolbars/text-align/index.d.ts +1 -0
  112. package/dist/editor/toolbars/text-align/text-align.d.ts +8 -0
  113. package/dist/editor/toolbars/text-style/index.d.ts +1 -0
  114. package/dist/editor/toolbars/text-style/text-style.d.ts +14 -0
  115. package/dist/editor/toolbars/text-style-group/index.d.ts +1 -0
  116. package/dist/editor/toolbars/text-style-group/text-style-group.d.ts +17 -0
  117. package/dist/editor/toolbars/text-transform/index.d.ts +1 -0
  118. package/dist/editor/toolbars/text-transform/text-transform.d.ts +10 -0
  119. package/dist/editor/toolbars/text-variant/index.d.ts +1 -0
  120. package/dist/editor/toolbars/text-variant/text-variant.d.ts +15 -0
  121. package/dist/editor/toolbars/width/index.d.ts +1 -0
  122. package/dist/editor/toolbars/width/width.d.ts +20 -0
  123. package/dist/editor/types/index.d.ts +3 -0
  124. package/dist/editor/ui/button/button.d.ts +12 -0
  125. package/dist/editor/ui/button/index.d.ts +1 -0
  126. package/dist/editor/ui/button-group/button-group.d.ts +8 -0
  127. package/dist/editor/ui/button-group/index.d.ts +1 -0
  128. package/dist/editor/ui/collapse/collapse.d.ts +8 -0
  129. package/dist/editor/ui/collapse/index.d.ts +1 -0
  130. package/dist/editor/ui/color-picker/color-picker.d.ts +4 -0
  131. package/dist/editor/ui/color-picker/index.d.ts +1 -0
  132. package/dist/editor/ui/date-picker/date-picker.d.ts +21 -0
  133. package/dist/editor/ui/date-picker/index.d.ts +1 -0
  134. package/dist/editor/ui/dialog/dialog/dialog.d.ts +2 -0
  135. package/dist/editor/ui/dialog/dialog/helpers.d.ts +1 -0
  136. package/dist/editor/ui/dialog/dialog/index.d.ts +3 -0
  137. package/dist/editor/ui/dialog/dialog/types.d.ts +5 -0
  138. package/dist/editor/ui/dialog/dialog-body/dialog-body.d.ts +2 -0
  139. package/dist/editor/ui/dialog/dialog-body/index.d.ts +2 -0
  140. package/dist/editor/ui/dialog/dialog-body/types.d.ts +3 -0
  141. package/dist/editor/ui/dialog/dialog-close/dialog-close.d.ts +1 -0
  142. package/dist/editor/ui/dialog/dialog-close/index.d.ts +2 -0
  143. package/dist/editor/ui/dialog/dialog-close/types.d.ts +2 -0
  144. package/dist/editor/ui/dialog/dialog-footer/dialog-footer.d.ts +2 -0
  145. package/dist/editor/ui/dialog/dialog-footer/index.d.ts +2 -0
  146. package/dist/editor/ui/dialog/dialog-footer/types.d.ts +3 -0
  147. package/dist/editor/ui/dialog/dialog-header/dialog-header.d.ts +2 -0
  148. package/dist/editor/ui/dialog/dialog-header/index.d.ts +2 -0
  149. package/dist/editor/ui/dialog/dialog-header/types.d.ts +4 -0
  150. package/dist/editor/ui/dialog/index.d.ts +5 -0
  151. package/dist/editor/ui/dropzone/dropzone.d.ts +6 -0
  152. package/dist/editor/ui/dropzone/index.d.ts +1 -0
  153. package/dist/editor/ui/floating/index.d.ts +3 -0
  154. package/dist/editor/ui/floating/wb-floating/helpers.d.ts +4 -0
  155. package/dist/editor/ui/floating/wb-floating/index.d.ts +3 -0
  156. package/dist/editor/ui/floating/wb-floating/types.d.ts +16 -0
  157. package/dist/editor/ui/floating/wb-floating-close/index.d.ts +2 -0
  158. package/dist/editor/ui/floating/wb-floating-close/types.d.ts +7 -0
  159. package/dist/editor/ui/floating/wb-floating-close/wb-floating-close.d.ts +2 -0
  160. package/dist/editor/ui/floating/wb-floating-content/index.d.ts +2 -0
  161. package/dist/editor/ui/floating/wb-floating-content/types.d.ts +10 -0
  162. package/dist/editor/ui/floating/wb-floating-content/wb-floating-content.d.ts +2 -0
  163. package/dist/editor/ui/form-label/form-label.d.ts +6 -0
  164. package/dist/editor/ui/form-label/index.d.ts +1 -0
  165. package/dist/editor/ui/icon/icon.d.ts +6 -0
  166. package/dist/editor/ui/icon/index.d.ts +1 -0
  167. package/dist/editor/ui/icon-button/icon-button.d.ts +10 -0
  168. package/dist/editor/ui/icon-button/index.d.ts +1 -0
  169. package/dist/editor/ui/index.d.ts +25 -0
  170. package/dist/editor/ui/input/index.d.ts +1 -0
  171. package/dist/editor/ui/input/input.d.ts +22 -0
  172. package/dist/editor/ui/input-number/index.d.ts +1 -0
  173. package/dist/editor/ui/input-number/input-number.d.ts +11 -0
  174. package/dist/editor/ui/loading-overlay/index.d.ts +1 -0
  175. package/dist/editor/ui/loading-overlay/loading-overlay.d.ts +8 -0
  176. package/dist/editor/ui/menu/context.d.ts +5 -0
  177. package/dist/editor/ui/menu/index.d.ts +4 -0
  178. package/dist/editor/ui/menu/menu-core.d.ts +13 -0
  179. package/dist/editor/ui/menu/menu-item.d.ts +5 -0
  180. package/dist/editor/ui/menu/menu-list.d.ts +2 -0
  181. package/dist/editor/ui/menu/menu-trigger.d.ts +2 -0
  182. package/dist/editor/ui/menu/menu.d.ts +3 -0
  183. package/dist/editor/ui/popover/context.d.ts +5 -0
  184. package/dist/editor/ui/popover/index.d.ts +4 -0
  185. package/dist/editor/ui/popover/popover-close.d.ts +8 -0
  186. package/dist/editor/ui/popover/popover-content.d.ts +2 -0
  187. package/dist/editor/ui/popover/popover-core.d.ts +12 -0
  188. package/dist/editor/ui/popover/popover-trigger.d.ts +2 -0
  189. package/dist/editor/ui/popover/popover.d.ts +3 -0
  190. package/dist/editor/ui/radio-button/index.d.ts +1 -0
  191. package/dist/editor/ui/radio-button/radio-button.d.ts +6 -0
  192. package/dist/editor/ui/scroll-view/index.d.ts +1 -0
  193. package/dist/editor/ui/scroll-view/scroll-view.d.ts +4 -0
  194. package/dist/editor/ui/select/index.d.ts +1 -0
  195. package/dist/editor/ui/select/select.d.ts +31 -0
  196. package/dist/editor/ui/svg-loader/index.d.ts +5 -0
  197. package/dist/editor/ui/switch/index.d.ts +1 -0
  198. package/dist/editor/ui/switch/switch.d.ts +4 -0
  199. package/dist/editor/ui/tabs/context.d.ts +6 -0
  200. package/dist/editor/ui/tabs/index.d.ts +5 -0
  201. package/dist/editor/ui/tabs/tab-content.d.ts +2 -0
  202. package/dist/editor/ui/tabs/tab-list.d.ts +6 -0
  203. package/dist/editor/ui/tabs/tab-panel.d.ts +2 -0
  204. package/dist/editor/ui/tabs/tab.d.ts +8 -0
  205. package/dist/editor/ui/tabs/tabs.d.ts +8 -0
  206. package/dist/editor/ui/textarea/index.d.ts +1 -0
  207. package/dist/editor/ui/textarea/textarea.d.ts +3 -0
  208. package/dist/editor/ui/tooltip/index.d.ts +1 -0
  209. package/dist/editor/ui/tooltip/tooltip.d.ts +9 -0
  210. package/dist/editor/ui/virtualized-list/index.d.ts +14 -0
  211. package/dist/editor.js +867 -0
  212. package/dist/hooks/index.d.ts +4 -0
  213. package/dist/hooks/use-node-data-attributes.d.ts +1 -0
  214. package/dist/hooks/use-node-props.d.ts +16 -0
  215. package/dist/hooks/use-node.d.ts +2 -0
  216. package/dist/index-CY7cmOMU.js +5815 -0
  217. package/dist/index-Rgu55m54.js +4 -0
  218. package/dist/index.d.ts +4 -0
  219. package/dist/index.js +15169 -0
  220. package/dist/lib/accordion/accordion.node/accordion.node.d.ts +3 -0
  221. package/dist/lib/accordion/accordion.node/index.d.ts +3 -0
  222. package/dist/lib/accordion/accordion.node/types.d.ts +2 -0
  223. package/dist/lib/accordion/index.d.ts +1 -0
  224. package/dist/lib/accordion-content/accordion-content.node/accordion-content.node.d.ts +3 -0
  225. package/dist/lib/accordion-content/accordion-content.node/index.d.ts +2 -0
  226. package/dist/lib/accordion-content/accordion-content.node/types.d.ts +2 -0
  227. package/dist/lib/accordion-content/index.d.ts +1 -0
  228. package/dist/lib/accordion-group/accordion-group.inspector/accordion-group.inspector.d.ts +1 -0
  229. package/dist/lib/accordion-group/accordion-group.inspector/accordion-items-field.d.ts +1 -0
  230. package/dist/lib/accordion-group/accordion-group.inspector/expand-icon-field.d.ts +2 -0
  231. package/dist/lib/accordion-group/accordion-group.inspector/index.d.ts +1 -0
  232. package/dist/lib/accordion-group/accordion-group.inspector/open-mode-field.d.ts +1 -0
  233. package/dist/lib/accordion-group/accordion-group.node/accordion-group.node.d.ts +3 -0
  234. package/dist/lib/accordion-group/accordion-group.node/index.d.ts +3 -0
  235. package/dist/lib/accordion-group/accordion-group.node/types.d.ts +2 -0
  236. package/dist/lib/accordion-group/index.d.ts +2 -0
  237. package/dist/lib/accordion-summary/accordion-summary.node/accordion-summary.node.d.ts +2 -0
  238. package/dist/lib/accordion-summary/accordion-summary.node/index.d.ts +2 -0
  239. package/dist/lib/accordion-summary/accordion-summary.node/types.d.ts +2 -0
  240. package/dist/lib/accordion-summary/index.d.ts +1 -0
  241. package/dist/lib/box/box.inspector/box.inspector.d.ts +1 -0
  242. package/dist/lib/box/box.inspector/index.d.ts +1 -0
  243. package/dist/lib/box/box.node/box.node.d.ts +2 -0
  244. package/dist/lib/box/box.node/index.d.ts +3 -0
  245. package/dist/lib/box/box.node/types.d.ts +2 -0
  246. package/dist/lib/box/index.d.ts +2 -0
  247. package/dist/lib/button/button.inspector/button.inspector.d.ts +6 -0
  248. package/dist/lib/button/button.inspector/index.d.ts +3 -0
  249. package/dist/lib/button/button.inspector/link-field.d.ts +4 -0
  250. package/dist/lib/button/button.inspector/size-field.d.ts +1 -0
  251. package/dist/lib/button/button.inspector/variant-field.d.ts +1 -0
  252. package/dist/lib/button/button.node/button.node.d.ts +2 -0
  253. package/dist/lib/button/button.node/index.d.ts +3 -0
  254. package/dist/lib/button/button.node/types.d.ts +2 -0
  255. package/dist/lib/button/index.d.ts +2 -0
  256. package/dist/lib/cell/cell.inspector/cell.inspector.d.ts +1 -0
  257. package/dist/lib/cell/cell.inspector/col-span-field.d.ts +1 -0
  258. package/dist/lib/cell/cell.inspector/index.d.ts +1 -0
  259. package/dist/lib/cell/cell.node/cell.node.d.ts +2 -0
  260. package/dist/lib/cell/cell.node/index.d.ts +3 -0
  261. package/dist/lib/cell/cell.node/types.d.ts +2 -0
  262. package/dist/lib/cell/index.d.ts +2 -0
  263. package/dist/lib/countdown-timer/countdown-timer.inspector/caption-style-fields.d.ts +2 -0
  264. package/dist/lib/countdown-timer/countdown-timer.inspector/countdown-timer.inspector.d.ts +1 -0
  265. package/dist/lib/countdown-timer/countdown-timer.inspector/index.d.ts +1 -0
  266. package/dist/lib/countdown-timer/countdown-timer.inspector/time-style-fields.d.ts +2 -0
  267. package/dist/lib/countdown-timer/countdown-timer.inspector/unit-item-style-fields.d.ts +2 -0
  268. package/dist/lib/countdown-timer/countdown-timer.inspector/units-field.d.ts +2 -0
  269. package/dist/lib/countdown-timer/countdown-timer.node/countdown-timer.node.d.ts +2 -0
  270. package/dist/lib/countdown-timer/countdown-timer.node/index.d.ts +2 -0
  271. package/dist/lib/countdown-timer/countdown-timer.node/types.d.ts +13 -0
  272. package/dist/lib/countdown-timer/index.d.ts +2 -0
  273. package/dist/lib/flex-item/flex-item.inspector/auto-grow-field.d.ts +2 -0
  274. package/dist/lib/flex-item/flex-item.inspector/auto-shrink-field.d.ts +2 -0
  275. package/dist/lib/flex-item/flex-item.inspector/flex-item.inspector.d.ts +1 -0
  276. package/dist/lib/flex-item/flex-item.inspector/index.d.ts +1 -0
  277. package/dist/lib/flex-item/flex-item.node/flex-item.node.d.ts +2 -0
  278. package/dist/lib/flex-item/flex-item.node/index.d.ts +3 -0
  279. package/dist/lib/flex-item/flex-item.node/types.d.ts +2 -0
  280. package/dist/lib/flex-item/index.d.ts +2 -0
  281. package/dist/lib/flexbox/flexbox.inspector/direction-field.d.ts +1 -0
  282. package/dist/lib/flexbox/flexbox.inspector/flexbox.inspector.d.ts +1 -0
  283. package/dist/lib/flexbox/flexbox.inspector/index.d.ts +1 -0
  284. package/dist/lib/flexbox/flexbox.node/flexbox.node.d.ts +2 -0
  285. package/dist/lib/flexbox/flexbox.node/index.d.ts +3 -0
  286. package/dist/lib/flexbox/flexbox.node/types.d.ts +2 -0
  287. package/dist/lib/flexbox/index.d.ts +2 -0
  288. package/dist/lib/grid/grid.inspector/grid.inspector.d.ts +1 -0
  289. package/dist/lib/grid/grid.inspector/index.d.ts +1 -0
  290. package/dist/lib/grid/grid.node/grid.node.d.ts +2 -0
  291. package/dist/lib/grid/grid.node/index.d.ts +3 -0
  292. package/dist/lib/grid/grid.node/types.d.ts +2 -0
  293. package/dist/lib/grid/index.d.ts +2 -0
  294. package/dist/lib/heading/heading/heading.d.ts +2 -0
  295. package/dist/lib/heading/heading/index.d.ts +2 -0
  296. package/dist/lib/heading/heading/types.d.ts +2 -0
  297. package/dist/lib/heading/heading.inspector/heading.inspector.d.ts +1 -0
  298. package/dist/lib/heading/heading.inspector/index.d.ts +1 -0
  299. package/dist/lib/heading/heading.node/heading.node.d.ts +2 -0
  300. package/dist/lib/heading/heading.node/index.d.ts +3 -0
  301. package/dist/lib/heading/heading.node/types.d.ts +2 -0
  302. package/dist/lib/heading/heading.renderer/heading.renderer.d.ts +2 -0
  303. package/dist/lib/heading/heading.renderer/index.d.ts +1 -0
  304. package/dist/lib/heading/index.d.ts +4 -0
  305. package/dist/lib/icon/icon.inspector/icon.inspector.d.ts +1 -0
  306. package/dist/lib/icon/icon.inspector/index.d.ts +1 -0
  307. package/dist/lib/icon/icon.node/icon.node.d.ts +2 -0
  308. package/dist/lib/icon/icon.node/index.d.ts +3 -0
  309. package/dist/lib/icon/icon.node/types.d.ts +2 -0
  310. package/dist/lib/icon/index.d.ts +2 -0
  311. package/dist/lib/image/image.inspector/alt-text-field.d.ts +1 -0
  312. package/dist/lib/image/image.inspector/image.inspector.d.ts +1 -0
  313. package/dist/lib/image/image.inspector/index.d.ts +1 -0
  314. package/dist/lib/image/image.inspector/preload-field.d.ts +1 -0
  315. package/dist/lib/image/image.inspector/proportion-field.d.ts +1 -0
  316. package/dist/lib/image/image.inspector/source-field.d.ts +1 -0
  317. package/dist/lib/image/image.node/image.node.d.ts +2 -0
  318. package/dist/lib/image/image.node/index.d.ts +3 -0
  319. package/dist/lib/image/image.node/types.d.ts +2 -0
  320. package/dist/lib/image/index.d.ts +2 -0
  321. package/dist/lib/index.d.ts +31 -0
  322. package/dist/lib/link/index.d.ts +2 -0
  323. package/dist/lib/link/link.inspector/destination-field.d.ts +1 -0
  324. package/dist/lib/link/link.inspector/index.d.ts +1 -0
  325. package/dist/lib/link/link.inspector/link.inspector.d.ts +1 -0
  326. package/dist/lib/link/link.inspector/rel-field.d.ts +1 -0
  327. package/dist/lib/link/link.node/index.d.ts +3 -0
  328. package/dist/lib/link/link.node/link.node.d.ts +2 -0
  329. package/dist/lib/link/link.node/types.d.ts +2 -0
  330. package/dist/lib/list-item/index.d.ts +1 -0
  331. package/dist/lib/list-item/list-item.node/index.d.ts +3 -0
  332. package/dist/lib/list-item/list-item.node/list-item.node.d.ts +2 -0
  333. package/dist/lib/list-item/list-item.node/types.d.ts +2 -0
  334. package/dist/lib/marquee/index.d.ts +2 -0
  335. package/dist/lib/marquee/marquee.inspector/index.d.ts +1 -0
  336. package/dist/lib/marquee/marquee.inspector/marquee.inspector.d.ts +1 -0
  337. package/dist/lib/marquee/marquee.inspector/play-state-field.d.ts +1 -0
  338. package/dist/lib/marquee/marquee.node/index.d.ts +3 -0
  339. package/dist/lib/marquee/marquee.node/marquee.node.d.ts +2 -0
  340. package/dist/lib/marquee/marquee.node/types.d.ts +2 -0
  341. package/dist/lib/marquee-item/index.d.ts +1 -0
  342. package/dist/lib/marquee-item/marquee-item.node/index.d.ts +1 -0
  343. package/dist/lib/marquee-item/marquee-item.node/marquee-item.node.d.ts +2 -0
  344. package/dist/lib/marquee-item/marquee-item.node/types.d.ts +2 -0
  345. package/dist/lib/paragraph/index.d.ts +3 -0
  346. package/dist/lib/paragraph/paragraph/paragraph.d.ts +2 -0
  347. package/dist/lib/paragraph/paragraph/types.d.ts +2 -0
  348. package/dist/lib/paragraph/paragraph.inspector/index.d.ts +1 -0
  349. package/dist/lib/paragraph/paragraph.inspector/paragraph.inspector.d.ts +1 -0
  350. package/dist/lib/paragraph/paragraph.node/index.d.ts +3 -0
  351. package/dist/lib/paragraph/paragraph.node/paragraph.node.d.ts +2 -0
  352. package/dist/lib/paragraph/paragraph.node/types.d.ts +2 -0
  353. package/dist/lib/paragraph/paragraph.renderer/index.d.ts +1 -0
  354. package/dist/lib/paragraph/paragraph.renderer/paragraph.renderer.d.ts +2 -0
  355. package/dist/lib/root/index.d.ts +1 -0
  356. package/dist/lib/root/root.node/index.d.ts +2 -0
  357. package/dist/lib/root/root.node/root.node.d.ts +2 -0
  358. package/dist/lib/root/root.node/types.d.ts +2 -0
  359. package/dist/lib/swiper/index.d.ts +2 -0
  360. package/dist/lib/swiper/swiper.inspector/autoplay-delay-field.d.ts +1 -0
  361. package/dist/lib/swiper/swiper.inspector/autoplay-loop-field.d.ts +1 -0
  362. package/dist/lib/swiper/swiper.inspector/index.d.ts +1 -0
  363. package/dist/lib/swiper/swiper.inspector/slides-per-view-field.d.ts +1 -0
  364. package/dist/lib/swiper/swiper.inspector/swiper.inspector.d.ts +1 -0
  365. package/dist/lib/swiper/swiper.node/index.d.ts +3 -0
  366. package/dist/lib/swiper/swiper.node/swiper.node.d.ts +2 -0
  367. package/dist/lib/swiper/swiper.node/types.d.ts +2 -0
  368. package/dist/lib/swiper-slide/index.d.ts +1 -0
  369. package/dist/lib/swiper-slide/swiper-slide.node/index.d.ts +2 -0
  370. package/dist/lib/swiper-slide/swiper-slide.node/swiper-slide.node.d.ts +2 -0
  371. package/dist/lib/swiper-slide/swiper-slide.node/types.d.ts +2 -0
  372. package/dist/lib/tab/index.d.ts +1 -0
  373. package/dist/lib/tab/tab.node/index.d.ts +3 -0
  374. package/dist/lib/tab/tab.node/tab.node.d.ts +2 -0
  375. package/dist/lib/tab/tab.node/types.d.ts +2 -0
  376. package/dist/lib/tab-content/index.d.ts +1 -0
  377. package/dist/lib/tab-content/tab-content.node/index.d.ts +1 -0
  378. package/dist/lib/tab-content/tab-content.node/tab-content.node.d.ts +2 -0
  379. package/dist/lib/tab-content/tab-content.node/types.d.ts +2 -0
  380. package/dist/lib/tab-list/index.d.ts +1 -0
  381. package/dist/lib/tab-list/tab-list.node/index.d.ts +2 -0
  382. package/dist/lib/tab-list/tab-list.node/tab-list.node.d.ts +2 -0
  383. package/dist/lib/tab-list/tab-list.node/types.d.ts +2 -0
  384. package/dist/lib/tab-panel/index.d.ts +1 -0
  385. package/dist/lib/tab-panel/tab-panel.node/index.d.ts +3 -0
  386. package/dist/lib/tab-panel/tab-panel.node/tab-panel.node.d.ts +2 -0
  387. package/dist/lib/tab-panel/tab-panel.node/types.d.ts +2 -0
  388. package/dist/lib/tabs/index.d.ts +2 -0
  389. package/dist/lib/tabs/tabs.inspector/child-tabs-field.d.ts +1 -0
  390. package/dist/lib/tabs/tabs.inspector/default-active-field.d.ts +1 -0
  391. package/dist/lib/tabs/tabs.inspector/index.d.ts +1 -0
  392. package/dist/lib/tabs/tabs.inspector/tabs.inspector.d.ts +1 -0
  393. package/dist/lib/tabs/tabs.node/index.d.ts +3 -0
  394. package/dist/lib/tabs/tabs.node/tabs.node.d.ts +3 -0
  395. package/dist/lib/tabs/tabs.node/types.d.ts +2 -0
  396. package/dist/lib/text/index.d.ts +1 -0
  397. package/dist/lib/text/text.inspector/index.d.ts +1 -0
  398. package/dist/lib/text/text.inspector/text.inspector.d.ts +6 -0
  399. package/dist/lib/unknown/index.d.ts +1 -0
  400. package/dist/lib/unknown/unknown.node/index.d.ts +1 -0
  401. package/dist/lib/unknown/unknown.node/unknown.node.d.ts +2 -0
  402. package/dist/lib/unordered-list/index.d.ts +2 -0
  403. package/dist/lib/unordered-list/unordered-list.inspector/index.d.ts +1 -0
  404. package/dist/lib/unordered-list/unordered-list.inspector/unordered-list.inspector.d.ts +1 -0
  405. package/dist/lib/unordered-list/unordered-list.node/index.d.ts +3 -0
  406. package/dist/lib/unordered-list/unordered-list.node/types.d.ts +2 -0
  407. package/dist/lib/unordered-list/unordered-list.node/unordered-list.node.d.ts +3 -0
  408. package/dist/lib/video/index.d.ts +2 -0
  409. package/dist/lib/video/video.inspector/index.d.ts +1 -0
  410. package/dist/lib/video/video.inspector/video.inspector.d.ts +1 -0
  411. package/dist/lib/video/video.node/index.d.ts +3 -0
  412. package/dist/lib/video/video.node/types.d.ts +2 -0
  413. package/dist/lib/video/video.node/video.node.d.ts +3 -0
  414. package/dist/minus-C82LyzQP.js +6 -0
  415. package/dist/style.css +1 -0
  416. package/dist/templates/elements/carousel/index.d.ts +2 -0
  417. package/dist/templates/elements/content-list/index.d.ts +2 -0
  418. package/dist/templates/elements/index.d.ts +7 -0
  419. package/dist/templates/elements/interactive/index.d.ts +2 -0
  420. package/dist/templates/elements/layout/index.d.ts +2 -0
  421. package/dist/templates/elements/media/index.d.ts +2 -0
  422. package/dist/templates/elements/text/index.d.ts +2 -0
  423. package/dist/templates/elements/utilities/index.d.ts +2 -0
  424. package/dist/templates/index.d.ts +2 -0
  425. package/dist/templates/sections/faqs/index.d.ts +2 -0
  426. package/dist/templates/sections/guarantee/index.d.ts +2 -0
  427. package/dist/templates/sections/hero/index.d.ts +2 -0
  428. package/dist/templates/sections/index.d.ts +3 -0
  429. package/dist/templates.js +22581 -0
  430. package/dist/tooltip-BKdjtgjO.js +63 -0
  431. package/dist/types/index.d.ts +30 -0
  432. package/dist/utils/common.d.ts +5 -0
  433. package/dist/utils/index.d.ts +19 -0
  434. package/dist/vite.config.d.ts +2 -0
  435. package/package.json +86 -0
package/dist/editor.js ADDED
@@ -0,0 +1,867 @@
1
+ import { b as E, g as x, a as e, c as b, d as ie, j as i, N as R, B as z, F as _, e as le, f as ae, u as C, W as ce, h as de, i as $, k as we, P as he } from "./countdown-timer.node-CTPWHLr7.js";
2
+ import { a as ue, b as A, c as S, D as pe, d as me, W as p, e as k, f as ge, g as fe, h as G, i as U, j as ke, k as be, l as F, m as ve, n as D, o as H, F as Ce, A as q, p as xe, C as Z, q as Q, r as Ne, s as ye, T as Le, t as V, R as Se } from "./index-CY7cmOMU.js";
3
+ import { v as Ft } from "./index-CY7cmOMU.js";
4
+ import je from "mitt";
5
+ import { createContext as X, useRef as K, useState as j, useEffect as N, createElement as Y, Fragment as L, Suspense as Ee } from "react";
6
+ import { useToggle as J } from "usehooks-ts";
7
+ import { Global as ee, CacheProvider as Me, createElement as De } from "@emotion/react";
8
+ import { useFloating as We, autoUpdate as Ae, flip as Ie, size as Re, useHover as ze, safePolygon as Fe, useFocus as He, useDismiss as Ve, useRole as Te, useInteractions as Pe, FloatingPortal as te } from "@floating-ui/react";
9
+ import { flatten as Be } from "flat";
10
+ import { flatMap as Oe, throttle as _e, isFunction as T, isNumber as P } from "lodash-es";
11
+ import $e, { useFrame as Ge } from "react-frame-component";
12
+ import { Layers as Ue, useLayer as qe } from "@craftjs/layers";
13
+ import { useNode as Ze, ROOT_NODE as W } from "@craftjs/core";
14
+ const oe = "en", Qe = X(oe), M = (s, t = !0) => {
15
+ const r = `--text-${s}--{{property}}`, o = t ? `var(${r})` : r;
16
+ return {
17
+ fontSize: o.replace("{{property}}", "font-size"),
18
+ lineHeight: o.replace("{{property}}", "line-height")
19
+ };
20
+ }, Xe = X(null), Ke = ({ theme: s, children: t, locale: r = oe }) => /* @__PURE__ */ E.jsxs(Xe.Provider, { value: s, children: [
21
+ /* @__PURE__ */ E.jsx(ee, { styles: Ye(s) }),
22
+ /* @__PURE__ */ E.jsx(Qe.Provider, { value: r, children: t })
23
+ ] }), Ye = ({ palette: s, typography: t }) => {
24
+ const r = Be(s), o = Object.fromEntries(
25
+ Object.keys(r).map((n) => [x(n, !1), r[n]])
26
+ ), w = Object.fromEntries(
27
+ Oe(
28
+ Object.keys(t).map((n) => {
29
+ const d = M(n, !1), { fontSize: l, lineHeight: a } = t[n];
30
+ return [
31
+ [d.fontSize, l],
32
+ [d.lineHeight, a]
33
+ ];
34
+ })
35
+ )
36
+ );
37
+ return {
38
+ // ─── Reset / Preflight ───────────────────────────────────────────────────
39
+ // 1. Prevent padding and border from affecting element width.
40
+ // 2. Allow adding a border to an element by just adding a border-width.
41
+ "*, ::before, ::after": {
42
+ boxSizing: "border-box",
43
+ // 1
44
+ borderWidth: 0,
45
+ // 2
46
+ borderStyle: "solid",
47
+ // 2
48
+ borderColor: x("border.default")
49
+ },
50
+ // 1. Use a consistent sensible line-height in all browsers.
51
+ // 2. Prevent adjustments of font size after orientation changes in iOS.
52
+ // 3. Use a more readable tab size.
53
+ // 4. Use the user's configured `sans` font-family by default.
54
+ // 5. Use the user's configured `sans` font-feature-settings by default.
55
+ // 6. Use the user's configured `sans` font-variation-settings by default.
56
+ // 7. Disable tap highlights on iOS
57
+ "html, :host": {
58
+ lineHeight: 1.5,
59
+ // 1
60
+ WebkitTextSizeAdjust: "100%",
61
+ // 2
62
+ MozTabSize: 4,
63
+ // 3
64
+ tabSize: 4,
65
+ // 3
66
+ fontFamily: 'ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
67
+ // 4
68
+ fontFeatureSettings: "normal",
69
+ // 5
70
+ fontVariationSettings: "normal",
71
+ // 6
72
+ WebkitTapHighlightColor: "transparent"
73
+ // 7
74
+ },
75
+ // 1. Remove the margin in all browsers.
76
+ // 2. Inherit line-height from `html` — overridden below by app-level typography.
77
+ body: {
78
+ margin: 0,
79
+ // 1
80
+ // ─── App-level styles ───────────────────────────────────────────
81
+ display: "flex",
82
+ flexDirection: "column",
83
+ minHeight: "100dvh",
84
+ color: x("neutral.600"),
85
+ backgroundColor: x("background.default"),
86
+ fontSize: M("sm").fontSize,
87
+ lineHeight: M("sm").lineHeight
88
+ },
89
+ // 1. Add the correct height in Firefox.
90
+ // 2. Correct the inheritance of border color in Firefox.
91
+ // 3. Ensure horizontal rules are visible by default.
92
+ hr: {
93
+ height: 0,
94
+ // 1
95
+ color: "inherit",
96
+ // 2
97
+ borderTopWidth: "1px"
98
+ // 3
99
+ },
100
+ // Add the correct text decoration in Chrome, Edge, and Safari.
101
+ "abbr:where([title])": {
102
+ textDecoration: "underline dotted"
103
+ },
104
+ // Remove the default font size and weight for headings.
105
+ "h1, h2, h3, h4, h5, h6": {
106
+ fontSize: "inherit",
107
+ fontWeight: "inherit"
108
+ },
109
+ // Reset links to optimize for opt-in styling instead of opt-out.
110
+ a: {
111
+ color: "inherit",
112
+ textDecoration: "inherit"
113
+ },
114
+ // Add the correct font weight in Edge and Safari.
115
+ "b, strong": {
116
+ fontWeight: "bolder"
117
+ },
118
+ // 1. Use the user's configured `mono` font-family by default.
119
+ // 2. Use the user's configured `mono` font-feature-settings by default.
120
+ // 3. Use the user's configured `mono` font-variation-settings by default.
121
+ // 4. Correct the odd `em` font sizing in all browsers.
122
+ "code, kbd, samp, pre": {
123
+ fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
124
+ // 1
125
+ fontFeatureSettings: "normal",
126
+ // 2
127
+ fontVariationSettings: "normal",
128
+ // 3
129
+ fontSize: "1em"
130
+ // 4
131
+ },
132
+ // Add the correct font size in all browsers.
133
+ small: {
134
+ fontSize: "80%"
135
+ },
136
+ // Prevent `sub` and `sup` elements from affecting the line height in all browsers.
137
+ "sub, sup": {
138
+ fontSize: "75%",
139
+ lineHeight: 0,
140
+ position: "relative",
141
+ verticalAlign: "baseline"
142
+ },
143
+ sub: {
144
+ bottom: "-0.25em"
145
+ },
146
+ sup: {
147
+ top: "-0.5em"
148
+ },
149
+ // 1. Remove text indentation from table contents in Chrome and Safari.
150
+ // 2. Correct table border color inheritance in all Chrome and Safari.
151
+ // 3. Remove gaps between table borders by default.
152
+ table: {
153
+ textIndent: 0,
154
+ // 1
155
+ borderColor: "inherit",
156
+ // 2
157
+ borderCollapse: "collapse"
158
+ // 3
159
+ },
160
+ // 1. Change the font styles in all browsers.
161
+ // 2. Remove the margin in Firefox and Safari.
162
+ // 3. Remove default padding in all browsers.
163
+ "button, input, optgroup, select, textarea": {
164
+ fontFamily: "inherit",
165
+ // 1
166
+ fontFeatureSettings: "inherit",
167
+ // 1
168
+ fontVariationSettings: "inherit",
169
+ // 1
170
+ fontSize: "100%",
171
+ // 1
172
+ fontWeight: "inherit",
173
+ // 1
174
+ lineHeight: "inherit",
175
+ // 1
176
+ letterSpacing: "inherit",
177
+ // 1
178
+ color: "inherit",
179
+ // 1
180
+ margin: 0,
181
+ // 2
182
+ padding: 0
183
+ // 3
184
+ },
185
+ // Remove the inheritance of text transform in Edge and Firefox.
186
+ "button, select": {
187
+ textTransform: "none"
188
+ },
189
+ // 1. Correct the inability to style clickable types in iOS and Safari.
190
+ // 2. Remove default button styles.
191
+ "button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])": {
192
+ WebkitAppearance: "button",
193
+ // 1
194
+ backgroundColor: "transparent",
195
+ // 2
196
+ backgroundImage: "none"
197
+ // 2
198
+ },
199
+ // Use the modern Firefox focus style for all focusable elements.
200
+ ":-moz-focusring": {
201
+ outline: "auto"
202
+ },
203
+ // Remove the additional `:invalid` styles in Firefox.
204
+ ":-moz-ui-invalid": {
205
+ boxShadow: "none"
206
+ },
207
+ // Add the correct vertical alignment in Chrome and Firefox.
208
+ progress: {
209
+ verticalAlign: "baseline"
210
+ },
211
+ // Correct the cursor style of increment and decrement buttons in Safari.
212
+ "::-webkit-inner-spin-button, ::-webkit-outer-spin-button": {
213
+ height: "auto"
214
+ },
215
+ // 1. Correct the odd appearance in Chrome and Safari.
216
+ // 2. Correct the outline style in Safari.
217
+ "[type='search']": {
218
+ WebkitAppearance: "textfield",
219
+ // 1
220
+ outlineOffset: "-2px"
221
+ // 2
222
+ },
223
+ // Remove the inner padding in Chrome and Safari on macOS.
224
+ "::-webkit-search-decoration": {
225
+ WebkitAppearance: "none"
226
+ },
227
+ // 1. Correct the inability to style clickable types in iOS and Safari.
228
+ // 2. Change font properties to `inherit` in Safari.
229
+ "::-webkit-file-upload-button": {
230
+ WebkitAppearance: "button",
231
+ // 1
232
+ font: "inherit"
233
+ // 2
234
+ },
235
+ // Add the correct display in Chrome and Safari.
236
+ summary: {
237
+ display: "list-item"
238
+ },
239
+ // Removes the default spacing and border for appropriate elements.
240
+ "blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre": {
241
+ margin: 0
242
+ },
243
+ fieldset: {
244
+ margin: 0,
245
+ padding: 0
246
+ },
247
+ legend: {
248
+ padding: 0
249
+ },
250
+ "ol, ul, menu": {
251
+ listStyle: "none",
252
+ margin: 0,
253
+ padding: 0
254
+ },
255
+ // Reset default styling for dialogs.
256
+ dialog: {
257
+ padding: 0
258
+ },
259
+ // Prevent resizing textareas horizontally by default.
260
+ textarea: {
261
+ resize: "vertical"
262
+ },
263
+ // 1. Reset the default placeholder opacity in Firefox.
264
+ // 2. Set the default placeholder color to gray 400.
265
+ "input::placeholder, textarea::placeholder": {
266
+ opacity: 1,
267
+ // 1
268
+ color: x("neutral.400")
269
+ },
270
+ // Set the default cursor for buttons.
271
+ "button, [role='button']": {
272
+ cursor: "pointer"
273
+ },
274
+ // Make sure disabled buttons don't get the pointer cursor.
275
+ ":disabled": {
276
+ cursor: "default"
277
+ },
278
+ // 1. Make replaced elements `display: block` by default.
279
+ // 2. Add `vertical-align: middle` to align replaced elements more sensibly by default.
280
+ "img, svg, video, canvas, audio, iframe, embed, object": {
281
+ display: "block",
282
+ // 1
283
+ verticalAlign: "middle"
284
+ // 2
285
+ },
286
+ // Constrain images and videos to the parent width and preserve their intrinsic aspect ratio.
287
+ "img, video": {
288
+ maxWidth: "100%",
289
+ height: "auto"
290
+ },
291
+ // Make elements with the HTML hidden attribute stay hidden by default.
292
+ "[hidden]:where(:not([hidden='until-found']))": {
293
+ display: "none"
294
+ },
295
+ // ─── CSS Variables ───────────────────────────────────────────────────────
296
+ ":root": {
297
+ ...o,
298
+ ...w
299
+ }
300
+ };
301
+ };
302
+ class Je {
303
+ constructor() {
304
+ this.componentControls = /* @__PURE__ */ new Set();
305
+ }
306
+ /**
307
+ * Subscribe a component's internal `VisualElementDragControls` to the user-facing API.
308
+ *
309
+ * @internal
310
+ */
311
+ subscribe(t) {
312
+ return this.componentControls.add(t), () => this.componentControls.delete(t);
313
+ }
314
+ /**
315
+ * Start a drag gesture on every `motion` component that has this set of drag controls
316
+ * passed into it via the `dragControls` prop.
317
+ *
318
+ * ```jsx
319
+ * dragControls.start(e, {
320
+ * snapToCursor: true
321
+ * })
322
+ * ```
323
+ *
324
+ * @param event - PointerEvent
325
+ * @param options - Options
326
+ *
327
+ * @public
328
+ */
329
+ start(t, r) {
330
+ this.componentControls.forEach((o) => {
331
+ o.start(t.nativeEvent || t, r);
332
+ });
333
+ }
334
+ }
335
+ const et = () => new Je();
336
+ function tt() {
337
+ return ue(et);
338
+ }
339
+ const ne = ({ children: s, viewport: t, containerProps: r }) => {
340
+ const o = K(null), [{ theme: w }] = A(), [n, d] = j({
341
+ width: 0,
342
+ height: 0
343
+ });
344
+ N(() => {
345
+ const f = _e((I) => {
346
+ const y = I.at(0)?.target;
347
+ if (!y) return;
348
+ const { width: re, height: se } = y.getBoundingClientRect();
349
+ d(() => ({
350
+ width: re,
351
+ height: se
352
+ }));
353
+ }, 200), v = new ResizeObserver(f);
354
+ return o.current && v.observe(o.current), () => v.disconnect();
355
+ }, []);
356
+ const l = T(t?.width) ? t.width(n.width) : t?.width, a = T(t?.height) ? t.height(n.height) : t?.height, u = P(l) ? n.width / l : 1, h = P(a) ? n.height / a : 1, c = Math.min(u, h, 1), g = (a ?? n.height / c) || 0, m = (l ?? n.width / c) || 0;
357
+ return /* @__PURE__ */ e("div", { ...r, className: b("tw:w-full tw:h-full tw:p-2 tw:bg-ic-ink-1s", r?.className), children: /* @__PURE__ */ e("div", { className: b("tw:w-full tw:h-full tw:overflow-hidden tw:relative"), ref: o, children: /* @__PURE__ */ e(
358
+ "div",
359
+ {
360
+ style: {
361
+ transform: `scale(${c})`,
362
+ width: m,
363
+ height: g,
364
+ marginLeft: (n.width - m) / 2,
365
+ marginTop: (n.height - g) / 2
366
+ },
367
+ className: "tw:absolute",
368
+ children: /* @__PURE__ */ e(
369
+ $e,
370
+ {
371
+ sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
372
+ allow: "autoplay; encrypted-media",
373
+ width: l ?? "100%",
374
+ height: a ?? "100%",
375
+ children: /* @__PURE__ */ e(ot, { theme: w, children: s })
376
+ }
377
+ )
378
+ }
379
+ ) }) });
380
+ }, ot = ({ children: s, theme: t }) => {
381
+ const { document: r, window: o } = Ge(), [w, n] = j(!1), d = K(window.customElements.define.bind(window.customElements));
382
+ N(() => {
383
+ const a = d.current;
384
+ return o && (window.customElements.define = function(u, h, c) {
385
+ window.customElements.get(u) || o.customElements.define(u, h, c), a(u, h, c);
386
+ }), r?.head.replaceWith(document.head.cloneNode(!0)), n(!0), () => {
387
+ window.customElements.define = a;
388
+ };
389
+ }, [r, o]);
390
+ const l = ie({
391
+ key: "css",
392
+ container: r?.head
393
+ });
394
+ return w ? /* @__PURE__ */ e(_, { children: /* @__PURE__ */ i(Me, { value: l, children: [
395
+ /* @__PURE__ */ e(
396
+ ee,
397
+ {
398
+ styles: {
399
+ ".frame-content": {
400
+ display: "flex",
401
+ flexDirection: "column",
402
+ minHeight: "100vh",
403
+ justifyContent: "center"
404
+ },
405
+ [`& *[${R.DATA_NODE_DROP_TARGET}=${z.True}]`]: {
406
+ outlineWidth: 1,
407
+ outlineStyle: "solid",
408
+ outlineOffset: -1,
409
+ outlineColor: "green"
410
+ },
411
+ [`& *[${R.DATA_NODE_DROP_TARGET_ERROR}=${z.True}]`]: {
412
+ outlineColor: "red"
413
+ }
414
+ }
415
+ }
416
+ ),
417
+ /* @__PURE__ */ e(Ke, { theme: t, children: s })
418
+ ] }) }) : null;
419
+ }, nt = ({ render: s }) => {
420
+ const { id: t, renderer: r } = Ze((n) => ({
421
+ resolvedId: ae(n),
422
+ renderer: le(n).renderer
423
+ })), {
424
+ queryParams: { mode: o }
425
+ } = S(), { isActive: w } = C((n, d) => ({
426
+ isActive: d.getEvent("selected").contains(t) && t !== W
427
+ }));
428
+ return r ? Y(r, { render: s }) : /* @__PURE__ */ i(L, { children: [
429
+ w && o === "full" && /* @__PURE__ */ i(L, { children: [
430
+ /* @__PURE__ */ e(pe, {}),
431
+ /* @__PURE__ */ e(me, {})
432
+ ] }),
433
+ s
434
+ ] });
435
+ }, B = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
436
+ <path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
437
+ <path d="M5 8H14C17.314 8 20 10.462 20 13.5V13.5C20 16.538 17.314 19 14 19H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
438
+ </svg>
439
+ `, rt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
440
+ <path d="M12 19.0004C11.158 19.0004 10.315 18.8224 9.496 18.5054" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
441
+ <path d="M20.882 12.4678C18.99 15.9668 15.495 18.9998 12 18.9998" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
442
+ <path d="M19.079 8.9209C19.77 9.7299 20.384 10.6119 20.882 11.5329C21.039 11.8239 21.039 12.1769 20.882 12.4679" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
443
+ <path d="M5 19L19 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
444
+ <path d="M9.77299 14.2271C8.54299 12.9971 8.54299 11.0021 9.77299 9.77211C11.003 8.54211 12.998 8.54211 14.228 9.77211" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
445
+ <path d="M17.044 6.956C15.497 5.759 13.748 5 12 5C8.50499 5 5.00999 8.033 3.11799 11.533C2.96099 11.824 2.96099 12.177 3.11799 12.468C4.06399 14.217 5.40999 15.849 6.95599 17.045" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
446
+ </svg>
447
+ `, st = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
448
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3.11799 12.467C2.96099 12.176 2.96099 11.823 3.11799 11.532C5.00999 8.033 8.50499 5 12 5C15.495 5 18.99 8.033 20.882 11.533C21.039 11.824 21.039 12.177 20.882 12.468C18.99 15.967 15.495 19 12 19C8.50499 19 5.00999 15.967 3.11799 12.467Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
449
+ <path d="M14.1213 9.87868C15.2929 11.0502 15.2929 12.9497 14.1213 14.1213C12.9497 15.2929 11.0502 15.2929 9.87866 14.1213C8.70709 12.9497 8.70709 11.0502 9.87866 9.87868C11.0502 8.70711 12.9497 8.70711 14.1213 9.87868" stroke="currentColor" stroke-width="1.4286" stroke-linecap="round" stroke-linejoin="round"/>
450
+ </svg>
451
+ `, it = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M9.75 3C8.50736 3 7.5 4.00736 7.5 5.25C7.5 5.66421 7.83579 6 8.25 6C8.66421 6 9 5.66421 9 5.25C9 4.83579 9.33579 4.5 9.75 4.5H13.75C14.1642 4.5 14.5 4.83579 14.5 5.25V14.75C14.5 15.1642 14.1642 15.5 13.75 15.5H9.75C9.33579 15.5 9 15.1642 9 14.75C9 14.3358 8.66421 14 8.25 14C7.83579 14 7.5 14.3358 7.5 14.75C7.5 15.9926 8.50736 17 9.75 17H13.75C14.9926 17 16 15.9926 16 14.75V5.25C16 4.00736 14.9926 3 13.75 3H9.75Z" fill="currentColor"></path><path d="M12.25 10.75C12.6642 10.75 13 10.4142 13 10C13 9.58579 12.6642 9.25 12.25 9.25L6.56066 9.25L7.53033 8.28033C7.82322 7.98744 7.82322 7.51256 7.53033 7.21967C7.23744 6.92678 6.76256 6.92678 6.46967 7.21967L4.21967 9.46967C4.07902 9.61032 4 9.80109 4 10C4 10.1989 4.07902 10.3897 4.21967 10.5303L6.46967 12.7803C6.76256 13.0732 7.23744 13.0732 7.53033 12.7803C7.82322 12.4874 7.82322 12.0126 7.53033 11.7197L6.56066 10.75H12.25Z" fill="currentColor"></path></svg>', O = je(), lt = () => {
452
+ const {
453
+ queryParams: { mode: s, screen: t },
454
+ setQueryParams: r
455
+ } = S(), { actions: o, canRedo: w, canUndo: n } = C((h, c) => ({
456
+ enabled: h.options.enabled,
457
+ canUndo: c.history.canUndo(),
458
+ canRedo: c.history.canRedo()
459
+ })), d = (h) => {
460
+ r({
461
+ screen: h
462
+ });
463
+ }, l = () => {
464
+ r({ mode: s === "full" ? "compact" : "full" });
465
+ }, a = () => {
466
+ O.emit("close");
467
+ }, u = () => {
468
+ o.selectNode(), O.emit("submit");
469
+ };
470
+ return /* @__PURE__ */ i(
471
+ "div",
472
+ {
473
+ className: b(
474
+ "tw:flex tw:items-center tw:gap-4 tw:p-2 tw:justify-between tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm"
475
+ ),
476
+ children: [
477
+ /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:gap-3", children: [
478
+ /* @__PURE__ */ e(k, { size: "32", onClick: a, children: /* @__PURE__ */ e(p, { source: it }) }),
479
+ /* @__PURE__ */ e(fe, { onSelectionChange: d, value: t, children: ge.map(({ icon: h, size: c }) => /* @__PURE__ */ e(k, { value: c, children: /* @__PURE__ */ e(p, { source: h }) }, c)) }),
480
+ /* @__PURE__ */ i("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: [
481
+ /* @__PURE__ */ e(k, { onClick: o.history.undo, disabled: !n, children: /* @__PURE__ */ e(p, { source: B }) }),
482
+ /* @__PURE__ */ e(k, { onClick: o.history.redo, disabled: !w, children: /* @__PURE__ */ e(p, { source: B, className: "tw:rotate-180" }) })
483
+ ] }),
484
+ /* @__PURE__ */ e("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: /* @__PURE__ */ e(k, { onClick: l, children: /* @__PURE__ */ e(p, { source: s === "full" ? st : rt }) }) })
485
+ ] }),
486
+ /* @__PURE__ */ e("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ e(G, { onClick: u, children: "Save" }) })
487
+ ]
488
+ }
489
+ );
490
+ }, at = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
491
+ <path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
492
+ <path d="M4 11.25C4 15.2541 7.24594 18.5 11.25 18.5C15.2541 18.5 18.5 15.2541 18.5 11.25C18.5 7.24594 15.2541 4 11.25 4V4C7.24606 4.00029 4.00029 7.24606 4 11.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
493
+ </svg>
494
+ `, ct = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
495
+ <path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
496
+ </svg>
497
+ `, dt = ({ elements: s, sections: t }) => /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:h-full", children: [
498
+ /* @__PURE__ */ e("div", { className: "tw:flex tw:items-center tw:p-2 tw:gap-3", children: /* @__PURE__ */ e(U, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ e(p, { source: at }) }) }),
499
+ /* @__PURE__ */ i(ke, { defaultIndex: 1, className: "tw:flex-1 tw:overflow-hidden tw:border-t tw:border-ic-white-1s", children: [
500
+ /* @__PURE__ */ i(be, { children: [
501
+ /* @__PURE__ */ e(F, { className: "tw:flex-1", children: "Sections" }),
502
+ /* @__PURE__ */ e(F, { className: "tw:flex-1", children: "Elements" })
503
+ ] }),
504
+ /* @__PURE__ */ i(ve, { className: "tw:flex-1 tw:overflow-hidden", children: [
505
+ /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(D, { className: "tw:h-full tw:py-2", children: t.map((r, o) => /* @__PURE__ */ e(ht, { group: r }, o)) }) }),
506
+ /* @__PURE__ */ e(H, { className: "tw:h-full tw:overflow-hidden", children: /* @__PURE__ */ e(D, { className: "tw:h-full tw:py-2", children: s.map((r, o) => /* @__PURE__ */ e(wt, { group: r }, o)) }) })
507
+ ] })
508
+ ] })
509
+ ] }), wt = ({ group: s }) => {
510
+ const [t, r] = J(!0), { actions: o, connectors: w } = C();
511
+ return /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:text-sm", children: [
512
+ /* @__PURE__ */ e(G, { onClick: r, className: "tw:bg-transparent", children: /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:justify-between tw:flex-1 tw:text-sm", children: [
513
+ s.name,
514
+ /* @__PURE__ */ e(
515
+ p,
516
+ {
517
+ source: q,
518
+ className: b("tw:transition-transform", {
519
+ "tw:rotate-180": !t
520
+ })
521
+ }
522
+ )
523
+ ] }) }),
524
+ /* @__PURE__ */ e(xe, { open: t, children: /* @__PURE__ */ e("div", { className: "tw:px-4 tw:py-2 tw:grid tw:grid-cols-2 tw:gap-4", children: s.elements.map((n, d) => /* @__PURE__ */ i("div", { className: "tw:space-y-1", children: [
525
+ /* @__PURE__ */ e(
526
+ "div",
527
+ {
528
+ className: b(
529
+ "tw:bg-ic-ink-6s tw:relative tw:transition-transform tw:rounded-lg tw:hover:scale-105 tw:pointer-events-auto tw:aspect-video tw:overflow-hidden",
530
+ "tw:cursor-grabbing tw:flex tw:flex-col tw:gap-1 tw:items-center tw:justify-center tw:p-1 tw:opacity-100 tw:text-ic-white-5s",
531
+ "tw:after:absolute tw:after:inset-0 tw:after:content-empty tw:after:bg-ic-white-1s"
532
+ ),
533
+ ref: (l) => {
534
+ l && w.create(l, n.template, {
535
+ onCreate(a) {
536
+ (typeof n.autoFocus == "function" ? n.autoFocus(a) : n.autoFocus) && o.selectNode(a.rootNodeId), n.onCreate?.(a);
537
+ }
538
+ });
539
+ },
540
+ children: /* @__PURE__ */ e(ce, { width: void 0, height: void 0, ...n.icon })
541
+ }
542
+ ),
543
+ /* @__PURE__ */ e("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children: n.name })
544
+ ] }, d)) }) })
545
+ ] });
546
+ }, ht = ({ group: s }) => {
547
+ const [t, r] = j(!1), { refs: o, floatingStyles: w, context: n } = We({
548
+ open: t,
549
+ onOpenChange: r,
550
+ placement: "right-start",
551
+ middleware: [
552
+ Ie(),
553
+ Re({
554
+ apply({ elements: g }) {
555
+ const m = {
556
+ zIndex: `${Ce}`,
557
+ height: `${g.reference.getBoundingClientRect().height}px`
558
+ };
559
+ Object.assign(g.floating.style, m);
560
+ }
561
+ })
562
+ ],
563
+ whileElementsMounted: Ae
564
+ });
565
+ N(() => {
566
+ o.setPositionReference(document.querySelector("aside"));
567
+ }, [o]);
568
+ const d = ze(n, { move: !1, handleClose: Fe() }), l = He(n), a = Ve(n), u = Te(n), { getReferenceProps: h, getFloatingProps: c } = Pe([d, l, a, u]);
569
+ return /* @__PURE__ */ i(L, { children: [
570
+ /* @__PURE__ */ i(
571
+ "button",
572
+ {
573
+ className: b(
574
+ "tw:w-full tw:text-left tw:flex tw:items-center tw:text-ic-white-5s tw:gap-2 tw:p-2 tw:rounded-lg",
575
+ "tw:hover:text-ic-white-6s tw:hover:bg-ic-white-1s tw:hover:font-medium"
576
+ ),
577
+ ...h(),
578
+ ref: o.setReference,
579
+ children: [
580
+ /* @__PURE__ */ e("div", { className: "tw:bg-ic-white-1s tw:p-1.5 tw:rounded-lg", children: /* @__PURE__ */ e(p, { ...s.icon }) }),
581
+ /* @__PURE__ */ e("span", { className: "tw:flex-1 tw:truncate", children: s.name }),
582
+ /* @__PURE__ */ e(p, { className: "tw:rotate-180", source: ct })
583
+ ]
584
+ }
585
+ ),
586
+ t && /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e("div", { style: w, ...c(), ref: o.setFloating, children: /* @__PURE__ */ i("div", { className: "tw:h-full tw:flex tw:flex-col tw:border-l tw:border-t tw:border-ic-white-2s tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm", children: [
587
+ /* @__PURE__ */ e("div", { className: "tw:h-12 tw:px-2 tw:flex tw:items-center", children: /* @__PURE__ */ e("h6", { className: "tw:font-medium", children: s.name }) }),
588
+ /* @__PURE__ */ e(D, { className: "tw:flex-1 tw:px-3", children: /* @__PURE__ */ e("div", { className: "tw:flex tw:flex-col tw:gap-4", children: s.sections.map((g, m) => /* @__PURE__ */ De(ut, { ...g, key: m })) }) })
589
+ ] }) }) })
590
+ ] });
591
+ }, ut = ({ template: s, autoFocus: t = !0, onCreate: r }) => {
592
+ const [, o] = j(!1), [w] = A(), { actions: n, connectors: d, resolver: l } = C((a) => ({
593
+ resolver: a.options.resolver
594
+ }));
595
+ return /* @__PURE__ */ e(
596
+ "div",
597
+ {
598
+ className: "tw:cursor-grab tw:border tw:border-ic-white-1s tw:rounded-lg tw:overflow-hidden",
599
+ ref: (a) => {
600
+ a && d.create(a, s, {
601
+ onCreate(u) {
602
+ t && n.selectNode(u.rootNodeId), r?.(u);
603
+ }
604
+ });
605
+ },
606
+ onDragStart: () => o(!0),
607
+ onDragEnd: () => o(!1),
608
+ children: /* @__PURE__ */ e("div", { className: "tw:relative tw:aspect-video tw:rounded-lg tw:overflow-hidden tw:w-60 tw:pointer-events-none", children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0", children: /* @__PURE__ */ e(
609
+ ne,
610
+ {
611
+ containerProps: {
612
+ style: {
613
+ backgroundColor: w.theme.palette.background.default
614
+ }
615
+ },
616
+ viewport: { width: de.md.minWidth },
617
+ children: /* @__PURE__ */ e(Z, { resolver: l, children: /* @__PURE__ */ e(Q, {}) })
618
+ }
619
+ ) }) })
620
+ }
621
+ );
622
+ }, pt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
623
+ <path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
624
+ <path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
625
+ <path d="M10.257 16.6214L7.075 13.4394C6.489 12.8534 6.489 11.9034 7.075 11.3184V11.3184C7.661 10.7324 8.611 10.7324 9.196 11.3184" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
626
+ <path d="M13.086 10.9643L10.611 8.49028C10.025 7.90428 9.07498 7.90428 8.48998 8.49028V8.49028C7.90398 9.07628 7.90398 10.0263 8.48998 10.6113L10.965 13.0863" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
627
+ <path d="M11.318 9.19722C10.732 8.61122 10.732 7.66122 11.318 7.07622V7.07622C11.904 6.49022 12.854 6.49022 13.439 7.07622L15.914 9.55122" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
628
+ <path d="M14.854 8.49019C14.268 7.90419 14.268 6.95419 14.854 6.36919V6.36919C15.44 5.78319 16.39 5.78319 16.975 6.36919L18.743 8.13719L18.036 7.43019L19.804 9.19819C22.733 12.1272 22.733 16.8762 19.804 19.8052V19.8052C16.875 22.7342 12.126 22.7342 9.19702 19.8052L7.92902 18.5372C7.60902 18.2172 7.42902 17.7832 7.42902 17.3302V17.3302C7.42902 16.8772 7.60902 16.4432 7.92902 16.1232L8.84302 15.2092" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
629
+ <path d="M5 2H4C2.895 2 2 2.895 2 4V5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
630
+ <path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
631
+ <path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
632
+ </svg>
633
+ `, mt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
634
+ <circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
635
+ <circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
636
+ <path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
637
+ <circle cx="17.5023" cy="13.0006" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
638
+ <path d="M6.49771 7.99854V7.99854C6.49771 10.7611 8.73722 13.0006 11.4998 13.0006H15.0013" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
639
+ </svg>
640
+ `, gt = (s) => {
641
+ const { query: t, actions: r } = C(), {
642
+ id: o,
643
+ expanded: w,
644
+ actions: n,
645
+ displayName: d,
646
+ children: l,
647
+ depth: a
648
+ } = qe((m) => ({
649
+ expanded: m.expanded,
650
+ displayName: $(t.node(m.id).get())
651
+ })), { selected: u, selectable: h } = C((m, f) => {
652
+ const v = f.node(o).get();
653
+ return {
654
+ selected: f.getEvent("selected").contains(o),
655
+ nodeDOM: v.dom,
656
+ selectable: we(v)
657
+ };
658
+ });
659
+ N(() => {
660
+ o === W && n.setExpandedState(!0);
661
+ }, [n, o]), N(() => {
662
+ if (l.length === 0) return;
663
+ l.some((f) => {
664
+ const v = t.getEvent("selected").all();
665
+ return v.includes(f) ? !0 : t.node(f).descendants(!0).some((y) => v.includes(y));
666
+ }) && n.setExpandedState(!0);
667
+ }, [l, n, t]);
668
+ const c = () => {
669
+ r.selectNode(o);
670
+ }, g = (m) => {
671
+ m.stopPropagation(), n.toggleLayer();
672
+ };
673
+ return /* @__PURE__ */ i(
674
+ "div",
675
+ {
676
+ className: "tw:py-1",
677
+ children: [
678
+ /* @__PURE__ */ i(
679
+ "div",
680
+ {
681
+ onClick: c,
682
+ style: {
683
+ paddingLeft: Math.max(0, a - 1) * 16
684
+ },
685
+ className: b(
686
+ "tw:flex tw:items-center tw:gap-0.5 tw:cursor-pointer tw:rounded-1 tw:pr-2 tw:py-1 tw:border tw:border-ic-white-1s tw:hover:bg-ic-white-1s",
687
+ {
688
+ hidden: o === W,
689
+ "tw:bg-ic-black-7s": u,
690
+ "tw:pointer-events-none": !h
691
+ }
692
+ ),
693
+ children: [
694
+ l.length ? /* @__PURE__ */ e(k, { className: "tw:pointer-events-auto", onClick: g, children: /* @__PURE__ */ e(
695
+ p,
696
+ {
697
+ className: b("tw:transition-transform tw:-rotate-90", {
698
+ "tw:rotate-0": w
699
+ }),
700
+ size: 16,
701
+ source: q
702
+ }
703
+ ) }) : /* @__PURE__ */ e("div", { className: "tw:p-1", children: /* @__PURE__ */ e(p, { size: 16, source: mt }) }),
704
+ /* @__PURE__ */ e(
705
+ "span",
706
+ {
707
+ className: b("tw:flex-1 tw:truncate", {
708
+ "tw:text-ic-white-3s": !h
709
+ }),
710
+ children: d
711
+ }
712
+ )
713
+ ]
714
+ }
715
+ ),
716
+ /* @__PURE__ */ e("div", { className: "tw:space-y-1", children: s.children })
717
+ ]
718
+ }
719
+ );
720
+ }, ft = ({ onClose: s }) => {
721
+ const t = tt(), r = (o) => {
722
+ t.start(o);
723
+ };
724
+ return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ i(
725
+ ye.div,
726
+ {
727
+ drag: !0,
728
+ dragControls: t,
729
+ dragListener: !1,
730
+ style: { zIndex: 1e5, width: 320, height: 400, top: 80, right: 40 },
731
+ className: "tw:fixed tw:rounded-2 tw:bg-ic-ink-6s tw:text-white tw:flex tw:flex-col tw:border tw:border-ic-white-2s",
732
+ children: [
733
+ /* @__PURE__ */ i(
734
+ "div",
735
+ {
736
+ onPointerDown: r,
737
+ className: "tw:py-2 tw:cursor-grab tw:flex tw:items-center tw:justify-between tw:px-4",
738
+ children: [
739
+ /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
740
+ /* @__PURE__ */ e(p, { source: pt }),
741
+ /* @__PURE__ */ e("p", { className: "tw:text-sm tw:font-medium", children: "Layers" })
742
+ ] }),
743
+ /* @__PURE__ */ e(k, { onClick: s, children: /* @__PURE__ */ e(p, { source: Ne }) })
744
+ ]
745
+ }
746
+ ),
747
+ /* @__PURE__ */ e("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s tw:p-2", children: /* @__PURE__ */ e(Ue, { renderLayer: gt }) })
748
+ ]
749
+ }
750
+ ) });
751
+ }, kt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
752
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3 7.024L11.987 11.049L21 7.024L12.013 3L3 7.024Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
753
+ <path d="M15.436 14.484L21 16.976L11.987 21L3 16.976L8.564 14.491" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
754
+ <path d="M15.436 9.50903L21 12L11.987 16.024L3 12L8.564 9.51603" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
755
+ </svg>
756
+ `, bt = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
757
+ <path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
758
+ <path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
759
+ <path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
760
+ </svg>
761
+ `, vt = ({ insert: s }) => {
762
+ const [t, r] = J(!1), {
763
+ queryParams: {
764
+ action: o = "insert"
765
+ /* Insert */
766
+ },
767
+ setQueryParams: w
768
+ } = S(), { actions: n, isDeletable: d, focusedNode: l } = C((c, g) => {
769
+ const m = g.getEvent("selected").first(), f = m ? g.node(m) : null;
770
+ return {
771
+ enabled: c.options.enabled,
772
+ isDeletable: !!(f?.isDeletable() && (f.get().data.custom?.deletable ?? !0)),
773
+ focusedNode: f?.get()
774
+ };
775
+ }), a = () => {
776
+ n.selectNode();
777
+ }, u = (c) => {
778
+ n.delete(c.currentTarget.value);
779
+ }, h = (c) => {
780
+ const g = c.currentTarget.value;
781
+ g === "layers" ? r() : (a(), w({
782
+ action: g
783
+ }));
784
+ };
785
+ return /* @__PURE__ */ i(L, { children: [
786
+ /* @__PURE__ */ i("aside", { className: "tw:flex tw:items-stretch tw:bg-ic-ink-6s tw:relative tw:border-t tw:border-ic-white-2s tw:text-ic-white-6s tw:text-sm", children: [
787
+ /* @__PURE__ */ i("div", { className: "tw:px-1 tw:flex tw:flex-col tw:gap-1", children: [
788
+ !!s && /* @__PURE__ */ i(_, { children: [
789
+ /* @__PURE__ */ e(
790
+ k,
791
+ {
792
+ tooltip: {
793
+ content: "Insert",
794
+ placement: "right"
795
+ },
796
+ onClick: h,
797
+ value: "insert",
798
+ className: "tw:relative",
799
+ size: "32",
800
+ children: /* @__PURE__ */ e(p, { source: he })
801
+ }
802
+ ),
803
+ /* @__PURE__ */ e("hr", { className: "tw:border-ic-white-2s" })
804
+ ] }),
805
+ /* @__PURE__ */ e(
806
+ k,
807
+ {
808
+ tooltip: {
809
+ content: "Layers",
810
+ placement: "right"
811
+ },
812
+ onClick: h,
813
+ value: "layers",
814
+ className: "tw:relative",
815
+ size: "32",
816
+ children: /* @__PURE__ */ e(p, { source: kt })
817
+ }
818
+ )
819
+ ] }),
820
+ /* @__PURE__ */ i(
821
+ "div",
822
+ {
823
+ className: b("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
824
+ children: [
825
+ !l?.related.inspector && /* @__PURE__ */ e("div", { className: "tw:flex-1 tw:overflow-auto scrollbar", children: o === "insert" && !!s && /* @__PURE__ */ e(dt, { elements: s.elements, sections: s.sections }) }),
826
+ !!l?.related?.inspector && /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:flex-1 tw:overflow-hidden", children: [
827
+ /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:gap-2 tw:px-2 tw:py-2", children: [
828
+ /* @__PURE__ */ e(k, { onClick: a, children: /* @__PURE__ */ e(p, { source: bt }) }),
829
+ /* @__PURE__ */ e("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ e(U, { fullWidth: !0, value: $(l), size: "32" }) }),
830
+ d && /* @__PURE__ */ e(k, { value: l.id, onClick: u, children: /* @__PURE__ */ e(p, { className: "tw:text-ic-red-4s", source: Le }) })
831
+ ] }),
832
+ /* @__PURE__ */ e("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ e(Ee, { fallback: null, children: Y(l.related.inspector) }) })
833
+ ] })
834
+ ]
835
+ }
836
+ )
837
+ ] }),
838
+ t && /* @__PURE__ */ e(ft, { onClose: r })
839
+ ] });
840
+ }, It = ({ theme: s, insert: t }) => {
841
+ const {
842
+ queryParams: { screen: r }
843
+ } = S();
844
+ return A({
845
+ theme: s
846
+ }), /* @__PURE__ */ e(Z, { enabled: !0, onRender: nt, children: /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:w-screen tw:h-screen tw:bg-ic-ink-6s tw:text-ic-white-6s", children: [
847
+ /* @__PURE__ */ e(lt, {}),
848
+ /* @__PURE__ */ i("div", { className: "tw:flex-1 tw:overflow-hidden tw:flex", children: [
849
+ /* @__PURE__ */ e(vt, { insert: t }),
850
+ /* @__PURE__ */ e(
851
+ ne,
852
+ {
853
+ viewport: {
854
+ width: (o) => r === "lg" ? Math.max(o, V[r]) : V[r]
855
+ },
856
+ children: /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(Se, {}) })
857
+ }
858
+ )
859
+ ] })
860
+ ] }) });
861
+ };
862
+ export {
863
+ It as Editor,
864
+ S as useEditorQueryParams,
865
+ Ft as useEditorResponsive,
866
+ A as useEditorState
867
+ };