@templatical/editor 0.19.0 → 0.21.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 (189) hide show
  1. package/README.md +1 -0
  2. package/dist/{AiChatSidebar-DAQTFuvi.js → AiChatSidebar-K_AehWc-.js} +9 -9
  3. package/dist/{AiFeatureMenu-aFSO20PR.js → AiFeatureMenu-CPdNpHpZ.js} +6 -6
  4. package/dist/{BlockIssueBadge-BQmq1bxn.js → BlockIssueBadge-Dmj9rVra.js} +4 -4
  5. package/dist/{CloudEditor-D0K-m1GA.js → CloudEditor-3a7mqMhe.js} +263 -315
  6. package/dist/{CollaboratorBar-CJO3l6Dt.js → CollaboratorBar-Ds0YZWzV.js} +3 -3
  7. package/dist/{ColorPicker-BsgpTJqK.js → ColorPicker-s9GHXjZs.js} +4 -4
  8. package/dist/CommentsSidebar-DvNEdugN.js +435 -0
  9. package/dist/{CountdownBlock-Bn5w7C-p.js → CountdownBlock-BUHYIAe9.js} +1 -1
  10. package/dist/{CountdownToolbar-PJI3ffi1.js → CountdownToolbar-DPRcv3Fu.js} +3 -4
  11. package/dist/{DesignReferenceSidebar-QfAV8XT9.js → DesignReferenceSidebar-DNmK3dxp.js} +8 -8
  12. package/dist/{IssuesPanel-CTjRgz8w.js → IssuesPanel-CEnEGFtd.js} +7 -7
  13. package/dist/{MergeTagSuggestion-DCuaSOPQ.js → MergeTagSuggestion-DMe4rqn0.js} +2 -2
  14. package/dist/NumberWithSuffix-CCPN_oCh.js +121 -0
  15. package/dist/{ParagraphEditor-Cf75UfSo.js → ParagraphEditor-CkwBirNl.js} +47 -47
  16. package/dist/{RichTextEditorContent-MdaLz6Q3.js → RichTextEditorContent-FbnWsh46.js} +6 -6
  17. package/dist/SaveBlockDialog-Cc5BSUBx.js +264 -0
  18. package/dist/SavedBlockPreviewCanvas-ubttfmKr.js +109 -0
  19. package/dist/SavedBlocksBrowserModal-LkY_U3lY.js +323 -0
  20. package/dist/SavedBlocksPanels-CET0zvH6.js +36 -0
  21. package/dist/SavedBlocksPickBar-poGS4PoI.js +52 -0
  22. package/dist/{SnapshotHistory-C_Y1LzAY.js → SnapshotHistory-BvF5IXn1.js} +8 -8
  23. package/dist/{TemplateScoringPanel-DikuKc6i.js → TemplateScoringPanel-ifGGGWs5.js} +14 -14
  24. package/dist/{TestEmailModal-BW8aTtzf.js → TestEmailModal-BRaM_eko.js} +4 -4
  25. package/dist/{TitleEditor-CCUkbRN0.js → TitleEditor-Bhgzh-iQ.js} +11 -11
  26. package/dist/{TplModal-DoOwUKlT.js → TplModal-BA-Zsg0O.js} +3 -3
  27. package/dist/{blockTypeIcons-BlPKjD7M.js → blockTypeIcons-B1-Yzp-a.js} +6 -6
  28. package/dist/bundle-stats.json +8 -8
  29. package/dist/{ca-DbWoy4rG.js → ca-BBgad6y5.js} +50 -3
  30. package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js → AiFeatureMenu--PdArSnv.js} +7 -7
  31. package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js.map → AiFeatureMenu--PdArSnv.js.map} +1 -1
  32. package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js → BlockIssueBadge-DMSd0SIl.js} +4 -4
  33. package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js.map → BlockIssueBadge-DMSd0SIl.js.map} +1 -1
  34. package/dist/cdn/chunks/{CloudEditor-Dufl354p.js → CloudEditor-DnTfI5GU.js} +273 -325
  35. package/dist/cdn/chunks/CloudEditor-DnTfI5GU.js.map +1 -0
  36. package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js → CollaboratorBar-CBqd7ldq.js} +3 -3
  37. package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js.map → CollaboratorBar-CBqd7ldq.js.map} +1 -1
  38. package/dist/cdn/chunks/{ColorPicker-y_obnw4o.js → ColorPicker-DCdWP8YB.js} +99 -99
  39. package/dist/cdn/chunks/ColorPicker-DCdWP8YB.js.map +1 -0
  40. package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js → CountdownBlock-BDnWMAME.js} +2 -2
  41. package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js.map → CountdownBlock-BDnWMAME.js.map} +1 -1
  42. package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js → CountdownToolbar-BbLoo22S.js} +4 -5
  43. package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js.map → CountdownToolbar-BbLoo22S.js.map} +1 -1
  44. package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js → IssuesPanel-CfudrI3T.js} +7 -7
  45. package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js.map → IssuesPanel-CfudrI3T.js.map} +1 -1
  46. package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js → MergeTagSuggestion-D7TsECll.js} +2 -2
  47. package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js.map → MergeTagSuggestion-D7TsECll.js.map} +1 -1
  48. package/dist/cdn/chunks/NumberWithSuffix-BmMx9_n_.js +123 -0
  49. package/dist/cdn/chunks/NumberWithSuffix-BmMx9_n_.js.map +1 -0
  50. package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js → ParagraphEditor-DPCUSXpx.js} +82 -82
  51. package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js.map → ParagraphEditor-DPCUSXpx.js.map} +1 -1
  52. package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js → RichTextEditorContent-B8dOiv_D.js} +5 -5
  53. package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js.map → RichTextEditorContent-B8dOiv_D.js.map} +1 -1
  54. package/dist/cdn/chunks/SaveBlockDialog-BY3SMnNV.js +259 -0
  55. package/dist/cdn/chunks/SaveBlockDialog-BY3SMnNV.js.map +1 -0
  56. package/dist/cdn/chunks/SavedBlockPreviewCanvas-LpaOcusq.js +110 -0
  57. package/dist/cdn/chunks/SavedBlockPreviewCanvas-LpaOcusq.js.map +1 -0
  58. package/dist/cdn/chunks/SavedBlocksBrowserModal-CfIcmyzF.js +318 -0
  59. package/dist/cdn/chunks/SavedBlocksBrowserModal-CfIcmyzF.js.map +1 -0
  60. package/dist/cdn/chunks/SavedBlocksPanels-kIowCfh_.js +38 -0
  61. package/dist/cdn/chunks/SavedBlocksPanels-kIowCfh_.js.map +1 -0
  62. package/dist/cdn/chunks/SavedBlocksPickBar-WSGe1GiZ.js +52 -0
  63. package/dist/cdn/chunks/SavedBlocksPickBar-WSGe1GiZ.js.map +1 -0
  64. package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js → TitleEditor-iwd-O9sO.js} +11 -11
  65. package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js.map → TitleEditor-iwd-O9sO.js.map} +1 -1
  66. package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js → blockTypeIcons-BYz0fgLz.js} +7 -7
  67. package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js.map → blockTypeIcons-BYz0fgLz.js.map} +1 -1
  68. package/dist/cdn/chunks/{ca-DbWoy4rG.js → ca-BBgad6y5.js} +51 -4
  69. package/dist/cdn/chunks/ca-BBgad6y5.js.map +1 -0
  70. package/dist/{de-CTYXVU9v.js → cdn/chunks/de-Bw6fB5JU.js} +2 -24
  71. package/dist/cdn/chunks/{de-CTYXVU9v.js.map → de-Bw6fB5JU.js.map} +1 -1
  72. package/dist/cdn/chunks/{de-CgGOnerg.js → de-D7WbpFBR.js} +50 -3
  73. package/dist/cdn/chunks/de-D7WbpFBR.js.map +1 -0
  74. package/dist/{en-DrUV9xth.js → cdn/chunks/en-BrZ0uGK2.js} +51 -2
  75. package/dist/cdn/chunks/en-BrZ0uGK2.js.map +1 -0
  76. package/dist/{en-BtmIaJeb.js → cdn/chunks/en-DAdHJz7h.js} +2 -24
  77. package/dist/cdn/chunks/{en-BtmIaJeb.js.map → en-DAdHJz7h.js.map} +1 -1
  78. package/dist/{es-DwbKjU7q.js → cdn/chunks/es-tLSLysPs.js} +51 -2
  79. package/dist/cdn/chunks/es-tLSLysPs.js.map +1 -0
  80. package/dist/cdn/chunks/{extensions-DLHvZ0UH.js → extensions-DeJh3E9b.js} +29 -29
  81. package/dist/cdn/chunks/{extensions-DLHvZ0UH.js.map → extensions-DeJh3E9b.js.map} +1 -1
  82. package/dist/cdn/chunks/{features-Cnfv4QAY.js → features-pLfGJWIB.js} +1802 -1603
  83. package/dist/cdn/chunks/features-pLfGJWIB.js.map +1 -0
  84. package/dist/cdn/chunks/{icons-DbcM69bb.js → icons-FLemooQz.js} +16 -16
  85. package/dist/cdn/chunks/{icons-DbcM69bb.js.map → icons-FLemooQz.js.map} +1 -1
  86. package/dist/cdn/chunks/{media-library-DpSMwHd4.js → media-library-mCCZieYO.js} +163 -163
  87. package/dist/cdn/chunks/{media-library-DpSMwHd4.js.map → media-library-mCCZieYO.js.map} +1 -1
  88. package/dist/cdn/chunks/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +50 -3
  89. package/dist/cdn/chunks/pt-BR-BWFokdTU.js.map +1 -0
  90. package/dist/{pt-BR-B2ZvFlRL.js → cdn/chunks/pt-BR-w2sGzHNX.js} +2 -24
  91. package/dist/cdn/chunks/{pt-BR-B2ZvFlRL.js.map → pt-BR-w2sGzHNX.js.map} +1 -1
  92. package/dist/cdn/chunks/{pusher-CIwiKF8H.js → pusher-R0v5p99W.js} +27 -22
  93. package/dist/cdn/chunks/pusher-R0v5p99W.js.map +1 -0
  94. package/dist/cdn/chunks/{quality-D9QqkRcU.js → quality-BRbHtAk1.js} +460 -460
  95. package/dist/cdn/chunks/{quality-D9QqkRcU.js.map → quality-BRbHtAk1.js.map} +1 -1
  96. package/dist/cdn/chunks/{renderer-BsLQZNXU.js → renderer-Yg1XhsBN.js} +18 -18
  97. package/dist/cdn/chunks/{renderer-BsLQZNXU.js.map → renderer-Yg1XhsBN.js.map} +1 -1
  98. package/dist/cdn/chunks/{src-zu1ehVNN.js → src-BDJeYiVE.js} +33 -33
  99. package/dist/cdn/chunks/{src-zu1ehVNN.js.map → src-BDJeYiVE.js.map} +1 -1
  100. package/dist/cdn/chunks/{styles-Dx-jXeCd.js → styles-Bp5Jsu9J.js} +1422 -1332
  101. package/dist/cdn/chunks/styles-Bp5Jsu9J.js.map +1 -0
  102. package/dist/cdn/chunks/{tiptap-C2indasq.js → tiptap-BMZ-OENR.js} +2012 -1863
  103. package/dist/cdn/chunks/tiptap-BMZ-OENR.js.map +1 -0
  104. package/dist/cdn/editor.css +1 -1
  105. package/dist/cdn/editor.js +123 -114
  106. package/dist/cdn/editor.js.map +1 -1
  107. package/dist/{check-Cg6Mc2pP.js → check-BpQDKiPz.js} +1 -1
  108. package/dist/{chevron-down-dClfxKrJ.js → chevron-down-j8GrdTyz.js} +1 -1
  109. package/dist/chevron-up-BACyVhyC.js +7 -0
  110. package/dist/{circle-alert-Bhzm-fNA.js → circle-alert-CgtE46ND.js} +1 -1
  111. package/dist/{clock-m7TwQw4b.js → clock-BzKLLW5L.js} +1 -1
  112. package/dist/{cloud-B-RebwxI.js → cloud-Du7mnkz2.js} +19 -47
  113. package/dist/{createLucideIcon-FSF4peHQ.js → createLucideIcon-JWHwTI6N.js} +2 -2
  114. package/dist/{cdn/chunks/de-CTYXVU9v.js → de-Bw6fB5JU.js} +0 -26
  115. package/dist/{de-CgGOnerg.js → de-D7WbpFBR.js} +49 -2
  116. package/dist/{dist-CgTKuIUN.js → dist-BEpCh2mG.js} +1158 -1125
  117. package/dist/{dist-Cx7IUM7J.js → dist-BgPYC_8-.js} +14 -6
  118. package/dist/{dist-BKKo5wPC.js → dist-BkM8A17N.js} +2 -2
  119. package/dist/{dist-CcX5sLpz.js → dist-BuNDAAVp.js} +361 -256
  120. package/dist/{dist-COSN3oDJ.js → dist-CBzCU-a-.js} +2 -2
  121. package/dist/{dist-YSCPD13F.js → dist-CDO52Rxy.js} +2 -2
  122. package/dist/{dist-Dk5AdwoQ.js → dist-CrjzhIxB.js} +2 -2
  123. package/dist/{dist-DXAZUjj3.js → dist-CtcgoC_R.js} +2 -2
  124. package/dist/{dist-D6M5FAY7.js → dist-CuXha2_7.js} +2 -2
  125. package/dist/dist-CweLDZrs.js +5 -0
  126. package/dist/dist-DOsdqAEZ.js +5 -0
  127. package/dist/{dist-8TKf-Jpg.js → dist-DYClLqy8.js} +6 -3
  128. package/dist/{cdn/chunks/en-DrUV9xth.js → en-BrZ0uGK2.js} +49 -4
  129. package/dist/{cdn/chunks/en-BtmIaJeb.js → en-DAdHJz7h.js} +0 -26
  130. package/dist/{cdn/chunks/es-DwbKjU7q.js → es-tLSLysPs.js} +49 -4
  131. package/dist/{extensions-BCA9pyer.js → extensions-ClY5Sh7S.js} +5 -5
  132. package/dist/{image-up-CDEgJqwA.js → image-up-CQdtq8ge.js} +1 -1
  133. package/dist/index.d.ts +81 -4
  134. package/dist/{info-BNP8yGsK.js → info-BUJBXoE6.js} +1 -1
  135. package/dist/{keys-DFaIbGR8.js → keys-CHPcp-Nz.js} +2 -2
  136. package/dist/{list-checks-jepi4iYr.js → list-checks-BGHaCSD5.js} +1 -1
  137. package/dist/{loader-circle-BT38qSm3.js → loader-circle-C-Z6kgI6.js} +1 -1
  138. package/dist/{message-circle-BAHcL9S-.js → message-circle-CEm5qckV.js} +1 -1
  139. package/dist/pencil-DdwmkKLb.js +10 -0
  140. package/dist/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +49 -2
  141. package/dist/{cdn/chunks/pt-BR-B2ZvFlRL.js → pt-BR-w2sGzHNX.js} +0 -26
  142. package/dist/{refresh-cw-as5Bmg4X.js → refresh-cw-maKlg0dl.js} +1 -1
  143. package/dist/{scan-line-IAMjPtRw.js → scan-line-BFgesTOY.js} +1 -1
  144. package/dist/{send-DvMay6bt.js → send-B70aQDrA.js} +1 -1
  145. package/dist/{shield-check-YYDhGroE.js → shield-check-B7x5OKt5.js} +1 -1
  146. package/dist/{sparkles-CCwQMMMZ.js → sparkles-DVlm1Ipp.js} +1 -1
  147. package/dist/style.css +1 -1
  148. package/dist/{styles-64uLkPJV.js → styles-DIDAJdkj.js} +1241 -1151
  149. package/dist/templatical-editor.js +134 -125
  150. package/dist/{text-align-start-BwsA6QzC.js → text-align-start-Vay3Kvo2.js} +1 -1
  151. package/dist/{trash-2-CRBDolnR.js → trash-2-DE8CmxAG.js} +1 -1
  152. package/dist/{triangle-alert-B2g0ALvq.js → triangle-alert-Djg6IG8N.js} +1 -1
  153. package/dist/{upload-y4gxiFp5.js → upload-BwwE0U6G.js} +1 -1
  154. package/dist/{useCloudI18n-PCDOC2kz.js → useCloudI18n-BmiygEM4.js} +1 -1
  155. package/dist/{useEditorCore-ea9OrrH3.js → useEditorCore-Bd9CA4L_.js} +1236 -1013
  156. package/dist/{useI18n-BNMzZTM5.js → useI18n-D2L9Mkik.js} +1 -1
  157. package/dist/{useMergeTag-DfEY0eK5.js → useMergeTag-BTdDq5DC.js} +1 -1
  158. package/dist/{usePopoverPosition-F9STHRIr.js → usePopoverPosition-BO2LNy5n.js} +1 -1
  159. package/dist/{x-Ctg_250T.js → x-CkD6A1iB.js} +1 -1
  160. package/package.json +23 -23
  161. package/dist/CommentsSidebar-BYMVucZh.js +0 -442
  162. package/dist/ModuleBrowserModal-BNalLx0k.js +0 -202
  163. package/dist/ModulePreviewCanvas-BwObwisa.js +0 -106
  164. package/dist/NumberWithSuffix-D3BKz66W.js +0 -89
  165. package/dist/SaveModuleDialog-MTjwiF9D.js +0 -125
  166. package/dist/ToggleSwitch-DUNuUPsZ.js +0 -37
  167. package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +0 -1
  168. package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +0 -1
  169. package/dist/cdn/chunks/ModuleBrowserModal-DG4AVFjH.js +0 -198
  170. package/dist/cdn/chunks/ModuleBrowserModal-DG4AVFjH.js.map +0 -1
  171. package/dist/cdn/chunks/ModulePreviewCanvas-Bc_PcJuc.js +0 -107
  172. package/dist/cdn/chunks/ModulePreviewCanvas-Bc_PcJuc.js.map +0 -1
  173. package/dist/cdn/chunks/NumberWithSuffix-8fOO-LC_.js +0 -91
  174. package/dist/cdn/chunks/NumberWithSuffix-8fOO-LC_.js.map +0 -1
  175. package/dist/cdn/chunks/SaveModuleDialog-DhsfYf2n.js +0 -120
  176. package/dist/cdn/chunks/SaveModuleDialog-DhsfYf2n.js.map +0 -1
  177. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +0 -39
  178. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +0 -1
  179. package/dist/cdn/chunks/ca-DbWoy4rG.js.map +0 -1
  180. package/dist/cdn/chunks/de-CgGOnerg.js.map +0 -1
  181. package/dist/cdn/chunks/en-DrUV9xth.js.map +0 -1
  182. package/dist/cdn/chunks/es-DwbKjU7q.js.map +0 -1
  183. package/dist/cdn/chunks/features-Cnfv4QAY.js.map +0 -1
  184. package/dist/cdn/chunks/pt-BR-Bcc5Tjed.js.map +0 -1
  185. package/dist/cdn/chunks/pusher-CIwiKF8H.js.map +0 -1
  186. package/dist/cdn/chunks/styles-Dx-jXeCd.js.map +0 -1
  187. package/dist/cdn/chunks/tiptap-C2indasq.js.map +0 -1
  188. package/dist/dist-BDVm2MrW.js +0 -5
  189. package/dist/dist-DbekZDmJ.js +0 -5
