@templatical/editor 0.48.0 → 0.49.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.
- package/README.md +1 -1
- package/dist/{AiChatSidebar-DxPHFNoT.js → AiChatSidebar-CdjTb9ej.js} +14 -14
- package/dist/{AiFeatureMenu-C8GVqu1d.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
- package/dist/{BlockIssueBadge-BShkuJis.js → BlockIssueBadge-BdpJwim0.js} +5 -5
- package/dist/{BlockPreviewCanvas-tzAtDkXH.js → BlockPreviewCanvas-D_sowkf0.js} +8 -8
- package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
- package/dist/{CloudPanels-Dgw7tb4R.js → CloudPanels-1hwFiJ0G.js} +39 -68
- package/dist/CollaborationNotices-BWpKzueF.js +73 -0
- package/dist/CollaboratorBar-D87phJsw.js +123 -0
- package/dist/{CommentsPanel-DiWzYtnZ.js → CommentsPanel-BUvUzO3T.js} +2 -2
- package/dist/{CommentsSidebar-BOqj16Al.js → CommentsSidebar-J65znlrH.js} +14 -14
- package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
- package/dist/{CountdownToolbar-C4y3Ft7H.js → CountdownToolbar-CLMIwfK7.js} +7 -7
- package/dist/{DesignReferenceSidebar-BWAi3eQQ.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
- package/dist/{IssuesPanel-C-x3I012.js → IssuesPanel-DeeVsfG7.js} +8 -8
- package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
- package/dist/{LogicTagInsertButton-B1_Wy0AN.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
- package/dist/{MediaEditModal-ByOvznRC.js → MediaEditModal-C_wxoUMG.js} +3 -3
- package/dist/{MediaPanels-9mDBv4aL.js → MediaPanels-BVXDkqtH.js} +2 -2
- package/dist/{MergeTagInput-fOewuF27.js → MergeTagInput-BEw_r0PJ.js} +3 -3
- package/dist/{MergeTagModeToggle-BXamLcv7.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
- package/dist/{ParagraphEditor-BVjOwwHx.js → ParagraphEditor-zLV44z-R.js} +19 -19
- package/dist/{RestoreVersionDialog-BEKXx9xk.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
- package/dist/{RichTextEditorContent-D7kp7iig.js → RichTextEditorContent-CsvniFlI.js} +9 -9
- package/dist/{SaveBlockDialog-SJu0lecx.js → SaveBlockDialog-DzWURF_e.js} +12 -12
- package/dist/{SavedBlocksBrowserModal-DbmIS5uK.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
- package/dist/{SavedBlocksPanels-Dr5Fxx9Z.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
- package/dist/{SavedBlocksPickBar-DnEWBZJy.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
- package/dist/{TemplateScoringPanel-ynbGl-sr.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
- package/dist/{TemplateSettings-Bi01S3H3.js → TemplateSettings-Cu5X9DgA.js} +11 -11
- package/dist/{TestEmailModal-CbRY8HQx.js → TestEmailModal-BeRYV3eg.js} +14 -14
- package/dist/{TestEmailPanel-NAOmt3xi.js → TestEmailPanel-B8c3fQi2.js} +2 -2
- package/dist/{TitleEditor-Cc3DHbuN.js → TitleEditor-CvpNUoAp.js} +11 -11
- package/dist/{ToggleSwitch-Ozc7YU38.js → ToggleSwitch-DHweVJOr.js} +2 -2
- package/dist/{Toolbar-B-2lO0I8.js → Toolbar-BadDSkkF.js} +426 -429
- package/dist/{TplModal-Bz4-IZ9R.js → TplModal-BZgi9Tes.js} +5 -5
- package/dist/{VersionHistoryMenu-CjV1d1zk.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
- package/dist/{VersionHistoryPanels-BtwxrKJn.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
- package/dist/{VersionPreviewBanner-BLAei1kj.js → VersionPreviewBanner-F-811aps.js} +4 -4
- package/dist/{WrapperBlock-D0qgNqjD.js → WrapperBlock-DiiaxpMb.js} +5 -5
- package/dist/{blockTypeIcons-CEDZytqP.js → blockTypeIcons-CayLluou.js} +2 -2
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-CbNzJM3I.js → ca-DSJwJ5ov.js} +23 -1
- package/dist/cdn/chunks/{AiChatSidebar-Dk0rJBQN.js → AiChatSidebar-yXJ85Zcg.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-Dk0rJBQN.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B7b0w8ZS.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B7b0w8ZS.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js → BlockPreviewCanvas-m2tWRyWv.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js.map → BlockPreviewCanvas-m2tWRyWv.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-B4fhuwc_.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-awqHfJqC.js → CloudPanels-XufhBZYF.js} +38 -67
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +1 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js +75 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js +72 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-CbzxwsyI.js → CommentsPanel-R8YLLO3v.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CbzxwsyI.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.js → CommentsSidebar-96NZHVq3.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.js.map → CommentsSidebar-96NZHVq3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js → CountdownBlock-DB4JNdqh.js} +5 -5
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-DB4JNdqh.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js → CountdownToolbar-tmiTPEXm.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BW9cHnA9.js → DesignReferenceSidebar-D14IIu_P.js} +39 -39
- package/dist/cdn/chunks/{DesignReferenceSidebar-BW9cHnA9.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-cXf9ywA4.js → IssuesPanel-BoPiCLGc.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-cXf9ywA4.js.map → IssuesPanel-BoPiCLGc.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-YU44CM8X.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-YU44CM8X.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BMB9vShs.js → LogicTagInsertButton-BJ2t2vxC.js} +20 -20
- package/dist/cdn/chunks/{LogicTagInsertButton-BMB9vShs.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-zXfcArr4.js → MediaEditModal-DD0SZ-S3.js} +3 -3
- package/dist/cdn/chunks/{MediaEditModal-zXfcArr4.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-Cp4XB_dH.js → MediaPanels-CkdJ_kGp.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-Cp4XB_dH.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js → MergeTagInput-7wXX71DH.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D4aq9eeC.js → ParagraphEditor-CJQjRHXV.js} +29 -29
- package/dist/cdn/chunks/{ParagraphEditor-D4aq9eeC.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js → RestoreVersionDialog-C5cxBRKi.js} +6 -6
- package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js → SaveBlockDialog-BKbjUnPM.js} +10 -10
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BrWqJCSP.js → TemplateScoringPanel-BBPnHILC.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-BrWqJCSP.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js → TemplateSettings-CtrzzQWl.js} +10 -10
- package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js → TestEmailModal-DuZKYMWD.js} +13 -13
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js → TestEmailPanel-DERaCdpG.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.js → TitleEditor-CEgxjtUX.js} +14 -14
- package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BB-bQADJ.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-BB-bQADJ.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_x2TfFk.js → Toolbar-GFIZQHzw.js} +440 -443
- package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js → TplModal-DDrbWJcE.js} +5 -5
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js.map → TplModal-DDrbWJcE.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js → VersionHistoryMenu-MlxsUmuT.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.js → WrapperBlock-CFuP4R0c.js} +6 -6
- package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.js.map → WrapperBlock-CFuP4R0c.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-HrMJDfVg.js → blockTypeIcons-BnAd8qsP.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-HrMJDfVg.js.map → blockTypeIcons-BnAd8qsP.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CbNzJM3I.js → ca-DSJwJ5ov.js} +24 -2
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
- package/dist/{cloud-B5xwm_4X.js → cdn/chunks/cloud-CI_fgDyy.js} +116 -293
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Vd0N4elZ.js → createCloudRuntime-DiYCJ21w.js} +127 -169
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
- package/dist/{de-DMquBpZM.js → cdn/chunks/de-CBE6O79z.js} +25 -1
- package/dist/cdn/chunks/de-CBE6O79z.js.map +1 -0
- package/dist/{de-mMY5yQJu.js → cdn/chunks/de-D_atmUVB.js} +2 -4
- package/dist/cdn/chunks/{de-mMY5yQJu.js.map → de-D_atmUVB.js.map} +1 -1
- package/dist/cdn/chunks/{dist-MNQYSEWU.js → dist-DdwjXLme.js} +3 -3
- package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-DdwjXLme.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CjL6JHML.js → dist-Doy3r07H.js} +2 -2
- package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Doy3r07H.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-akeQH_JP.js} +1682 -1683
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js → editor-modal-HJBy9kLj.js} +88 -88
- package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
- package/dist/cdn/chunks/{en-C8Mp71sO.js → en-CDexnk0p.js} +24 -2
- package/dist/cdn/chunks/en-CDexnk0p.js.map +1 -0
- package/dist/{en-ChVeGQBY.js → cdn/chunks/en-DhJLnaBx.js} +2 -4
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +1 -0
- package/dist/cdn/chunks/en-Ve-PWSXu.js +1 -0
- package/dist/{es-Byq4tthI.js → cdn/chunks/es-BE42B6uN.js} +25 -1
- package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js → extensions-koOuDeZS.js} +23 -23
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js.map → extensions-koOuDeZS.js.map} +1 -1
- package/dist/{fr-B3j35HEw.js → cdn/chunks/fr-DlJFPDQR.js} +25 -1
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
- package/dist/cdn/chunks/{icons-aTYwH5-g.js → icons-CjlNV8xD.js} +46 -46
- package/dist/cdn/chunks/{icons-aTYwH5-g.js.map → icons-CjlNV8xD.js.map} +1 -1
- package/dist/{ja-D7txAuGS.js → cdn/chunks/ja-CUT8gkNI.js} +25 -1
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +1 -0
- package/dist/cdn/chunks/{keys-HI-INbkz.js → keys-UAWhQ3zW.js} +2 -2
- package/dist/cdn/chunks/{keys-HI-INbkz.js.map → keys-UAWhQ3zW.js.map} +1 -1
- package/dist/{nl-ClJ3BY3F.js → cdn/chunks/nl-bXWqqRyS.js} +25 -1
- package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-DibcXcmv.js → pt-BR-2_H4-wlb.js} +24 -2
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +1 -0
- package/dist/{pt-BR-CoCwRUi0.js → cdn/chunks/pt-BR-BphMoUTw.js} +2 -4
- package/dist/cdn/chunks/{pt-BR-CoCwRUi0.js.map → pt-BR-BphMoUTw.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
- package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
- package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js +2091 -0
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +1 -0
- package/dist/cdn/chunks/{src-DlFlC9Tt.js → src-B1e5SSYP.js} +84 -84
- package/dist/cdn/chunks/{src-DlFlC9Tt.js.map → src-B1e5SSYP.js.map} +1 -1
- package/dist/cdn/chunks/{src-dZ4D_tuP.js → src-B77z1iw4.js} +117 -117
- package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
- package/dist/cdn/chunks/{src-DYCDeBDM.js → src-CvLTYGdO.js} +549 -315
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +6 -0
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-B1RfWFzB.js} +3 -3
- package/dist/cdn/chunks/tiptap-B1RfWFzB.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js → useAliveFlag-PuXh83UK.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js.map → useAliveFlag-PuXh83UK.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-kp07GQmk.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-kp07GQmk.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-Bb2UcB20.js → useEditorCore-DpCFvHg_.js} +440 -419
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-5SBqm90x.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-DEqtEgOs.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-DEqtEgOs.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js → useLogicTag-X8bc5qNl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js → useMergeTag-DFoOexIQ.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js.map → useMergeTag-DFoOexIQ.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-Cz9-XiXR.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-Cz9-XiXR.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js → useScrollToBlock-MNzurEZV.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js.map → useScrollToBlock-MNzurEZV.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js → withCurrentFont-D-f61ghC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1319 -1066
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ClwqRMgv.js → check-DQQzkmIC.js} +1 -1
- package/dist/{chevron-down-te6qn-zE.js → chevron-down-CIF4bdon.js} +1 -1
- package/dist/{chevron-right-W2hbH1FM.js → chevron-right-Cg7Xu-ev.js} +1 -1
- package/dist/{chevron-up-Bf5Zo7o4.js → chevron-up-Csu7ISD-.js} +1 -1
- package/dist/{circle-alert-CIEGV5DN.js → circle-alert-YUvIJAgY.js} +1 -1
- package/dist/{clock-Y4cx0gkJ.js → clock-CnSIGKQW.js} +1 -1
- package/dist/{cdn/chunks/cloud-BHClP3e2.js → cloud-YUYDtdHt.js} +308 -569
- package/dist/{copy-BEcsAlfB.js → copy-CUC43md_.js} +1 -1
- package/dist/{createCloudRuntime-zNPkF6T9.js → createCloudRuntime-BMDRjL0k.js} +126 -168
- package/dist/{createLucideIcon-CYHXK9hn.js → createLucideIcon-BcP1sjdp.js} +6 -6
- package/dist/{cdn/chunks/de-DMquBpZM.js → de-CBE6O79z.js} +23 -3
- package/dist/{cdn/chunks/de-mMY5yQJu.js → de-D_atmUVB.js} +0 -6
- package/dist/{dist-CUWI-IvA.js → dist-Bv_GBr2l.js} +1 -1
- package/dist/{dist-DAAJogrx.js → dist-CCqn-RqE.js} +2 -2
- package/dist/{dist-DuufrR8O.js → dist-CNqjHA8e.js} +2 -2
- package/dist/{dist-tsmnQugO.js → dist-DBG3nh3k.js} +503 -273
- package/dist/{editor-modal-AlVLkU91.js → editor-modal--7_9A6j-.js} +20 -20
- package/dist/en-BHCMzqib.js +1 -0
- package/dist/{en-C8Mp71sO.js → en-CDexnk0p.js} +23 -1
- package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
- package/dist/{cdn/chunks/es-Byq4tthI.js → es-BE42B6uN.js} +23 -3
- package/dist/{extensions-pjO8VGkM.js → extensions-zwsZlWjH.js} +23 -23
- package/dist/{eye-Ddnz8nnm.js → eye-B1bua-ck.js} +1 -1
- package/dist/{cdn/chunks/fr-B3j35HEw.js → fr-DlJFPDQR.js} +23 -3
- package/dist/{image-up-CM_HC0Dx.js → image-up-BqiO7KCO.js} +1 -1
- package/dist/index.d.ts +290 -35
- package/dist/{info-DXLmzoeY.js → info-x26nGOo2.js} +1 -1
- package/dist/{cdn/chunks/ja-D7txAuGS.js → ja-CUT8gkNI.js} +23 -3
- package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
- package/dist/{link-Cel46wgo.js → link-CezhndyR.js} +1 -1
- package/dist/{list-Cl0GwiV9.js → list-DQqdptI0.js} +1 -1
- package/dist/{loader-circle-uAwpvfys.js → loader-circle-DCEeoYoi.js} +1 -1
- package/dist/{message-circle-DWU1pTM_.js → message-circle-BLGzfv_7.js} +1 -1
- package/dist/{cdn/chunks/nl-ClJ3BY3F.js → nl-bXWqqRyS.js} +23 -3
- package/dist/{package-CbyG_yU_.js → package-D_kEQCMU.js} +1 -1
- package/dist/{pencil-BzoDcwKu.js → pencil-Dct8zGLy.js} +1 -1
- package/dist/{plus-8cDvoCjZ.js → plus-BDd0gTEm.js} +1 -1
- package/dist/{preRenderCustomBlocks-DMP5RuHl.js → preRenderCustomBlocks-CtKJecE-.js} +3 -3
- package/dist/{pt-BR-DibcXcmv.js → pt-BR-2_H4-wlb.js} +23 -1
- package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
- package/dist/{refresh-cw-9WinWixo.js → refresh-cw-tGMRDxr8.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-DYn1z2Xf.js} +1 -1
- package/dist/{search-CqgGq1gG.js → search-Bm2cCQpe.js} +1 -1
- package/dist/{send-Ceo3c9Db.js → send-sVLaKZ7f.js} +1 -1
- package/dist/{shield-check-uDAwur5D.js → shield-check-YhsbXfQc.js} +1 -1
- package/dist/{smartphone-CcLaCpGK.js → smartphone-B2W81p02.js} +1 -1
- package/dist/socialIcons-Bwv-49EB.js +2167 -0
- package/dist/{sparkles-Do9XjAuT.js → sparkles-a1qkBZ8X.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
- package/dist/templatical-editor.js +1409 -1156
- package/dist/{text-align-start-DvzC0HQA.js → text-align-start-CTuwQ5YW.js} +1 -1
- package/dist/timeouts-o5Y9BuqI.js +4 -0
- package/dist/{trash-vlINTx32.js → trash-I3D2peFQ.js} +1 -1
- package/dist/{triangle-alert-MRYSJ9T2.js → triangle-alert-CenxmLRE.js} +1 -1
- package/dist/{upload-CtNOI6J2.js → upload-uU2cK0Ce.js} +1 -1
- package/dist/{useAliveFlag-Dd06mRxe.js → useAliveFlag-BjP0Gxza.js} +1 -1
- package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-CGVEZV3o.js} +2 -2
- package/dist/{useEditorCore-PvErWWsp.js → useEditorCore-DRbMRe8F.js} +806 -785
- package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
- package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
- package/dist/{useLogicTag-BHn67tDd.js → useLogicTag-zcI6BWIf.js} +3 -3
- package/dist/{useMergeTag-CRkm5Ig6.js → useMergeTag-C-iBLlp0.js} +5 -5
- package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
- package/dist/{useScrollToBlock-CXmcHQQN.js → useScrollToBlock-CdCQK9QQ.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DV0Wx4r_.js} +1079 -1080
- package/dist/{withCurrentFont-CxRGeHO3.js → withCurrentFont-D62njRLu.js} +1 -1
- package/dist/{x-Cd6SFw8r.js → x-KFQ4S-Kz.js} +1 -1
- package/package.json +12 -12
- package/dist/CloudHeaderExtras-CUSftQdm.js +0 -59
- package/dist/CollaboratorBar-5rfopCPx.js +0 -103
- package/dist/cdn/chunks/CloudHeaderExtras-B4fhuwc_.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-awqHfJqC.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js +0 -52
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +0 -1
- package/dist/cdn/chunks/ca-CbNzJM3I.js.map +0 -1
- package/dist/cdn/chunks/cloud-BHClP3e2.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +0 -1
- package/dist/cdn/chunks/de-DMquBpZM.js.map +0 -1
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
- package/dist/cdn/chunks/en-C8Mp71sO.js.map +0 -1
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
- package/dist/cdn/chunks/en-eWpiXyZu.js +0 -1
- package/dist/cdn/chunks/es-Byq4tthI.js.map +0 -1
- package/dist/cdn/chunks/fr-B3j35HEw.js.map +0 -1
- package/dist/cdn/chunks/ja-D7txAuGS.js.map +0 -1
- package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +0 -1
- package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +0 -1279
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +0 -1
- package/dist/cdn/chunks/src-DYCDeBDM.js.map +0 -1
- package/dist/cdn/chunks/src-dZ4D_tuP.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js +0 -6
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
- package/dist/en-B0FUfNwz.js +0 -1
- package/dist/socialIcons-PTiwhLoC.js +0 -1359
- package/dist/timeouts-Cv2jvusx.js +0 -4
package/dist/cdn/editor.js
CHANGED
|
@@ -1,50 +1,387 @@
|
|
|
1
|
-
import { B as e, E as t, F as n, H as r, I as i,
|
|
2
|
-
import { A as
|
|
3
|
-
import { D as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { a as
|
|
6
|
-
import { A as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { t as Q } from "./chunks/useI18n-
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { $ as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { C as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as ln } from "./chunks/preRenderCustomBlocks-ByfuSjtL.js";
|
|
1
|
+
import { B as e, E as t, F as n, H as r, I as i, K as a, M as o, N as s, P as c, Q as l, R as u, S as d, U as f, Y as p, _ as m, at as h, b as g, c as _, ct as v, et as y, f as b, g as x, h as S, j as C, k as w, l as T, lt as E, m as D, n as O, o as k, p as A, r as j, s as M, t as ee, tt as N, u as P, ut as F, v as I, w as L, x as R, y as z } from "./chunks/draggable-akeQH_JP.js";
|
|
2
|
+
import { A as te, B as ne, D as B, E as V, J as H, K as U, N as W, O as G, R as K, T as q, Y as J, a as Y, bt as X, i as Z, k as re, m as ie, n as ae, pt as oe, r as se, st as ce, u as le, w as ue } from "./chunks/src-CvLTYGdO.js";
|
|
3
|
+
import { A as de, D as fe, E as pe, O as me, R as he, T as ge, c as _e, h as ve, k as ye, s as be, v as xe, w as Se } from "./chunks/socialIcons-CkZSYpoG.js";
|
|
4
|
+
import { _ as Ce, d as we, g as Te } from "./chunks/dist-Doy3r07H.js";
|
|
5
|
+
import { a as Ee } from "./chunks/dist-DdwjXLme.js";
|
|
6
|
+
import { A as De, C as Oe, F as ke, I as Ae, L as je, M as Me, N as Ne, O as Pe, P as Fe, _ as Ie, a as Le, b as Re, c as ze, d as Be, f as Ve, g as He, h as Ue, i as We, j as Ge, l as Ke, m as qe, n as Je, o as Ye, p as Xe, r as Ze, s as Qe, t as $e, u as et, w as tt } from "./chunks/useEditorCore-DpCFvHg_.js";
|
|
7
|
+
import { $ as nt, A as rt, E as it, J as at, K as ot, M as st, N as ct, P as lt, Q as ut, U as dt, V as ft, X as pt, Z as mt, f as ht, g as gt, l as _t, m as vt, o as yt, p as bt, q as xt, r as St, s as Ct, v as wt, z as Tt } from "./chunks/keys-UAWhQ3zW.js";
|
|
8
|
+
import { t as Q } from "./chunks/useI18n-DEqtEgOs.js";
|
|
9
|
+
import { t as Et } from "./chunks/logger-ByvdoAwq.js";
|
|
10
|
+
import { t as Dt } from "./chunks/templateSettingsFields-YCFVBVYh.js";
|
|
11
|
+
import { $ as Ot, D as kt, Dt as At, E as jt, Et as Mt, I as Nt, J as Pt, L as Ft, M as It, N as Lt, P as Rt, Pt as zt, Rt as Bt, X as Vt, at as Ht, ct as Ut, et as Wt, ht as Gt, n as Kt, nt as qt, ut as Jt, x as Yt, zt as Xt } from "./chunks/icons-CjlNV8xD.js";
|
|
12
|
+
import { t as Zt } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { t as Qt } from "./chunks/useCloudI18n-kp07GQmk.js";
|
|
14
|
+
import { t as $t } from "./chunks/useScrollToBlock-MNzurEZV.js";
|
|
15
|
+
import { C as en, S as tn, p as nn, y as rn } from "./chunks/styleConstants-v1dNKgJf.js";
|
|
16
|
+
import { t as an } from "./chunks/WrapperBlock-CFuP4R0c.js";
|
|
17
|
+
import { t as on } from "./chunks/blockTypeIcons-BnAd8qsP.js";
|
|
18
|
+
import { n as sn, t as cn } from "./chunks/MergeTagModeToggle-r9vHH4u_.js";
|
|
19
|
+
import { t as ln } from "./chunks/formatAbsoluteDateTime-DMmop3C-.js";
|
|
20
|
+
import { t as un } from "./chunks/formatRelativeTime-CtUU-QZ8.js";
|
|
21
|
+
import { t as dn } from "./chunks/TplModal-DDrbWJcE.js";
|
|
22
|
+
import { t as fn } from "./chunks/preRenderCustomBlocks-DqKbdTJ8.js";
|
|
24
23
|
//#region src/utils/resolveTemplateDefaults.ts
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
let t = e.locale?.trim().replace(/_/g, "-"), n = t &&
|
|
24
|
+
var pn = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
25
|
+
function mn(e) {
|
|
26
|
+
let t = e.locale?.trim().replace(/_/g, "-"), n = t && pn.test(t) ? { locale: t } : void 0;
|
|
28
27
|
if (n || e.templateDefaults) return {
|
|
29
28
|
...n,
|
|
30
29
|
...e.templateDefaults
|
|
31
30
|
};
|
|
32
31
|
}
|
|
33
32
|
//#endregion
|
|
33
|
+
//#region src/utils/normalizeMergeTagMarkup.ts
|
|
34
|
+
function hn(e) {
|
|
35
|
+
let t = e.flags.includes("g") ? e.flags : `${e.flags}g`;
|
|
36
|
+
return new RegExp(e.source, t);
|
|
37
|
+
}
|
|
38
|
+
function gn(e, t, n) {
|
|
39
|
+
let r = [], i = (t, n, i) => {
|
|
40
|
+
let a = hn(t), o = a.exec(e);
|
|
41
|
+
for (; o !== null;) {
|
|
42
|
+
let t = o.index, s = t + o[0].length;
|
|
43
|
+
o[0].length === 0 ? a.lastIndex++ : r.some((e) => t < e.end && s > e.start) || r.push({
|
|
44
|
+
start: t,
|
|
45
|
+
end: s,
|
|
46
|
+
attr: n,
|
|
47
|
+
value: o[0],
|
|
48
|
+
label: i(o[0])
|
|
49
|
+
}), o = a.exec(e);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return i(n.logic, "data-logic-merge-tag", (e) => Z(e, n)), i(n.value, "data-merge-tag", (e) => Y(e, t)), r.sort((e, t) => e.start - t.start);
|
|
53
|
+
}
|
|
54
|
+
function _n(e) {
|
|
55
|
+
let t = e.createTreeWalker(e.body, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT, { acceptNode(e) {
|
|
56
|
+
if (e.nodeType !== 1) return NodeFilter.FILTER_ACCEPT;
|
|
57
|
+
let t = e;
|
|
58
|
+
return t.hasAttribute("data-merge-tag") || t.hasAttribute("data-logic-merge-tag") ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_SKIP;
|
|
59
|
+
} }), n = [], r = t.nextNode();
|
|
60
|
+
for (; r !== null;) n.push(r), r = t.nextNode();
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
function vn(e, t, n) {
|
|
64
|
+
if (!e || !se(e, n) || typeof DOMParser > "u") return e;
|
|
65
|
+
let r = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html"), i = 0;
|
|
66
|
+
for (let e of _n(r)) {
|
|
67
|
+
let a = e.data, o = gn(a, t, n);
|
|
68
|
+
if (o.length === 0) continue;
|
|
69
|
+
let s = r.createDocumentFragment(), c = 0;
|
|
70
|
+
for (let e of o) {
|
|
71
|
+
e.start > c && s.appendChild(r.createTextNode(a.substring(c, e.start)));
|
|
72
|
+
let t = r.createElement("span");
|
|
73
|
+
t.setAttribute(e.attr, e.value), t.textContent = e.label, s.appendChild(t), c = e.end;
|
|
74
|
+
}
|
|
75
|
+
c < a.length && s.appendChild(r.createTextNode(a.substring(c))), e.parentNode?.replaceChild(s, e), i += o.length;
|
|
76
|
+
}
|
|
77
|
+
return i === 0 ? e : r.body.innerHTML;
|
|
78
|
+
}
|
|
79
|
+
function yn(e, t, n) {
|
|
80
|
+
if (e.type === "section") {
|
|
81
|
+
if (!Array.isArray(e.children)) return e;
|
|
82
|
+
let r = !1, i = e.children.map((e) => {
|
|
83
|
+
if (!Array.isArray(e)) return e;
|
|
84
|
+
let i = !1, a = e.map((e) => {
|
|
85
|
+
let r = yn(e, t, n);
|
|
86
|
+
return r !== e && (i = !0), r;
|
|
87
|
+
});
|
|
88
|
+
return i ? (r = !0, a) : e;
|
|
89
|
+
});
|
|
90
|
+
return r ? {
|
|
91
|
+
...e,
|
|
92
|
+
children: i
|
|
93
|
+
} : e;
|
|
94
|
+
}
|
|
95
|
+
if (e.type === "wrapper") {
|
|
96
|
+
if (!Array.isArray(e.children)) return e;
|
|
97
|
+
let r = !1, i = e.children.map((e) => {
|
|
98
|
+
let i = yn(e, t, n);
|
|
99
|
+
return i !== e && (r = !0), i;
|
|
100
|
+
});
|
|
101
|
+
return r ? {
|
|
102
|
+
...e,
|
|
103
|
+
children: i
|
|
104
|
+
} : e;
|
|
105
|
+
}
|
|
106
|
+
if (e.type !== "title" && e.type !== "paragraph" || typeof e.content != "string") return e;
|
|
107
|
+
let r = vn(e.content, t, n);
|
|
108
|
+
return r === e.content ? e : {
|
|
109
|
+
...e,
|
|
110
|
+
content: r
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function bn(e, t, n) {
|
|
114
|
+
if (!e || !Array.isArray(e.blocks)) return e;
|
|
115
|
+
let r = !1, i = e.blocks.map((e) => {
|
|
116
|
+
let i = yn(e, t, n);
|
|
117
|
+
return i !== e && (r = !0), i;
|
|
118
|
+
});
|
|
119
|
+
return r ? {
|
|
120
|
+
...e,
|
|
121
|
+
blocks: i
|
|
122
|
+
} : e;
|
|
123
|
+
}
|
|
124
|
+
function xn(e, t) {
|
|
125
|
+
return bn(Cn(e), t?.tags ?? [], ie(t?.syntax));
|
|
126
|
+
}
|
|
127
|
+
function Sn(e, t) {
|
|
128
|
+
return yn(e, t?.tags ?? [], ie(t?.syntax));
|
|
129
|
+
}
|
|
130
|
+
function Cn(e) {
|
|
131
|
+
return typeof e == "object" && e ? X(e) : e;
|
|
132
|
+
}
|
|
133
|
+
function wn(e, t) {
|
|
134
|
+
return {
|
|
135
|
+
get state() {
|
|
136
|
+
return e.state;
|
|
137
|
+
},
|
|
138
|
+
get content() {
|
|
139
|
+
return e.content;
|
|
140
|
+
},
|
|
141
|
+
setContent: (n, r) => e.setContent(xn(n, t), r)
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function Tn(e, t) {
|
|
145
|
+
return {
|
|
146
|
+
...e,
|
|
147
|
+
async load(n) {
|
|
148
|
+
let r = await e.load(n);
|
|
149
|
+
return {
|
|
150
|
+
...r,
|
|
151
|
+
content: xn(r.content, t)
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function En(e, t) {
|
|
157
|
+
if (Array.isArray(e)) for (let n of e) {
|
|
158
|
+
if (!n || typeof n != "object") continue;
|
|
159
|
+
if (n.id === t) return n.type;
|
|
160
|
+
let e = n.children;
|
|
161
|
+
if (n.type === "section" && Array.isArray(e)) for (let n of e) {
|
|
162
|
+
let e = En(n, t);
|
|
163
|
+
if (e) return e;
|
|
164
|
+
}
|
|
165
|
+
else if (n.type === "wrapper") {
|
|
166
|
+
let n = En(e, t);
|
|
167
|
+
if (n) return n;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function Dn(e, t) {
|
|
172
|
+
typeof e.id == "string" && t.set(e.id, e.type);
|
|
173
|
+
let n = e.children;
|
|
174
|
+
if (!Array.isArray(n)) return;
|
|
175
|
+
let r = e.type === "section" ? n.flat() : n;
|
|
176
|
+
for (let e of r) e && typeof e == "object" && Dn(e, t);
|
|
177
|
+
}
|
|
178
|
+
function On(e, t, n) {
|
|
179
|
+
let r = n?.tags ?? [], i = ie(n?.syntax), a = /* @__PURE__ */ new Map(), o = !1, s = e.map((e) => {
|
|
180
|
+
if (e.op === "addBlock") {
|
|
181
|
+
if (!e.block || typeof e.block != "object") return e;
|
|
182
|
+
Dn(e.block, a);
|
|
183
|
+
let t = yn(e.block, r, i);
|
|
184
|
+
return t === e.block ? e : (o = !0, {
|
|
185
|
+
...e,
|
|
186
|
+
block: t
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
if (e.op === "updateBlock") {
|
|
190
|
+
let n = e.set?.content;
|
|
191
|
+
if (typeof n != "string") return e;
|
|
192
|
+
let s = a.get(e.blockId) ?? En(t?.blocks, e.blockId);
|
|
193
|
+
if (s !== "title" && s !== "paragraph") return e;
|
|
194
|
+
let c = vn(n, r, i);
|
|
195
|
+
return c === n ? e : (o = !0, {
|
|
196
|
+
...e,
|
|
197
|
+
set: {
|
|
198
|
+
...e.set,
|
|
199
|
+
content: c
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
if (e.op === "setContent") {
|
|
204
|
+
let t = bn(e.content, r, i);
|
|
205
|
+
return t === e.content ? e : (o = !0, {
|
|
206
|
+
...e,
|
|
207
|
+
content: t
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
return e;
|
|
211
|
+
});
|
|
212
|
+
return o ? s : e;
|
|
213
|
+
}
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/composables/useCollaborationFeature.ts
|
|
216
|
+
var kn = 5e3, An = 2e3, jn = {
|
|
217
|
+
blockIds: [],
|
|
218
|
+
settings: !1,
|
|
219
|
+
templateUpdated: !0
|
|
220
|
+
};
|
|
221
|
+
function Mn(e) {
|
|
222
|
+
let t = /* @__PURE__ */ new Set(), n = !1, r = !1;
|
|
223
|
+
for (let i of e) i.op === "addBlock" ? typeof i.block?.id == "string" && t.add(i.block.id) : i.op === "updateSettings" ? n = !0 : i.op === "setContent" ? r = !0 : t.add(i.blockId);
|
|
224
|
+
return {
|
|
225
|
+
blockIds: [...t],
|
|
226
|
+
settings: n,
|
|
227
|
+
templateUpdated: r
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function Nn(e) {
|
|
231
|
+
let t = l([]), n = 1, r = /* @__PURE__ */ new Map();
|
|
232
|
+
function i(e) {
|
|
233
|
+
let t = r.get(e);
|
|
234
|
+
t && clearTimeout(t), r.set(e, setTimeout(() => s(e), kn));
|
|
235
|
+
}
|
|
236
|
+
function o(e) {
|
|
237
|
+
let r = n++;
|
|
238
|
+
return t.value = [{
|
|
239
|
+
...e,
|
|
240
|
+
id: r
|
|
241
|
+
}], i(r), r;
|
|
242
|
+
}
|
|
243
|
+
function s(e) {
|
|
244
|
+
let n = r.get(e);
|
|
245
|
+
n && (clearTimeout(n), r.delete(e)), t.value = t.value.filter((t) => t.id !== e);
|
|
246
|
+
}
|
|
247
|
+
function c(e) {
|
|
248
|
+
o(e.type === "selectionRefused" ? {
|
|
249
|
+
kind: "selectionRefused",
|
|
250
|
+
name: e.holder.name,
|
|
251
|
+
isGuest: e.holder.type === "guest"
|
|
252
|
+
} : e.type === "editRefused" ? {
|
|
253
|
+
kind: "editRefused",
|
|
254
|
+
code: e.code,
|
|
255
|
+
...e.holder ? {
|
|
256
|
+
name: e.holder.name,
|
|
257
|
+
isGuest: e.holder.type === "guest"
|
|
258
|
+
} : {}
|
|
259
|
+
} : { kind: "undoSkipped" });
|
|
260
|
+
}
|
|
261
|
+
let u = null, d = y(/* @__PURE__ */ new Map()), f = /* @__PURE__ */ new Map(), m = 0;
|
|
262
|
+
function h(e) {
|
|
263
|
+
if (e.length === 0) return;
|
|
264
|
+
let t = ++m, n = new Map(d.value);
|
|
265
|
+
for (let r of e) {
|
|
266
|
+
n.set(r, t);
|
|
267
|
+
let e = f.get(r);
|
|
268
|
+
e && clearTimeout(e), f.set(r, setTimeout(() => {
|
|
269
|
+
f.delete(r);
|
|
270
|
+
let e = new Map(d.value);
|
|
271
|
+
e.delete(r), d.value = e;
|
|
272
|
+
}, An));
|
|
273
|
+
}
|
|
274
|
+
d.value = n;
|
|
275
|
+
}
|
|
276
|
+
function g(e, n) {
|
|
277
|
+
if (e.type !== "mcp") return;
|
|
278
|
+
let r = typeof e.client == "string" && e.client.trim() !== "" ? e.client : null, a = `${e.id ?? ""}\n${r ?? ""}`, s = Date.now(), c = u;
|
|
279
|
+
(!c || c.key !== a || s - c.lastAt > 2e3 || t.value.at(-1)?.id !== c.noticeId) && (c = {
|
|
280
|
+
key: a,
|
|
281
|
+
noticeId: 0,
|
|
282
|
+
lastAt: s,
|
|
283
|
+
blockIds: /* @__PURE__ */ new Set(),
|
|
284
|
+
settings: !1,
|
|
285
|
+
templateUpdated: !1
|
|
286
|
+
});
|
|
287
|
+
for (let e of n.blockIds) c.blockIds.add(e);
|
|
288
|
+
c.settings ||= n.settings, c.templateUpdated ||= n.templateUpdated, c.lastAt = s;
|
|
289
|
+
let l = {
|
|
290
|
+
kind: "agentEdited",
|
|
291
|
+
client: r,
|
|
292
|
+
name: e.name,
|
|
293
|
+
blocks: c.blockIds.size,
|
|
294
|
+
settings: c.settings,
|
|
295
|
+
templateUpdated: c.templateUpdated
|
|
296
|
+
};
|
|
297
|
+
c === u ? (t.value = [{
|
|
298
|
+
...l,
|
|
299
|
+
id: c.noticeId
|
|
300
|
+
}], i(c.noticeId)) : (c.noticeId = o(l), u = c), n.templateUpdated || h(n.blockIds);
|
|
301
|
+
}
|
|
302
|
+
let _ = de({
|
|
303
|
+
provider: e.provider,
|
|
304
|
+
loadTemplate: e.loadTemplate,
|
|
305
|
+
normalizeRemoteOperations: (t, n) => On(t, n, e.mergeTags),
|
|
306
|
+
onRemoteChange: (t) => {
|
|
307
|
+
try {
|
|
308
|
+
g(t.actor, Mn(t.ops));
|
|
309
|
+
} finally {
|
|
310
|
+
e.onRemoteChange?.(t);
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
onRemoteResync: ({ actor: e }) => g(e, jn),
|
|
314
|
+
onNotice: c,
|
|
315
|
+
onError: e.onError
|
|
316
|
+
});
|
|
317
|
+
a() && p(() => {
|
|
318
|
+
for (let e of r.values()) clearTimeout(e);
|
|
319
|
+
for (let e of f.values()) clearTimeout(e);
|
|
320
|
+
r.clear(), f.clear();
|
|
321
|
+
});
|
|
322
|
+
let v = b(() => {
|
|
323
|
+
let t = _.members.value, n = t.find((e) => e.sessionId === _.sessionId)?.userId ?? e.user?.id ?? null, r = /* @__PURE__ */ new Map();
|
|
324
|
+
for (let e of t) {
|
|
325
|
+
if (e.sessionId === _.sessionId || e.userId !== null && e.userId === n) continue;
|
|
326
|
+
let t = e.userId === null ? `guest:${e.sessionId}` : `user:${e.userId}`;
|
|
327
|
+
r.has(t) || r.set(t, {
|
|
328
|
+
key: t,
|
|
329
|
+
type: e.type,
|
|
330
|
+
name: e.name,
|
|
331
|
+
...e.avatarUrl ? { avatarUrl: e.avatarUrl } : {},
|
|
332
|
+
color: e.color
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
return [...r.values()];
|
|
336
|
+
}), x = {
|
|
337
|
+
canUndo: _.canUndo,
|
|
338
|
+
canRedo: _.canRedo,
|
|
339
|
+
isNavigating: l(!1),
|
|
340
|
+
undo: _.undo,
|
|
341
|
+
redo: _.redo,
|
|
342
|
+
record: () => {},
|
|
343
|
+
recordDebounced: () => {},
|
|
344
|
+
clear: _.clearHistory,
|
|
345
|
+
destroy: () => {}
|
|
346
|
+
};
|
|
347
|
+
return {
|
|
348
|
+
core: _,
|
|
349
|
+
locks: _.locks,
|
|
350
|
+
attach: _.attach,
|
|
351
|
+
history: x,
|
|
352
|
+
people: v,
|
|
353
|
+
isLive: b(() => _.members.value.length > 0),
|
|
354
|
+
connection: _.connection,
|
|
355
|
+
notices: t,
|
|
356
|
+
dismissNotice: s,
|
|
357
|
+
reportReplaceRefused: (e) => o({
|
|
358
|
+
kind: "replaceRefused",
|
|
359
|
+
holders: [...new Map(e.map((e) => [e.type === "guest" ? `guest:${e.sessionId}` : e.id, {
|
|
360
|
+
name: e.name,
|
|
361
|
+
isGuest: e.type === "guest"
|
|
362
|
+
}])).values()]
|
|
363
|
+
}),
|
|
364
|
+
capability: {
|
|
365
|
+
lockOf: (e) => _.locks.value.get(e) ?? null,
|
|
366
|
+
agentHighlightOf: (e) => d.value.get(e) ?? null
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
//#endregion
|
|
34
371
|
//#region src/composables/useCommentsFeature.ts
|
|
35
|
-
function
|
|
36
|
-
let { provider: n, editor: r } = t, i =
|
|
372
|
+
function Pn(t) {
|
|
373
|
+
let { provider: n, editor: r } = t, i = ge({
|
|
37
374
|
provider: n,
|
|
38
375
|
getTemplateId: () => r.state.template?.id ?? null,
|
|
39
376
|
getUser: () => t.user ?? null,
|
|
40
377
|
onError: t.onError
|
|
41
378
|
});
|
|
42
|
-
|
|
379
|
+
Se({
|
|
43
380
|
comments: i,
|
|
44
381
|
provider: n,
|
|
45
382
|
getTemplateId: () => r.state.template?.id ?? null
|
|
46
383
|
});
|
|
47
|
-
let a = t.isOpen ??
|
|
384
|
+
let a = t.isOpen ?? l(!1), o = l(null), s = b(() => !!r.state.template?.id), c = i.unresolvedCount, u = b(() => t.user ? t.isAvailable?.() ?? !0 : !1);
|
|
48
385
|
e(u, (e) => {
|
|
49
386
|
e || (a.value = !1);
|
|
50
387
|
}), e([u, s], ([e, t]) => {
|
|
@@ -66,7 +403,7 @@ function fn(t) {
|
|
|
66
403
|
isOpen: a,
|
|
67
404
|
isAvailable: u,
|
|
68
405
|
hasTemplate: s,
|
|
69
|
-
unresolvedCount:
|
|
406
|
+
unresolvedCount: c,
|
|
70
407
|
filterBlockId: o,
|
|
71
408
|
toggle: d,
|
|
72
409
|
close: f,
|
|
@@ -76,7 +413,7 @@ function fn(t) {
|
|
|
76
413
|
openForBlock: p,
|
|
77
414
|
isBlockSaved: (e) => t.isBlockSaved?.(e) ?? !0,
|
|
78
415
|
isAvailable: u,
|
|
79
|
-
unresolvedCount:
|
|
416
|
+
unresolvedCount: c,
|
|
80
417
|
canCreate: i.canCreate,
|
|
81
418
|
canUpdate: i.canUpdate,
|
|
82
419
|
canDelete: i.canDelete,
|
|
@@ -86,27 +423,27 @@ function fn(t) {
|
|
|
86
423
|
}
|
|
87
424
|
//#endregion
|
|
88
425
|
//#region src/composables/useMediaFeature.ts
|
|
89
|
-
function
|
|
426
|
+
function Fn(e) {
|
|
90
427
|
return e instanceof Error ? e : Error(String(e));
|
|
91
428
|
}
|
|
92
|
-
function
|
|
429
|
+
function In(e, t, n) {
|
|
93
430
|
let r = e.maxFileSize ?? Infinity;
|
|
94
431
|
if (t.size > r) return /* @__PURE__ */ Error(`Image is too large (${t.size} bytes). Maximum allowed is ${r} bytes.`);
|
|
95
432
|
let i = e.mimeTypes;
|
|
96
433
|
return !i || (n && n.length > 0 ? n : Object.keys(i)).some((e) => i[e]?.includes(t.type) ?? !1) ? null : /* @__PURE__ */ Error(`Unsupported image type: ${t.type || "unknown"}.`);
|
|
97
434
|
}
|
|
98
|
-
function
|
|
99
|
-
let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a =
|
|
435
|
+
function Ln(e) {
|
|
436
|
+
let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a = l(!1), o = l(void 0), s = b(() => r?.()), c = b(() => !!n || typeof t?.create == "function"), u = null;
|
|
100
437
|
function d(e) {
|
|
101
438
|
a.value = !1, u?.(e), u = null;
|
|
102
439
|
}
|
|
103
|
-
function
|
|
104
|
-
d(
|
|
440
|
+
function f(e) {
|
|
441
|
+
d(Rn(e));
|
|
105
442
|
}
|
|
106
443
|
function m() {
|
|
107
444
|
d(null);
|
|
108
445
|
}
|
|
109
|
-
return
|
|
446
|
+
return p(() => {
|
|
110
447
|
u && d(null);
|
|
111
448
|
}), {
|
|
112
449
|
requestMedia: n || t ? async (e) => {
|
|
@@ -114,7 +451,7 @@ function hn(e) {
|
|
|
114
451
|
if (!t) return null;
|
|
115
452
|
if (e?.files?.length) {
|
|
116
453
|
if (typeof t.create != "function") return null;
|
|
117
|
-
let n = e.files[0], a =
|
|
454
|
+
let n = e.files[0], a = In(t, n, e.accept);
|
|
118
455
|
if (a) return i?.(a), null;
|
|
119
456
|
let o = r?.();
|
|
120
457
|
try {
|
|
@@ -125,28 +462,28 @@ function hn(e) {
|
|
|
125
462
|
try {
|
|
126
463
|
t.onCreated?.(e);
|
|
127
464
|
} catch (e) {
|
|
128
|
-
i?.(
|
|
465
|
+
i?.(Fn(e));
|
|
129
466
|
}
|
|
130
|
-
return
|
|
467
|
+
return Rn(e);
|
|
131
468
|
} catch (e) {
|
|
132
|
-
return i?.(
|
|
469
|
+
return i?.(Fn(e)), null;
|
|
133
470
|
}
|
|
134
471
|
}
|
|
135
472
|
return u &&= (u(null), null), o.value = e?.accept, a.value = !0, new Promise((e) => {
|
|
136
473
|
u = e;
|
|
137
474
|
});
|
|
138
475
|
} : null,
|
|
139
|
-
canDrop:
|
|
476
|
+
canDrop: c,
|
|
140
477
|
isModalOpen: a,
|
|
141
478
|
accept: o,
|
|
142
479
|
close: m,
|
|
143
|
-
select:
|
|
480
|
+
select: f,
|
|
144
481
|
templateId: s,
|
|
145
482
|
onError: i
|
|
146
483
|
};
|
|
147
484
|
}
|
|
148
|
-
function
|
|
149
|
-
let t =
|
|
485
|
+
function Rn(e) {
|
|
486
|
+
let t = ve(e.width, e.height);
|
|
150
487
|
return {
|
|
151
488
|
url: e.url,
|
|
152
489
|
alt: e.alt,
|
|
@@ -158,16 +495,16 @@ function gn(e) {
|
|
|
158
495
|
}
|
|
159
496
|
//#endregion
|
|
160
497
|
//#region src/composables/useSavedBlocksFeature.ts
|
|
161
|
-
function
|
|
162
|
-
let { provider: n, editor: r } = t, i =
|
|
498
|
+
function zn(t) {
|
|
499
|
+
let { provider: n, editor: r } = t, i = ye({
|
|
163
500
|
provider: n,
|
|
164
501
|
onError: t.onError
|
|
165
|
-
}), a =
|
|
502
|
+
}), a = l(!1), o = l(!1), s = l(!1), u = l(/* @__PURE__ */ new Set()), d = b(() => s.value), f = b(() => u.value.size);
|
|
166
503
|
function p(e) {
|
|
167
|
-
i.canCreate.value && (r.state.previewMode || (u.value = /* @__PURE__ */ new Set([e]),
|
|
504
|
+
i.canCreate.value && (r.state.previewMode || (u.value = /* @__PURE__ */ new Set([e]), s.value = !0));
|
|
168
505
|
}
|
|
169
506
|
function m(e) {
|
|
170
|
-
if (!
|
|
507
|
+
if (!s.value) return;
|
|
171
508
|
let t = new Set(u.value);
|
|
172
509
|
t.has(e) ? t.delete(e) : t.add(e), u.value = t;
|
|
173
510
|
}
|
|
@@ -175,18 +512,18 @@ function _n(t) {
|
|
|
175
512
|
return u.value.has(e);
|
|
176
513
|
}
|
|
177
514
|
function g() {
|
|
178
|
-
|
|
515
|
+
s.value = !1, u.value = /* @__PURE__ */ new Set();
|
|
179
516
|
}
|
|
180
517
|
function _() {
|
|
181
|
-
f.value !== 0 && (
|
|
518
|
+
f.value !== 0 && (s.value = !1, a.value = !0, C());
|
|
182
519
|
}
|
|
183
|
-
function
|
|
520
|
+
function v() {
|
|
184
521
|
a.value = !1, u.value = /* @__PURE__ */ new Set();
|
|
185
522
|
}
|
|
186
523
|
e(() => r.state.previewMode, (e) => {
|
|
187
|
-
e &&
|
|
524
|
+
e && s.value && g();
|
|
188
525
|
});
|
|
189
|
-
function
|
|
526
|
+
function y() {
|
|
190
527
|
o.value = !0, C();
|
|
191
528
|
}
|
|
192
529
|
function x() {
|
|
@@ -194,7 +531,7 @@ function _n(t) {
|
|
|
194
531
|
}
|
|
195
532
|
function S(e, t) {
|
|
196
533
|
for (let n = 0; n < e.content.length; n++) {
|
|
197
|
-
let i =
|
|
534
|
+
let i = re(e.content[n]), a = t === void 0 ? void 0 : t + n;
|
|
198
535
|
r.addBlock(i, void 0, void 0, a);
|
|
199
536
|
}
|
|
200
537
|
o.value = !1;
|
|
@@ -202,8 +539,8 @@ function _n(t) {
|
|
|
202
539
|
function C() {
|
|
203
540
|
i.load().catch(() => {});
|
|
204
541
|
}
|
|
205
|
-
let w =
|
|
206
|
-
return
|
|
542
|
+
let w = b(() => i.savedBlocks.value.length), T = b(() => t.isAvailable?.() ?? !0);
|
|
543
|
+
return c(dt, i), {
|
|
207
544
|
headless: i,
|
|
208
545
|
isPicking: d,
|
|
209
546
|
pickedIds: u,
|
|
@@ -214,9 +551,9 @@ function _n(t) {
|
|
|
214
551
|
confirmPicking: _,
|
|
215
552
|
cancelPicking: g,
|
|
216
553
|
isSaveDialogOpen: a,
|
|
217
|
-
closeSaveDialog:
|
|
554
|
+
closeSaveDialog: v,
|
|
218
555
|
isBrowserOpen: o,
|
|
219
|
-
openBrowser:
|
|
556
|
+
openBrowser: y,
|
|
220
557
|
closeBrowser: x,
|
|
221
558
|
insert: S,
|
|
222
559
|
refresh: C,
|
|
@@ -227,7 +564,7 @@ function _n(t) {
|
|
|
227
564
|
isPicking: d,
|
|
228
565
|
confirmPicking: _,
|
|
229
566
|
cancelPicking: g,
|
|
230
|
-
openBrowser:
|
|
567
|
+
openBrowser: y,
|
|
231
568
|
count: w,
|
|
232
569
|
isAvailable: T,
|
|
233
570
|
canCreate: i.canCreate,
|
|
@@ -240,11 +577,11 @@ function _n(t) {
|
|
|
240
577
|
}
|
|
241
578
|
//#endregion
|
|
242
579
|
//#region src/composables/useTemplatesFeature.ts
|
|
243
|
-
var
|
|
244
|
-
function
|
|
245
|
-
let { provider: t, editor: n } = e, r =
|
|
580
|
+
var Bn = 3e3;
|
|
581
|
+
function Vn(e) {
|
|
582
|
+
let { provider: t, editor: n } = e, r = l("idle"), i = l(""), { start: a, stop: o } = Ce(() => {
|
|
246
583
|
r.value = "idle";
|
|
247
|
-
},
|
|
584
|
+
}, Bn, { immediate: !1 }), s = b(() => typeof t.create == "function"), c = b(() => typeof t.save == "function"), u = b(() => e.isAvailable?.() ?? !0), d = b(() => n.state.template?.name), f = b(() => {
|
|
248
585
|
let e = n.state.template;
|
|
249
586
|
return e?.updatedAt ? {
|
|
250
587
|
iso: e.updatedAt,
|
|
@@ -253,7 +590,7 @@ function yn(e) {
|
|
|
253
590
|
iso: e.createdAt,
|
|
254
591
|
kind: "createdAt"
|
|
255
592
|
} : null;
|
|
256
|
-
}), p =
|
|
593
|
+
}), p = b(() => n.state.template !== null), m = b(() => n.state.isSaving);
|
|
257
594
|
function h() {
|
|
258
595
|
i.value = "", r.value = "saved", o(), a();
|
|
259
596
|
}
|
|
@@ -268,7 +605,7 @@ function yn(e) {
|
|
|
268
605
|
throw g(e), e;
|
|
269
606
|
}
|
|
270
607
|
}
|
|
271
|
-
async function
|
|
608
|
+
async function v(e) {
|
|
272
609
|
try {
|
|
273
610
|
let t = await n.create(e);
|
|
274
611
|
return o(), r.value = "idle", i.value = "", t;
|
|
@@ -276,7 +613,7 @@ function yn(e) {
|
|
|
276
613
|
throw g(e), e;
|
|
277
614
|
}
|
|
278
615
|
}
|
|
279
|
-
function
|
|
616
|
+
function y(e) {
|
|
280
617
|
return o(), r.value = "idle", i.value = "", n.load(e);
|
|
281
618
|
}
|
|
282
619
|
let x = !1;
|
|
@@ -288,7 +625,7 @@ function yn(e) {
|
|
|
288
625
|
});
|
|
289
626
|
}
|
|
290
627
|
function C() {
|
|
291
|
-
return !
|
|
628
|
+
return !c.value || !p.value || m.value;
|
|
292
629
|
}
|
|
293
630
|
function w(t = "manual") {
|
|
294
631
|
if (C()) return;
|
|
@@ -296,7 +633,7 @@ function yn(e) {
|
|
|
296
633
|
n ? n.tryRunSave(() => S(t)) : S(t);
|
|
297
634
|
}
|
|
298
635
|
function T() {
|
|
299
|
-
if (!
|
|
636
|
+
if (!c.value || !p.value) return;
|
|
300
637
|
if (m.value) {
|
|
301
638
|
x = !0;
|
|
302
639
|
return;
|
|
@@ -308,12 +645,12 @@ function yn(e) {
|
|
|
308
645
|
let t = e.trim();
|
|
309
646
|
t && t !== n.state.template?.name && (n.setName(t), w("rename"));
|
|
310
647
|
}
|
|
311
|
-
return e.guardUnsavedChanges !== !1 &&
|
|
648
|
+
return e.guardUnsavedChanges !== !1 && Ee(window, "beforeunload", (e) => {
|
|
312
649
|
n.state.isDirty && (e.preventDefault(), e.returnValue = "");
|
|
313
650
|
}), {
|
|
314
651
|
save: _,
|
|
315
|
-
create:
|
|
316
|
-
load:
|
|
652
|
+
create: v,
|
|
653
|
+
load: y,
|
|
317
654
|
requestSave: w,
|
|
318
655
|
requestAutoSave: T,
|
|
319
656
|
rename: E,
|
|
@@ -324,7 +661,7 @@ function yn(e) {
|
|
|
324
661
|
status: r,
|
|
325
662
|
errorMessage: i,
|
|
326
663
|
canCreate: s,
|
|
327
|
-
canSave:
|
|
664
|
+
canSave: c,
|
|
328
665
|
isAvailable: u,
|
|
329
666
|
capability: {
|
|
330
667
|
save: w,
|
|
@@ -336,22 +673,22 @@ function yn(e) {
|
|
|
336
673
|
status: r,
|
|
337
674
|
errorMessage: i,
|
|
338
675
|
canCreate: s,
|
|
339
|
-
canSave:
|
|
676
|
+
canSave: c,
|
|
340
677
|
isAvailable: u
|
|
341
678
|
}
|
|
342
679
|
};
|
|
343
680
|
}
|
|
344
681
|
//#endregion
|
|
345
682
|
//#region src/utils/toMjml.ts
|
|
346
|
-
async function
|
|
683
|
+
async function Hn() {
|
|
347
684
|
try {
|
|
348
|
-
return await import("./chunks/src-
|
|
685
|
+
return await import("./chunks/src-B77z1iw4.js");
|
|
349
686
|
} catch {
|
|
350
687
|
return null;
|
|
351
688
|
}
|
|
352
689
|
}
|
|
353
|
-
async function
|
|
354
|
-
let t = await
|
|
690
|
+
async function Un(e) {
|
|
691
|
+
let t = await Hn();
|
|
355
692
|
if (!t) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
356
693
|
let n = e.getCustomBlockStylesheet, r = e.getFonts?.(), i = e.getLayout?.();
|
|
357
694
|
return t.renderToMjml(e.getContent(), {
|
|
@@ -367,34 +704,34 @@ async function xn(e) {
|
|
|
367
704
|
}
|
|
368
705
|
//#endregion
|
|
369
706
|
//#region src/composables/useTestEmailFeature.ts
|
|
370
|
-
var
|
|
371
|
-
function
|
|
707
|
+
var Wn = 1200;
|
|
708
|
+
function Gn(e) {
|
|
372
709
|
return e instanceof Error ? e : Error(String(e));
|
|
373
710
|
}
|
|
374
|
-
function
|
|
375
|
-
let { provider: t } = e, n =
|
|
376
|
-
function
|
|
711
|
+
function Kn(e) {
|
|
712
|
+
let { provider: t } = e, n = l(!1), r = l(!1), i = l(!1), a = l(null), o = null, s = !1;
|
|
713
|
+
function c() {
|
|
377
714
|
o !== null && (clearTimeout(o), o = null);
|
|
378
715
|
}
|
|
379
|
-
|
|
380
|
-
let u =
|
|
716
|
+
p(c);
|
|
717
|
+
let u = b(() => t.allowedRecipients), d = b(() => {
|
|
381
718
|
let e = t.defaultRecipient;
|
|
382
719
|
if (e === void 0) return;
|
|
383
720
|
let n = u.value;
|
|
384
721
|
if (!n || n.includes(e)) return e;
|
|
385
|
-
}),
|
|
722
|
+
}), f = b(() => u.value?.length === 0 ? !1 : e.isAvailable?.() ?? !0);
|
|
386
723
|
function m() {
|
|
387
|
-
|
|
724
|
+
f.value && (a.value = null, i.value = !1, c(), n.value = !0);
|
|
388
725
|
}
|
|
389
726
|
function h() {
|
|
390
|
-
|
|
727
|
+
c(), n.value = !1, i.value = !1;
|
|
391
728
|
}
|
|
392
729
|
async function g() {
|
|
393
730
|
if (t.includeMjml && e.renderMjml) try {
|
|
394
731
|
return await e.renderMjml();
|
|
395
732
|
} catch (t) {
|
|
396
|
-
if ((e.usesLocalRenderer?.() ?? !0) && await
|
|
397
|
-
s || (s = !0,
|
|
733
|
+
if ((e.usesLocalRenderer?.() ?? !0) && await Hn() === null) {
|
|
734
|
+
s || (s = !0, Et.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
398
735
|
return;
|
|
399
736
|
}
|
|
400
737
|
throw t;
|
|
@@ -404,10 +741,10 @@ function wn(e) {
|
|
|
404
741
|
try {
|
|
405
742
|
t.onSent?.(n);
|
|
406
743
|
} catch (t) {
|
|
407
|
-
e.onError?.(
|
|
744
|
+
e.onError?.(Gn(t));
|
|
408
745
|
}
|
|
409
746
|
}
|
|
410
|
-
async function
|
|
747
|
+
async function v(n) {
|
|
411
748
|
if (r.value) return;
|
|
412
749
|
let s = u.value;
|
|
413
750
|
if (s && !s.includes(n)) a.value = { kind: "recipientNotAllowed" };
|
|
@@ -420,9 +757,9 @@ function wn(e) {
|
|
|
420
757
|
...r === void 0 ? {} : { mjml: r },
|
|
421
758
|
...s === void 0 ? {} : { allowedRecipients: s }
|
|
422
759
|
};
|
|
423
|
-
await t.send(a), i.value = !0, o = setTimeout(h,
|
|
760
|
+
await t.send(a), i.value = !0, o = setTimeout(h, Wn), _(a);
|
|
424
761
|
} catch (t) {
|
|
425
|
-
let n =
|
|
762
|
+
let n = Gn(t);
|
|
426
763
|
a.value = {
|
|
427
764
|
kind: "provider",
|
|
428
765
|
message: n.message
|
|
@@ -439,129 +776,136 @@ function wn(e) {
|
|
|
439
776
|
isSending: r,
|
|
440
777
|
justSent: i,
|
|
441
778
|
error: a,
|
|
442
|
-
send:
|
|
779
|
+
send: v,
|
|
443
780
|
allowedRecipients: u,
|
|
444
781
|
defaultRecipient: d,
|
|
445
|
-
isAvailable:
|
|
782
|
+
isAvailable: f,
|
|
446
783
|
capability: {
|
|
447
784
|
open: m,
|
|
448
|
-
isAvailable:
|
|
785
|
+
isAvailable: f
|
|
449
786
|
}
|
|
450
787
|
};
|
|
451
788
|
}
|
|
452
789
|
//#endregion
|
|
453
790
|
//#region src/composables/useVersionHistoryFeature.ts
|
|
454
|
-
function
|
|
455
|
-
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o =
|
|
791
|
+
function qn(e) {
|
|
792
|
+
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = pe({
|
|
456
793
|
provider: t,
|
|
457
794
|
getTemplateId: () => n.state.template?.id ?? null,
|
|
458
795
|
onError: e.onError
|
|
459
|
-
}),
|
|
460
|
-
|
|
461
|
-
|
|
796
|
+
}), c = l(null), u = l(null), d = l(!1), f = l(!1), m = !1;
|
|
797
|
+
p(() => {
|
|
798
|
+
m = !0;
|
|
462
799
|
});
|
|
463
|
-
let
|
|
464
|
-
function
|
|
465
|
-
|
|
466
|
-
}
|
|
467
|
-
async function
|
|
468
|
-
if (
|
|
469
|
-
if (
|
|
470
|
-
let t =
|
|
800
|
+
let h = b(() => s.versions.value), g = b(() => s.isLoading.value), _ = b(() => s.isRestoring.value), v = s.canCreate, y = s.canRestore, x = b(() => !!n.state.template?.id), S = b(() => e.isAvailable?.() ?? !0), C = b(() => c.value !== null), w = b(() => e.saveBeforeRestore?.canSave() === !0), T = b(() => f.value || _.value);
|
|
801
|
+
function E() {
|
|
802
|
+
x.value && s.load().catch(() => {});
|
|
803
|
+
}
|
|
804
|
+
async function D(e) {
|
|
805
|
+
if (m) return;
|
|
806
|
+
if (d.value = !1, c.value) {
|
|
807
|
+
let t = s.peekContent(e);
|
|
471
808
|
if (t) {
|
|
472
|
-
|
|
809
|
+
c.value = e, n.setContent(t, !1);
|
|
473
810
|
return;
|
|
474
811
|
}
|
|
475
|
-
let r = await
|
|
476
|
-
if (
|
|
477
|
-
|
|
812
|
+
let r = await s.resolveContent(e);
|
|
813
|
+
if (m) return;
|
|
814
|
+
c.value = e, n.setContent(r, !1);
|
|
478
815
|
return;
|
|
479
816
|
}
|
|
480
|
-
let t = await
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
async function D() {
|
|
484
|
-
s.value && (n.state.isDirty ? u.value = !0 : await j());
|
|
817
|
+
let t = await s.resolveContent(e);
|
|
818
|
+
m || (u.value = X(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
|
|
485
819
|
}
|
|
486
820
|
async function O() {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
821
|
+
c.value && (n.state.isDirty ? d.value = !0 : await M());
|
|
822
|
+
}
|
|
823
|
+
async function k() {
|
|
824
|
+
let t = c.value, r = u.value, i = e.saveBeforeRestore;
|
|
825
|
+
if (t && r && i?.canSave() && !T.value) {
|
|
826
|
+
n.setContent(r, !1), f.value = !0;
|
|
490
827
|
try {
|
|
491
828
|
await i.save();
|
|
492
829
|
} catch {
|
|
493
|
-
if (
|
|
494
|
-
let e =
|
|
830
|
+
if (m) return;
|
|
831
|
+
let e = s.peekContent(t);
|
|
495
832
|
e && n.setContent(e, !1);
|
|
496
833
|
return;
|
|
497
834
|
} finally {
|
|
498
|
-
|
|
835
|
+
m || (f.value = !1);
|
|
499
836
|
}
|
|
500
|
-
|
|
837
|
+
m || await M();
|
|
501
838
|
}
|
|
502
839
|
}
|
|
503
|
-
async function
|
|
504
|
-
|
|
840
|
+
async function A() {
|
|
841
|
+
T.value || await M();
|
|
505
842
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
843
|
+
function j() {
|
|
844
|
+
d.value = !1;
|
|
508
845
|
}
|
|
509
|
-
async function
|
|
510
|
-
if (
|
|
511
|
-
let e = await
|
|
512
|
-
if (
|
|
846
|
+
async function M() {
|
|
847
|
+
if (c.value) try {
|
|
848
|
+
let e = await s.restore(c.value.id);
|
|
849
|
+
if (m) return;
|
|
850
|
+
if (o) {
|
|
851
|
+
if (await o.catchUp(), m) return;
|
|
852
|
+
r.clear(), i.reset();
|
|
853
|
+
} else ee(e.content);
|
|
854
|
+
if (await s.load(), m) return;
|
|
513
855
|
} catch (e) {
|
|
514
|
-
|
|
856
|
+
!m && u.value && n.setContent(u.value, !1);
|
|
857
|
+
let t = e;
|
|
858
|
+
throw o && t?.code === "locked_by_others" && o.reportReplaceRefused(Array.isArray(t.holders) ? t.holders : []), e;
|
|
515
859
|
} finally {
|
|
516
|
-
|
|
860
|
+
m || (c.value = null, u.value = null, d.value = !1, a?.resume(), o?.resume());
|
|
517
861
|
}
|
|
518
862
|
}
|
|
519
|
-
function
|
|
863
|
+
function ee(e) {
|
|
520
864
|
n.setContent(e, !1), r.clear(), i.reset();
|
|
521
865
|
}
|
|
522
866
|
function N() {
|
|
523
|
-
|
|
867
|
+
c.value && u.value && (n.setContent(u.value, !1), c.value = null, u.value = null, d.value = !1, a?.resume(), o?.resume());
|
|
524
868
|
}
|
|
525
869
|
return {
|
|
526
|
-
headless:
|
|
527
|
-
versions:
|
|
528
|
-
isLoading:
|
|
529
|
-
isRestoring:
|
|
530
|
-
canCreate:
|
|
870
|
+
headless: s,
|
|
871
|
+
versions: h,
|
|
872
|
+
isLoading: g,
|
|
873
|
+
isRestoring: _,
|
|
874
|
+
canCreate: v,
|
|
531
875
|
canRestore: y,
|
|
532
|
-
hasTemplate:
|
|
533
|
-
isAvailable:
|
|
534
|
-
previewingVersion:
|
|
535
|
-
isPreviewing:
|
|
536
|
-
isConfirmingRestore:
|
|
537
|
-
canSaveBeforeRestore:
|
|
538
|
-
isConfirmBusy:
|
|
539
|
-
refresh:
|
|
540
|
-
navigate:
|
|
541
|
-
requestRestore:
|
|
542
|
-
saveAndRestore:
|
|
543
|
-
discardAndRestore:
|
|
544
|
-
cancelRestoreConfirm:
|
|
545
|
-
confirmRestore:
|
|
876
|
+
hasTemplate: x,
|
|
877
|
+
isAvailable: S,
|
|
878
|
+
previewingVersion: c,
|
|
879
|
+
isPreviewing: C,
|
|
880
|
+
isConfirmingRestore: d,
|
|
881
|
+
canSaveBeforeRestore: w,
|
|
882
|
+
isConfirmBusy: T,
|
|
883
|
+
refresh: E,
|
|
884
|
+
navigate: D,
|
|
885
|
+
requestRestore: O,
|
|
886
|
+
saveAndRestore: k,
|
|
887
|
+
discardAndRestore: A,
|
|
888
|
+
cancelRestoreConfirm: j,
|
|
889
|
+
confirmRestore: M,
|
|
546
890
|
cancelPreview: N,
|
|
547
891
|
capability: {
|
|
548
|
-
refresh:
|
|
549
|
-
isPreviewing:
|
|
550
|
-
hasTemplate:
|
|
551
|
-
isAvailable:
|
|
552
|
-
canCreate:
|
|
892
|
+
refresh: E,
|
|
893
|
+
isPreviewing: C,
|
|
894
|
+
hasTemplate: x,
|
|
895
|
+
isAvailable: S,
|
|
896
|
+
canCreate: v,
|
|
553
897
|
canRestore: y
|
|
554
898
|
}
|
|
555
899
|
};
|
|
556
900
|
}
|
|
557
901
|
//#endregion
|
|
558
902
|
//#region src/types/auto-save.ts
|
|
559
|
-
function
|
|
903
|
+
function Jn(e, t) {
|
|
560
904
|
return e ?? t;
|
|
561
905
|
}
|
|
562
906
|
//#endregion
|
|
563
907
|
//#region src/utils/resolveLintOptions.ts
|
|
564
|
-
function
|
|
908
|
+
function Yn(e) {
|
|
565
909
|
return {
|
|
566
910
|
...e.lint,
|
|
567
911
|
locale: e.locale
|
|
@@ -569,7 +913,7 @@ function Dn(e) {
|
|
|
569
913
|
}
|
|
570
914
|
//#endregion
|
|
571
915
|
//#region src/utils/resolveInsertPosition.ts
|
|
572
|
-
function
|
|
916
|
+
function Xn(e) {
|
|
573
917
|
let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
|
|
574
918
|
if (!n) return {};
|
|
575
919
|
let a = r(n);
|
|
@@ -587,8 +931,8 @@ function On(e) {
|
|
|
587
931
|
}
|
|
588
932
|
//#endregion
|
|
589
933
|
//#region src/utils/insertBlockAtSelection.ts
|
|
590
|
-
function
|
|
591
|
-
let { targetSectionId: n, columnIndex: r, index: i } =
|
|
934
|
+
function Zn(e, t) {
|
|
935
|
+
let { targetSectionId: n, columnIndex: r, index: i } = Xn({
|
|
592
936
|
blockType: t.type,
|
|
593
937
|
selectedBlockId: e.state.selectedBlockId,
|
|
594
938
|
findBlockLocation: e.findBlockLocation,
|
|
@@ -597,163 +941,52 @@ function kn(e, t) {
|
|
|
597
941
|
return e.addBlock(t, n, r, i), e.findBlockLocation(t.id) ? (e.selectBlock(t.id), !0) : !1;
|
|
598
942
|
}
|
|
599
943
|
//#endregion
|
|
600
|
-
//#region src/utils/
|
|
601
|
-
function
|
|
602
|
-
let
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
function jn(e, t, n) {
|
|
606
|
-
let r = [], i = (t, n, i) => {
|
|
607
|
-
let a = An(t), o = a.exec(e);
|
|
608
|
-
for (; o !== null;) {
|
|
609
|
-
let t = o.index, s = t + o[0].length;
|
|
610
|
-
o[0].length === 0 ? a.lastIndex++ : r.some((e) => t < e.end && s > e.start) || r.push({
|
|
611
|
-
start: t,
|
|
612
|
-
end: s,
|
|
613
|
-
attr: n,
|
|
614
|
-
value: o[0],
|
|
615
|
-
label: i(o[0])
|
|
616
|
-
}), o = a.exec(e);
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
return i(n.logic, "data-logic-merge-tag", (e) => q(e, n)), i(n.value, "data-merge-tag", (e) => ie(e, t)), r.sort((e, t) => e.start - t.start);
|
|
620
|
-
}
|
|
621
|
-
function Mn(e) {
|
|
622
|
-
let t = e.createTreeWalker(e.body, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT, { acceptNode(e) {
|
|
623
|
-
if (e.nodeType !== 1) return NodeFilter.FILTER_ACCEPT;
|
|
624
|
-
let t = e;
|
|
625
|
-
return t.hasAttribute("data-merge-tag") || t.hasAttribute("data-logic-merge-tag") ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_SKIP;
|
|
626
|
-
} }), n = [], r = t.nextNode();
|
|
627
|
-
for (; r !== null;) n.push(r), r = t.nextNode();
|
|
628
|
-
return n;
|
|
629
|
-
}
|
|
630
|
-
function Nn(e, t, n) {
|
|
631
|
-
if (!e || !te(e, n) || typeof DOMParser > "u") return e;
|
|
632
|
-
let r = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html"), i = 0;
|
|
633
|
-
for (let e of Mn(r)) {
|
|
634
|
-
let a = e.data, o = jn(a, t, n);
|
|
635
|
-
if (o.length === 0) continue;
|
|
636
|
-
let s = r.createDocumentFragment(), c = 0;
|
|
637
|
-
for (let e of o) {
|
|
638
|
-
e.start > c && s.appendChild(r.createTextNode(a.substring(c, e.start)));
|
|
639
|
-
let t = r.createElement("span");
|
|
640
|
-
t.setAttribute(e.attr, e.value), t.textContent = e.label, s.appendChild(t), c = e.end;
|
|
641
|
-
}
|
|
642
|
-
c < a.length && s.appendChild(r.createTextNode(a.substring(c))), e.parentNode?.replaceChild(s, e), i += o.length;
|
|
643
|
-
}
|
|
644
|
-
return i === 0 ? e : r.body.innerHTML;
|
|
645
|
-
}
|
|
646
|
-
function Pn(e, t, n) {
|
|
647
|
-
if (e.type === "section") {
|
|
648
|
-
if (!Array.isArray(e.children)) return e;
|
|
649
|
-
let r = !1, i = e.children.map((e) => {
|
|
650
|
-
if (!Array.isArray(e)) return e;
|
|
651
|
-
let i = !1, a = e.map((e) => {
|
|
652
|
-
let r = Pn(e, t, n);
|
|
653
|
-
return r !== e && (i = !0), r;
|
|
654
|
-
});
|
|
655
|
-
return i ? (r = !0, a) : e;
|
|
656
|
-
});
|
|
657
|
-
return r ? {
|
|
658
|
-
...e,
|
|
659
|
-
children: i
|
|
660
|
-
} : e;
|
|
661
|
-
}
|
|
662
|
-
if (e.type === "wrapper") {
|
|
663
|
-
if (!Array.isArray(e.children)) return e;
|
|
664
|
-
let r = !1, i = e.children.map((e) => {
|
|
665
|
-
let i = Pn(e, t, n);
|
|
666
|
-
return i !== e && (r = !0), i;
|
|
667
|
-
});
|
|
668
|
-
return r ? {
|
|
669
|
-
...e,
|
|
670
|
-
children: i
|
|
671
|
-
} : e;
|
|
672
|
-
}
|
|
673
|
-
if (e.type !== "title" && e.type !== "paragraph" || typeof e.content != "string") return e;
|
|
674
|
-
let r = Nn(e.content, t, n);
|
|
675
|
-
return r === e.content ? e : {
|
|
676
|
-
...e,
|
|
677
|
-
content: r
|
|
678
|
-
};
|
|
679
|
-
}
|
|
680
|
-
function Fn(e, t, n) {
|
|
681
|
-
if (!e || !Array.isArray(e.blocks)) return e;
|
|
682
|
-
let r = !1, i = e.blocks.map((e) => {
|
|
683
|
-
let i = Pn(e, t, n);
|
|
684
|
-
return i !== e && (r = !0), i;
|
|
685
|
-
});
|
|
686
|
-
return r ? {
|
|
687
|
-
...e,
|
|
688
|
-
blocks: i
|
|
689
|
-
} : e;
|
|
690
|
-
}
|
|
691
|
-
function In(e, t) {
|
|
692
|
-
return Fn(Rn(e), t?.tags ?? [], Y(t?.syntax));
|
|
693
|
-
}
|
|
694
|
-
function Ln(e, t) {
|
|
695
|
-
return Pn(e, t?.tags ?? [], Y(t?.syntax));
|
|
696
|
-
}
|
|
697
|
-
function Rn(e) {
|
|
698
|
-
return typeof e == "object" && e ? G(e) : e;
|
|
699
|
-
}
|
|
700
|
-
function zn(e, t) {
|
|
701
|
-
return {
|
|
702
|
-
get state() {
|
|
703
|
-
return e.state;
|
|
704
|
-
},
|
|
705
|
-
get content() {
|
|
706
|
-
return e.content;
|
|
707
|
-
},
|
|
708
|
-
setContent: (n, r) => e.setContent(In(n, t), r)
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
function Bn(e, t) {
|
|
944
|
+
//#region src/utils/withCollaborativeSave.ts
|
|
945
|
+
function Qn(e, t, n) {
|
|
946
|
+
let { save: r, create: i } = e;
|
|
947
|
+
if (typeof r != "function") return e;
|
|
948
|
+
let a = /* @__PURE__ */ new Map(), o = (e) => (a.set(e.id, e.name), e);
|
|
712
949
|
return {
|
|
713
950
|
...e,
|
|
714
|
-
async load(
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
951
|
+
load: async (t) => o(await e.load(t)),
|
|
952
|
+
create: typeof i == "function" ? async (e) => o(await i(e)) : !1,
|
|
953
|
+
save: async (i, s) => {
|
|
954
|
+
if (await t.settle(), s.name !== void 0 && s.name !== a.get(i)) return o(await r(i, { name: s.name }));
|
|
955
|
+
let c = n();
|
|
956
|
+
return c && c.id === i ? c : o(await e.load(i));
|
|
720
957
|
}
|
|
721
958
|
};
|
|
722
959
|
}
|
|
723
960
|
//#endregion
|
|
724
961
|
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
725
|
-
var
|
|
962
|
+
var $n = ["aria-label"], er = ["lang", "dir"], tr = {
|
|
726
963
|
key: 0,
|
|
727
964
|
role: "status",
|
|
728
965
|
"aria-busy": "true",
|
|
729
966
|
"data-testid": "preview-resolution-loading",
|
|
730
967
|
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-6"
|
|
731
|
-
},
|
|
968
|
+
}, nr = { class: "tpl:sr-only" }, rr = {
|
|
732
969
|
key: 1,
|
|
733
970
|
role: "status",
|
|
734
971
|
"data-testid": "preview-resolution-failed",
|
|
735
972
|
class: "tpl:mx-6 tpl:mt-4 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
736
|
-
},
|
|
973
|
+
}, ir = {
|
|
737
974
|
key: 0,
|
|
738
975
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
739
|
-
},
|
|
976
|
+
}, ar = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, or = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, sr = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, cr = {
|
|
740
977
|
key: 0,
|
|
741
978
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
742
|
-
},
|
|
979
|
+
}, lr = {
|
|
743
980
|
key: 1,
|
|
744
981
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
745
|
-
},
|
|
746
|
-
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-bold",
|
|
747
|
-
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
748
|
-
}, er = /*#__PURE__*/ qt(/* @__PURE__ */ u({
|
|
982
|
+
}, ur = { class: "tpl:relative" }, dr = /*#__PURE__*/ Zt(/* @__PURE__ */ d({
|
|
749
983
|
__name: "Canvas",
|
|
750
984
|
props: {
|
|
751
985
|
viewport: {},
|
|
752
986
|
content: {},
|
|
753
987
|
selectedBlockId: {},
|
|
754
988
|
darkMode: { type: Boolean },
|
|
755
|
-
previewMode: { type: Boolean }
|
|
756
|
-
lockedBlocks: {}
|
|
989
|
+
previewMode: { type: Boolean }
|
|
757
990
|
},
|
|
758
991
|
emits: [
|
|
759
992
|
"select-block",
|
|
@@ -762,105 +995,105 @@ var Vn = ["aria-label"], Hn = ["lang", "dir"], Un = {
|
|
|
762
995
|
],
|
|
763
996
|
setup(e, { emit: i }) {
|
|
764
997
|
let a = {
|
|
765
|
-
section:
|
|
766
|
-
title:
|
|
767
|
-
paragraph:
|
|
768
|
-
image:
|
|
769
|
-
button:
|
|
770
|
-
divider:
|
|
771
|
-
spacer:
|
|
772
|
-
html:
|
|
773
|
-
social:
|
|
774
|
-
menu:
|
|
775
|
-
table:
|
|
776
|
-
video:
|
|
777
|
-
custom:
|
|
778
|
-
wrapper:
|
|
779
|
-
},
|
|
780
|
-
|
|
781
|
-
let
|
|
782
|
-
get: () =>
|
|
998
|
+
section: Ye,
|
|
999
|
+
title: Ke,
|
|
1000
|
+
paragraph: Be,
|
|
1001
|
+
image: Xe,
|
|
1002
|
+
button: tt,
|
|
1003
|
+
divider: Ue,
|
|
1004
|
+
spacer: We,
|
|
1005
|
+
html: qe,
|
|
1006
|
+
social: Le,
|
|
1007
|
+
menu: Ve,
|
|
1008
|
+
table: Ze,
|
|
1009
|
+
video: Je,
|
|
1010
|
+
custom: He,
|
|
1011
|
+
wrapper: an
|
|
1012
|
+
}, o = e, d = i, { t: p } = Q(), { t: m } = Qt(), _ = nt(gt, "Canvas"), y = nt(wt, "Canvas"), C = t(ht, null), w = t(Ct, null), T = t(_t, {}), O = t(st, null), k = t(ft, null);
|
|
1013
|
+
c(ut, b(() => o.previewMode && (O?.value ?? !1) && !k?.isConfigured));
|
|
1014
|
+
let j = b(() => (T.plan?.hasFeature("aiGeneration") ?? !1) && (T.ai?.isFeatureEnabled("chat") ?? !1)), N = b(() => (T.plan?.hasFeature("aiGeneration") ?? !1) && (T.ai?.isFeatureEnabled("designToTemplate") ?? !1)), I = t(St, null), L = b({
|
|
1015
|
+
get: () => o.content.blocks,
|
|
783
1016
|
set: (e) => {
|
|
784
|
-
|
|
785
|
-
...
|
|
1017
|
+
_.setContent({
|
|
1018
|
+
...o.content,
|
|
786
1019
|
blocks: e
|
|
787
1020
|
});
|
|
788
1021
|
}
|
|
789
|
-
}),
|
|
790
|
-
function
|
|
791
|
-
|
|
1022
|
+
}), R = b(() => _e(o.content.settings, o.viewport)), te = b(() => R.value + 192), ne = b(() => Pe(o.content.settings, y.resolveFontFamily)), B = b(() => o.content.settings?.locale?.trim() || void 0), V = b(() => H(o.content.settings)), U = b(() => L.value.length === 0 && !o.previewMode), W = l(0), G = b(() => U.value && W.value > 0);
|
|
1023
|
+
function K() {
|
|
1024
|
+
U.value && (W.value += 1);
|
|
792
1025
|
}
|
|
793
|
-
function
|
|
794
|
-
|
|
1026
|
+
function q() {
|
|
1027
|
+
U.value && (W.value = Math.max(0, W.value - 1));
|
|
795
1028
|
}
|
|
796
|
-
function
|
|
797
|
-
|
|
1029
|
+
function J() {
|
|
1030
|
+
W.value = 0;
|
|
798
1031
|
}
|
|
799
|
-
function
|
|
800
|
-
|
|
1032
|
+
function Y(e) {
|
|
1033
|
+
o.previewMode || T.savedBlocks?.isPicking.value || e.target === e.currentTarget && d("select-block", null);
|
|
801
1034
|
}
|
|
802
|
-
function
|
|
803
|
-
return
|
|
1035
|
+
function X(e) {
|
|
1036
|
+
return De(e, w, a);
|
|
804
1037
|
}
|
|
805
1038
|
function Z(e) {
|
|
806
|
-
return
|
|
1039
|
+
return T.collaboration?.lockOf(e) != null;
|
|
807
1040
|
}
|
|
808
1041
|
function re(e) {
|
|
809
|
-
if (
|
|
810
|
-
let t =
|
|
811
|
-
t?.isPicking.value ? t.togglePick(e) :
|
|
1042
|
+
if (o.previewMode || Z(e)) return;
|
|
1043
|
+
let t = T.savedBlocks;
|
|
1044
|
+
t?.isPicking.value ? t.togglePick(e) : d("select-block", e);
|
|
812
1045
|
}
|
|
813
1046
|
function ie(e) {
|
|
814
|
-
return
|
|
1047
|
+
return T.savedBlocks?.isPicked(e) ?? !1;
|
|
815
1048
|
}
|
|
816
|
-
let ae =
|
|
1049
|
+
let ae = b(() => T.savedBlocks?.isPicking.value === !0);
|
|
817
1050
|
function oe(e, t) {
|
|
818
|
-
e.type === "custom" &&
|
|
1051
|
+
e.type === "custom" && _.updateBlock(e.id, {
|
|
819
1052
|
fieldValues: t.fieldValues,
|
|
820
1053
|
dataSourceFetched: t.dataSourceFetched
|
|
821
1054
|
});
|
|
822
1055
|
}
|
|
823
|
-
return (t, i) => (
|
|
1056
|
+
return (t, i) => (s(), x("div", {
|
|
824
1057
|
class: "tpl-canvas-stage tpl:relative tpl:mx-auto tpl:flex tpl:justify-center tpl:rounded-lg",
|
|
825
|
-
style:
|
|
826
|
-
width: `${
|
|
1058
|
+
style: E({
|
|
1059
|
+
width: `${te.value}px`,
|
|
827
1060
|
maxWidth: "calc(100% - 4 * var(--tpl-base-size))",
|
|
828
1061
|
minWidth: "min-content",
|
|
829
1062
|
boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
830
|
-
transition:
|
|
1063
|
+
transition: h(be)
|
|
831
1064
|
})
|
|
832
|
-
}, [
|
|
1065
|
+
}, [A("div", {
|
|
833
1066
|
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
834
|
-
style:
|
|
1067
|
+
style: E({
|
|
835
1068
|
backgroundColor: e.content.settings.backgroundColor,
|
|
836
1069
|
...e.darkMode ? { filter: "invert(1) hue-rotate(180deg)" } : {},
|
|
837
1070
|
transition: "filter 300ms ease"
|
|
838
1071
|
})
|
|
839
|
-
}, null, 4),
|
|
1072
|
+
}, null, 4), A("div", {
|
|
840
1073
|
"data-testid": "canvas-wrapper",
|
|
841
1074
|
role: "region",
|
|
842
|
-
"aria-label":
|
|
1075
|
+
"aria-label": h(p).landmarks.canvas,
|
|
843
1076
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
844
|
-
style:
|
|
845
|
-
width: `${
|
|
846
|
-
transition:
|
|
1077
|
+
style: E({
|
|
1078
|
+
width: `${R.value}px`,
|
|
1079
|
+
transition: h(be)
|
|
847
1080
|
})
|
|
848
|
-
}, [
|
|
849
|
-
class:
|
|
1081
|
+
}, [A("div", {
|
|
1082
|
+
class: v(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
850
1083
|
"tpl-canvas--dark-mode": e.darkMode,
|
|
851
1084
|
"tpl-preview-mode": e.previewMode
|
|
852
1085
|
}]),
|
|
853
|
-
lang:
|
|
854
|
-
dir:
|
|
855
|
-
style:
|
|
856
|
-
onClick:
|
|
857
|
-
}, [
|
|
1086
|
+
lang: B.value,
|
|
1087
|
+
dir: V.value,
|
|
1088
|
+
style: E(ne.value),
|
|
1089
|
+
onClick: Y
|
|
1090
|
+
}, [h(k)?.isInitialResolve.value ? (s(), x("div", tr, [A("span", nr, F(h(p).previewResolution.resolving), 1), (s(), x(P, null, n(3, (e) => A("div", {
|
|
858
1091
|
key: e,
|
|
859
1092
|
"aria-hidden": "true",
|
|
860
1093
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
861
|
-
})), 64))])) :
|
|
862
|
-
modelValue:
|
|
863
|
-
"onUpdate:modelValue": i[2] ||= (e) =>
|
|
1094
|
+
})), 64))])) : h(k)?.hasFailed.value ? (s(), x("p", rr, F(h(p).previewResolution.failed), 1)) : S("", !0), f(g(h(ee), {
|
|
1095
|
+
modelValue: L.value,
|
|
1096
|
+
"onUpdate:modelValue": i[2] ||= (e) => L.value = e,
|
|
864
1097
|
group: "blocks",
|
|
865
1098
|
animation: 150,
|
|
866
1099
|
"ghost-class": "tpl-ghost",
|
|
@@ -871,67 +1104,54 @@ var Vn = ["aria-label"], Hn = ["lang", "dir"], Un = {
|
|
|
871
1104
|
disabled: e.previewMode,
|
|
872
1105
|
draggable: ">:not(.tpl-canvas-empty-content)",
|
|
873
1106
|
"force-fallback": !0,
|
|
874
|
-
class:
|
|
1107
|
+
class: v([
|
|
875
1108
|
"tpl-canvas-blocks",
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
1109
|
+
U.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors" : "",
|
|
1110
|
+
U.value && G.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
1111
|
+
U.value && !G.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
879
1112
|
]),
|
|
880
|
-
onDragenter:
|
|
881
|
-
onDragleave:
|
|
882
|
-
onDrop:
|
|
1113
|
+
onDragenter: K,
|
|
1114
|
+
onDragleave: q,
|
|
1115
|
+
onDrop: J
|
|
883
1116
|
}, {
|
|
884
|
-
default: r(() => [
|
|
885
|
-
|
|
1117
|
+
default: r(() => [U.value ? (s(), x("div", ir, [
|
|
1118
|
+
A("div", ar, [g(h(jt), {
|
|
886
1119
|
size: 48,
|
|
887
1120
|
"stroke-width": 1
|
|
888
1121
|
})]),
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
1122
|
+
A("p", or, F(h(p).canvas.noBlocks), 1),
|
|
1123
|
+
A("p", sr, F(h(p).canvas.dragHint), 1),
|
|
1124
|
+
j.value && h(m) ? (s(), x("p", cr, [
|
|
1125
|
+
z(F(h(p).canvas.aiHintChat) + " ", 1),
|
|
1126
|
+
A("button", {
|
|
894
1127
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
895
|
-
onClick: i[0] ||= (e) =>
|
|
896
|
-
}, [h(
|
|
1128
|
+
onClick: i[0] ||= (e) => d("open-ai-chat")
|
|
1129
|
+
}, [g(h(kt), {
|
|
897
1130
|
size: 14,
|
|
898
1131
|
"stroke-width": 2
|
|
899
|
-
}),
|
|
900
|
-
|
|
901
|
-
])) :
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
1132
|
+
}), z(" " + F(h(m).aiMenu.aiAssistant), 1)]),
|
|
1133
|
+
z(" " + F(h(p).canvas.aiHintChatSuffix), 1)
|
|
1134
|
+
])) : S("", !0),
|
|
1135
|
+
N.value && h(m) ? (s(), x("p", lr, [
|
|
1136
|
+
z(F(h(p).canvas.aiHintDesign) + " ", 1),
|
|
1137
|
+
A("button", {
|
|
905
1138
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
906
|
-
onClick: i[1] ||= (e) =>
|
|
907
|
-
}, [h(
|
|
1139
|
+
onClick: i[1] ||= (e) => d("open-design-reference")
|
|
1140
|
+
}, [g(h(Gt), {
|
|
908
1141
|
size: 14,
|
|
909
1142
|
"stroke-width": 2
|
|
910
|
-
}),
|
|
911
|
-
|
|
912
|
-
])) :
|
|
913
|
-
])) :
|
|
1143
|
+
}), z(" " + F(h(m).aiMenu.designToTemplate), 1)]),
|
|
1144
|
+
z(" " + F(h(p).canvas.aiHintDesignSuffix), 1)
|
|
1145
|
+
])) : S("", !0)
|
|
1146
|
+
])) : S("", !0), (s(!0), x(P, null, n(L.value, (t) => f((s(), x("div", {
|
|
914
1147
|
key: t.id,
|
|
915
1148
|
class: "tpl-block-item"
|
|
916
|
-
}, [
|
|
1149
|
+
}, [A("div", ur, [t.type === "wrapper" ? (s(), D(u(X(t)), {
|
|
917
1150
|
key: 0,
|
|
918
|
-
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
919
|
-
style: w({
|
|
920
|
-
outline: `2px solid ${Z(t.id).color}`,
|
|
921
|
-
outlineOffset: "-1px"
|
|
922
|
-
})
|
|
923
|
-
}, [O("span", {
|
|
924
|
-
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
925
|
-
style: w({
|
|
926
|
-
backgroundColor: Z(t.id).color,
|
|
927
|
-
color: m(en)(Z(t.id).color)
|
|
928
|
-
})
|
|
929
|
-
}, [O("span", $n, N(Z(t.id).name.charAt(0)), 1), L(" " + N(Z(t.id).name), 1)], 4)], 4)) : b("", !0), t.type === "wrapper" ? (o(), T(l(ne(t)), {
|
|
930
|
-
key: 1,
|
|
931
1151
|
block: t,
|
|
932
1152
|
viewport: e.viewport
|
|
933
|
-
}, null, 8, ["block", "viewport"])) : (
|
|
934
|
-
key:
|
|
1153
|
+
}, null, 8, ["block", "viewport"])) : (s(), D(et, {
|
|
1154
|
+
key: 1,
|
|
935
1155
|
block: t,
|
|
936
1156
|
"is-selected": !e.previewMode && !ae.value && e.selectedBlockId === t.id && !Z(t.id),
|
|
937
1157
|
picked: ie(t.id),
|
|
@@ -939,11 +1159,11 @@ var Vn = ["aria-label"], Hn = ["lang", "dir"], Un = {
|
|
|
939
1159
|
"preview-mode": e.previewMode,
|
|
940
1160
|
onSelect: (e) => re(t.id)
|
|
941
1161
|
}, {
|
|
942
|
-
default: r(() => [(
|
|
1162
|
+
default: r(() => [(s(), D(u(X(t)), {
|
|
943
1163
|
block: t,
|
|
944
1164
|
viewport: e.viewport,
|
|
945
1165
|
onFetchData: (e) => oe(t, e),
|
|
946
|
-
onUpdate: (e) =>
|
|
1166
|
+
onUpdate: (e) => h(_).updateBlock(t.id, e)
|
|
947
1167
|
}, null, 40, [
|
|
948
1168
|
"block",
|
|
949
1169
|
"viewport",
|
|
@@ -958,19 +1178,19 @@ var Vn = ["aria-label"], Hn = ["lang", "dir"], Un = {
|
|
|
958
1178
|
"viewport",
|
|
959
1179
|
"preview-mode",
|
|
960
1180
|
"onSelect"
|
|
961
|
-
]))])])), [[
|
|
1181
|
+
]))])])), [[M, h(I) === !1 || !h(C)?.isHidden(t.id)]])), 128))]),
|
|
962
1182
|
_: 1
|
|
963
1183
|
}, 8, [
|
|
964
1184
|
"modelValue",
|
|
965
1185
|
"disabled",
|
|
966
1186
|
"class"
|
|
967
|
-
]), [[
|
|
1187
|
+
]), [[M, !h(k)?.isInitialResolve.value]])], 14, er)], 12, $n)], 4));
|
|
968
1188
|
}
|
|
969
|
-
}), [["__scopeId", "data-v-
|
|
1189
|
+
}), [["__scopeId", "data-v-7d805e9c"]]), fr = d({
|
|
970
1190
|
name: "CustomBlockStylesheets",
|
|
971
1191
|
setup() {
|
|
972
|
-
let e = t(
|
|
973
|
-
return () => e ? e.value.map((e, t) =>
|
|
1192
|
+
let e = t(vt, null);
|
|
1193
|
+
return () => e ? e.value.map((e, t) => L("style", {
|
|
974
1194
|
key: t,
|
|
975
1195
|
"data-tpl-custom-block-stylesheet": "",
|
|
976
1196
|
innerHTML: e
|
|
@@ -979,7 +1199,7 @@ var Vn = ["aria-label"], Hn = ["lang", "dir"], Un = {
|
|
|
979
1199
|
});
|
|
980
1200
|
//#endregion
|
|
981
1201
|
//#region src/utils/resolvePaletteBlocks.ts
|
|
982
|
-
function
|
|
1202
|
+
function pr(e, t) {
|
|
983
1203
|
if (!t || t.length === 0) return {
|
|
984
1204
|
items: e,
|
|
985
1205
|
unknown: []
|
|
@@ -998,65 +1218,65 @@ function nr(e, t) {
|
|
|
998
1218
|
}
|
|
999
1219
|
//#endregion
|
|
1000
1220
|
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1001
|
-
var
|
|
1221
|
+
var mr = ["aria-label"], hr = {
|
|
1002
1222
|
key: 0,
|
|
1003
1223
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
1004
|
-
},
|
|
1224
|
+
}, gr = ["aria-label"], _r = {
|
|
1005
1225
|
key: 0,
|
|
1006
1226
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
1007
|
-
},
|
|
1227
|
+
}, vr = [
|
|
1008
1228
|
"data-palette-type",
|
|
1009
1229
|
"aria-label",
|
|
1010
1230
|
"onClick",
|
|
1011
1231
|
"onKeydown"
|
|
1012
|
-
],
|
|
1232
|
+
], yr = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:scale-105" }, br = {
|
|
1013
1233
|
key: 0,
|
|
1014
1234
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
1015
|
-
},
|
|
1235
|
+
}, xr = 4, Sr = /* @__PURE__ */ d({
|
|
1016
1236
|
__name: "Sidebar",
|
|
1017
1237
|
setup(i) {
|
|
1018
|
-
let { t: a, format:
|
|
1019
|
-
|
|
1020
|
-
window.clearTimeout(
|
|
1238
|
+
let { t: a, format: o } = Q(), c = t(bt, []), d = t(Tt, void 0), f = t(yt, void 0), m = t(gt, null), _ = $t(), v = t(_t, {}), y = b(() => v.savedBlocks?.isAvailable.value === !0), C = l(!1), w = l(!1), T = l(null), O = !1, k = 0;
|
|
1239
|
+
p(() => {
|
|
1240
|
+
window.clearTimeout(k);
|
|
1021
1241
|
});
|
|
1022
|
-
function
|
|
1242
|
+
function j() {
|
|
1023
1243
|
try {
|
|
1024
|
-
return
|
|
1244
|
+
return T.value?.querySelector(":focus-visible") != null;
|
|
1025
1245
|
} catch {
|
|
1026
1246
|
return !1;
|
|
1027
1247
|
}
|
|
1028
1248
|
}
|
|
1029
|
-
function
|
|
1030
|
-
|
|
1249
|
+
function M() {
|
|
1250
|
+
w.value || j() || (C.value = !1);
|
|
1251
|
+
}
|
|
1252
|
+
function N() {
|
|
1253
|
+
w.value = !0;
|
|
1031
1254
|
}
|
|
1032
1255
|
function I() {
|
|
1033
|
-
|
|
1256
|
+
w.value = !1;
|
|
1034
1257
|
}
|
|
1035
1258
|
function L() {
|
|
1036
|
-
|
|
1037
|
-
}
|
|
1038
|
-
function R() {
|
|
1039
|
-
k = !0, window.clearTimeout(A);
|
|
1259
|
+
O = !0, window.clearTimeout(k);
|
|
1040
1260
|
}
|
|
1041
|
-
function
|
|
1261
|
+
function R(e) {
|
|
1042
1262
|
let t = e.relatedTarget;
|
|
1043
|
-
t instanceof Node &&
|
|
1263
|
+
t instanceof Node && T.value?.contains(t) || T.value?.matches(":hover") || (C.value = !1);
|
|
1044
1264
|
}
|
|
1045
|
-
function
|
|
1046
|
-
|
|
1265
|
+
function z() {
|
|
1266
|
+
T.value?.ownerDocument.dispatchEvent(new MouseEvent("click", {
|
|
1047
1267
|
bubbles: !0,
|
|
1048
1268
|
cancelable: !0,
|
|
1049
1269
|
composed: !0
|
|
1050
1270
|
}));
|
|
1051
1271
|
}
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1054
|
-
|
|
1272
|
+
function ne() {
|
|
1273
|
+
w.value = !1, T.value?.matches(":hover") ? (C.value = !0, z()) : C.value = !1, window.clearTimeout(k), k = window.setTimeout(() => {
|
|
1274
|
+
O = !1;
|
|
1055
1275
|
}, 0);
|
|
1056
1276
|
}
|
|
1057
|
-
let
|
|
1277
|
+
let B = [
|
|
1058
1278
|
"section",
|
|
1059
|
-
|
|
1279
|
+
Qe,
|
|
1060
1280
|
"image",
|
|
1061
1281
|
"title",
|
|
1062
1282
|
"paragraph",
|
|
@@ -1068,48 +1288,48 @@ var rr = ["aria-label"], ir = {
|
|
|
1068
1288
|
"table",
|
|
1069
1289
|
"spacer",
|
|
1070
1290
|
"html"
|
|
1071
|
-
],
|
|
1072
|
-
let e =
|
|
1291
|
+
], V = b(() => {
|
|
1292
|
+
let e = B.map((e) => ({
|
|
1073
1293
|
type: e,
|
|
1074
|
-
label:
|
|
1294
|
+
label: xe(e, a)
|
|
1075
1295
|
}));
|
|
1076
|
-
return
|
|
1296
|
+
return v.plan && e.splice(-1, 0, {
|
|
1077
1297
|
type: "countdown",
|
|
1078
|
-
label:
|
|
1298
|
+
label: xe("countdown", a)
|
|
1079
1299
|
}), e;
|
|
1080
|
-
}),
|
|
1300
|
+
}), H = b(() => c.map((e) => ({
|
|
1081
1301
|
type: `custom:${e.type}`,
|
|
1082
1302
|
label: e.name,
|
|
1083
1303
|
isCustom: !0,
|
|
1084
1304
|
icon: e.icon
|
|
1085
|
-
}))),
|
|
1086
|
-
e(() =>
|
|
1087
|
-
for (let t of e)
|
|
1305
|
+
}))), U = b(() => [...V.value, ...H.value]), G = b(() => pr(U.value, d)), K = b(() => G.value.items), q = /* @__PURE__ */ new Set();
|
|
1306
|
+
e(() => G.value.unknown, (e) => {
|
|
1307
|
+
for (let t of e) q.has(t) || (q.add(t), Et.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
|
|
1088
1308
|
}, { immediate: !0 });
|
|
1089
|
-
function
|
|
1309
|
+
function J(e) {
|
|
1090
1310
|
if (e.isCustom) {
|
|
1091
|
-
let t = e.type.replace("custom:", ""), n =
|
|
1092
|
-
if (n) return
|
|
1311
|
+
let t = e.type.replace("custom:", ""), n = c.find((e) => e.type === t);
|
|
1312
|
+
if (n) return W(n);
|
|
1093
1313
|
}
|
|
1094
|
-
return e.type === "hero" ?
|
|
1314
|
+
return e.type === "hero" ? ze(f?.value, a.blockDefaults.paragraph) : te(e.type, f?.value);
|
|
1095
1315
|
}
|
|
1096
|
-
function
|
|
1097
|
-
if (!
|
|
1098
|
-
let t =
|
|
1099
|
-
|
|
1316
|
+
function Y(e) {
|
|
1317
|
+
if (!m) return;
|
|
1318
|
+
let t = J(e);
|
|
1319
|
+
Zn(m, t) && _(t.id);
|
|
1100
1320
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1321
|
+
function X(e) {
|
|
1322
|
+
O || Y(e);
|
|
1103
1323
|
}
|
|
1104
1324
|
function Z(e, t) {
|
|
1105
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
1325
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Y(t));
|
|
1106
1326
|
}
|
|
1107
|
-
return (e, t) => (
|
|
1327
|
+
return (e, t) => (s(), x("aside", {
|
|
1108
1328
|
ref_key: "railEl",
|
|
1109
|
-
ref:
|
|
1110
|
-
"aria-label":
|
|
1329
|
+
ref: T,
|
|
1330
|
+
"aria-label": h(a).sidebarNav.palette,
|
|
1111
1331
|
class: "tpl-sidebar-rail tpl:absolute tpl:top-14 tpl:bottom-0 tpl:left-0 tpl:z-40 tpl:box-border tpl:flex tpl:flex-col tpl:overflow-hidden",
|
|
1112
|
-
style:
|
|
1332
|
+
style: E({
|
|
1113
1333
|
width: C.value ? "200px" : "48px",
|
|
1114
1334
|
backgroundColor: "var(--tpl-bg-elevated)",
|
|
1115
1335
|
borderRight: "1px solid var(--tpl-border)",
|
|
@@ -1117,98 +1337,98 @@ var rr = ["aria-label"], ir = {
|
|
|
1117
1337
|
transition: "width 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
1118
1338
|
}),
|
|
1119
1339
|
onMouseenter: t[1] ||= (e) => C.value = !0,
|
|
1120
|
-
onMouseleave:
|
|
1340
|
+
onMouseleave: M,
|
|
1121
1341
|
onFocusin: t[2] ||= (e) => C.value = !0,
|
|
1122
|
-
onFocusout:
|
|
1123
|
-
}, [
|
|
1342
|
+
onFocusout: R
|
|
1343
|
+
}, [y.value ? (s(), x("div", hr, [A("button", {
|
|
1124
1344
|
type: "button",
|
|
1125
|
-
"aria-label":
|
|
1345
|
+
"aria-label": h(a).sidebarNav.browseSavedBlocks,
|
|
1126
1346
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1127
|
-
style:
|
|
1128
|
-
onClick: t[0] ||= (e) =>
|
|
1129
|
-
}, [h(
|
|
1347
|
+
style: E({ justifyContent: C.value ? "flex-start" : "center" }),
|
|
1348
|
+
onClick: t[0] ||= (e) => h(v).savedBlocks?.openBrowser()
|
|
1349
|
+
}, [g(h(Vt), {
|
|
1130
1350
|
size: 20,
|
|
1131
1351
|
"stroke-width": 1.5,
|
|
1132
1352
|
class: "tpl:shrink-0"
|
|
1133
|
-
}), C.value ? (
|
|
1134
|
-
"model-value":
|
|
1353
|
+
}), C.value ? (s(), x("span", _r, F(h(a).savedBlocks.title), 1)) : S("", !0)], 12, gr)])) : S("", !0), g(h(ee), {
|
|
1354
|
+
"model-value": K.value,
|
|
1135
1355
|
group: {
|
|
1136
1356
|
name: "blocks",
|
|
1137
1357
|
pull: "clone",
|
|
1138
1358
|
put: !1
|
|
1139
1359
|
},
|
|
1140
|
-
clone:
|
|
1360
|
+
clone: J,
|
|
1141
1361
|
sort: !1,
|
|
1142
1362
|
animation: 150,
|
|
1143
1363
|
"force-fallback": !0,
|
|
1144
|
-
"fallback-tolerance":
|
|
1364
|
+
"fallback-tolerance": xr,
|
|
1145
1365
|
class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
|
|
1146
|
-
onChoose:
|
|
1147
|
-
onStart:
|
|
1148
|
-
onUnchoose:
|
|
1149
|
-
onEnd:
|
|
1366
|
+
onChoose: N,
|
|
1367
|
+
onStart: L,
|
|
1368
|
+
onUnchoose: I,
|
|
1369
|
+
onEnd: ne
|
|
1150
1370
|
}, {
|
|
1151
|
-
default: r(() => [(
|
|
1371
|
+
default: r(() => [(s(!0), x(P, null, n(K.value, (e) => (s(), x("button", {
|
|
1152
1372
|
key: e.type,
|
|
1153
1373
|
type: "button",
|
|
1154
1374
|
"data-palette-type": e.type,
|
|
1155
|
-
"aria-label":
|
|
1375
|
+
"aria-label": h(o)(h(a).sidebarNav.insertBlock, { block: e.label }),
|
|
1156
1376
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:active:cursor-grabbing",
|
|
1157
|
-
style:
|
|
1158
|
-
onClick: (t) =>
|
|
1377
|
+
style: E({ justifyContent: C.value ? "flex-start" : "center" }),
|
|
1378
|
+
onClick: (t) => X(e),
|
|
1159
1379
|
onKeydown: (t) => Z(t, e)
|
|
1160
|
-
}, [
|
|
1380
|
+
}, [A("div", yr, [h(on)[e.type] ? (s(), D(u(h(on)[e.type]), {
|
|
1161
1381
|
key: 0,
|
|
1162
1382
|
size: 20,
|
|
1163
1383
|
"stroke-width": 1.5
|
|
1164
|
-
})) : e.isCustom ? (
|
|
1384
|
+
})) : e.isCustom ? (s(), D(Oe, {
|
|
1165
1385
|
key: 1,
|
|
1166
1386
|
icon: e.icon,
|
|
1167
1387
|
size: 20
|
|
1168
|
-
}, null, 8, ["icon"])) :
|
|
1388
|
+
}, null, 8, ["icon"])) : S("", !0)]), C.value ? (s(), x("span", br, F(e.label), 1)) : S("", !0)], 44, vr))), 128))]),
|
|
1169
1389
|
_: 1
|
|
1170
|
-
}, 8, ["model-value"])], 44,
|
|
1390
|
+
}, 8, ["model-value"])], 44, mr));
|
|
1171
1391
|
}
|
|
1172
|
-
}),
|
|
1392
|
+
}), Cr = ["aria-label"], wr = {
|
|
1173
1393
|
role: "tablist",
|
|
1174
1394
|
class: "tpl:relative tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-active)] tpl:p-1.5"
|
|
1175
|
-
},
|
|
1395
|
+
}, Tr = [
|
|
1176
1396
|
"aria-selected",
|
|
1177
1397
|
"aria-label",
|
|
1178
1398
|
"title"
|
|
1179
|
-
],
|
|
1399
|
+
], Er = { key: 0 }, Dr = [
|
|
1180
1400
|
"aria-selected",
|
|
1181
1401
|
"aria-label",
|
|
1182
1402
|
"title"
|
|
1183
|
-
],
|
|
1403
|
+
], Or = { key: 0 }, kr = [
|
|
1184
1404
|
"aria-selected",
|
|
1185
1405
|
"aria-label",
|
|
1186
1406
|
"title"
|
|
1187
|
-
],
|
|
1407
|
+
], Ar = { key: 0 }, jr = {
|
|
1188
1408
|
key: 1,
|
|
1189
1409
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
1190
|
-
},
|
|
1410
|
+
}, Mr = {
|
|
1191
1411
|
key: 0,
|
|
1192
1412
|
id: "tpl-tabpanel-content",
|
|
1193
1413
|
role: "tabpanel",
|
|
1194
1414
|
"aria-labelledby": "tpl-tab-content",
|
|
1195
1415
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
1196
|
-
},
|
|
1416
|
+
}, Nr = {
|
|
1197
1417
|
key: 1,
|
|
1198
1418
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
|
|
1199
|
-
},
|
|
1419
|
+
}, Pr = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Fr = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ir = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Lr = {
|
|
1200
1420
|
key: 1,
|
|
1201
1421
|
id: "tpl-tabpanel-settings",
|
|
1202
1422
|
role: "tabpanel",
|
|
1203
1423
|
"aria-labelledby": "tpl-tab-settings",
|
|
1204
1424
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
1205
|
-
},
|
|
1425
|
+
}, Rr = {
|
|
1206
1426
|
key: 2,
|
|
1207
1427
|
id: "tpl-tabpanel-issues",
|
|
1208
1428
|
role: "tabpanel",
|
|
1209
1429
|
"aria-labelledby": "tpl-tab-issues",
|
|
1210
1430
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
1211
|
-
},
|
|
1431
|
+
}, zr = /* @__PURE__ */ d({
|
|
1212
1432
|
__name: "RightSidebar",
|
|
1213
1433
|
props: {
|
|
1214
1434
|
selectedBlock: {},
|
|
@@ -1222,206 +1442,206 @@ var rr = ["aria-label"], ir = {
|
|
|
1222
1442
|
"update-settings"
|
|
1223
1443
|
],
|
|
1224
1444
|
setup(n, { emit: r }) {
|
|
1225
|
-
let i =
|
|
1226
|
-
function
|
|
1445
|
+
let i = R(() => import("./chunks/Toolbar-GFIZQHzw.js").then((e) => e.t)), a = R(() => import("./chunks/TemplateSettings-CtrzzQWl.js")), o = R(() => import("./chunks/IssuesPanel-BoPiCLGc.js")), c = n, u = r, { t: d } = Q(), f = l("content"), p = t(ot, null), m = b(() => p !== null && !p.unavailable.value), _ = b(() => p?.issues.value.length ?? 0), y = t(xt, new Set(Dt)), C = b(() => y.size > 0);
|
|
1446
|
+
function w(e) {
|
|
1227
1447
|
return f.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
|
|
1228
1448
|
}
|
|
1229
|
-
function
|
|
1449
|
+
function T(e) {
|
|
1230
1450
|
return f.value === e ? {
|
|
1231
1451
|
backgroundColor: "var(--tpl-bg)",
|
|
1232
1452
|
boxShadow: "var(--tpl-shadow-sm)"
|
|
1233
1453
|
} : { backgroundColor: "transparent" };
|
|
1234
1454
|
}
|
|
1235
|
-
return e(() =>
|
|
1455
|
+
return e(() => c.selectedBlock, (e) => {
|
|
1236
1456
|
e && (f.value = "content");
|
|
1237
|
-
}), e(
|
|
1457
|
+
}), e(m, (e) => {
|
|
1238
1458
|
!e && f.value === "issues" && (f.value = "content");
|
|
1239
|
-
}), (e, t) => (
|
|
1240
|
-
"aria-label":
|
|
1241
|
-
class:
|
|
1459
|
+
}), (e, t) => (s(), x("aside", {
|
|
1460
|
+
"aria-label": h(d).landmarks.rightSidebar,
|
|
1461
|
+
class: v(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:box-border tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", n.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
1242
1462
|
}, [
|
|
1243
|
-
|
|
1244
|
-
|
|
1463
|
+
A("div", wr, [
|
|
1464
|
+
A("button", {
|
|
1245
1465
|
id: "tpl-tab-content",
|
|
1246
1466
|
role: "tab",
|
|
1247
1467
|
"aria-selected": f.value === "content",
|
|
1248
1468
|
"aria-controls": "tpl-tabpanel-content",
|
|
1249
|
-
"aria-label":
|
|
1250
|
-
title:
|
|
1251
|
-
class:
|
|
1252
|
-
style:
|
|
1469
|
+
"aria-label": h(d).sidebar.content,
|
|
1470
|
+
title: h(d).sidebar.content,
|
|
1471
|
+
class: v(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", w("content")]),
|
|
1472
|
+
style: E(T("content")),
|
|
1253
1473
|
onClick: t[0] ||= (e) => f.value = "content"
|
|
1254
|
-
}, [h(
|
|
1474
|
+
}, [g(h(Pt), {
|
|
1255
1475
|
size: 14,
|
|
1256
1476
|
"stroke-width": 2
|
|
1257
|
-
}), f.value === "content" ? (
|
|
1258
|
-
C.value ? (
|
|
1477
|
+
}), f.value === "content" ? (s(), x("span", Er, F(h(d).sidebar.content), 1)) : S("", !0)], 14, Tr),
|
|
1478
|
+
C.value ? (s(), x("button", {
|
|
1259
1479
|
key: 0,
|
|
1260
1480
|
id: "tpl-tab-settings",
|
|
1261
1481
|
role: "tab",
|
|
1262
1482
|
"aria-selected": f.value === "settings",
|
|
1263
1483
|
"aria-controls": "tpl-tabpanel-settings",
|
|
1264
|
-
"aria-label":
|
|
1265
|
-
title:
|
|
1266
|
-
class:
|
|
1267
|
-
style:
|
|
1484
|
+
"aria-label": h(d).sidebar.settings,
|
|
1485
|
+
title: h(d).sidebar.settings,
|
|
1486
|
+
class: v(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", w("settings")]),
|
|
1487
|
+
style: E(T("settings")),
|
|
1268
1488
|
onClick: t[1] ||= (e) => f.value = "settings"
|
|
1269
|
-
}, [h(
|
|
1489
|
+
}, [g(h(It), {
|
|
1270
1490
|
size: 14,
|
|
1271
1491
|
"stroke-width": 1.5
|
|
1272
|
-
}), f.value === "settings" ? (
|
|
1273
|
-
|
|
1492
|
+
}), f.value === "settings" ? (s(), x("span", Or, F(h(d).sidebar.settings), 1)) : S("", !0)], 14, Dr)) : S("", !0),
|
|
1493
|
+
m.value ? (s(), x("button", {
|
|
1274
1494
|
key: 1,
|
|
1275
1495
|
id: "tpl-tab-issues",
|
|
1276
1496
|
role: "tab",
|
|
1277
1497
|
"aria-selected": f.value === "issues",
|
|
1278
1498
|
"aria-controls": "tpl-tabpanel-issues",
|
|
1279
|
-
"aria-label":
|
|
1280
|
-
title:
|
|
1281
|
-
class:
|
|
1282
|
-
style:
|
|
1499
|
+
"aria-label": h(d).issues.panelTabLabel,
|
|
1500
|
+
title: h(d).issues.panelTabLabel,
|
|
1501
|
+
class: v(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", w("issues")]),
|
|
1502
|
+
style: E(T("issues")),
|
|
1283
1503
|
onClick: t[2] ||= (e) => f.value = "issues"
|
|
1284
1504
|
}, [
|
|
1285
|
-
h(
|
|
1505
|
+
g(h(Ut), {
|
|
1286
1506
|
size: 14,
|
|
1287
1507
|
"stroke-width": 1.5
|
|
1288
1508
|
}),
|
|
1289
|
-
f.value === "issues" ? (
|
|
1290
|
-
|
|
1291
|
-
], 14,
|
|
1509
|
+
f.value === "issues" ? (s(), x("span", Ar, F(h(d).issues.panelTabLabel), 1)) : S("", !0),
|
|
1510
|
+
_.value > 0 ? (s(), x("span", jr, F(_.value), 1)) : S("", !0)
|
|
1511
|
+
], 14, kr)) : S("", !0)
|
|
1292
1512
|
]),
|
|
1293
|
-
f.value === "content" ? (
|
|
1513
|
+
f.value === "content" ? (s(), x("div", Mr, [n.selectedBlock ? (s(), D(h(i), {
|
|
1294
1514
|
key: 0,
|
|
1295
1515
|
block: n.selectedBlock,
|
|
1296
1516
|
onUpdate: t[3] ||= (e) => u("update-block", e),
|
|
1297
1517
|
onDelete: t[4] ||= (e) => u("delete-block"),
|
|
1298
1518
|
onDuplicate: t[5] ||= (e) => u("duplicate-block")
|
|
1299
|
-
}, null, 8, ["block"])) : (
|
|
1300
|
-
|
|
1519
|
+
}, null, 8, ["block"])) : (s(), x("div", Nr, [
|
|
1520
|
+
A("div", Pr, [g(h(Jt), {
|
|
1301
1521
|
size: 40,
|
|
1302
1522
|
"stroke-width": 1.5
|
|
1303
1523
|
})]),
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
]))])) :
|
|
1307
|
-
f.value === "settings" && C.value ? (
|
|
1524
|
+
A("h3", Fr, F(h(d).sidebar.noSelection), 1),
|
|
1525
|
+
A("p", Ir, F(h(d).sidebar.noSelectionHint), 1)
|
|
1526
|
+
]))])) : S("", !0),
|
|
1527
|
+
f.value === "settings" && C.value ? (s(), x("div", Lr, [g(h(a), {
|
|
1308
1528
|
settings: n.settings,
|
|
1309
1529
|
onUpdate: t[6] ||= (e) => u("update-settings", e)
|
|
1310
|
-
}, null, 8, ["settings"])])) :
|
|
1311
|
-
f.value === "issues" &&
|
|
1312
|
-
], 10,
|
|
1530
|
+
}, null, 8, ["settings"])])) : S("", !0),
|
|
1531
|
+
f.value === "issues" && m.value ? (s(), x("div", Rr, [g(h(o))])) : S("", !0)
|
|
1532
|
+
], 10, Cr));
|
|
1313
1533
|
}
|
|
1314
|
-
}),
|
|
1534
|
+
}), Br = {
|
|
1315
1535
|
class: "tpl-small-screen-notice tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-6 tpl:py-10 tpl:text-center tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)]",
|
|
1316
1536
|
style: { "z-index": "10001" },
|
|
1317
1537
|
role: "status",
|
|
1318
1538
|
"data-testid": "small-screen-notice"
|
|
1319
|
-
},
|
|
1539
|
+
}, Vr = { class: "tpl:text-[var(--tpl-text-dim)]" }, Hr = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ur = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Wr = /* @__PURE__ */ d({
|
|
1320
1540
|
__name: "SmallScreenNotice",
|
|
1321
1541
|
setup(e) {
|
|
1322
1542
|
let { t } = Q();
|
|
1323
|
-
return (e, n) => (
|
|
1324
|
-
|
|
1543
|
+
return (e, n) => (s(), x("div", Br, [
|
|
1544
|
+
A("div", Vr, [g(h(Wt), {
|
|
1325
1545
|
size: 48,
|
|
1326
1546
|
"stroke-width": 1.5
|
|
1327
1547
|
})]),
|
|
1328
|
-
|
|
1329
|
-
|
|
1548
|
+
A("h2", Hr, F(h(t).smallScreen.title), 1),
|
|
1549
|
+
A("p", Ur, F(h(t).smallScreen.message), 1)
|
|
1330
1550
|
]));
|
|
1331
1551
|
}
|
|
1332
|
-
}),
|
|
1552
|
+
}), Gr = {
|
|
1333
1553
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
1334
1554
|
style: {
|
|
1335
1555
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
1336
1556
|
"backdrop-filter": "blur(8px)",
|
|
1337
1557
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
1338
1558
|
}
|
|
1339
|
-
},
|
|
1559
|
+
}, Kr = /* @__PURE__ */ d({
|
|
1340
1560
|
__name: "EditorFooter",
|
|
1341
1561
|
props: { positionClass: {} },
|
|
1342
1562
|
setup(e) {
|
|
1343
1563
|
let { t } = Q();
|
|
1344
|
-
return (n, r) => (
|
|
1564
|
+
return (n, r) => (s(), x("footer", { class: v(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div", Gr, [A("span", null, F(h(t).footer.poweredBy), 1), r[0] ||= I("<a href=\"https://templatical.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:hover:opacity-80 tpl:text-[var(--tpl-text-muted)]\" style=\"text-decoration:none;\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><rect x=\"10\" y=\"1\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(85% 0.08 55)\" transform=\"rotate(8 19 12)\"></rect><rect x=\"6\" y=\"2\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(77% 0.12 55)\" transform=\"rotate(-4 15 13)\"></rect><rect x=\"2\" y=\"4\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(70% 0.16 55)\"></rect><rect x=\"6\" y=\"9\" width=\"10\" height=\"1.8\" rx=\"0.9\" fill=\"white\" opacity=\"0.9\"></rect><rect x=\"6\" y=\"13.5\" width=\"7\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"17\" width=\"9\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"20.5\" width=\"5\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.4\"></rect></svg> Templatical </a>", 1)])], 2));
|
|
1345
1565
|
}
|
|
1346
|
-
}),
|
|
1566
|
+
}), qr = [
|
|
1347
1567
|
"aria-label",
|
|
1348
1568
|
"title",
|
|
1349
1569
|
"aria-pressed"
|
|
1350
|
-
],
|
|
1570
|
+
], Jr = /*#__PURE__*/ Zt(/* @__PURE__ */ d({
|
|
1351
1571
|
__name: "DarkModeToggle",
|
|
1352
1572
|
props: { darkMode: { type: Boolean } },
|
|
1353
1573
|
emits: ["change"],
|
|
1354
1574
|
setup(e, { emit: t }) {
|
|
1355
1575
|
let n = t, { t: i } = Q();
|
|
1356
|
-
return (t, a) => (
|
|
1576
|
+
return (t, a) => (s(), x("button", {
|
|
1357
1577
|
class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all",
|
|
1358
|
-
style:
|
|
1578
|
+
style: E({
|
|
1359
1579
|
color: e.darkMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
1360
1580
|
backgroundColor: e.darkMode ? "var(--tpl-primary-light)" : "transparent"
|
|
1361
1581
|
}),
|
|
1362
|
-
"aria-label": e.darkMode ?
|
|
1363
|
-
title: e.darkMode ?
|
|
1582
|
+
"aria-label": e.darkMode ? h(i).darkMode.disable : h(i).darkMode.enable,
|
|
1583
|
+
title: e.darkMode ? h(i).darkMode.disable : h(i).darkMode.enable,
|
|
1364
1584
|
"aria-pressed": e.darkMode,
|
|
1365
1585
|
onClick: a[0] ||= (t) => n("change", !e.darkMode)
|
|
1366
|
-
}, [
|
|
1586
|
+
}, [g(O, {
|
|
1367
1587
|
"enter-active-class": "tpl-icon-enter-active",
|
|
1368
1588
|
"leave-active-class": "tpl-icon-leave-active",
|
|
1369
1589
|
"enter-from-class": "tpl-icon-enter-from",
|
|
1370
1590
|
"leave-to-class": "tpl-icon-leave-to",
|
|
1371
1591
|
mode: "out-in"
|
|
1372
1592
|
}, {
|
|
1373
|
-
default: r(() => [e.darkMode ? (
|
|
1593
|
+
default: r(() => [e.darkMode ? (s(), D(h(Ot), {
|
|
1374
1594
|
key: "moon",
|
|
1375
1595
|
size: 18,
|
|
1376
1596
|
"stroke-width": 1.5
|
|
1377
|
-
})) : (
|
|
1597
|
+
})) : (s(), D(h(Yt), {
|
|
1378
1598
|
key: "sun",
|
|
1379
1599
|
size: 18,
|
|
1380
1600
|
"stroke-width": 1.5
|
|
1381
1601
|
}))]),
|
|
1382
1602
|
_: 1
|
|
1383
|
-
})], 12,
|
|
1603
|
+
})], 12, qr));
|
|
1384
1604
|
}
|
|
1385
|
-
}), [["__scopeId", "data-v-632aa74f"]]),
|
|
1605
|
+
}), [["__scopeId", "data-v-632aa74f"]]), Yr = [
|
|
1386
1606
|
"aria-label",
|
|
1387
1607
|
"title",
|
|
1388
1608
|
"aria-pressed"
|
|
1389
|
-
],
|
|
1609
|
+
], Xr = /*#__PURE__*/ Zt(/* @__PURE__ */ d({
|
|
1390
1610
|
__name: "PreviewToggle",
|
|
1391
1611
|
props: { previewMode: { type: Boolean } },
|
|
1392
1612
|
emits: ["change"],
|
|
1393
1613
|
setup(e, { emit: t }) {
|
|
1394
1614
|
let n = t, { t: i } = Q();
|
|
1395
|
-
return (t, a) => (
|
|
1615
|
+
return (t, a) => (s(), x("button", {
|
|
1396
1616
|
class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all",
|
|
1397
|
-
style:
|
|
1617
|
+
style: E({
|
|
1398
1618
|
color: e.previewMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
1399
1619
|
backgroundColor: e.previewMode ? "var(--tpl-primary-light)" : "transparent"
|
|
1400
1620
|
}),
|
|
1401
|
-
"aria-label": e.previewMode ?
|
|
1402
|
-
title: e.previewMode ?
|
|
1621
|
+
"aria-label": e.previewMode ? h(i).previewMode.disable : h(i).previewMode.enable,
|
|
1622
|
+
title: e.previewMode ? h(i).previewMode.disable : h(i).previewMode.enable,
|
|
1403
1623
|
"aria-pressed": e.previewMode,
|
|
1404
1624
|
onClick: a[0] ||= (t) => n("change", !e.previewMode)
|
|
1405
|
-
}, [
|
|
1625
|
+
}, [g(O, {
|
|
1406
1626
|
"enter-active-class": "tpl-icon-enter-active",
|
|
1407
1627
|
"leave-active-class": "tpl-icon-leave-active",
|
|
1408
1628
|
"enter-from-class": "tpl-icon-enter-from",
|
|
1409
1629
|
"leave-to-class": "tpl-icon-leave-to",
|
|
1410
1630
|
mode: "out-in"
|
|
1411
1631
|
}, {
|
|
1412
|
-
default: r(() => [e.previewMode ? (
|
|
1632
|
+
default: r(() => [e.previewMode ? (s(), D(h(Mt), {
|
|
1413
1633
|
key: "eye",
|
|
1414
1634
|
size: 18,
|
|
1415
1635
|
"stroke-width": 1.5
|
|
1416
|
-
})) : (
|
|
1636
|
+
})) : (s(), D(h(At), {
|
|
1417
1637
|
key: "eye-off",
|
|
1418
1638
|
size: 18,
|
|
1419
1639
|
"stroke-width": 1.5
|
|
1420
1640
|
}))]),
|
|
1421
1641
|
_: 1
|
|
1422
|
-
})], 12,
|
|
1642
|
+
})], 12, Yr));
|
|
1423
1643
|
}
|
|
1424
|
-
}), [["__scopeId", "data-v-eef7b2ca"]]),
|
|
1644
|
+
}), [["__scopeId", "data-v-eef7b2ca"]]), Zr = ["aria-label", "onKeydown"], Qr = ["title", "aria-label"], $r = /* @__PURE__ */ d({
|
|
1425
1645
|
__name: "TemplateNameField",
|
|
1426
1646
|
props: {
|
|
1427
1647
|
name: {},
|
|
@@ -1429,79 +1649,79 @@ var rr = ["aria-label"], ir = {
|
|
|
1429
1649
|
},
|
|
1430
1650
|
emits: ["commit"],
|
|
1431
1651
|
setup(e, { emit: t }) {
|
|
1432
|
-
let n = e, r = t, { t: i } = Q(), a =
|
|
1652
|
+
let n = e, r = t, { t: i } = Q(), a = l(!1), o = l(""), c = l(null);
|
|
1433
1653
|
async function u() {
|
|
1434
|
-
n.editable && (
|
|
1654
|
+
n.editable && (o.value = n.name ?? "", a.value = !0, await w(), c.value?.focus(), c.value?.select());
|
|
1435
1655
|
}
|
|
1436
|
-
function
|
|
1656
|
+
function d() {
|
|
1437
1657
|
if (!a.value) return;
|
|
1438
1658
|
a.value = !1;
|
|
1439
|
-
let e =
|
|
1659
|
+
let e = o.value.trim();
|
|
1440
1660
|
e && e !== n.name && r("commit", e);
|
|
1441
1661
|
}
|
|
1442
1662
|
function p() {
|
|
1443
1663
|
a.value = !1;
|
|
1444
1664
|
}
|
|
1445
|
-
return (t, n) => a.value ?
|
|
1665
|
+
return (t, n) => a.value ? f((s(), x("input", {
|
|
1446
1666
|
key: 0,
|
|
1447
1667
|
ref_key: "inputEl",
|
|
1448
|
-
ref:
|
|
1449
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1668
|
+
ref: c,
|
|
1669
|
+
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
1450
1670
|
type: "text",
|
|
1451
1671
|
"data-testid": "template-name-input",
|
|
1452
|
-
"aria-label":
|
|
1453
|
-
class:
|
|
1454
|
-
onKeydown: [
|
|
1455
|
-
onBlur:
|
|
1456
|
-
}, null, 42,
|
|
1672
|
+
"aria-label": h(i).header.templateName,
|
|
1673
|
+
class: v([h(nn), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
|
|
1674
|
+
onKeydown: [_(T(d, ["prevent"]), ["enter"]), _(T(p, ["prevent"]), ["esc"])],
|
|
1675
|
+
onBlur: d
|
|
1676
|
+
}, null, 42, Zr)), [[k, o.value]]) : e.editable ? (s(), x("button", {
|
|
1457
1677
|
key: 1,
|
|
1458
1678
|
type: "button",
|
|
1459
1679
|
"data-testid": "template-name",
|
|
1460
|
-
title:
|
|
1461
|
-
"aria-label":
|
|
1462
|
-
class:
|
|
1680
|
+
title: h(i).header.rename,
|
|
1681
|
+
"aria-label": h(i).header.rename,
|
|
1682
|
+
class: v(["tpl:max-w-[260px] tpl:cursor-pointer tpl:truncate tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-transparent tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:border-[var(--tpl-border)] tpl:hover:bg-[var(--tpl-bg-hover)]", { "tpl:text-[var(--tpl-text-dim)]": !e.name }]),
|
|
1463
1683
|
onClick: u
|
|
1464
|
-
},
|
|
1684
|
+
}, F(e.name || h(i).header.untitled), 11, Qr)) : (s(), x("span", {
|
|
1465
1685
|
key: 2,
|
|
1466
1686
|
"data-testid": "template-name",
|
|
1467
|
-
class:
|
|
1468
|
-
},
|
|
1687
|
+
class: v(["tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]", { "tpl:text-[var(--tpl-text-dim)]": !e.name }])
|
|
1688
|
+
}, F(e.name || h(i).header.untitled), 3));
|
|
1469
1689
|
}
|
|
1470
|
-
}),
|
|
1690
|
+
}), ei = ["title"], ti = /* @__PURE__ */ d({
|
|
1471
1691
|
__name: "TemplateTimestamp",
|
|
1472
1692
|
props: {
|
|
1473
1693
|
iso: {},
|
|
1474
1694
|
kind: {}
|
|
1475
1695
|
},
|
|
1476
1696
|
setup(e) {
|
|
1477
|
-
let n = e, { t: r, format: i } = Q(), a = t(
|
|
1478
|
-
|
|
1479
|
-
|
|
1697
|
+
let n = e, { t: r, format: i } = Q(), a = t(pt, void 0), o = l(0);
|
|
1698
|
+
Te(() => {
|
|
1699
|
+
o.value += 1;
|
|
1480
1700
|
}, 6e4);
|
|
1481
|
-
let
|
|
1482
|
-
let e =
|
|
1701
|
+
let c = b(() => {
|
|
1702
|
+
let e = un(n.iso, r.time, i);
|
|
1483
1703
|
if (e === null) return "";
|
|
1484
1704
|
let t = e === r.time.justNow;
|
|
1485
1705
|
return n.kind === "updatedAt" ? t ? r.header.updatedJustNow : i(r.header.updatedAt, { time: e }) : t ? r.header.createdJustNow : i(r.header.createdAt, { time: e });
|
|
1486
|
-
}), u =
|
|
1487
|
-
return (e, t) =>
|
|
1706
|
+
}), u = b(() => ln(n.iso, a));
|
|
1707
|
+
return (e, t) => c.value ? (s(), x("span", {
|
|
1488
1708
|
key: 0,
|
|
1489
1709
|
"data-testid": "template-timestamp",
|
|
1490
1710
|
title: u.value,
|
|
1491
1711
|
class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
|
|
1492
|
-
},
|
|
1712
|
+
}, F(c.value), 9, ei)) : S("", !0);
|
|
1493
1713
|
}
|
|
1494
|
-
}),
|
|
1714
|
+
}), ni = ["data-tooltip"], ri = {
|
|
1495
1715
|
key: 1,
|
|
1496
1716
|
"aria-live": "polite",
|
|
1497
1717
|
"data-testid": "save-status-saved",
|
|
1498
1718
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
|
|
1499
|
-
},
|
|
1719
|
+
}, ii = {
|
|
1500
1720
|
key: 2,
|
|
1501
1721
|
"aria-live": "polite",
|
|
1502
1722
|
"data-testid": "save-status-unsaved",
|
|
1503
1723
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1504
|
-
},
|
|
1724
|
+
}, ai = /* @__PURE__ */ d({
|
|
1505
1725
|
__name: "TemplateSaveStatus",
|
|
1506
1726
|
props: {
|
|
1507
1727
|
status: {},
|
|
@@ -1510,28 +1730,28 @@ var rr = ["aria-label"], ir = {
|
|
|
1510
1730
|
},
|
|
1511
1731
|
setup(e) {
|
|
1512
1732
|
let { t } = Q();
|
|
1513
|
-
return (n, r) => e.status === "error" ? (
|
|
1733
|
+
return (n, r) => e.status === "error" ? (s(), x("div", {
|
|
1514
1734
|
key: 0,
|
|
1515
1735
|
"aria-live": "assertive",
|
|
1516
1736
|
"data-testid": "save-status-error",
|
|
1517
1737
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
1518
1738
|
"data-tooltip": e.errorMessage
|
|
1519
|
-
}, [h(
|
|
1739
|
+
}, [g(h(zt), {
|
|
1520
1740
|
size: 12,
|
|
1521
1741
|
"stroke-width": 2.5
|
|
1522
|
-
}),
|
|
1742
|
+
}), z(" " + F(h(t).header.saveFailed), 1)], 8, ni)) : e.status === "saved" ? (s(), x("div", ri, [g(h(Xt), {
|
|
1523
1743
|
size: 12,
|
|
1524
1744
|
"stroke-width": 2.5
|
|
1525
|
-
}),
|
|
1745
|
+
}), z(" " + F(h(t).header.saved), 1)])) : e.isDirty ? (s(), x("div", ii, [r[0] ||= A("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), z(" " + F(h(t).header.unsaved), 1)])) : S("", !0);
|
|
1526
1746
|
}
|
|
1527
|
-
}),
|
|
1747
|
+
}), oi = { class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[1fr_auto_1fr] tpl:items-center tpl:px-4 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-b tpl:border-[var(--tpl-border)]" }, si = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-2.5" }, ci = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, li = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, ui = ["aria-label", "aria-expanded"], di = {
|
|
1528
1748
|
key: 0,
|
|
1529
1749
|
class: "tpl:inline-flex tpl:size-4.5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
|
|
1530
|
-
},
|
|
1750
|
+
}, fi = [
|
|
1531
1751
|
"aria-label",
|
|
1532
1752
|
"title",
|
|
1533
1753
|
"disabled"
|
|
1534
|
-
],
|
|
1754
|
+
], pi = ["disabled", "title"], mi = /* @__PURE__ */ d({
|
|
1535
1755
|
__name: "EditorHeader",
|
|
1536
1756
|
props: {
|
|
1537
1757
|
editor: {},
|
|
@@ -1540,16 +1760,17 @@ var rr = ["aria-label"], ir = {
|
|
|
1540
1760
|
showTemplateName: { type: Boolean },
|
|
1541
1761
|
testEmail: {},
|
|
1542
1762
|
versionHistory: {},
|
|
1543
|
-
comments: {}
|
|
1763
|
+
comments: {},
|
|
1764
|
+
collaboration: {}
|
|
1544
1765
|
},
|
|
1545
1766
|
setup(e) {
|
|
1546
|
-
let t =
|
|
1547
|
-
return (
|
|
1548
|
-
|
|
1549
|
-
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (
|
|
1767
|
+
let t = R(() => import("./chunks/VersionHistoryMenu-MlxsUmuT.js")), n = R(() => import("./chunks/CollaboratorBar-DWW54Bn_.js"));
|
|
1768
|
+
return (r, a) => (s(), x("header", oi, [
|
|
1769
|
+
A("div", si, [
|
|
1770
|
+
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (s(), x("div", {
|
|
1550
1771
|
key: 0,
|
|
1551
|
-
class:
|
|
1552
|
-
}, [e.showTemplateName ? (
|
|
1772
|
+
class: v(["tpl:flex tpl:min-w-0 tpl:flex-col tpl:items-start", { "tpl:pb-1.5": e.showTemplateName && e.templates.timestamp.value !== null }])
|
|
1773
|
+
}, [e.showTemplateName ? (s(), D($r, {
|
|
1553
1774
|
key: 0,
|
|
1554
1775
|
name: e.templates.name.value,
|
|
1555
1776
|
editable: e.templates.canSave.value,
|
|
@@ -1558,43 +1779,48 @@ var rr = ["aria-label"], ir = {
|
|
|
1558
1779
|
"name",
|
|
1559
1780
|
"editable",
|
|
1560
1781
|
"onCommit"
|
|
1561
|
-
])) :
|
|
1782
|
+
])) : S("", !0), e.templates.timestamp.value ? (s(), D(ti, {
|
|
1562
1783
|
key: 1,
|
|
1563
1784
|
iso: e.templates.timestamp.value.iso,
|
|
1564
1785
|
kind: e.templates.timestamp.value.kind
|
|
1565
|
-
}, null, 8, ["iso", "kind"])) :
|
|
1566
|
-
e.versionHistory?.isAvailable.value && e.versionHistory.hasTemplate.value ? (
|
|
1786
|
+
}, null, 8, ["iso", "kind"])) : S("", !0)], 2)) : S("", !0),
|
|
1787
|
+
e.versionHistory?.isAvailable.value && e.versionHistory.hasTemplate.value ? (s(), D(h(t), {
|
|
1567
1788
|
key: 1,
|
|
1568
1789
|
versions: e.versionHistory.versions.value,
|
|
1569
1790
|
"is-loading": e.versionHistory.isLoading.value,
|
|
1570
1791
|
"is-restoring": e.versionHistory.isRestoring.value,
|
|
1571
1792
|
"previewing-id": e.versionHistory.previewingVersion.value?.id ?? null,
|
|
1572
|
-
onOpen:
|
|
1573
|
-
onNavigate:
|
|
1793
|
+
onOpen: a[0] ||= (t) => e.versionHistory.refresh(),
|
|
1794
|
+
onNavigate: a[1] ||= (t) => e.versionHistory.navigate(t)
|
|
1574
1795
|
}, null, 8, [
|
|
1575
1796
|
"versions",
|
|
1576
1797
|
"is-loading",
|
|
1577
1798
|
"is-restoring",
|
|
1578
1799
|
"previewing-id"
|
|
1579
|
-
])) :
|
|
1580
|
-
|
|
1800
|
+
])) : S("", !0),
|
|
1801
|
+
e.collaboration?.isLive.value ? (s(), D(h(n), {
|
|
1802
|
+
key: 2,
|
|
1803
|
+
people: e.collaboration.people.value,
|
|
1804
|
+
connection: e.collaboration.connection.value
|
|
1805
|
+
}, null, 8, ["people", "connection"])) : S("", !0),
|
|
1806
|
+
i(r.$slots, "left-extras")
|
|
1581
1807
|
]),
|
|
1582
|
-
|
|
1583
|
-
|
|
1808
|
+
A("div", ci, [
|
|
1809
|
+
g(sn, {
|
|
1584
1810
|
viewport: e.editor.state.viewport,
|
|
1585
1811
|
onChange: e.editor.setViewport
|
|
1586
1812
|
}, null, 8, ["viewport", "onChange"]),
|
|
1587
|
-
|
|
1813
|
+
g(Jr, {
|
|
1588
1814
|
"dark-mode": e.editor.state.darkMode,
|
|
1589
1815
|
onChange: e.editor.setDarkMode
|
|
1590
1816
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
1591
|
-
|
|
1817
|
+
g(Xr, {
|
|
1592
1818
|
"preview-mode": e.editor.state.previewMode,
|
|
1593
1819
|
onChange: e.editor.setPreviewMode
|
|
1594
1820
|
}, null, 8, ["preview-mode", "onChange"])
|
|
1595
1821
|
]),
|
|
1596
|
-
|
|
1597
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (
|
|
1822
|
+
A("div", li, [
|
|
1823
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), D(ai, {
|
|
1598
1824
|
key: 0,
|
|
1599
1825
|
status: e.templates.status.value,
|
|
1600
1826
|
"error-message": e.templates.errorMessage.value,
|
|
@@ -1603,92 +1829,92 @@ var rr = ["aria-label"], ir = {
|
|
|
1603
1829
|
"status",
|
|
1604
1830
|
"error-message",
|
|
1605
1831
|
"is-dirty"
|
|
1606
|
-
])) :
|
|
1607
|
-
e.comments?.isAvailable.value && e.comments.hasTemplate.value ? (
|
|
1832
|
+
])) : S("", !0),
|
|
1833
|
+
e.comments?.isAvailable.value && e.comments.hasTemplate.value ? (s(), x("button", {
|
|
1608
1834
|
key: 1,
|
|
1609
1835
|
type: "button",
|
|
1610
1836
|
"data-testid": "comments-trigger",
|
|
1611
1837
|
"aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
|
|
1612
1838
|
"aria-expanded": e.comments.isOpen.value,
|
|
1613
|
-
class:
|
|
1614
|
-
style:
|
|
1839
|
+
class: v(h(tn)),
|
|
1840
|
+
style: E(e.comments.isOpen.value ? {
|
|
1615
1841
|
backgroundColor: "var(--tpl-primary-light)",
|
|
1616
1842
|
borderColor: "var(--tpl-primary-light)"
|
|
1617
1843
|
} : void 0),
|
|
1618
|
-
onClick:
|
|
1844
|
+
onClick: a[2] ||= (t) => e.comments.toggle()
|
|
1619
1845
|
}, [
|
|
1620
|
-
h(
|
|
1846
|
+
g(h(qt), {
|
|
1621
1847
|
size: 16,
|
|
1622
1848
|
"stroke-width": 2
|
|
1623
1849
|
}),
|
|
1624
|
-
|
|
1625
|
-
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (
|
|
1626
|
-
], 14,
|
|
1627
|
-
i(
|
|
1628
|
-
e.testEmail?.isAvailable.value ? (
|
|
1850
|
+
z(" " + F(e.core.t.comments.button) + " ", 1),
|
|
1851
|
+
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (s(), x("span", di, F(e.comments.unresolvedCount.value), 1)) : S("", !0)
|
|
1852
|
+
], 14, ui)) : S("", !0),
|
|
1853
|
+
i(r.$slots, "right-extras"),
|
|
1854
|
+
e.testEmail?.isAvailable.value ? (s(), x("button", {
|
|
1629
1855
|
key: 2,
|
|
1630
1856
|
type: "button",
|
|
1631
1857
|
"data-testid": "test-email-trigger",
|
|
1632
1858
|
"aria-label": e.core.t.testEmail.title,
|
|
1633
1859
|
title: e.core.t.testEmail.title,
|
|
1634
1860
|
disabled: e.testEmail.isSending.value,
|
|
1635
|
-
class:
|
|
1636
|
-
onClick:
|
|
1637
|
-
}, [e.testEmail.isSending.value ? (
|
|
1861
|
+
class: v(h(tn)),
|
|
1862
|
+
onClick: a[3] ||= (t) => e.testEmail.open()
|
|
1863
|
+
}, [e.testEmail.isSending.value ? (s(), D(h(Ht), {
|
|
1638
1864
|
key: 1,
|
|
1639
1865
|
class: "tpl-spinner",
|
|
1640
1866
|
size: 16,
|
|
1641
1867
|
"stroke-width": 2
|
|
1642
|
-
})) : (
|
|
1868
|
+
})) : (s(), D(h(Lt), {
|
|
1643
1869
|
key: 0,
|
|
1644
1870
|
size: 16,
|
|
1645
1871
|
"stroke-width": 2
|
|
1646
|
-
})),
|
|
1647
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (
|
|
1872
|
+
})), z(" " + F(e.core.t.testEmail.button), 1)], 10, fi)) : S("", !0),
|
|
1873
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), x("button", {
|
|
1648
1874
|
key: 3,
|
|
1649
1875
|
type: "button",
|
|
1650
1876
|
"data-testid": "template-save",
|
|
1651
|
-
class:
|
|
1652
|
-
style:
|
|
1877
|
+
class: v(h(e.editor.state.isDirty && e.templates.hasTemplate.value ? rn : tn)),
|
|
1878
|
+
style: E(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
|
|
1653
1879
|
disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
|
|
1654
1880
|
title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
|
|
1655
|
-
onClick:
|
|
1656
|
-
}, [e.templates.isSaving.value ? (
|
|
1881
|
+
onClick: a[4] ||= (t) => e.templates.requestSave()
|
|
1882
|
+
}, [e.templates.isSaving.value ? (s(), D(h(Ht), {
|
|
1657
1883
|
key: 1,
|
|
1658
1884
|
class: "tpl-spinner",
|
|
1659
1885
|
size: 16,
|
|
1660
1886
|
"stroke-width": 2
|
|
1661
|
-
})) : (
|
|
1887
|
+
})) : (s(), D(h(Nt), {
|
|
1662
1888
|
key: 0,
|
|
1663
1889
|
size: 16,
|
|
1664
1890
|
"stroke-width": 2
|
|
1665
|
-
})),
|
|
1891
|
+
})), z(" " + F(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, pi)) : S("", !0)
|
|
1666
1892
|
])
|
|
1667
1893
|
]));
|
|
1668
1894
|
}
|
|
1669
|
-
}),
|
|
1895
|
+
}), hi = ["aria-labelledby", "data-tpl-theme"], gi = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, _i = ["id"], vi = ["aria-label"], yi = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, bi = [
|
|
1670
1896
|
"id",
|
|
1671
1897
|
"placeholder",
|
|
1672
1898
|
"aria-label",
|
|
1673
1899
|
"aria-activedescendant"
|
|
1674
|
-
],
|
|
1900
|
+
], xi = {
|
|
1675
1901
|
key: 0,
|
|
1676
1902
|
class: "tpl:flex tpl:gap-1.5 tpl:overflow-x-auto tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2",
|
|
1677
1903
|
"data-testid": "merge-tag-picker-group-pills"
|
|
1678
|
-
},
|
|
1904
|
+
}, Si = ["data-group-name", "onClick"], Ci = ["aria-label"], wi = {
|
|
1679
1905
|
key: 0,
|
|
1680
1906
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
1681
1907
|
"data-testid": "merge-tag-picker-empty"
|
|
1682
|
-
},
|
|
1908
|
+
}, Ti = {
|
|
1683
1909
|
key: 1,
|
|
1684
1910
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
1685
1911
|
"data-testid": "merge-tag-picker-empty"
|
|
1686
|
-
},
|
|
1912
|
+
}, Ei = [
|
|
1687
1913
|
"aria-expanded",
|
|
1688
1914
|
"data-group-name",
|
|
1689
1915
|
"data-group-collapsed",
|
|
1690
1916
|
"onClick"
|
|
1691
|
-
],
|
|
1917
|
+
], Di = { class: "tpl:ml-1 tpl:font-normal" }, Oi = [
|
|
1692
1918
|
"id",
|
|
1693
1919
|
"aria-selected",
|
|
1694
1920
|
"data-selected",
|
|
@@ -1698,51 +1924,51 @@ var rr = ["aria-label"], ir = {
|
|
|
1698
1924
|
"title",
|
|
1699
1925
|
"onMousemove",
|
|
1700
1926
|
"onClick"
|
|
1701
|
-
],
|
|
1927
|
+
], ki = { class: "tpl:text-sm tpl:font-medium" }, Ai = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, ji = {
|
|
1702
1928
|
key: 0,
|
|
1703
1929
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
1704
|
-
},
|
|
1930
|
+
}, Mi = {
|
|
1705
1931
|
key: 1,
|
|
1706
1932
|
"data-testid": "merge-tag-picker-sample",
|
|
1707
1933
|
class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
1708
|
-
}, $ = "tpl-merge-tag-picker-list",
|
|
1934
|
+
}, $ = "tpl-merge-tag-picker-list", Ni = /* @__PURE__ */ d({
|
|
1709
1935
|
__name: "MergeTagPickerModal",
|
|
1710
1936
|
setup(i) {
|
|
1711
|
-
let a =
|
|
1712
|
-
function
|
|
1937
|
+
let a = nt(rt, "MergeTagPickerModal"), { t: o, format: c } = Q(), u = t(at, null), d = t(mt, null), p = t(ct, !0), m = b(() => a.current.value !== null), y = b(() => m.value ? o.mergeTag.picker.changeTitle : o.mergeTag.picker.title);
|
|
1938
|
+
function C(e) {
|
|
1713
1939
|
return p ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
|
|
1714
1940
|
}
|
|
1715
|
-
let
|
|
1716
|
-
function
|
|
1717
|
-
return
|
|
1941
|
+
let O = l(""), j = we(O, 200), M = l(null), ee = b(() => j.value.trim().length > 0), N = l(0), I = b(() => a.tags.value.some((e) => !!e.group)), L = l(/* @__PURE__ */ new Set());
|
|
1942
|
+
function R(e) {
|
|
1943
|
+
return L.value.has(e);
|
|
1718
1944
|
}
|
|
1719
|
-
function
|
|
1720
|
-
let t = new Set(
|
|
1721
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
1945
|
+
function z(e) {
|
|
1946
|
+
let t = new Set(L.value);
|
|
1947
|
+
t.has(e) ? t.delete(e) : t.add(e), L.value = t, N.value = 0;
|
|
1722
1948
|
}
|
|
1723
|
-
let
|
|
1949
|
+
let te = b(() => {
|
|
1724
1950
|
let e = j.value.trim().toLowerCase();
|
|
1725
1951
|
return e ? a.tags.value.filter((t) => [
|
|
1726
1952
|
t.label,
|
|
1727
1953
|
t.value,
|
|
1728
1954
|
t.description ?? ""
|
|
1729
1955
|
].join(" ").toLowerCase().includes(e)) : a.tags.value;
|
|
1730
|
-
}),
|
|
1731
|
-
if (!
|
|
1732
|
-
let e =
|
|
1956
|
+
}), ne = b(() => {
|
|
1957
|
+
if (!I.value) return [];
|
|
1958
|
+
let e = o.mergeTag.picker.otherGroup, t = /* @__PURE__ */ new Set(), n = [];
|
|
1733
1959
|
for (let r of a.tags.value) {
|
|
1734
1960
|
let i = r.group ?? e;
|
|
1735
1961
|
t.has(i) || (t.add(i), n.push(i));
|
|
1736
1962
|
}
|
|
1737
1963
|
return n;
|
|
1738
|
-
}),
|
|
1739
|
-
let e =
|
|
1740
|
-
if (!
|
|
1964
|
+
}), B = b(() => {
|
|
1965
|
+
let e = te.value;
|
|
1966
|
+
if (!I.value || ee.value) return e.map((e, t) => ({
|
|
1741
1967
|
kind: "tag",
|
|
1742
1968
|
tag: e,
|
|
1743
1969
|
index: t
|
|
1744
1970
|
}));
|
|
1745
|
-
let t =
|
|
1971
|
+
let t = o.mergeTag.picker.otherGroup, n = /* @__PURE__ */ new Map(), r = [];
|
|
1746
1972
|
for (let i of e) {
|
|
1747
1973
|
let e = i.group ?? t;
|
|
1748
1974
|
n.has(e) || (n.set(e, []), r.push(e)), n.get(e).push(i);
|
|
@@ -1754,59 +1980,59 @@ var rr = ["aria-label"], ir = {
|
|
|
1754
1980
|
kind: "header",
|
|
1755
1981
|
group: e,
|
|
1756
1982
|
count: t.length
|
|
1757
|
-
}), !
|
|
1983
|
+
}), !L.value.has(e)) for (let e of t) i.push({
|
|
1758
1984
|
kind: "tag",
|
|
1759
1985
|
tag: e,
|
|
1760
1986
|
index: a
|
|
1761
1987
|
}), a++;
|
|
1762
1988
|
}
|
|
1763
1989
|
return i;
|
|
1764
|
-
}),
|
|
1765
|
-
function
|
|
1990
|
+
}), V = b(() => B.value.flatMap((e) => e.kind === "tag" ? [e.tag] : [])), H = !1;
|
|
1991
|
+
function U(e) {
|
|
1766
1992
|
let t = a.current.value;
|
|
1767
1993
|
if (!t) return !1;
|
|
1768
1994
|
let n = e.findIndex((e) => e.value === t.value);
|
|
1769
|
-
return n !== -1 && (
|
|
1995
|
+
return n !== -1 && (N.value = n, !0);
|
|
1770
1996
|
}
|
|
1771
|
-
function
|
|
1772
|
-
|
|
1997
|
+
function W(e) {
|
|
1998
|
+
H = !1, N.value = e;
|
|
1773
1999
|
}
|
|
1774
2000
|
e(() => a.isOpen.value, (e) => {
|
|
1775
|
-
e ? (
|
|
1776
|
-
|
|
1777
|
-
})) :
|
|
1778
|
-
}), e(
|
|
1779
|
-
|
|
2001
|
+
e ? (O.value = "", N.value = 0, L.value = /* @__PURE__ */ new Set(), H = !U(V.value), w(() => {
|
|
2002
|
+
M.value?.focus();
|
|
2003
|
+
})) : H = !1;
|
|
2004
|
+
}), e(V, (e) => {
|
|
2005
|
+
H && U(e) ? H = !1 : N.value >= e.length && (N.value = Math.max(0, e.length - 1));
|
|
1780
2006
|
});
|
|
1781
|
-
function
|
|
2007
|
+
function G(e) {
|
|
1782
2008
|
a.resolve(e);
|
|
1783
2009
|
}
|
|
1784
|
-
function
|
|
2010
|
+
function K() {
|
|
1785
2011
|
a.resolve(null);
|
|
1786
2012
|
}
|
|
1787
|
-
function
|
|
1788
|
-
if (
|
|
1789
|
-
|
|
1790
|
-
let t =
|
|
1791
|
-
|
|
2013
|
+
function q(e) {
|
|
2014
|
+
if (V.value.length === 0) return;
|
|
2015
|
+
H = !1;
|
|
2016
|
+
let t = N.value + e;
|
|
2017
|
+
N.value = Math.max(0, Math.min(V.value.length - 1, t)), Z();
|
|
1792
2018
|
}
|
|
1793
|
-
let
|
|
1794
|
-
function
|
|
1795
|
-
|
|
2019
|
+
let J = l(null), Y = l({});
|
|
2020
|
+
function X(e, t) {
|
|
2021
|
+
Y.value[e] = t ?? null;
|
|
1796
2022
|
}
|
|
1797
2023
|
function Z() {
|
|
1798
|
-
|
|
1799
|
-
let e =
|
|
1800
|
-
e && e.querySelector(`[data-merge-tag-index="${
|
|
2024
|
+
w(() => {
|
|
2025
|
+
let e = J.value;
|
|
2026
|
+
e && e.querySelector(`[data-merge-tag-index="${N.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
1801
2027
|
});
|
|
1802
2028
|
}
|
|
1803
2029
|
function re(e) {
|
|
1804
|
-
if (
|
|
1805
|
-
let t = new Set(
|
|
1806
|
-
t.delete(e),
|
|
2030
|
+
if (L.value.has(e)) {
|
|
2031
|
+
let t = new Set(L.value);
|
|
2032
|
+
t.delete(e), L.value = t;
|
|
1807
2033
|
}
|
|
1808
|
-
|
|
1809
|
-
let t =
|
|
2034
|
+
w(() => {
|
|
2035
|
+
let t = J.value;
|
|
1810
2036
|
if (!t) return;
|
|
1811
2037
|
let n = 0, r = !1;
|
|
1812
2038
|
for (let i of Array.from(t.children)) {
|
|
@@ -1823,136 +2049,136 @@ var rr = ["aria-label"], ir = {
|
|
|
1823
2049
|
});
|
|
1824
2050
|
}
|
|
1825
2051
|
function ie(e) {
|
|
1826
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
1827
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
2052
|
+
if (e.key === "ArrowDown") e.preventDefault(), q(1);
|
|
2053
|
+
else if (e.key === "ArrowUp") e.preventDefault(), q(-1);
|
|
1828
2054
|
else if (e.key === "Enter") {
|
|
1829
2055
|
e.preventDefault();
|
|
1830
|
-
let t =
|
|
1831
|
-
t &&
|
|
2056
|
+
let t = V.value[N.value];
|
|
2057
|
+
t && G(t);
|
|
1832
2058
|
}
|
|
1833
2059
|
}
|
|
1834
2060
|
function ae() {
|
|
1835
|
-
if (
|
|
2061
|
+
if (V.value.length !== 0) return `${$}-opt-${N.value}`;
|
|
1836
2062
|
}
|
|
1837
2063
|
function oe(e) {
|
|
1838
2064
|
return `${$}-opt-${e}`;
|
|
1839
2065
|
}
|
|
1840
|
-
let se =
|
|
1841
|
-
return (e, t) => (
|
|
1842
|
-
visible:
|
|
1843
|
-
onClose:
|
|
2066
|
+
let se = b(() => a.tags.value.length === 0), ce = b(() => !se.value && te.value.length === 0), le = b(() => I.value && ne.value.length > 1 && !ee.value);
|
|
2067
|
+
return (e, t) => (s(), D(dn, {
|
|
2068
|
+
visible: h(a).isOpen.value,
|
|
2069
|
+
onClose: K,
|
|
1844
2070
|
onKeydown: ie
|
|
1845
2071
|
}, {
|
|
1846
|
-
default: r(() => [
|
|
2072
|
+
default: r(() => [A("div", {
|
|
1847
2073
|
role: "dialog",
|
|
1848
2074
|
"aria-modal": "true",
|
|
1849
2075
|
"aria-labelledby": `${$}-title`,
|
|
1850
|
-
"data-tpl-theme":
|
|
2076
|
+
"data-tpl-theme": h(d),
|
|
1851
2077
|
"data-testid": "merge-tag-picker-modal",
|
|
1852
2078
|
class: "tpl tpl:flex tpl:max-h-[80%] tpl:w-[420px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
1853
|
-
style:
|
|
2079
|
+
style: E(h(u))
|
|
1854
2080
|
}, [
|
|
1855
|
-
|
|
2081
|
+
A("header", gi, [A("h2", {
|
|
1856
2082
|
id: `${$}-title`,
|
|
1857
2083
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
1858
|
-
},
|
|
2084
|
+
}, F(y.value), 9, _i), A("button", {
|
|
1859
2085
|
type: "button",
|
|
1860
2086
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
1861
|
-
"aria-label":
|
|
2087
|
+
"aria-label": h(o).mergeTag.picker.close,
|
|
1862
2088
|
"data-testid": "merge-tag-picker-close",
|
|
1863
|
-
onClick:
|
|
1864
|
-
}, [h(
|
|
2089
|
+
onClick: K
|
|
2090
|
+
}, [g(h(Kt), {
|
|
1865
2091
|
size: 16,
|
|
1866
2092
|
"stroke-width": 2
|
|
1867
|
-
})], 8,
|
|
1868
|
-
|
|
2093
|
+
})], 8, vi)]),
|
|
2094
|
+
A("div", yi, [g(h(Rt), {
|
|
1869
2095
|
class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
|
|
1870
2096
|
size: 14,
|
|
1871
2097
|
"stroke-width": 2
|
|
1872
|
-
}),
|
|
2098
|
+
}), f(A("input", {
|
|
1873
2099
|
id: `${$}-search`,
|
|
1874
2100
|
ref_key: "searchInputRef",
|
|
1875
|
-
ref:
|
|
1876
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
2101
|
+
ref: M,
|
|
2102
|
+
"onUpdate:modelValue": t[0] ||= (e) => O.value = e,
|
|
1877
2103
|
type: "text",
|
|
1878
2104
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
1879
|
-
placeholder:
|
|
1880
|
-
"aria-label":
|
|
2105
|
+
placeholder: h(o).mergeTag.picker.searchPlaceholder,
|
|
2106
|
+
"aria-label": h(o).mergeTag.picker.searchAriaLabel,
|
|
1881
2107
|
"aria-controls": $,
|
|
1882
2108
|
"aria-activedescendant": ae(),
|
|
1883
2109
|
"data-testid": "merge-tag-picker-search",
|
|
1884
|
-
onKeydown: t[1] ||=
|
|
1885
|
-
}, null, 40,
|
|
1886
|
-
le.value ? (
|
|
2110
|
+
onKeydown: t[1] ||= _(T(() => {}, ["prevent"]), ["enter"])
|
|
2111
|
+
}, null, 40, bi), [[k, O.value]])]),
|
|
2112
|
+
le.value ? (s(), x("div", xi, [(s(!0), x(P, null, n(ne.value, (e) => (s(), x("button", {
|
|
1887
2113
|
key: e,
|
|
1888
2114
|
type: "button",
|
|
1889
2115
|
class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
1890
2116
|
"data-testid": "merge-tag-picker-group-pill",
|
|
1891
2117
|
"data-group-name": e,
|
|
1892
2118
|
onClick: (t) => re(e)
|
|
1893
|
-
},
|
|
1894
|
-
|
|
2119
|
+
}, F(e), 9, Si))), 128))])) : S("", !0),
|
|
2120
|
+
A("div", {
|
|
1895
2121
|
id: $,
|
|
1896
2122
|
ref_key: "listRef",
|
|
1897
|
-
ref:
|
|
2123
|
+
ref: J,
|
|
1898
2124
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
1899
2125
|
role: "listbox",
|
|
1900
|
-
"aria-label":
|
|
2126
|
+
"aria-label": y.value,
|
|
1901
2127
|
"data-testid": "merge-tag-picker-list"
|
|
1902
|
-
}, [se.value ? (
|
|
2128
|
+
}, [se.value ? (s(), x("div", wi, F(h(o).mergeTag.picker.empty), 1)) : ce.value ? (s(), x("div", Ti, F(h(o).mergeTag.picker.noResults), 1)) : (s(!0), x(P, { key: 2 }, n(B.value, (e, t) => (s(), x(P, { key: t }, [e.kind === "header" ? (s(), x("button", {
|
|
1903
2129
|
key: 0,
|
|
1904
2130
|
ref_for: !0,
|
|
1905
|
-
ref: (t) =>
|
|
2131
|
+
ref: (t) => X(e.group, t),
|
|
1906
2132
|
type: "button",
|
|
1907
|
-
"aria-expanded": !
|
|
2133
|
+
"aria-expanded": !R(e.group),
|
|
1908
2134
|
"aria-controls": $,
|
|
1909
2135
|
class: "tpl:sticky tpl:top-0 tpl:z-10 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-left tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)]",
|
|
1910
2136
|
"data-testid": "merge-tag-picker-group-header",
|
|
1911
2137
|
"data-group-name": e.group,
|
|
1912
|
-
"data-group-collapsed":
|
|
1913
|
-
onClick: (t) =>
|
|
2138
|
+
"data-group-collapsed": R(e.group) ? "true" : "false",
|
|
2139
|
+
onClick: (t) => z(e.group)
|
|
1914
2140
|
}, [
|
|
1915
|
-
h(
|
|
2141
|
+
g(h(Bt), {
|
|
1916
2142
|
size: 12,
|
|
1917
2143
|
"stroke-width": 2,
|
|
1918
|
-
class:
|
|
2144
|
+
class: v(["tpl:transition-transform", R(e.group) ? "tpl:-rotate-90" : ""])
|
|
1919
2145
|
}, null, 8, ["class"]),
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
], 8,
|
|
2146
|
+
A("span", null, F(e.group), 1),
|
|
2147
|
+
A("span", Di, " (" + F(h(c)(h(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
2148
|
+
], 8, Ei)) : (s(), x("button", {
|
|
1923
2149
|
key: 1,
|
|
1924
2150
|
id: oe(e.index),
|
|
1925
2151
|
type: "button",
|
|
1926
2152
|
role: "option",
|
|
1927
|
-
"aria-selected": e.index ===
|
|
1928
|
-
"data-selected": e.index ===
|
|
2153
|
+
"aria-selected": e.index === N.value,
|
|
2154
|
+
"data-selected": e.index === N.value ? "true" : "false",
|
|
1929
2155
|
"data-merge-tag-index": e.index,
|
|
1930
2156
|
"data-merge-tag-value": e.tag.value,
|
|
1931
|
-
"aria-current": e.tag.value ===
|
|
1932
|
-
title:
|
|
1933
|
-
class:
|
|
2157
|
+
"aria-current": e.tag.value === h(a).current.value?.value ? "true" : void 0,
|
|
2158
|
+
title: C(e.tag),
|
|
2159
|
+
class: v(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === N.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
1934
2160
|
"data-testid": "merge-tag-picker-item",
|
|
1935
|
-
onMousemove: (t) =>
|
|
1936
|
-
onClick: (t) =>
|
|
2161
|
+
onMousemove: (t) => W(e.index),
|
|
2162
|
+
onClick: (t) => G(e.tag)
|
|
1937
2163
|
}, [
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
e.tag.description ? (
|
|
1941
|
-
e.tag.sample === void 0 ?
|
|
1942
|
-
], 42,
|
|
1943
|
-
], 12,
|
|
2164
|
+
A("span", ki, F(e.tag.label), 1),
|
|
2165
|
+
A("span", Ai, F(e.tag.value), 1),
|
|
2166
|
+
e.tag.description ? (s(), x("span", ji, F(e.tag.description), 1)) : S("", !0),
|
|
2167
|
+
e.tag.sample === void 0 ? S("", !0) : (s(), x("span", Mi, F(h(c)(h(o).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
|
|
2168
|
+
], 42, Oi))], 64))), 128))], 8, Ci)
|
|
2169
|
+
], 12, hi)]),
|
|
1944
2170
|
_: 1
|
|
1945
2171
|
}, 8, ["visible"]));
|
|
1946
2172
|
}
|
|
1947
|
-
}),
|
|
2173
|
+
}), Pi = ["data-logic-keyword"], Fi = /* @__PURE__ */ d({
|
|
1948
2174
|
__name: "LogicTagBadge",
|
|
1949
2175
|
props: {
|
|
1950
2176
|
value: {},
|
|
1951
2177
|
syntax: {}
|
|
1952
2178
|
},
|
|
1953
2179
|
setup(e) {
|
|
1954
|
-
let t = e, n =
|
|
1955
|
-
return (e, t) => n.value ? (
|
|
2180
|
+
let t = e, n = b(() => le(t.value, t.syntax)), r = b(() => Z(t.value, t.syntax));
|
|
2181
|
+
return (e, t) => n.value ? (s(), x("span", {
|
|
1956
2182
|
key: 0,
|
|
1957
2183
|
class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
1958
2184
|
style: {
|
|
@@ -1961,22 +2187,22 @@ var rr = ["aria-label"], ir = {
|
|
|
1961
2187
|
},
|
|
1962
2188
|
"data-testid": "merge-tag-logic-badge",
|
|
1963
2189
|
"data-logic-keyword": r.value
|
|
1964
|
-
},
|
|
2190
|
+
}, F(r.value), 9, Pi)) : S("", !0);
|
|
1965
2191
|
}
|
|
1966
|
-
}),
|
|
2192
|
+
}), Ii = ["aria-labelledby", "data-tpl-theme"], Li = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Ri = ["id"], zi = ["aria-label"], Bi = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Vi = [
|
|
1967
2193
|
"id",
|
|
1968
2194
|
"placeholder",
|
|
1969
2195
|
"aria-label",
|
|
1970
2196
|
"aria-activedescendant"
|
|
1971
|
-
],
|
|
2197
|
+
], Hi = ["aria-label"], Ui = {
|
|
1972
2198
|
key: 0,
|
|
1973
2199
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
1974
2200
|
"data-testid": "logic-picker-empty"
|
|
1975
|
-
},
|
|
2201
|
+
}, Wi = {
|
|
1976
2202
|
key: 1,
|
|
1977
2203
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
1978
2204
|
"data-testid": "logic-picker-empty"
|
|
1979
|
-
},
|
|
2205
|
+
}, Gi = ["data-group-name"], Ki = [
|
|
1980
2206
|
"id",
|
|
1981
2207
|
"aria-selected",
|
|
1982
2208
|
"data-selected",
|
|
@@ -1984,50 +2210,50 @@ var rr = ["aria-label"], ir = {
|
|
|
1984
2210
|
"data-logic-kind",
|
|
1985
2211
|
"onMousemove",
|
|
1986
2212
|
"onClick"
|
|
1987
|
-
],
|
|
2213
|
+
], qi = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Ji = { class: "tpl:text-sm tpl:font-medium" }, Yi = {
|
|
1988
2214
|
key: 0,
|
|
1989
2215
|
class: "tpl:flex tpl:items-center"
|
|
1990
|
-
},
|
|
2216
|
+
}, Xi = {
|
|
1991
2217
|
key: 1,
|
|
1992
2218
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
1993
|
-
},
|
|
2219
|
+
}, Zi = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Qi = {
|
|
1994
2220
|
key: 0,
|
|
1995
2221
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
1996
|
-
},
|
|
2222
|
+
}, $i = "tpl-logic-picker-list", ea = /* @__PURE__ */ d({
|
|
1997
2223
|
__name: "LogicTagPickerModal",
|
|
1998
2224
|
setup(i) {
|
|
1999
|
-
let a =
|
|
2225
|
+
let a = nt(it, "LogicTagPickerModal"), { t: o } = Q(), c = t(lt, ae.liquid), u = t(at, null), d = t(mt, null), p = l(""), m = we(p, 200), y = l(null), C = b(() => m.value.trim().length > 0), O = l(0);
|
|
2000
2226
|
function j(e) {
|
|
2001
|
-
let t =
|
|
2227
|
+
let t = m.value.trim().toLowerCase();
|
|
2002
2228
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
2003
2229
|
}
|
|
2004
|
-
let
|
|
2230
|
+
let M = b(() => a.tags.value.filter((e) => j([
|
|
2005
2231
|
e.label,
|
|
2006
2232
|
e.value,
|
|
2007
2233
|
e.description
|
|
2008
|
-
]))),
|
|
2234
|
+
]))), ee = b(() => a.pairs.value.filter((e) => j([
|
|
2009
2235
|
e.label,
|
|
2010
2236
|
e.before,
|
|
2011
2237
|
e.after,
|
|
2012
2238
|
e.description
|
|
2013
|
-
]))),
|
|
2239
|
+
]))), N = b(() => [...ee.value.map((e) => ({
|
|
2014
2240
|
kind: "pair",
|
|
2015
2241
|
pair: e,
|
|
2016
2242
|
group: e.group
|
|
2017
|
-
})), ...
|
|
2243
|
+
})), ...M.value.map((e) => ({
|
|
2018
2244
|
kind: "tag",
|
|
2019
2245
|
tag: e,
|
|
2020
2246
|
group: e.group
|
|
2021
|
-
}))]),
|
|
2022
|
-
function
|
|
2023
|
-
let t =
|
|
2247
|
+
}))]), I = b(() => a.tags.value.some((e) => !!e.group) || a.pairs.value.some((e) => !!e.group));
|
|
2248
|
+
function L(e) {
|
|
2249
|
+
let t = o.logicTag.picker.otherGroup, n = /* @__PURE__ */ new Map(), r = [];
|
|
2024
2250
|
for (let i of e) {
|
|
2025
2251
|
let e = i.group ?? t;
|
|
2026
2252
|
n.has(e) || (n.set(e, []), r.push(e)), n.get(e).push(i);
|
|
2027
2253
|
}
|
|
2028
2254
|
return r.map((e) => [e, n.get(e)]);
|
|
2029
2255
|
}
|
|
2030
|
-
let
|
|
2256
|
+
let R = b(() => {
|
|
2031
2257
|
let e = [], t = [], n = 0, r = (r) => {
|
|
2032
2258
|
r.kind === "tag" ? (e.push({
|
|
2033
2259
|
kind: "tag",
|
|
@@ -2038,9 +2264,9 @@ var rr = ["aria-label"], ir = {
|
|
|
2038
2264
|
pair: r.pair,
|
|
2039
2265
|
index: n
|
|
2040
2266
|
}), t.push(r.pair)), n++;
|
|
2041
|
-
}, i =
|
|
2042
|
-
if (
|
|
2043
|
-
else for (let [t, n] of
|
|
2267
|
+
}, i = N.value;
|
|
2268
|
+
if (C.value || !I.value) for (let e of i) r(e);
|
|
2269
|
+
else for (let [t, n] of L(i)) {
|
|
2044
2270
|
e.push({
|
|
2045
2271
|
kind: "header",
|
|
2046
2272
|
label: t
|
|
@@ -2051,137 +2277,137 @@ var rr = ["aria-label"], ir = {
|
|
|
2051
2277
|
rows: e,
|
|
2052
2278
|
items: t
|
|
2053
2279
|
};
|
|
2054
|
-
}),
|
|
2280
|
+
}), z = b(() => R.value.items), te = b(() => a.tags.value.length === 0 && a.pairs.value.length === 0), ne = b(() => !te.value && z.value.length === 0);
|
|
2055
2281
|
e(() => a.isOpen.value, (e) => {
|
|
2056
|
-
e && (p.value = "",
|
|
2057
|
-
}), e(
|
|
2058
|
-
|
|
2282
|
+
e && (p.value = "", O.value = 0, w(() => y.value?.focus()));
|
|
2283
|
+
}), e(z, (e) => {
|
|
2284
|
+
O.value >= e.length && (O.value = Math.max(0, e.length - 1));
|
|
2059
2285
|
});
|
|
2060
|
-
let
|
|
2061
|
-
function
|
|
2286
|
+
let B = l(null);
|
|
2287
|
+
function V(e) {
|
|
2062
2288
|
a.resolve(e);
|
|
2063
2289
|
}
|
|
2064
|
-
function
|
|
2290
|
+
function H() {
|
|
2065
2291
|
a.resolve(null);
|
|
2066
2292
|
}
|
|
2067
|
-
function
|
|
2068
|
-
|
|
2069
|
-
|
|
2293
|
+
function U(e) {
|
|
2294
|
+
z.value.length !== 0 && (O.value = Math.max(0, Math.min(z.value.length - 1, O.value + e)), w(() => {
|
|
2295
|
+
B.value?.querySelector(`[data-logic-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
2070
2296
|
}));
|
|
2071
2297
|
}
|
|
2072
|
-
function
|
|
2073
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
2074
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
2298
|
+
function W(e) {
|
|
2299
|
+
if (e.key === "ArrowDown") e.preventDefault(), U(1);
|
|
2300
|
+
else if (e.key === "ArrowUp") e.preventDefault(), U(-1);
|
|
2075
2301
|
else if (e.key === "Enter") {
|
|
2076
2302
|
e.preventDefault();
|
|
2077
|
-
let t =
|
|
2078
|
-
t &&
|
|
2303
|
+
let t = z.value[O.value];
|
|
2304
|
+
t && V(t);
|
|
2079
2305
|
}
|
|
2080
2306
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return `${
|
|
2307
|
+
function G(e) {
|
|
2308
|
+
return `${$i}-opt-${e}`;
|
|
2083
2309
|
}
|
|
2084
|
-
function
|
|
2085
|
-
return
|
|
2310
|
+
function K() {
|
|
2311
|
+
return z.value.length === 0 ? void 0 : `${$i}-opt-${O.value}`;
|
|
2086
2312
|
}
|
|
2087
|
-
return (e, t) => (
|
|
2088
|
-
visible:
|
|
2089
|
-
onClose:
|
|
2090
|
-
onKeydown:
|
|
2313
|
+
return (e, t) => (s(), D(dn, {
|
|
2314
|
+
visible: h(a).isOpen.value,
|
|
2315
|
+
onClose: H,
|
|
2316
|
+
onKeydown: W
|
|
2091
2317
|
}, {
|
|
2092
|
-
default: r(() => [
|
|
2318
|
+
default: r(() => [A("div", {
|
|
2093
2319
|
role: "dialog",
|
|
2094
2320
|
"aria-modal": "true",
|
|
2095
|
-
"aria-labelledby": `${
|
|
2096
|
-
"data-tpl-theme":
|
|
2321
|
+
"aria-labelledby": `${$i}-title`,
|
|
2322
|
+
"data-tpl-theme": h(d),
|
|
2097
2323
|
"data-testid": "logic-picker-modal",
|
|
2098
2324
|
class: "tpl tpl:flex tpl:max-h-[80%] tpl:w-[420px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
2099
|
-
style:
|
|
2325
|
+
style: E(h(u))
|
|
2100
2326
|
}, [
|
|
2101
|
-
|
|
2102
|
-
id: `${
|
|
2327
|
+
A("header", Li, [A("h2", {
|
|
2328
|
+
id: `${$i}-title`,
|
|
2103
2329
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
2104
|
-
},
|
|
2330
|
+
}, F(h(o).logicTag.picker.title), 9, Ri), A("button", {
|
|
2105
2331
|
type: "button",
|
|
2106
2332
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
2107
|
-
"aria-label":
|
|
2333
|
+
"aria-label": h(o).logicTag.picker.close,
|
|
2108
2334
|
"data-testid": "logic-picker-close",
|
|
2109
|
-
onClick:
|
|
2110
|
-
}, [h(
|
|
2335
|
+
onClick: H
|
|
2336
|
+
}, [g(h(Kt), {
|
|
2111
2337
|
size: 16,
|
|
2112
2338
|
"stroke-width": 2
|
|
2113
|
-
})], 8,
|
|
2114
|
-
|
|
2339
|
+
})], 8, zi)]),
|
|
2340
|
+
A("div", Bi, [g(h(Rt), {
|
|
2115
2341
|
class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
|
|
2116
2342
|
size: 14,
|
|
2117
2343
|
"stroke-width": 2
|
|
2118
|
-
}),
|
|
2119
|
-
id: `${
|
|
2344
|
+
}), f(A("input", {
|
|
2345
|
+
id: `${$i}-search`,
|
|
2120
2346
|
ref_key: "searchInputRef",
|
|
2121
|
-
ref:
|
|
2347
|
+
ref: y,
|
|
2122
2348
|
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
2123
2349
|
type: "text",
|
|
2124
2350
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
2125
|
-
placeholder:
|
|
2126
|
-
"aria-label":
|
|
2127
|
-
"aria-controls":
|
|
2128
|
-
"aria-activedescendant":
|
|
2351
|
+
placeholder: h(o).logicTag.picker.searchPlaceholder,
|
|
2352
|
+
"aria-label": h(o).logicTag.picker.searchAriaLabel,
|
|
2353
|
+
"aria-controls": $i,
|
|
2354
|
+
"aria-activedescendant": K(),
|
|
2129
2355
|
"data-testid": "logic-picker-search",
|
|
2130
|
-
onKeydown: t[1] ||=
|
|
2131
|
-
}, null, 40,
|
|
2132
|
-
|
|
2133
|
-
id:
|
|
2356
|
+
onKeydown: t[1] ||= _(T(() => {}, ["prevent"]), ["enter"])
|
|
2357
|
+
}, null, 40, Vi), [[k, p.value]])]),
|
|
2358
|
+
A("div", {
|
|
2359
|
+
id: $i,
|
|
2134
2360
|
ref_key: "listRef",
|
|
2135
|
-
ref:
|
|
2361
|
+
ref: B,
|
|
2136
2362
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
2137
2363
|
role: "listbox",
|
|
2138
|
-
"aria-label":
|
|
2364
|
+
"aria-label": h(o).logicTag.picker.title,
|
|
2139
2365
|
"data-testid": "logic-picker-list"
|
|
2140
|
-
}, [
|
|
2366
|
+
}, [te.value ? (s(), x("div", Ui, F(h(o).logicTag.picker.empty), 1)) : ne.value ? (s(), x("div", Wi, F(h(o).logicTag.picker.noResults), 1)) : (s(!0), x(P, { key: 2 }, n(R.value.rows, (e, n) => (s(), x(P, { key: n }, [e.kind === "header" ? (s(), x("div", {
|
|
2141
2367
|
key: 0,
|
|
2142
2368
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
2143
2369
|
"data-testid": "logic-picker-header",
|
|
2144
2370
|
"data-group-name": e.label
|
|
2145
|
-
},
|
|
2371
|
+
}, F(e.label), 9, Gi)) : (s(), x("button", {
|
|
2146
2372
|
key: 1,
|
|
2147
|
-
id:
|
|
2373
|
+
id: G(e.index),
|
|
2148
2374
|
type: "button",
|
|
2149
2375
|
role: "option",
|
|
2150
|
-
"aria-selected": e.index ===
|
|
2151
|
-
"data-selected": e.index ===
|
|
2376
|
+
"aria-selected": e.index === O.value,
|
|
2377
|
+
"data-selected": e.index === O.value ? "true" : "false",
|
|
2152
2378
|
"data-logic-index": e.index,
|
|
2153
2379
|
"data-logic-kind": e.kind,
|
|
2154
|
-
class:
|
|
2380
|
+
class: v(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === O.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
2155
2381
|
"data-testid": "logic-picker-item",
|
|
2156
|
-
onMousemove: (t) =>
|
|
2157
|
-
onClick: (t) =>
|
|
2382
|
+
onMousemove: (t) => O.value = e.index,
|
|
2383
|
+
onClick: (t) => V(e.kind === "tag" ? e.tag : e.pair)
|
|
2158
2384
|
}, [
|
|
2159
|
-
|
|
2385
|
+
A("span", qi, [A("span", Ji, F(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), x("span", Yi, [g(Fi, {
|
|
2160
2386
|
value: e.tag.value,
|
|
2161
|
-
syntax:
|
|
2162
|
-
}, null, 8, ["value", "syntax"])])) : (
|
|
2163
|
-
|
|
2387
|
+
syntax: h(c)
|
|
2388
|
+
}, null, 8, ["value", "syntax"])])) : (s(), x("span", Xi, [
|
|
2389
|
+
g(Fi, {
|
|
2164
2390
|
value: e.pair.before,
|
|
2165
|
-
syntax:
|
|
2391
|
+
syntax: h(c)
|
|
2166
2392
|
}, null, 8, ["value", "syntax"]),
|
|
2167
|
-
t[2] ||=
|
|
2168
|
-
|
|
2393
|
+
t[2] ||= A("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
2394
|
+
g(Fi, {
|
|
2169
2395
|
value: e.pair.after,
|
|
2170
|
-
syntax:
|
|
2396
|
+
syntax: h(c)
|
|
2171
2397
|
}, null, 8, ["value", "syntax"])
|
|
2172
2398
|
]))]),
|
|
2173
|
-
|
|
2174
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (
|
|
2175
|
-
], 42,
|
|
2176
|
-
], 12,
|
|
2399
|
+
A("span", Zi, F(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
2400
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), x("span", Qi, F(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : S("", !0)
|
|
2401
|
+
], 42, Ki))], 64))), 128))], 8, Hi)
|
|
2402
|
+
], 12, Ii)]),
|
|
2177
2403
|
_: 1
|
|
2178
2404
|
}, 8, ["visible"]));
|
|
2179
2405
|
}
|
|
2180
|
-
}),
|
|
2406
|
+
}), ta = ["data-tpl-theme"], na = { class: "tpl:absolute tpl:inset-0 tpl:overflow-hidden" }, ra = { class: "tpl-preview-overlay tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, ia = { class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" }, aa = {
|
|
2181
2407
|
key: 0,
|
|
2182
2408
|
"data-testid": "merge-tag-mode-toggle-anchor",
|
|
2183
2409
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
|
|
2184
|
-
},
|
|
2410
|
+
}, oa = { class: "tpl-main tpl:flex tpl:py-8" }, sa = ["aria-label"], ca = /*#__PURE__*/ Zt(/* @__PURE__ */ d({
|
|
2185
2411
|
__name: "Editor",
|
|
2186
2412
|
props: {
|
|
2187
2413
|
config: {},
|
|
@@ -2193,60 +2419,78 @@ var rr = ["aria-label"], ir = {
|
|
|
2193
2419
|
usesLocalRenderer: { type: Function }
|
|
2194
2420
|
},
|
|
2195
2421
|
setup(t, { expose: n }) {
|
|
2196
|
-
let i = t,
|
|
2422
|
+
let i = t, a = i.config.templates ? Tn(i.config.templates, i.config.mergeTags) : void 0;
|
|
2423
|
+
i.config.collaboration && !a && Et.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
|
|
2424
|
+
let c = i.config.collaboration && a ? Nn({
|
|
2425
|
+
provider: i.config.collaboration,
|
|
2426
|
+
loadTemplate: (e) => a.load(e),
|
|
2427
|
+
user: i.config.user,
|
|
2428
|
+
mergeTags: i.config.mergeTags,
|
|
2429
|
+
onRemoteChange: i.config.onRemoteChange,
|
|
2430
|
+
onError: i.config.onError
|
|
2431
|
+
}) : null, u = a && c ? Qn(a, c.core, () => {
|
|
2432
|
+
let e = d.state.template;
|
|
2433
|
+
return e ? {
|
|
2434
|
+
...N(e),
|
|
2435
|
+
content: X(N(d.content.value))
|
|
2436
|
+
} : null;
|
|
2437
|
+
}) : a, d = he({
|
|
2197
2438
|
content: i.config.content,
|
|
2198
2439
|
defaultFontFamily: i.config.fonts?.defaultFont,
|
|
2199
|
-
templateDefaults:
|
|
2200
|
-
templates:
|
|
2440
|
+
templateDefaults: mn(i.config),
|
|
2441
|
+
templates: u,
|
|
2201
2442
|
onError: i.config.onError,
|
|
2202
|
-
lockedBlocks:
|
|
2203
|
-
})
|
|
2204
|
-
|
|
2205
|
-
|
|
2443
|
+
lockedBlocks: c?.locks
|
|
2444
|
+
});
|
|
2445
|
+
c?.attach(d);
|
|
2446
|
+
let p = i.cloud ? i.cloud.attach({ editor: d }) : null, _ = u ? Vn({
|
|
2447
|
+
provider: u,
|
|
2448
|
+
editor: d,
|
|
2206
2449
|
guardUnsavedChanges: i.config.templates?.unsavedChangesGuard,
|
|
2207
2450
|
getSaveGate: i.cloud ? () => i.cloud.getSaveGate() : void 0
|
|
2208
2451
|
}) : null;
|
|
2209
|
-
i.config.onDirtyChange && e(() =>
|
|
2210
|
-
let
|
|
2452
|
+
i.config.onDirtyChange && e(() => d.state.isDirty, (e) => i.config.onDirtyChange(e));
|
|
2453
|
+
let y = l(null), w = i.config.savedBlocks ? zn({
|
|
2211
2454
|
provider: i.config.savedBlocks,
|
|
2212
|
-
editor:
|
|
2455
|
+
editor: d,
|
|
2213
2456
|
onError: i.config.onError,
|
|
2214
2457
|
isAvailable: i.cloud ? () => i.cloud.isSavedBlocksAvailable() : void 0
|
|
2215
|
-
}) : null,
|
|
2458
|
+
}) : null, k = R(() => import("./chunks/SavedBlocksPanels-s_gxi1im.js")), j = i.config.media || i.config.onRequestMedia ? Ln({
|
|
2216
2459
|
provider: i.config.media,
|
|
2217
2460
|
onRequestMedia: i.config.onRequestMedia,
|
|
2218
|
-
getTemplateId: () =>
|
|
2461
|
+
getTemplateId: () => d.state.template?.id,
|
|
2219
2462
|
onError: i.config.onError
|
|
2220
|
-
}) : null,
|
|
2463
|
+
}) : null, ee = R(() => import("./chunks/MediaPanels-CkdJ_kGp.js")), P = i.config.testEmail ? Kn({
|
|
2221
2464
|
provider: i.config.testEmail,
|
|
2222
|
-
getContent: () =>
|
|
2465
|
+
getContent: () => d.content.value,
|
|
2223
2466
|
renderMjml: i.renderMjml,
|
|
2224
2467
|
usesLocalRenderer: i.usesLocalRenderer,
|
|
2225
2468
|
onError: i.config.onError,
|
|
2226
2469
|
isAvailable: i.cloud ? () => i.cloud.isTestEmailAvailable() : void 0
|
|
2227
|
-
}) : null,
|
|
2470
|
+
}) : null, I = R(() => import("./chunks/TestEmailPanel-DERaCdpG.js")), L = i.config.comments ? Pn({
|
|
2228
2471
|
provider: i.config.comments,
|
|
2229
|
-
editor:
|
|
2472
|
+
editor: d,
|
|
2230
2473
|
user: i.config.user,
|
|
2231
|
-
isOpen:
|
|
2474
|
+
isOpen: p?.panelState.commentsOpen,
|
|
2232
2475
|
onError: i.config.onError,
|
|
2233
2476
|
isAvailable: i.cloud ? () => i.cloud.isCommentsAvailable() : void 0,
|
|
2234
2477
|
isBlockSaved: i.cloud ? (e) => i.cloud.isBlockSaved(e) : void 0
|
|
2235
|
-
}) : null,
|
|
2236
|
-
|
|
2237
|
-
let
|
|
2478
|
+
}) : null, te = R(() => import("./chunks/CommentsPanel-R8YLLO3v.js")), ne = R(() => import("./chunks/CollaborationNotices-CBvKEj1Q.js")), B = R(() => import("./chunks/CloudPanels-XufhBZYF.js")), V = R(() => import("./chunks/CloudHeaderExtras-DEkRww7n.js")), H = R(() => import("./chunks/VersionHistoryPanels-DVOV8QLv.js")), U = Jn(i.config.templates?.autoSave, !1), W = U && _ !== null;
|
|
2479
|
+
U && _ !== null && !_.canSave.value && Et.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), i.config.changeDebounce !== void 0 && _ !== null && i.config.templates?.autoSave === void 0 && !i.config.onChange && Et.warn("config.changeDebounce is set but nothing will use it — config.templates.autoSave is unset and there is no onChange either, so the timer has no consumer. Set config.templates.autoSave, or add onChange, so the debounce takes effect.");
|
|
2480
|
+
let G = i.config.onChange || W ? {
|
|
2238
2481
|
onChange: () => {
|
|
2239
|
-
i.config.onChange?.(JSON.parse(JSON.stringify(
|
|
2482
|
+
i.config.onChange?.(JSON.parse(JSON.stringify(d.state.content))), W && _.requestAutoSave();
|
|
2240
2483
|
},
|
|
2241
2484
|
...i.config.changeDebounce === void 0 ? {} : { debounce: i.config.changeDebounce }
|
|
2242
|
-
} : null,
|
|
2243
|
-
...
|
|
2244
|
-
...
|
|
2245
|
-
...
|
|
2246
|
-
...
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2485
|
+
} : null, K = {
|
|
2486
|
+
...w ? { savedBlocks: w.capability } : {},
|
|
2487
|
+
..._ ? { templates: _.capability } : {},
|
|
2488
|
+
...P ? { testEmail: P.capability } : {},
|
|
2489
|
+
...L ? { comments: L.capability } : {},
|
|
2490
|
+
...c ? { collaboration: c.capability } : {}
|
|
2491
|
+
}, q = $e({
|
|
2492
|
+
editor: d,
|
|
2493
|
+
containerEl: y,
|
|
2250
2494
|
config: {
|
|
2251
2495
|
uiTheme: i.config.uiTheme,
|
|
2252
2496
|
theme: i.config.theme,
|
|
@@ -2262,94 +2506,100 @@ var rr = ["aria-label"], ir = {
|
|
|
2262
2506
|
mergeTags: i.config.mergeTags,
|
|
2263
2507
|
logicTags: i.config.logicTags,
|
|
2264
2508
|
displayConditions: i.config.displayConditions,
|
|
2265
|
-
onRequestMedia:
|
|
2266
|
-
canDropMedia:
|
|
2509
|
+
onRequestMedia: j?.requestMedia ?? null,
|
|
2510
|
+
canDropMedia: j?.canDrop ?? null,
|
|
2267
2511
|
resolvePreview: i.config.resolvePreview,
|
|
2268
2512
|
resolveImageUrl: i.config.resolveImageUrl,
|
|
2269
|
-
lint:
|
|
2513
|
+
lint: Yn(i.config),
|
|
2270
2514
|
locale: i.config.locale
|
|
2271
2515
|
},
|
|
2272
2516
|
translations: i.translations,
|
|
2273
2517
|
fontsManager: i.fontsManager,
|
|
2274
|
-
autoSaveOptions:
|
|
2275
|
-
capabilities:
|
|
2518
|
+
autoSaveOptions: G,
|
|
2519
|
+
capabilities: K,
|
|
2276
2520
|
editorRoot: i.shadowRoot,
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
}) : null, J = i.config.versionHistory ? Tn({
|
|
2521
|
+
history: c?.history
|
|
2522
|
+
}), J = i.cloud && p ? i.cloud.ready({
|
|
2523
|
+
core: q,
|
|
2524
|
+
capabilities: K
|
|
2525
|
+
}) : null, Y = i.config.versionHistory ? qn({
|
|
2283
2526
|
provider: i.config.versionHistory,
|
|
2284
|
-
editor:
|
|
2285
|
-
history:
|
|
2286
|
-
conditionPreview:
|
|
2287
|
-
autoSave:
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2527
|
+
editor: wn(d, i.config.mergeTags),
|
|
2528
|
+
history: q.history,
|
|
2529
|
+
conditionPreview: q.conditionPreview,
|
|
2530
|
+
autoSave: q.autoSave,
|
|
2531
|
+
collaboration: c ? {
|
|
2532
|
+
suspend: c.core.suspend,
|
|
2533
|
+
resume: c.core.resume,
|
|
2534
|
+
catchUp: c.core.catchUp,
|
|
2535
|
+
reportReplaceRefused: c.reportReplaceRefused
|
|
2536
|
+
} : null,
|
|
2537
|
+
saveBeforeRestore: _ ? {
|
|
2538
|
+
canSave: () => _.canSave.value && !(i.cloud?.getSaveGate()?.shouldBlock.value ?? !1),
|
|
2539
|
+
save: () => _.save("restore")
|
|
2291
2540
|
} : null,
|
|
2292
2541
|
onError: i.config.onError
|
|
2293
2542
|
}) : null;
|
|
2294
|
-
|
|
2295
|
-
let
|
|
2296
|
-
function
|
|
2297
|
-
|
|
2543
|
+
Y && (K.versionHistory = Y.capability);
|
|
2544
|
+
let Z = b(() => L?.isOpen.value === !0 || p?.panelState.rightPanelOpen.value === !0), ie = b(() => d.state.previewMode ? "tpl:left-0 tpl:right-0" : Z.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]");
|
|
2545
|
+
function ae(e) {
|
|
2546
|
+
p && (e === "ai-chat" ? p.panelState.aiChatOpen.value = !0 : p.panelState.designReferenceOpen.value = !0);
|
|
2298
2547
|
}
|
|
2299
|
-
let { showNotice:
|
|
2300
|
-
|
|
2548
|
+
let { showNotice: oe } = Ie(() => i.config.smallScreenNotice);
|
|
2549
|
+
C(async () => {
|
|
2301
2550
|
await i.fontsManager.loadCustomFonts();
|
|
2302
|
-
}),
|
|
2303
|
-
i.fontsManager.cleanupFontLinks(), i.cloud?.destroy(),
|
|
2551
|
+
}), o(() => {
|
|
2552
|
+
i.fontsManager.cleanupFontLinks(), i.cloud?.destroy(), q.destroy();
|
|
2304
2553
|
});
|
|
2305
|
-
let
|
|
2554
|
+
let se = _ ?? d, ce = $t(q.editorRoot);
|
|
2306
2555
|
return n({
|
|
2307
|
-
getContent: () =>
|
|
2308
|
-
setContent: (e) =>
|
|
2556
|
+
getContent: () => d.content.value,
|
|
2557
|
+
setContent: (e) => d.setContent(e),
|
|
2309
2558
|
insertBlock: (e) => {
|
|
2310
|
-
if (
|
|
2311
|
-
let t =
|
|
2312
|
-
return
|
|
2559
|
+
if (d.state.previewMode) return Et.warn("insertBlock() does nothing in preview mode."), null;
|
|
2560
|
+
let t = re(e);
|
|
2561
|
+
return Zn(d, t) ? (ce(t.id), t.id) : null;
|
|
2313
2562
|
},
|
|
2314
|
-
setTheme: (e) =>
|
|
2315
|
-
setMergeTags:
|
|
2316
|
-
isDirty: () =>
|
|
2317
|
-
create:
|
|
2318
|
-
load:
|
|
2319
|
-
save:
|
|
2320
|
-
renderCustomBlock:
|
|
2321
|
-
getCustomBlockStylesheet: (e) =>
|
|
2322
|
-
}), (e, n) => (
|
|
2563
|
+
setTheme: (e) => d.setUiTheme(e),
|
|
2564
|
+
setMergeTags: q.setMergeTags,
|
|
2565
|
+
isDirty: () => d.state.isDirty,
|
|
2566
|
+
create: se.create,
|
|
2567
|
+
load: se.load,
|
|
2568
|
+
save: se.save,
|
|
2569
|
+
renderCustomBlock: q.registry.renderCustomBlock,
|
|
2570
|
+
getCustomBlockStylesheet: (e) => q.registry.getDefinition(e)?.stylesheet
|
|
2571
|
+
}), (e, n) => (s(), x("div", {
|
|
2323
2572
|
ref_key: "rootEl",
|
|
2324
|
-
ref:
|
|
2325
|
-
class:
|
|
2326
|
-
"data-tpl-theme":
|
|
2327
|
-
style:
|
|
2328
|
-
onDragover: n[8] ||=
|
|
2329
|
-
onDrop: n[9] ||=
|
|
2573
|
+
ref: y,
|
|
2574
|
+
class: v(["tpl tpl:relative tpl:h-full", { "tpl:dark": h(d).state.darkMode }]),
|
|
2575
|
+
"data-tpl-theme": h(q).resolvedTheme.value,
|
|
2576
|
+
style: E(h(q).themeStyles.value),
|
|
2577
|
+
onDragover: n[8] ||= T(() => {}, ["prevent"]),
|
|
2578
|
+
onDrop: n[9] ||= T(() => {}, ["prevent"])
|
|
2330
2579
|
}, [
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
editor:
|
|
2335
|
-
core:
|
|
2336
|
-
templates:
|
|
2580
|
+
g(fr),
|
|
2581
|
+
A("div", na, [
|
|
2582
|
+
g(mi, {
|
|
2583
|
+
editor: h(d),
|
|
2584
|
+
core: h(q),
|
|
2585
|
+
templates: h(_),
|
|
2337
2586
|
"show-template-name": t.config.templates?.nameField !== !1,
|
|
2338
|
-
"test-email":
|
|
2339
|
-
"version-history":
|
|
2340
|
-
comments:
|
|
2341
|
-
|
|
2587
|
+
"test-email": h(P),
|
|
2588
|
+
"version-history": h(Y),
|
|
2589
|
+
comments: h(L),
|
|
2590
|
+
collaboration: h(c)
|
|
2591
|
+
}, m({ _: 2 }, [h(p) ? {
|
|
2342
2592
|
name: "left-extras",
|
|
2343
|
-
fn: r(() => [h(
|
|
2593
|
+
fn: r(() => [g(h(V), {
|
|
2344
2594
|
part: "left",
|
|
2345
|
-
cloud:
|
|
2595
|
+
cloud: h(p)
|
|
2346
2596
|
}, null, 8, ["cloud"])]),
|
|
2347
2597
|
key: "0"
|
|
2348
|
-
} : void 0,
|
|
2598
|
+
} : void 0, h(p) ? {
|
|
2349
2599
|
name: "right-extras",
|
|
2350
|
-
fn: r(() => [h(
|
|
2600
|
+
fn: r(() => [g(h(V), {
|
|
2351
2601
|
part: "right",
|
|
2352
|
-
cloud:
|
|
2602
|
+
cloud: h(p)
|
|
2353
2603
|
}, null, 8, ["cloud"])]),
|
|
2354
2604
|
key: "1"
|
|
2355
2605
|
} : void 0]), 1032, [
|
|
@@ -2359,146 +2609,149 @@ var rr = ["aria-label"], ir = {
|
|
|
2359
2609
|
"show-template-name",
|
|
2360
2610
|
"test-email",
|
|
2361
2611
|
"version-history",
|
|
2362
|
-
"comments"
|
|
2612
|
+
"comments",
|
|
2613
|
+
"collaboration"
|
|
2363
2614
|
]),
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
class:
|
|
2615
|
+
f(g(Sr, null, null, 512), [[M, !h(d).state.previewMode]]),
|
|
2616
|
+
A("div", {
|
|
2617
|
+
class: v(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", [ie.value, h(Y)?.isPreviewing.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
2367
2618
|
style: { transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)" }
|
|
2368
|
-
}, [
|
|
2369
|
-
default: r(() => [
|
|
2370
|
-
"sample-mode":
|
|
2371
|
-
onChange: n[0] ||= (e) =>
|
|
2372
|
-
}, null, 8, ["sample-mode"])])) :
|
|
2619
|
+
}, [A("div", ra, [A("div", ia, [g(O, { name: "tpl-preview-pill" }, {
|
|
2620
|
+
default: r(() => [h(d).state.previewMode && !h(q).previewResolution.supersedesSamples.value ? (s(), x("div", aa, [g(cn, {
|
|
2621
|
+
"sample-mode": h(q).mergeTagSampleMode.value,
|
|
2622
|
+
onChange: n[0] ||= (e) => h(q).mergeTagSampleMode.value = e
|
|
2623
|
+
}, null, 8, ["sample-mode"])])) : S("", !0)]),
|
|
2373
2624
|
_: 1
|
|
2374
|
-
}),
|
|
2375
|
-
default: r(() => [
|
|
2625
|
+
}), g(O, { name: "tpl-preview-pill" }, {
|
|
2626
|
+
default: r(() => [h(q).conditionPreview.hasHiddenBlocks.value && h(q).appliesConditionFilter.value ? (s(), x("button", {
|
|
2376
2627
|
key: 0,
|
|
2377
2628
|
type: "button",
|
|
2378
|
-
class:
|
|
2629
|
+
class: v([h(en), "tpl:shadow-[var(--tpl-shadow-md)]"]),
|
|
2379
2630
|
"data-testid": "restore-hidden-blocks",
|
|
2380
|
-
onClick: n[1] ||= (e) =>
|
|
2381
|
-
}, [h(
|
|
2631
|
+
onClick: n[1] ||= (e) => h(q).conditionPreview.reset()
|
|
2632
|
+
}, [g(h(Ft), {
|
|
2382
2633
|
size: 16,
|
|
2383
2634
|
"stroke-width": 2
|
|
2384
|
-
}),
|
|
2635
|
+
}), z(" " + F(h(q).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : S("", !0)]),
|
|
2385
2636
|
_: 1
|
|
2386
|
-
})])]),
|
|
2387
|
-
viewport:
|
|
2388
|
-
content:
|
|
2389
|
-
"selected-block-id":
|
|
2390
|
-
"dark-mode":
|
|
2391
|
-
"preview-mode":
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
onOpenDesignReference: n[3] ||= (e) => te("design-reference")
|
|
2637
|
+
})])]), A("main", oa, [g(dr, {
|
|
2638
|
+
viewport: h(d).state.viewport,
|
|
2639
|
+
content: h(q).previewResolution.content.value,
|
|
2640
|
+
"selected-block-id": h(d).state.selectedBlockId,
|
|
2641
|
+
"dark-mode": h(d).state.darkMode,
|
|
2642
|
+
"preview-mode": h(d).state.previewMode,
|
|
2643
|
+
onSelectBlock: h(d).selectBlock,
|
|
2644
|
+
onOpenAiChat: n[2] ||= (e) => ae("ai-chat"),
|
|
2645
|
+
onOpenDesignReference: n[3] ||= (e) => ae("design-reference")
|
|
2396
2646
|
}, null, 8, [
|
|
2397
2647
|
"viewport",
|
|
2398
2648
|
"content",
|
|
2399
2649
|
"selected-block-id",
|
|
2400
2650
|
"dark-mode",
|
|
2401
2651
|
"preview-mode",
|
|
2402
|
-
"locked-blocks",
|
|
2403
2652
|
"onSelectBlock"
|
|
2404
2653
|
])])], 2),
|
|
2405
|
-
t.config.branding === !1 ?
|
|
2654
|
+
t.config.branding === !1 ? S("", !0) : (s(), D(Kr, {
|
|
2406
2655
|
key: 0,
|
|
2407
|
-
"position-class": [
|
|
2656
|
+
"position-class": [ie.value]
|
|
2408
2657
|
}, null, 8, ["position-class"])),
|
|
2409
|
-
|
|
2658
|
+
A("div", {
|
|
2410
2659
|
class: "tpl-sr-only",
|
|
2411
2660
|
role: "status",
|
|
2412
2661
|
"aria-live": "polite",
|
|
2413
2662
|
"aria-atomic": "true",
|
|
2414
|
-
"aria-label":
|
|
2415
|
-
},
|
|
2416
|
-
|
|
2417
|
-
"selected-block":
|
|
2418
|
-
settings:
|
|
2419
|
-
"shifted-left":
|
|
2420
|
-
onUpdateBlock: n[4] ||= (e) =>
|
|
2663
|
+
"aria-label": h(q).t.landmarks.reorderAnnouncements
|
|
2664
|
+
}, F(h(q).keyboardReorder.announcement.value), 9, sa),
|
|
2665
|
+
f(g(zr, {
|
|
2666
|
+
"selected-block": h(d).selectedBlock.value,
|
|
2667
|
+
settings: h(d).content.value.settings,
|
|
2668
|
+
"shifted-left": Z.value,
|
|
2669
|
+
onUpdateBlock: n[4] ||= (e) => h(d).updateBlock(h(d).state.selectedBlockId, e),
|
|
2421
2670
|
onDeleteBlock: n[5] ||= () => {
|
|
2422
|
-
|
|
2671
|
+
h(d).state.selectedBlockId && h(q).blockActions.deleteBlock(h(d).state.selectedBlockId);
|
|
2423
2672
|
},
|
|
2424
2673
|
onDuplicateBlock: n[6] ||= () => {
|
|
2425
|
-
|
|
2674
|
+
h(d).selectedBlock.value && h(q).blockActions.duplicateBlock(h(d).selectedBlock.value);
|
|
2426
2675
|
},
|
|
2427
|
-
onUpdateSettings: n[7] ||= (e) =>
|
|
2676
|
+
onUpdateSettings: n[7] ||= (e) => h(d).updateSettings(e)
|
|
2428
2677
|
}, null, 8, [
|
|
2429
2678
|
"selected-block",
|
|
2430
2679
|
"settings",
|
|
2431
2680
|
"shifted-left"
|
|
2432
|
-
]), [[
|
|
2681
|
+
]), [[M, !h(d).state.previewMode]])
|
|
2433
2682
|
]),
|
|
2434
|
-
|
|
2435
|
-
ref: (e) =>
|
|
2683
|
+
A("div", {
|
|
2684
|
+
ref: (e) => h(q).popoverRoot.value = e,
|
|
2436
2685
|
class: "tpl-popover-root"
|
|
2437
2686
|
}, null, 512),
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2687
|
+
g(Ni),
|
|
2688
|
+
g(ea),
|
|
2689
|
+
h(w)?.isAvailable.value ? (s(), D(h(k), {
|
|
2441
2690
|
key: 0,
|
|
2442
|
-
feature:
|
|
2443
|
-
}, null, 8, ["feature"])) :
|
|
2444
|
-
t.config.media &&
|
|
2691
|
+
feature: h(w)
|
|
2692
|
+
}, null, 8, ["feature"])) : S("", !0),
|
|
2693
|
+
t.config.media && h(j) ? (s(), D(h(ee), {
|
|
2445
2694
|
key: 1,
|
|
2446
|
-
feature:
|
|
2695
|
+
feature: h(j),
|
|
2447
2696
|
provider: t.config.media,
|
|
2448
2697
|
locale: t.config.locale,
|
|
2449
|
-
"ui-theme":
|
|
2450
|
-
"popover-target":
|
|
2698
|
+
"ui-theme": h(q).resolvedTheme.value,
|
|
2699
|
+
"popover-target": h(q).popoverRoot.value
|
|
2451
2700
|
}, null, 8, [
|
|
2452
2701
|
"feature",
|
|
2453
2702
|
"provider",
|
|
2454
2703
|
"locale",
|
|
2455
2704
|
"ui-theme",
|
|
2456
2705
|
"popover-target"
|
|
2457
|
-
])) :
|
|
2458
|
-
|
|
2706
|
+
])) : S("", !0),
|
|
2707
|
+
h(P)?.isAvailable.value ? (s(), D(h(I), {
|
|
2459
2708
|
key: 2,
|
|
2460
|
-
feature:
|
|
2461
|
-
}, null, 8, ["feature"])) :
|
|
2462
|
-
|
|
2709
|
+
feature: h(P)
|
|
2710
|
+
}, null, 8, ["feature"])) : S("", !0),
|
|
2711
|
+
h(L)?.isAvailable.value ? (s(), D(h(te), {
|
|
2463
2712
|
key: 3,
|
|
2464
|
-
feature:
|
|
2465
|
-
}, null, 8, ["feature"])) :
|
|
2466
|
-
|
|
2713
|
+
feature: h(L)
|
|
2714
|
+
}, null, 8, ["feature"])) : S("", !0),
|
|
2715
|
+
h(c) ? (s(), D(h(ne), {
|
|
2467
2716
|
key: 4,
|
|
2468
|
-
feature:
|
|
2469
|
-
}, null, 8, ["feature"])) :
|
|
2470
|
-
|
|
2717
|
+
feature: h(c)
|
|
2718
|
+
}, null, 8, ["feature"])) : S("", !0),
|
|
2719
|
+
h(Y)?.isAvailable.value ? (s(), D(h(H), {
|
|
2471
2720
|
key: 5,
|
|
2472
|
-
|
|
2473
|
-
|
|
2721
|
+
feature: h(Y)
|
|
2722
|
+
}, null, 8, ["feature"])) : S("", !0),
|
|
2723
|
+
t.cloud && h(p) && h(J) ? (s(), D(h(B), {
|
|
2724
|
+
key: 6,
|
|
2725
|
+
editor: h(d),
|
|
2726
|
+
core: h(q),
|
|
2474
2727
|
runtime: t.cloud,
|
|
2475
|
-
cloud:
|
|
2476
|
-
ready:
|
|
2728
|
+
cloud: h(p),
|
|
2729
|
+
ready: h(J)
|
|
2477
2730
|
}, null, 8, [
|
|
2478
2731
|
"editor",
|
|
2479
2732
|
"core",
|
|
2480
2733
|
"runtime",
|
|
2481
2734
|
"cloud",
|
|
2482
2735
|
"ready"
|
|
2483
|
-
])) :
|
|
2484
|
-
|
|
2485
|
-
], 46,
|
|
2736
|
+
])) : S("", !0),
|
|
2737
|
+
h(oe) ? (s(), D(Wr, { key: 7 })) : S("", !0)
|
|
2738
|
+
], 46, ta));
|
|
2486
2739
|
}
|
|
2487
|
-
}), [["__scopeId", "data-v-
|
|
2488
|
-
function
|
|
2489
|
-
return e.replace(
|
|
2740
|
+
}), [["__scopeId", "data-v-7c7468ff"]]), la = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
|
|
2741
|
+
function ua(e) {
|
|
2742
|
+
return e.replace(la, "");
|
|
2490
2743
|
}
|
|
2491
2744
|
//#endregion
|
|
2492
2745
|
//#region src/utils/renderProvider.ts
|
|
2493
|
-
function
|
|
2746
|
+
function da(e) {
|
|
2494
2747
|
return {
|
|
2495
2748
|
customFonts: e.customFonts.value,
|
|
2496
2749
|
defaultFallback: e.defaultFallback.value
|
|
2497
2750
|
};
|
|
2498
2751
|
}
|
|
2499
|
-
async function
|
|
2500
|
-
let t =
|
|
2501
|
-
return n || (
|
|
2752
|
+
async function fa(e) {
|
|
2753
|
+
let t = X(e.getContent()), n = e.getLayout?.(), r = n ? ue(n, t) : t;
|
|
2754
|
+
return n || (q(r), V(r)), await fn(r, {
|
|
2502
2755
|
renderCustomBlock: e.renderCustomBlock,
|
|
2503
2756
|
getCustomBlockStylesheet: e.getCustomBlockStylesheet
|
|
2504
2757
|
}), {
|
|
@@ -2506,7 +2759,7 @@ async function ta(e) {
|
|
|
2506
2759
|
fonts: e.getFonts()
|
|
2507
2760
|
};
|
|
2508
2761
|
}
|
|
2509
|
-
function
|
|
2762
|
+
function pa(e) {
|
|
2510
2763
|
async function t() {
|
|
2511
2764
|
let t = e.provider, n = t?.toMjml?.bind(t);
|
|
2512
2765
|
return n ? n(await e.buildPayload()) : e.renderLocalMjml();
|
|
@@ -2529,65 +2782,65 @@ function na(e) {
|
|
|
2529
2782
|
}
|
|
2530
2783
|
//#endregion
|
|
2531
2784
|
//#region \0virtual:editor-css
|
|
2532
|
-
var ra = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-block--idle[data-v-254ef206]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-254ef206]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-254ef206]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-254ef206]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-254ef206]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-254ef206]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-254ef206]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-254ef206]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-254ef206]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-254ef206]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-254ef206]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-table-editable[data-v-6751d456] th[contenteditable],.tpl-table-editable[data-v-6751d456] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-6751d456] th[contenteditable]:empty:before,.tpl-table-editable[data-v-6751d456] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-6751d456] th[contenteditable]:focus,.tpl-table-editable[data-v-6751d456] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-a482020e] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-a482020e] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-a482020e] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-a482020e] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-a482020e] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-a482020e] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-a482020e] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tpl-comet-angle:0deg;--tpl-comet-start:100%}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-\\[104px\\]{top:104px}.tpl\\:top-full{top:100%}.tpl\\:-right-1{right:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-right-2{right:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:z-10{z-index:10}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:\\!mb-0{margin-bottom:0!important}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:hidden{display:none}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-3{width:calc(calc(var(--tpl-base-size) / 4) * 3);height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-32{height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:h-44{height:calc(calc(var(--tpl-base-size) / 4) * 44)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-auto{height:auto}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[64px\\]{min-height:64px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[72px\\]{min-height:72px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/3{width:33.3333%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-2\\/3{width:66.6667%}.tpl\\:w-3\\/4{width:75%}.tpl\\:w-5\\/6{width:83.3333%}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-12{width:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-28{width:calc(calc(var(--tpl-base-size) / 4) * 28)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-36{width:calc(calc(var(--tpl-base-size) / 4) * 36)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-\\[280px\\]{width:280px}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[600px\\]{max-width:600px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:origin-top-right{transform-origin:100% 0}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-\\[-8px\\]{--tw-translate-y:-8px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[1fr_auto_1fr\\]{grid-template-columns:1fr auto 1fr}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-6{gap:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:3.40282e38px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:p-8{padding:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-8{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-1{padding-top:calc(var(--tpl-base-size) / 4)}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-2{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-4xl{font-size:calc(2.25 * var(--tpl-base-size));line-height:var(--tw-leading,calc(2.5 / 2.25))}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-lg{font-size:calc(1.125 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.75 / 1.125))}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}.tpl\\:group-focus-within\\:opacity-100:is(:where(.tpl\\:group):focus-within *){opacity:1}@media(hover:hover){.tpl\\:group-hover\\:bg-black\\/40:is(:where(.tpl\\:group):hover *){background-color:oklab(0% none none/.4)}.tpl\\:group-hover\\:opacity-100:is(:where(.tpl\\:group):hover *){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}@property --tpl-comet-angle{syntax:\"<angle>\";inherits:false;initial-value:0deg}@property --tpl-comet-start{syntax:\"<percentage>\";inherits:false;initial-value:100%}@keyframes tpl-ai-comet{0%{--tpl-comet-angle:0deg;--tpl-comet-start:100%}1%{--tpl-comet-angle:24deg;--tpl-comet-start:88%}5%{--tpl-comet-angle:120deg;--tpl-comet-start:60%}25%{--tpl-comet-angle:600deg;--tpl-comet-start:60%}33%{--tpl-comet-angle:720deg;--tpl-comet-start:100%}to{--tpl-comet-angle:720deg;--tpl-comet-start:100%}}.tpl-ai-btn--idle{background-color:var(--tpl-primary-light);color:var(--tpl-text);box-shadow:none;z-index:0;position:relative}.tpl-ai-btn--idle:before{content:\"\";border-radius:inherit;background:conic-gradient(from var(--tpl-comet-angle),transparent 0%,transparent var(--tpl-comet-start),var(--tpl-primary) 80%,var(--tpl-primary) 90%,var(--tpl-primary) 97%,transparent 100%);padding:2px;position:absolute;inset:-2px}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--idle:before{background:conic-gradient(from var(--tpl-comet-angle),transparent 0%,transparent var(--tpl-comet-start),color-mix(in srgb,var(--tpl-primary) 40%,transparent) 80%,var(--tpl-primary) 90%,var(--tpl-primary) 97%,transparent 100%)}}.tpl-ai-btn--idle:before{z-index:-1;pointer-events:none;animation:20s linear 3s infinite tpl-ai-comet;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.tpl-ai-btn--idle:hover{background-color:var(--tpl-primary);color:var(--tpl-on-primary);transform:translateY(-1px);box-shadow:0 0 0 3px var(--tpl-primary),0 4px 16px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--idle:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-primary) 20%,transparent),0 4px 16px color-mix(in srgb,var(--tpl-primary) 30%,transparent)!important}}.tpl-ai-btn--idle:hover:before{animation:none}.tpl-ai-btn--active{background-color:var(--tpl-primary-light);color:var(--tpl-primary-hover);border:1px solid var(--tpl-primary)}.tpl-ai-btn--active .tpl-ai-btn-icon{fill:var(--tpl-primary)}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--active .tpl-ai-btn-icon{fill:color-mix(in srgb,var(--tpl-primary) 25%,transparent)}}.tpl-ai-btn--active:hover{background-color:var(--tpl-primary-light)}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--active:hover{background-color:color-mix(in srgb,var(--tpl-primary-light) 80%,var(--tpl-primary))}}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in,.tpl-ai-btn--idle:before{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-e77200ef]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-e77200ef]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-e77200ef],.tpl-preview-pill-leave-to[data-v-e77200ef]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-e77200ef],.tpl-preview-pill-leave-from[data-v-e77200ef]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-69591c1e]::-webkit-outer-spin-button,input[type=number][data-v-69591c1e]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-69591c1e]{-moz-appearance:textfield}.tpl-collapsible[data-v-e2d2c22f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-e2d2c22f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-e2d2c22f]{overflow:hidden}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-slide-enter-active[data-v-32af5912]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-32af5912]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-32af5912]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-32af5912]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-32af5912]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-32af5912]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-32af5912]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-32af5912]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-32af5912]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-32af5912]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-32af5912],.tpl-comment-reply-card[data-v-32af5912]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-32af5912],.tpl-resolve-leave-active[data-v-32af5912]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-32af5912],.tpl-resolve-leave-to[data-v-32af5912]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-32af5912]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-32af5912]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-32af5912],.tpl-replies-leave-active[data-v-32af5912]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-32af5912],.tpl-replies-leave-to[data-v-32af5912]{opacity:0;transform:translateY(-4px)}.tpl-ai-slide-enter-active[data-v-0a3b048c]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-ai-slide-leave-active[data-v-0a3b048c]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-ai-input-wrapper[data-v-0a3b048c]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-0a3b048c]:not(:disabled):hover{transform:scale(1.05)}.tpl-suggestion-btn[data-v-0a3b048c]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-design-slide-enter-active[data-v-a5a76ec5]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-design-slide-leave-active[data-v-a5a76ec5]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-design-prompt-input[data-v-a5a76ec5]:focus{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-design-dropzone[data-v-a5a76ec5]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-scoring-slide-enter-active[data-v-165e948a]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-scoring-slide-leave-active[data-v-165e948a]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-scoring-fix-btn[data-v-165e948a]:not(:disabled):hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-ai-feature-menu-item[data-v-bf59b787]:hover{background-color:var(--tpl-bg-hover)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", ia = null;
|
|
2533
|
-
function
|
|
2534
|
-
if (
|
|
2785
|
+
var ma = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-block--idle[data-v-3c489db0]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-3c489db0]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-3c489db0]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-3c489db0]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-3c489db0]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-3c489db0]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-3c489db0]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-3c489db0]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-3c489db0]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-3c489db0]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-3c489db0]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-3c489db0]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-3c489db0 2s ease-out forwards}@keyframes tpl-agent-highlight-3c489db0{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-3c489db0]{animation:none}}.tpl-table-editable[data-v-6751d456] th[contenteditable],.tpl-table-editable[data-v-6751d456] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-6751d456] th[contenteditable]:empty:before,.tpl-table-editable[data-v-6751d456] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-6751d456] th[contenteditable]:focus,.tpl-table-editable[data-v-6751d456] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-7d805e9c] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-7d805e9c] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-7d805e9c] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-7d805e9c] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-7d805e9c] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-7d805e9c] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-7d805e9c] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tpl-comet-angle:0deg;--tpl-comet-start:100%}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-\\[104px\\]{top:104px}.tpl\\:top-full{top:100%}.tpl\\:-right-1{right:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-right-2{right:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:z-10{z-index:10}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:\\!mb-0{margin-bottom:0!important}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:hidden{display:none}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-32{height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:h-44{height:calc(calc(var(--tpl-base-size) / 4) * 44)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-auto{height:auto}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[64px\\]{min-height:64px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[72px\\]{min-height:72px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/3{width:33.3333%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-2\\/3{width:66.6667%}.tpl\\:w-3\\/4{width:75%}.tpl\\:w-5\\/6{width:83.3333%}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-12{width:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-28{width:calc(calc(var(--tpl-base-size) / 4) * 28)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-36{width:calc(calc(var(--tpl-base-size) / 4) * 36)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-\\[280px\\]{width:280px}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[600px\\]{max-width:600px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:origin-top-right{transform-origin:100% 0}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[1fr_auto_1fr\\]{grid-template-columns:1fr auto 1fr}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-6{gap:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:3.40282e38px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:p-8{padding:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-8{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-1{padding-top:calc(var(--tpl-base-size) / 4)}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-2{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-4xl{font-size:calc(2.25 * var(--tpl-base-size));line-height:var(--tw-leading,calc(2.5 / 2.25))}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-lg{font-size:calc(1.125 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.75 / 1.125))}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}.tpl\\:group-focus-within\\:opacity-100:is(:where(.tpl\\:group):focus-within *){opacity:1}@media(hover:hover){.tpl\\:group-hover\\:bg-black\\/40:is(:where(.tpl\\:group):hover *){background-color:oklab(0% none none/.4)}.tpl\\:group-hover\\:opacity-100:is(:where(.tpl\\:group):hover *){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}@property --tpl-comet-angle{syntax:\"<angle>\";inherits:false;initial-value:0deg}@property --tpl-comet-start{syntax:\"<percentage>\";inherits:false;initial-value:100%}@keyframes tpl-ai-comet{0%{--tpl-comet-angle:0deg;--tpl-comet-start:100%}1%{--tpl-comet-angle:24deg;--tpl-comet-start:88%}5%{--tpl-comet-angle:120deg;--tpl-comet-start:60%}25%{--tpl-comet-angle:600deg;--tpl-comet-start:60%}33%{--tpl-comet-angle:720deg;--tpl-comet-start:100%}to{--tpl-comet-angle:720deg;--tpl-comet-start:100%}}.tpl-ai-btn--idle{background-color:var(--tpl-primary-light);color:var(--tpl-text);box-shadow:none;z-index:0;position:relative}.tpl-ai-btn--idle:before{content:\"\";border-radius:inherit;background:conic-gradient(from var(--tpl-comet-angle),transparent 0%,transparent var(--tpl-comet-start),var(--tpl-primary) 80%,var(--tpl-primary) 90%,var(--tpl-primary) 97%,transparent 100%);padding:2px;position:absolute;inset:-2px}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--idle:before{background:conic-gradient(from var(--tpl-comet-angle),transparent 0%,transparent var(--tpl-comet-start),color-mix(in srgb,var(--tpl-primary) 40%,transparent) 80%,var(--tpl-primary) 90%,var(--tpl-primary) 97%,transparent 100%)}}.tpl-ai-btn--idle:before{z-index:-1;pointer-events:none;animation:20s linear 3s infinite tpl-ai-comet;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.tpl-ai-btn--idle:hover{background-color:var(--tpl-primary);color:var(--tpl-on-primary);transform:translateY(-1px);box-shadow:0 0 0 3px var(--tpl-primary),0 4px 16px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--idle:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-primary) 20%,transparent),0 4px 16px color-mix(in srgb,var(--tpl-primary) 30%,transparent)!important}}.tpl-ai-btn--idle:hover:before{animation:none}.tpl-ai-btn--active{background-color:var(--tpl-primary-light);color:var(--tpl-primary-hover);border:1px solid var(--tpl-primary)}.tpl-ai-btn--active .tpl-ai-btn-icon{fill:var(--tpl-primary)}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--active .tpl-ai-btn-icon{fill:color-mix(in srgb,var(--tpl-primary) 25%,transparent)}}.tpl-ai-btn--active:hover{background-color:var(--tpl-primary-light)}@supports (color:color-mix(in lab,red,red)){.tpl-ai-btn--active:hover{background-color:color-mix(in srgb,var(--tpl-primary-light) 80%,var(--tpl-primary))}}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in,.tpl-ai-btn--idle:before{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-7c7468ff]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-7c7468ff]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-7c7468ff],.tpl-preview-pill-leave-to[data-v-7c7468ff]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-7c7468ff],.tpl-preview-pill-leave-from[data-v-7c7468ff]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-69591c1e]::-webkit-outer-spin-button,input[type=number][data-v-69591c1e]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-69591c1e]{-moz-appearance:textfield}.tpl-collapsible[data-v-e2d2c22f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-e2d2c22f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-e2d2c22f]{overflow:hidden}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-slide-enter-active[data-v-32af5912]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-32af5912]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-32af5912]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-32af5912]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-32af5912]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-32af5912]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-32af5912]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-32af5912]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-32af5912]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-32af5912]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-32af5912],.tpl-comment-reply-card[data-v-32af5912]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-32af5912],.tpl-resolve-leave-active[data-v-32af5912]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-32af5912],.tpl-resolve-leave-to[data-v-32af5912]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-32af5912]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-32af5912]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-32af5912],.tpl-replies-leave-active[data-v-32af5912]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-32af5912],.tpl-replies-leave-to[data-v-32af5912]{opacity:0;transform:translateY(-4px)}.tpl-ai-slide-enter-active[data-v-0a3b048c]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-ai-slide-leave-active[data-v-0a3b048c]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-ai-input-wrapper[data-v-0a3b048c]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-0a3b048c]:not(:disabled):hover{transform:scale(1.05)}.tpl-suggestion-btn[data-v-0a3b048c]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-design-slide-enter-active[data-v-a5a76ec5]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-design-slide-leave-active[data-v-a5a76ec5]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-design-prompt-input[data-v-a5a76ec5]:focus{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-design-dropzone[data-v-a5a76ec5]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-scoring-slide-enter-active[data-v-165e948a]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-scoring-slide-leave-active[data-v-165e948a]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-scoring-fix-btn[data-v-165e948a]:not(:disabled):hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-ai-feature-menu-item[data-v-bf59b787]:hover{background-color:var(--tpl-bg-hover)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", ha = null;
|
|
2786
|
+
function ga() {
|
|
2787
|
+
if (ha === null) {
|
|
2535
2788
|
let e = new CSSStyleSheet();
|
|
2536
|
-
e.replaceSync(
|
|
2789
|
+
e.replaceSync(ua(ma)), ha = e;
|
|
2537
2790
|
}
|
|
2538
|
-
return
|
|
2791
|
+
return ha;
|
|
2539
2792
|
}
|
|
2540
|
-
function
|
|
2793
|
+
function _a(e) {
|
|
2541
2794
|
return () => {};
|
|
2542
2795
|
}
|
|
2543
|
-
function
|
|
2796
|
+
function va(e, t) {
|
|
2544
2797
|
if (!t) return {
|
|
2545
2798
|
target: e,
|
|
2546
2799
|
shadowRoot: null,
|
|
2547
2800
|
cleanup: () => {}
|
|
2548
2801
|
};
|
|
2549
2802
|
let n = e.shadowRoot ?? e.attachShadow({ mode: "open" });
|
|
2550
|
-
for (n.adoptedStyleSheets = [
|
|
2803
|
+
for (n.adoptedStyleSheets = [ga()]; n.firstChild;) n.removeChild(n.firstChild);
|
|
2551
2804
|
let r = document.createElement("div");
|
|
2552
2805
|
return r.className = "tpl-editor-host", r.style.cssText = "display:block;height:100%;width:100%;", n.appendChild(r), {
|
|
2553
2806
|
target: r,
|
|
2554
2807
|
shadowRoot: n,
|
|
2555
|
-
cleanup:
|
|
2808
|
+
cleanup: _a(n)
|
|
2556
2809
|
};
|
|
2557
2810
|
}
|
|
2558
|
-
var
|
|
2559
|
-
function
|
|
2811
|
+
var ya = /* @__PURE__ */ new Map(), ba = null, xa = 0, Sa = /* @__PURE__ */ new WeakMap();
|
|
2812
|
+
function Ca(e) {
|
|
2560
2813
|
let t = typeof e == "string" ? document.querySelector(e) : e;
|
|
2561
2814
|
if (!t) throw Error(`[Templatical] Container element not found: ${e}`);
|
|
2562
|
-
let n = ++
|
|
2563
|
-
return
|
|
2815
|
+
let n = ++xa;
|
|
2816
|
+
return Sa.set(t, n), {
|
|
2564
2817
|
container: t,
|
|
2565
2818
|
token: n
|
|
2566
2819
|
};
|
|
2567
2820
|
}
|
|
2568
|
-
function
|
|
2569
|
-
let n =
|
|
2570
|
-
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(),
|
|
2821
|
+
function wa(e, t) {
|
|
2822
|
+
let n = ya.get(e);
|
|
2823
|
+
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), ya.delete(e), ba === e && (ba = null)));
|
|
2571
2824
|
}
|
|
2572
|
-
function
|
|
2573
|
-
e.layout && (e.layout =
|
|
2825
|
+
function Ta(e) {
|
|
2826
|
+
e.layout && (e.layout = xn(e.layout, e.mergeTags), G(e.layout)), e.content && (e.content = xn(e.content, e.mergeTags), q(e.content), V(e.content));
|
|
2574
2827
|
}
|
|
2575
|
-
async function
|
|
2828
|
+
async function Ea(e) {
|
|
2576
2829
|
let t = { ...e };
|
|
2577
|
-
return
|
|
2830
|
+
return Ta(t), Da(t, Ca(t.container));
|
|
2578
2831
|
}
|
|
2579
|
-
async function
|
|
2580
|
-
e.locale !== void 0 && !
|
|
2581
|
-
let i = await
|
|
2582
|
-
if (
|
|
2832
|
+
async function Da(e, { container: t, token: n }, r) {
|
|
2833
|
+
e.locale !== void 0 && !ke(e.locale) && Et.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${Ne().sort().join(", ")}.`);
|
|
2834
|
+
let i = await je(e.locale ?? "en"), a = Re(e.fonts);
|
|
2835
|
+
if (Sa.get(t) !== n) return Oa({
|
|
2583
2836
|
config: e,
|
|
2584
|
-
editorRef:
|
|
2837
|
+
editorRef: l(null),
|
|
2585
2838
|
fontsManager: a,
|
|
2586
2839
|
unmount: () => {}
|
|
2587
2840
|
}).instance;
|
|
2588
|
-
|
|
2589
|
-
let o =
|
|
2590
|
-
return () =>
|
|
2841
|
+
wa(t);
|
|
2842
|
+
let o = va(t, e.shadowDom ?? !0), s = l(null), c = j({ setup() {
|
|
2843
|
+
return () => L(ca, {
|
|
2591
2844
|
config: e,
|
|
2592
2845
|
translations: i,
|
|
2593
2846
|
fontsManager: a,
|
|
@@ -2598,31 +2851,31 @@ async function ga(e, { container: t, token: n }, r) {
|
|
|
2598
2851
|
ref: s
|
|
2599
2852
|
});
|
|
2600
2853
|
} });
|
|
2601
|
-
|
|
2602
|
-
app:
|
|
2854
|
+
c.mount(o.target), ya.set(t, {
|
|
2855
|
+
app: c,
|
|
2603
2856
|
editorRef: s,
|
|
2604
2857
|
cleanup: o.cleanup
|
|
2605
|
-
}),
|
|
2606
|
-
let { instance: u, render: d } =
|
|
2858
|
+
}), ba = t;
|
|
2859
|
+
let { instance: u, render: d } = Oa({
|
|
2607
2860
|
config: e,
|
|
2608
2861
|
editorRef: s,
|
|
2609
2862
|
fontsManager: a,
|
|
2610
|
-
unmount: () =>
|
|
2863
|
+
unmount: () => wa(t, c)
|
|
2611
2864
|
});
|
|
2612
2865
|
return u;
|
|
2613
2866
|
}
|
|
2614
|
-
function
|
|
2867
|
+
function Oa({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
2615
2868
|
let i = {
|
|
2616
2869
|
getContent() {
|
|
2617
|
-
return
|
|
2870
|
+
return X(t.value ? t.value.getContent() : e.content ?? J(e.fonts?.defaultFont, mn(e)));
|
|
2618
2871
|
},
|
|
2619
2872
|
setContent(n) {
|
|
2620
|
-
let r =
|
|
2873
|
+
let r = xn(n, e.mergeTags);
|
|
2621
2874
|
t.value && t.value.setContent(r), e.content = r;
|
|
2622
2875
|
},
|
|
2623
2876
|
insertBlock(n) {
|
|
2624
2877
|
let r = { blocks: [n] };
|
|
2625
|
-
return
|
|
2878
|
+
return q(r), V(r), t.value ? t.value.insertBlock(Sn(n, e.mergeTags)) : null;
|
|
2626
2879
|
},
|
|
2627
2880
|
setTheme(e) {
|
|
2628
2881
|
t.value && t.value.setTheme(e);
|
|
@@ -2637,7 +2890,7 @@ function _a({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
2637
2890
|
create(n) {
|
|
2638
2891
|
return t.value ? t.value.create(n?.content ? {
|
|
2639
2892
|
...n,
|
|
2640
|
-
content:
|
|
2893
|
+
content: xn(n.content, e.mergeTags)
|
|
2641
2894
|
} : n) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
|
|
2642
2895
|
},
|
|
2643
2896
|
load(e) {
|
|
@@ -2657,20 +2910,20 @@ function _a({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
2657
2910
|
},
|
|
2658
2911
|
toMjml: () => a.toMjml(),
|
|
2659
2912
|
toHtml: () => a.toHtml()
|
|
2660
|
-
}, a =
|
|
2913
|
+
}, a = pa({
|
|
2661
2914
|
provider: e.render,
|
|
2662
|
-
buildPayload: () =>
|
|
2915
|
+
buildPayload: () => fa({
|
|
2663
2916
|
getContent: () => i.getContent(),
|
|
2664
2917
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
2665
2918
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
2666
|
-
getFonts: () =>
|
|
2919
|
+
getFonts: () => da(n),
|
|
2667
2920
|
getLayout: () => e.layout
|
|
2668
2921
|
}),
|
|
2669
|
-
renderLocalMjml: () =>
|
|
2922
|
+
renderLocalMjml: () => Un({
|
|
2670
2923
|
getContent: () => i.getContent(),
|
|
2671
2924
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
2672
2925
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
2673
|
-
getFonts: () =>
|
|
2926
|
+
getFonts: () => da(n),
|
|
2674
2927
|
socialIconsBaseUrl: e.socialIconsBaseUrl,
|
|
2675
2928
|
getLayout: () => e.layout
|
|
2676
2929
|
})
|
|
@@ -2680,18 +2933,18 @@ function _a({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
2680
2933
|
render: a
|
|
2681
2934
|
};
|
|
2682
2935
|
}
|
|
2683
|
-
async function
|
|
2936
|
+
async function ka(e) {
|
|
2684
2937
|
let t = {
|
|
2685
2938
|
layout: e.layout,
|
|
2686
2939
|
content: e.content,
|
|
2687
2940
|
mergeTags: e.mergeTags
|
|
2688
2941
|
};
|
|
2689
|
-
|
|
2690
|
-
let n =
|
|
2942
|
+
Ta(t);
|
|
2943
|
+
let n = Ca(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-DiYCJ21w.js"), Ae(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
|
|
2691
2944
|
config: e,
|
|
2692
2945
|
cloudTranslations: i
|
|
2693
2946
|
});
|
|
2694
|
-
return
|
|
2947
|
+
return Da({
|
|
2695
2948
|
container: e.container,
|
|
2696
2949
|
content: t.content,
|
|
2697
2950
|
layout: t.layout,
|
|
@@ -2735,10 +2988,10 @@ async function va(e) {
|
|
|
2735
2988
|
user: s
|
|
2736
2989
|
}, n, a);
|
|
2737
2990
|
}
|
|
2738
|
-
function
|
|
2739
|
-
|
|
2991
|
+
function Aa() {
|
|
2992
|
+
ba && wa(ba);
|
|
2740
2993
|
}
|
|
2741
2994
|
//#endregion
|
|
2742
|
-
export {
|
|
2995
|
+
export { ue as applyLayout, J as createDefaultTemplateContent, fe as createLocalStorageMediaProvider, me as createLocalStorageSavedBlocksProvider, K as createParagraphBlock, ne as createSlotBlock, U as createWrapperBlock, Ge as getBaseLocale, Me as getSupportedCloudLocales, Ne as getSupportedLocales, Ea as init, ka as initCloud, Fe as isCloudLocaleSupported, ke as isLocaleSupported, ce as isSlot, oe as isWrapper, B as layoutWrapsSlot, Aa as unmount, G as validateLayout };
|
|
2743
2996
|
|
|
2744
2997
|
//# sourceMappingURL=editor.js.map
|