@@ -1,5 +1,5 @@
1
1
  import { M as e, P as t, T as n, V as r, Z as i, c as a, d as o, f as s, g as c, h as l, it as u, l as ee, m as te, n as ne, ot as d, p as f, st as p, u as re, x as m, y as h } from "./draggable-D840DIZB.js";
2
- import { H as ie, Ht as ae, Lt as g, Rt as oe, V as se, Xt as ce, fn as le, gn as ue, lt as de, mn as fe, zt as pe } from "./features-Cnfv4QAY.js";
2
+ import { Cn as ie, Gt as ae, U as oe, Ut as se, W as ce, Wt as g, Yt as le, dt as ue, rn as de, xn as fe, yn as pe } from "./features-pLfGJWIB.js";
3
3
  //#region src/constants/styleConstants.ts
4
4
  var _ = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", b = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]", x = "tpl:flex-1 tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-mono tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", S = "tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:border tpl:border-[var(--tpl-border)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)]", C = "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]", w = "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]", T = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", E = "tpl-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3.5 tpl:py-2 tpl:text-sm tpl:font-medium tpl:whitespace-nowrap tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary)] hover:tpl:text-[var(--tpl-bg)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", D = [
5
5
  "10px",
@@ -52,34 +52,34 @@ var _ = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-te
52
52
  label: "3px",
53
53
  value: "3px"
54
54
  }
55
- ], A = "#000000", j = "#ffffff", me = "#ffff00", M = "#f2f2f2", N = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, P = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
55
+ ], A = "#000000", j = "#ffffff", M = "#ffff00", N = "#f2f2f2", P = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, F = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
56
56
  360 / (Math.PI * 2);
57
- var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
57
+ var I = (e) => ge(L(e)), L = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
58
58
  r: parseInt(e[0] + e[0], 16),
59
59
  g: parseInt(e[1] + e[1], 16),
60
60
  b: parseInt(e[2] + e[2], 16),
61
- a: e.length === 4 ? P(parseInt(e[3] + e[3], 16) / 255, 2) : 1
61
+ a: e.length === 4 ? F(parseInt(e[3] + e[3], 16) / 255, 2) : 1
62
62
  } : {
63
63
  r: parseInt(e.substring(0, 2), 16),
64
64
  g: parseInt(e.substring(2, 4), 16),
65
65
  b: parseInt(e.substring(4, 6), 16),
66
- a: e.length === 8 ? P(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
67
- }), L = (e) => ge(he(e)), R = ({ h: e, s: t, v: n, a: r }) => {
66
+ a: e.length === 8 ? F(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
67
+ }), R = (e) => he(me(e)), z = ({ h: e, s: t, v: n, a: r }) => {
68
68
  let i = (200 - t) * n / 100;
69
69
  return {
70
- h: P(e),
71
- s: P(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
72
- l: P(i / 2),
73
- a: P(r, 2)
70
+ h: F(e),
71
+ s: F(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
72
+ l: F(i / 2),
73
+ a: F(r, 2)
74
74
  };
75
- }, z = (e) => {
76
- let { h: t, s: n, l: r } = R(e);
75
+ }, B = (e) => {
76
+ let { h: t, s: n, l: r } = z(e);
77
77
  return `hsl(${t}, ${n}%, ${r}%)`;
78
- }, he = ({ h: e, s: t, v: n, a: r }) => {
78
+ }, me = ({ h: e, s: t, v: n, a: r }) => {
79
79
  e = e / 360 * 6, t /= 100, n /= 100;
80
80
  let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
81
81
  return {
82
- r: P([
82
+ r: F([
83
83
  n,
84
84
  o,
85
85
  a,
@@ -87,7 +87,7 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
87
87
  s,
88
88
  n
89
89
  ][c] * 255),
90
- g: P([
90
+ g: F([
91
91
  s,
92
92
  n,
93
93
  n,
@@ -95,7 +95,7 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
95
95
  a,
96
96
  a
97
97
  ][c] * 255),
98
- b: P([
98
+ b: F([
99
99
  a,
100
100
  a,
101
101
  s,
@@ -103,27 +103,27 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
103
103
  n,
104
104
  o
105
105
  ][c] * 255),
106
- a: P(r, 2)
106
+ a: F(r, 2)
107
107
  };
108
- }, B = (e) => {
108
+ }, V = (e) => {
109
109
  let t = e.toString(16);
110
110
  return t.length < 2 ? "0" + t : t;
111
+ }, he = ({ r: e, g: t, b: n, a: r }) => {
112
+ let i = r < 1 ? V(F(r * 255)) : "";
113
+ return "#" + V(e) + V(t) + V(n) + i;
111
114
  }, ge = ({ r: e, g: t, b: n, a: r }) => {
112
- let i = r < 1 ? B(P(r * 255)) : "";
113
- return "#" + B(e) + B(t) + B(n) + i;
114
- }, V = ({ r: e, g: t, b: n, a: r }) => {
115
115
  let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
116
116
  return {
117
- h: P(60 * (o < 0 ? o + 6 : o)),
118
- s: P(i ? a / i * 100 : 0),
119
- v: P(i / 255 * 100),
117
+ h: F(60 * (o < 0 ? o + 6 : o)),
118
+ s: F(i ? a / i * 100 : 0),
119
+ v: F(i / 255 * 100),
120
120
  a: r
121
121
  };
122
122
  }, H = (e, t) => {
123
123
  if (e === t) return !0;
124
124
  for (let n in e) if (e[n] !== t[n]) return !1;
125
125
  return !0;
126
- }, U = (e, t) => e.toLowerCase() === t.toLowerCase() || H(I(e), I(t)), W = {}, G = (e) => {
126
+ }, U = (e, t) => e.toLowerCase() === t.toLowerCase() || H(L(e), L(t)), W = {}, G = (e) => {
127
127
  let t = W[e];
128
128
  return t || (t = document.createElement("template"), t.innerHTML = e, W[e] = t), t;
129
129
  }, K = (e, t, n) => {
@@ -134,16 +134,16 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
134
134
  }, q = !1, J = (e) => "touches" in e, _e = (e) => q && !J(e) ? !1 : (q ||= J(e), !0), Y = (e, t) => {
135
135
  let n = J(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
136
136
  K(e.el, "move", e.getMove({
137
- x: N((n.pageX - (r.left + window.pageXOffset)) / r.width),
138
- y: N((n.pageY - (r.top + window.pageYOffset)) / r.height)
137
+ x: P((n.pageX - (r.left + window.pageXOffset)) / r.width),
138
+ y: P((n.pageY - (r.top + window.pageYOffset)) / r.height)
139
139
  }));
140
- }, ve = (e, t) => {
140
+ }, X = (e, t) => {
141
141
  let n = t.keyCode;
142
142
  n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), K(e.el, "move", e.getMove({
143
143
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
144
144
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
145
145
  }, !0)));
146
- }, ye = class {
146
+ }, ve = class {
147
147
  constructor(e, t, n, r) {
148
148
  let i = G(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
149
149
  e.appendChild(i.content.cloneNode(!0));
@@ -170,7 +170,7 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
170
170
  this.dragging = !1;
171
171
  break;
172
172
  case "keydown":
173
- ve(this, e);
173
+ X(this, e);
174
174
  break;
175
175
  }
176
176
  }
@@ -179,25 +179,25 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
179
179
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
180
180
  });
181
181
  }
182
- }, be = class extends ye {
182
+ }, ye = class extends ve {
183
183
  constructor(e) {
184
184
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
185
185
  }
186
186
  update({ h: e }) {
187
187
  this.h = e, this.style([{
188
188
  left: `${e / 360 * 100}%`,
189
- color: z({
189
+ color: B({
190
190
  h: e,
191
191
  s: 100,
192
192
  v: 100,
193
193
  a: 1
194
194
  })
195
- }]), this.el.setAttribute("aria-valuenow", `${P(e)}`);
195
+ }]), this.el.setAttribute("aria-valuenow", `${F(e)}`);
196
196
  }
197
197
  getMove(e, t) {
198
- return { h: t ? N(this.h + e.x * 360, 0, 360) : 360 * e.x };
198
+ return { h: t ? P(this.h + e.x * 360, 0, 360) : 360 * e.x };
199
199
  }
200
- }, xe = class extends ye {
200
+ }, be = class extends ve {
201
201
  constructor(e) {
202
202
  super(e, "saturation", "aria-label=\"Color\"", !0);
203
203
  }
@@ -205,47 +205,47 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
205
205
  this.hsva = e, this.style([{
206
206
  top: `${100 - e.v}%`,
207
207
  left: `${e.s}%`,
208
- color: z(e)
209
- }, { "background-color": z({
208
+ color: B(e)
209
+ }, { "background-color": B({
210
210
  h: e.h,
211
211
  s: 100,
212
212
  v: 100,
213
213
  a: 1
214
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${P(e.s)}%, Brightness ${P(e.v)}%`);
214
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${F(e.s)}%, Brightness ${F(e.v)}%`);
215
215
  }
216
216
  getMove(e, t) {
217
217
  return {
218
- s: t ? N(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
219
- v: t ? N(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
218
+ s: t ? P(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
219
+ v: t ? P(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
220
220
  };
221
221
  }
222
- }, Se = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Ce = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", we = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", X = Symbol("same"), Z = Symbol("color"), Te = Symbol("hsva"), Q = Symbol("update"), Ee = Symbol("parts"), De = Symbol("css"), $ = Symbol("sliders"), Oe = class extends HTMLElement {
222
+ }, xe = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Se = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ce = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Z = Symbol("same"), Q = Symbol("color"), we = Symbol("hsva"), $ = Symbol("update"), Te = Symbol("parts"), Ee = Symbol("css"), De = Symbol("sliders"), Oe = class extends HTMLElement {
223
223
  static get observedAttributes() {
224
224
  return ["color"];
225
225
  }
226
- get [De]() {
226
+ get [Ee]() {
227
227
  return [
228
+ xe,
228
229
  Se,
229
- Ce,
230
- we
230
+ Ce
231
231
  ];
232
232
  }
233
- get [$]() {
234
- return [xe, be];
233
+ get [De]() {
234
+ return [be, ye];
235
235
  }
236
236
  get color() {
237
- return this[Z];
237
+ return this[Q];
238
238
  }
239
239
  set color(e) {
240
- if (!this[X](e)) {
240
+ if (!this[Z](e)) {
241
241
  let t = this.colorModel.toHsva(e);
242
- this[Q](t), this[Z] = e;
242
+ this[$](t), this[Q] = e;
243
243
  }
244
244
  }
245
245
  constructor() {
246
246
  super();
247
- let e = G(`<style>${this[De].join("")}</style>`), t = this.attachShadow({ mode: "open" });
248
- t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Ee] = this[$].map((e) => new e(t));
247
+ let e = G(`<style>${this[Ee].join("")}</style>`), t = this.attachShadow({ mode: "open" });
248
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Te] = this[De].map((e) => new e(t));
249
249
  }
250
250
  connectedCallback() {
251
251
  if (this.hasOwnProperty("color")) {
@@ -255,27 +255,27 @@ var F = (e) => V(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
255
255
  }
256
256
  attributeChangedCallback(e, t, n) {
257
257
  let r = this.colorModel.fromAttr(n);
258
- this[X](r) || (this.color = r);
258
+ this[Z](r) || (this.color = r);
259
259
  }
260
260
  handleEvent(e) {
261
- let t = this[Te], n = {
261
+ let t = this[we], n = {
262
262
  ...t,
263
263
  ...e.detail
264
264
  };
265
- this[Q](n);
265
+ this[$](n);
266
266
  let r;
267
- !H(n, t) && !this[X](r = this.colorModel.fromHsva(n)) && (this[Z] = r, K(this, "color-changed", { value: r }));
267
+ !H(n, t) && !this[Z](r = this.colorModel.fromHsva(n)) && (this[Q] = r, K(this, "color-changed", { value: r }));
268
268
  }
269
- [X](e) {
269
+ [Z](e) {
270
270
  return this.color && this.colorModel.equal(e, this.color);
271
271
  }
272
- [Q](e) {
273
- this[Te] = e, this[Ee].forEach((t) => t.update(e));
272
+ [$](e) {
273
+ this[we] = e, this[Te].forEach((t) => t.update(e));
274
274
  }
275
275
  }, ke = {
276
276
  defaultColor: "#000",
277
- toHsva: F,
278
- fromHsva: ({ h: e, s: t, v: n }) => L({
277
+ toHsva: I,
278
+ fromHsva: ({ h: e, s: t, v: n }) => R({
279
279
  h: e,
280
280
  s: t,
281
281
  v: n,
@@ -347,33 +347,33 @@ var je = [
347
347
  },
348
348
  emits: ["update:modelValue"],
349
349
  setup(m, { emit: _ }) {
350
- let v = m, y = _, { t: b } = ae(), S = i(!1), C = i(), w = i(), T = i(!1);
351
- ue(C, () => {
350
+ let v = m, y = _, { t: b } = le(), S = i(!1), C = i(), w = i(), T = i(!1);
351
+ ie(C, () => {
352
352
  S.value = !1;
353
353
  }, { ignore: [w] });
354
- let E = s(() => !v.modelValue), D = s(() => oe(v.modelValue)), O = s(() => oe(v.modelValue || v.seedColor)), k = s(() => !v.disabled && !E.value), A = n(ce, pe), j = s(() => [...new Set(v.presets ?? A.presets)]), me = s(() => v.allowCustom ?? A.allowCustom), M = s(() => j.value.length > 0), N = s(() => me.value || !M.value), P = s(() => g(v.modelValue));
355
- function F(e) {
356
- return P.value !== "" && g(e) === P.value;
357
- }
354
+ let E = s(() => !v.modelValue), D = s(() => g(v.modelValue)), O = s(() => g(v.modelValue || v.seedColor)), k = s(() => !v.disabled && !E.value), A = n(de, ae), j = s(() => [...new Set(v.presets ?? A.presets)]), M = s(() => v.allowCustom ?? A.allowCustom), N = s(() => j.value.length > 0), P = s(() => M.value || !N.value), F = s(() => se(v.modelValue));
358
355
  function I(e) {
356
+ return F.value !== "" && se(e) === F.value;
357
+ }
358
+ function L(e) {
359
359
  y("update:modelValue", e);
360
360
  }
361
- let L = s(() => M.value && !N.value);
362
- function R(e) {
363
- return L.value ? e + 1 : e;
361
+ let R = s(() => N.value && !P.value);
362
+ function z(e) {
363
+ return R.value ? e + 1 : e;
364
364
  }
365
- let z = s(() => {
366
- if (L.value && E.value) return 0;
367
- let e = j.value.findIndex((e) => F(e));
368
- return e === -1 ? 0 : R(e);
365
+ let B = s(() => {
366
+ if (R.value && E.value) return 0;
367
+ let e = j.value.findIndex((e) => I(e));
368
+ return e === -1 ? 0 : z(e);
369
369
  });
370
- function he() {
371
- return z.value === 0 ? 0 : -1;
370
+ function me() {
371
+ return B.value === 0 ? 0 : -1;
372
372
  }
373
- function B(e) {
374
- return R(e) === z.value ? 0 : -1;
373
+ function V(e) {
374
+ return z(e) === B.value ? 0 : -1;
375
375
  }
376
- function ge(e) {
376
+ function he(e) {
377
377
  if (![
378
378
  "ArrowRight",
379
379
  "ArrowDown",
@@ -383,7 +383,7 @@ var je = [
383
383
  let t = Array.from(e.currentTarget.querySelectorAll("[role=\"radio\"]")), n = e.target.closest("[role=\"radio\"]"), r = n ? t.indexOf(n) : -1;
384
384
  r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
385
385
  }
386
- function V(e) {
386
+ function ge(e) {
387
387
  T.value = !0, y("update:modelValue", e.detail.value);
388
388
  }
389
389
  function H() {
@@ -398,11 +398,11 @@ var je = [
398
398
  function G() {
399
399
  y("update:modelValue", "");
400
400
  }
401
- let K = ie(), { toLocal: q } = se(), J = n(le, null), _e = n(fe, null), Y = i({
401
+ let K = ce(), { toLocal: q } = oe(), J = n(pe, null), _e = n(fe, null), Y = i({
402
402
  top: 0,
403
403
  left: 0
404
404
  });
405
- function ve() {
405
+ function X() {
406
406
  if (!v.disabled) {
407
407
  if (!S.value) {
408
408
  let e = w.value?.getBoundingClientRect();
@@ -432,12 +432,12 @@ var je = [
432
432
  S.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !m.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
433
433
  m.size === "sm" ? "tpl:size-8" : "tpl:size-10"
434
434
  ]),
435
- onClick: ve
435
+ onClick: X
436
436
  }, [f("span", {
437
437
  class: d(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": E.value }]),
438
438
  style: p(E.value ? void 0 : { backgroundColor: D.value })
439
439
  }, null, 6)], 10, je),
440
- !m.swatchOnly && N.value ? (e(), c("div", Me, [f("input", {
440
+ !m.swatchOnly && P.value ? (e(), c("div", Me, [f("input", {
441
441
  type: "text",
442
442
  class: d([u(x), "tpl:w-full"]),
443
443
  style: p(k.value ? { paddingRight: "2.25rem" } : void 0),
@@ -453,7 +453,7 @@ var je = [
453
453
  title: u(b).colorPicker.clear,
454
454
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
455
455
  onClick: G
456
- }, [h(u(de), {
456
+ }, [h(u(ue), {
457
457
  size: 14,
458
458
  "stroke-width": 1.5
459
459
  })], 8, Pe)) : l("", !0)])) : l("", !0),
@@ -480,20 +480,20 @@ var je = [
480
480
  ...u(J)
481
481
  })
482
482
  }, [
483
- M.value ? (e(), c("div", {
483
+ N.value ? (e(), c("div", {
484
484
  key: 0,
485
485
  role: "radiogroup",
486
486
  "aria-label": u(b).colorPicker.presetColors,
487
- class: d(["tpl:flex tpl:flex-wrap tpl:gap-1.5", N.value && "tpl:mb-2"]),
488
- onKeydown: ge
489
- }, [L.value ? (e(), c("button", {
487
+ class: d(["tpl:flex tpl:flex-wrap tpl:gap-1.5", P.value && "tpl:mb-2"]),
488
+ onKeydown: he
489
+ }, [R.value ? (e(), c("button", {
490
490
  key: 0,
491
491
  type: "button",
492
492
  role: "radio",
493
493
  "aria-label": u(b).colorPicker.clear,
494
494
  title: u(b).colorPicker.clear,
495
495
  "aria-checked": E.value,
496
- tabindex: he(),
496
+ tabindex: me(),
497
497
  class: d(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", E.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "hover:tpl:border-[var(--tpl-text-dim)]"]),
498
498
  onClick: G
499
499
  }, null, 10, Le)) : l("", !0), (e(!0), c(re, null, t(j.value, (t, n) => (e(), c("button", {
@@ -502,22 +502,22 @@ var je = [
502
502
  role: "radio",
503
503
  "aria-label": t,
504
504
  title: t,
505
- "aria-checked": F(t),
506
- tabindex: B(n),
505
+ "aria-checked": I(t),
506
+ tabindex: V(n),
507
507
  style: p({ backgroundColor: t }),
508
- class: d(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", F(t) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "hover:tpl:border-[var(--tpl-text-dim)]"]),
509
- onClick: (e) => I(t)
508
+ class: d(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", I(t) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "hover:tpl:border-[var(--tpl-text-dim)]"]),
509
+ onClick: (e) => L(t)
510
510
  }, null, 14, Re))), 128))], 42, Ie)) : l("", !0),
511
- N.value ? (e(), c("hex-color-picker", {
511
+ P.value ? (e(), c("hex-color-picker", {
512
512
  key: 1,
513
513
  color: O.value,
514
514
  "aria-label": u(b).colorPicker.pickColor,
515
- onColorChanged: V,
515
+ onColorChanged: ge,
516
516
  onPointerdown: H,
517
517
  onPointerup: U,
518
518
  onKeydown: i[0] ||= a((e) => S.value = !1, ["escape"])
519
519
  }, null, 40, ze)) : l("", !0),
520
- m.swatchOnly && N.value ? (e(), c("div", Be, [f("input", {
520
+ m.swatchOnly && P.value ? (e(), c("div", Be, [f("input", {
521
521
  type: "text",
522
522
  class: d([u(x), "tpl:w-full"]),
523
523
  style: p(k.value ? { paddingRight: "2.25rem" } : void 0),
@@ -534,7 +534,7 @@ var je = [
534
534
  title: u(b).colorPicker.clear,
535
535
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
536
536
  onClick: G
537
- }, [h(u(de), {
537
+ }, [h(u(ue), {
538
538
  size: 14,
539
539
  "stroke-width": 1.5
540
540
  })], 8, He)) : l("", !0)])) : l("", !0)
@@ -545,6 +545,6 @@ var je = [
545
545
  }
546
546
  });
547
547
  //#endregion
548
- export { C as _, A as a, O as c, E as d, v as f, T as g, _ as h, M as i, w as l, b as m, j as n, D as o, y as p, me as r, k as s, Ue as t, S as u };
548
+ export { C as _, A as a, O as c, E as d, v as f, T as g, _ as h, N as i, w as l, b as m, j as n, D as o, y as p, M as r, k as s, Ue as t, S as u };
549
549
 
550
- //# sourceMappingURL=ColorPicker-y_obnw4o.js.map
550
+ //# sourceMappingURL=ColorPicker-DCdWP8YB.js.map