@oktis-works/admin 0.23.2 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/client/_astro/{ActivityWidget.Dzoi-bq3.js → ActivityWidget.ZVWCvrxL.js} +1 -1
  2. package/dist/client/_astro/{AdminBar.eT1ch_B6.js → AdminBar.Cp3-f-Na.js} +1 -1
  3. package/dist/client/_astro/{ApiKeysManager.kbTE1CPk.js → ApiKeysManager.CpgNjjZm.js} +1 -1
  4. package/dist/client/_astro/{AtGlanceWidget.w23IIv06.js → AtGlanceWidget.B4v1yrwI.js} +1 -1
  5. package/dist/client/_astro/BaseLayout.Ceb72bti.css +1 -0
  6. package/dist/client/_astro/{CommentsManager.BN7i1RHa.js → CommentsManager.Da4veAPJ.js} +1 -1
  7. package/dist/client/_astro/ContentEditor.CSin5EHw.js +1 -0
  8. package/dist/client/_astro/ContentTypeWorkspace.CjOEvGzy.js +1 -0
  9. package/dist/client/_astro/{DashboardHome.DXzu_IXZ.js → DashboardHome.C40YVSiB.js} +1 -1
  10. package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.DmNSzErX.js → DashboardLayout.astro_astro_type_script_index_0_lang.DEsBqJww.js} +1 -1
  11. package/dist/client/_astro/{FieldGroupEditor.DsqphEgt.js → FieldGroupEditor.9WZ-czWM.js} +3 -3
  12. package/dist/client/_astro/{FieldGroupList.pW2Um9om.js → FieldGroupList.BG9Wq5_L.js} +1 -1
  13. package/dist/client/_astro/FieldRenderer.DrX12H8L.js +3 -0
  14. package/dist/client/_astro/{Footer.5Lcn2VXz.js → Footer.D7L9WAh7.js} +1 -1
  15. package/dist/client/_astro/{GeneralSettings.B-H8Rzy7.js → GeneralSettings.udEZdv-v.js} +1 -1
  16. package/dist/client/_astro/{LogsManager.Crd8q2te.js → LogsManager.B5TC9xQ_.js} +1 -1
  17. package/dist/client/_astro/{MediaLibrary.Cv6Ry3u9.js → MediaLibrary.D2v__yUO.js} +1 -1
  18. package/dist/client/_astro/{MenuManager.D25ika09.js → MenuManager.glKVLQiP.js} +1 -1
  19. package/dist/client/_astro/{Modal.572hmVvb.js → Modal.DijYhpj_.js} +1 -1
  20. package/dist/client/_astro/PluginManager.BGdxyG-e.js +112 -0
  21. package/dist/client/_astro/PluginPageHost.CEDOBtUT.js +1 -0
  22. package/dist/client/_astro/{PostTypesManager.C3RbmOZT.js → PostTypesManager.DTbeJSyc.js} +1 -1
  23. package/dist/client/_astro/{QuickDraftWidget.BtSGzhKq.js → QuickDraftWidget.wRkEcf8k.js} +1 -1
  24. package/dist/client/_astro/{ReadingSettings.ZFDaeo5U.js → ReadingSettings.CD8voAVk.js} +1 -1
  25. package/dist/client/_astro/{ResourceHubs.Cx9fbCv1.js → ResourceHubs.Cpu4lcaN.js} +1 -1
  26. package/dist/client/_astro/{TaxonomiesManager.BLsvmjaL.js → TaxonomiesManager.gPoogAar.js} +1 -1
  27. package/dist/client/_astro/TaxonomyTermsManager.B3TphEaE.js +1 -0
  28. package/dist/client/_astro/{ThemeCustomizer.BrDHVXLk.js → ThemeCustomizer.BKKTlRC5.js} +1 -1
  29. package/dist/client/_astro/{ThemeManager.BpS3m7Qc.js → ThemeManager.KDwxbVIq.js} +1 -1
  30. package/dist/client/_astro/{UserCreateForm.BYwgAqKk.js → UserCreateForm.IAFj7Afs.js} +1 -1
  31. package/dist/client/_astro/{UsersManager.DODMr48D.js → UsersManager.BfVYX6D5.js} +1 -1
  32. package/dist/client/_astro/{WebhooksManager.DmWIW272.js → WebhooksManager.Bp3Zp4vO.js} +1 -1
  33. package/dist/client/_astro/{api.53l1ob4Z.js → api.C1uUawnK.js} +1 -1
  34. package/dist/client/_astro/extensions.XVI9Kud6.js +1 -0
  35. package/dist/client/_astro/i18n.TTF80CEw.js +1 -0
  36. package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.BLf2Iun3.js → login.astro_astro_type_script_index_0_lang.C_Lrwk3I.js} +1 -1
  37. package/dist/client/_astro/{pt-BR.zZcF2v3X.js → pt-BR.C041vzOT.js} +1 -1
  38. package/dist/client/_astro/slots.CSARb9TW.js +1 -0
  39. package/dist/client/_astro/{src.CYKGYEyR.js → src.DoHIZU0i.js} +1 -1
  40. package/dist/client/_astro/store.BUgA6DSh.js +1 -0
  41. package/dist/server/chunks/{404_BAOD9OCa.mjs → 404_CouGE9Mj.mjs} +1 -1
  42. package/dist/server/chunks/{BaseLayout_BE8O-LS4.mjs → BaseLayout_DRJ6-Y9z.mjs} +5 -5
  43. package/dist/server/chunks/ContentEditor_DIjqVt5v.mjs +324 -0
  44. package/dist/server/chunks/{DashboardLayout_D6zphdT0.mjs → DashboardLayout_Bz8ZBDme.mjs} +102 -17
  45. package/dist/server/chunks/{FieldRenderer_D4dcZjgt.mjs → FieldRenderer_RlFoxao4.mjs} +574 -66
  46. package/dist/server/chunks/{MediaLibrary_DGmYSSZH.mjs → MediaLibrary_Dh6dBT17.mjs} +2 -2
  47. package/dist/server/chunks/{Modal_BmuvdwoB.mjs → Modal_CpojFoyP.mjs} +1 -1
  48. package/dist/server/chunks/_.._C1o1V5X_.mjs +76 -0
  49. package/dist/server/chunks/{_id__XEnJ5nS2.mjs → _id__BKZ7vD0U.mjs} +4 -4
  50. package/dist/server/chunks/{access_B5npG273.mjs → access_COyC7DxO.mjs} +3 -3
  51. package/dist/server/chunks/{api-keys_Bs6zIXYm.mjs → api-keys_D2TJYRAW.mjs} +3 -3
  52. package/dist/server/chunks/{comments_zJrnFEjl.mjs → comments_CySyBx_l.mjs} +2 -2
  53. package/dist/server/chunks/{custom-fields_C5EBkR02.mjs → custom-fields_Clivf3ew.mjs} +2 -2
  54. package/dist/server/chunks/{customize_CKqMX14y.mjs → customize_XWQyyFCl.mjs} +3 -3
  55. package/dist/server/chunks/{edit_QKBYgFkJ.mjs → edit_CYlskXjG.mjs} +2 -2
  56. package/dist/server/chunks/{i18n_C-sgJSi1.mjs → i18n_Bp0_xO2v.mjs} +27 -8
  57. package/dist/server/chunks/{index_CDwohy44.mjs → index_BufAjUfw.mjs} +2 -2
  58. package/dist/server/chunks/{index_DenKi4a3.mjs → index_CJOIvqZF.mjs} +2 -2
  59. package/dist/server/chunks/{index_BM_-WBYo.mjs → index_DBmNvPut.mjs} +2 -2
  60. package/dist/server/chunks/{index_BletZ9T6.mjs → index_Z5USLJCo.mjs} +3 -3
  61. package/dist/server/chunks/{index_Btvmuytk.mjs → index_pSSu8X0A.mjs} +2 -2
  62. package/dist/server/chunks/{login_CtIWLqC2.mjs → login_BbReGd7a.mjs} +1 -1
  63. package/dist/server/chunks/{logs_DlTldv5b.mjs → logs_D_xRW_Dm.mjs} +2 -2
  64. package/dist/server/chunks/{menus_z2d_K44p.mjs → menus_t0aZuQCI.mjs} +2 -2
  65. package/dist/server/chunks/{new_CYvLScge.mjs → new_CkSJ-S3h.mjs} +2 -2
  66. package/dist/server/chunks/{new_Cxp8Mdw4.mjs → new_DFA50r2h.mjs} +2 -2
  67. package/dist/server/chunks/{plugins_4g6EEkCb.mjs → plugins_rehiATzz.mjs} +13 -5
  68. package/dist/server/chunks/{post-types_7cW4BLBV.mjs → post-types_Dx4bmkB7.mjs} +2 -2
  69. package/dist/server/chunks/{pt-BR_AVNE88MZ.mjs → pt-BR_B8bZo1Id.mjs} +7 -1
  70. package/dist/server/chunks/{reading_2DqfBhj_.mjs → reading_DVMggOZa.mjs} +2 -2
  71. package/dist/server/chunks/{taxonomies_D7mMKpNX.mjs → taxonomies_BKVuy-kF.mjs} +2 -2
  72. package/dist/server/chunks/{taxonomy_64ggDTF9.mjs → taxonomy_CsnDSlD1.mjs} +31 -18
  73. package/dist/server/chunks/{themes_Dscq-5uk.mjs → themes_c2vDYHy-.mjs} +2 -2
  74. package/dist/server/chunks/{upload_B-DdqpaQ.mjs → upload_DYFOxmHE.mjs} +2 -2
  75. package/dist/server/chunks/{webhooks_D05B4_Rs.mjs → webhooks_CjBMAJt2.mjs} +2 -2
  76. package/dist/server/entry.mjs +43 -43
  77. package/dist/server/virtual_astro_middleware.mjs +1 -1
  78. package/package.json +5 -5
  79. package/dist/client/_astro/BaseLayout.Rpr86VwM.css +0 -1
  80. package/dist/client/_astro/ContentEditor.BlsJ2bwD.js +0 -1
  81. package/dist/client/_astro/ContentTypeWorkspace.BPVuQgzA.js +0 -1
  82. package/dist/client/_astro/FieldRenderer.AYtSBfHZ.js +0 -3
  83. package/dist/client/_astro/PluginManager.DLfgQFPF.js +0 -112
  84. package/dist/client/_astro/TaxonomyTermsManager.C_xEh8Ab.js +0 -1
  85. package/dist/client/_astro/extensions.DzQcQsO9.js +0 -1
  86. package/dist/client/_astro/i18n.A82w5XQu.js +0 -1
  87. package/dist/client/_astro/preload-helper.oCYlU9a4.js +0 -1
  88. package/dist/client/_astro/store.DLCqLxBR.js +0 -1
  89. package/dist/server/chunks/ContentEditor_DPy3I4HM.mjs +0 -690
  90. package/dist/server/chunks/_slug__BkXrukGe.mjs +0 -34
@@ -1 +0,0 @@
1
- :root{--admin-bar-h:46px;--admin-footer-h:48px;--color-primary:#d8b45e;--color-primary-hover:#b99542;--color-primary-light:#f3e7c5;--color-primary-soft:#faf5e8;--color-primary-contrast:#0a0a0a;--color-ink:#0a0a0a;--color-surface-dark:#171717;--color-white:#fff;--color-background:#f6f7f7;--color-border:#dcdcde;--color-text:#2c3338;--color-muted:#646970;--color-success:#22c55e;--color-success-soft:#22c55e1f;--color-warning:#f59e0b;--color-warning-soft:#f59e0b1f;--color-danger:#ef4444;--color-danger-soft:#ef44441f;--color-error:#ef4444;--color-error-soft:#ef44441f;--color-muted-soft:#eceef0;--color-surface:#fff;--color-surface-hover:#f6f7f7;--color-surface-active:#f3e7c5;--color-surface-muted:#eceef0;--color-bg:#f6f7f7;--color-bg-secondary:#fff;--color-bg-tertiary:#eceef0;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-full:9999px;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--focus-ring:0 0 0 2px var(--color-primary-soft), 0 0 0 4px var(--color-primary)}*{box-sizing:border-box;margin:0;padding:0}html{color:var(--color-text);background:var(--color-background);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}body{min-height:100vh}a{color:var(--color-primary);text-decoration:none}a:hover{color:var(--color-primary-hover)}button{cursor:pointer;font-family:inherit}input,textarea,select{font-family:inherit;font-size:inherit}.container{max-width:1280px;margin:0 auto;padding:0 1rem}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.font-bold{font-weight:600}.btn{border-radius:var(--radius-md);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:all .15s;display:inline-flex}.btn:focus-visible{box-shadow:var(--focus-ring);outline:none}.btn-primary{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-ink)}.btn-primary:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.btn-secondary{background:var(--color-surface);border-color:var(--color-border);color:var(--color-text)}.btn-secondary:hover{background:var(--color-surface-hover);border-color:var(--color-text)}.btn-danger{background:var(--color-danger);border-color:var(--color-danger);color:var(--color-white)}.btn-danger:hover{background:#dc2626;border-color:#dc2626}.btn-sm{padding:.375rem .75rem;font-size:.8125rem}.btn:disabled{opacity:.5;cursor:not-allowed}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:1.5rem}.card-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.input{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);width:100%;color:var(--color-text);padding:.5rem .75rem;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);outline:none}.input::placeholder{color:var(--color-muted)}.input:disabled{background:var(--color-background);color:var(--color-muted);cursor:not-allowed}select.input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23646970' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;padding-right:2.5rem}.table th,.table td{text-align:left;border-bottom:1px solid var(--color-border);padding:.75rem 1rem}.table th{color:var(--color-muted);text-transform:uppercase;letter-spacing:.04em;background:var(--color-background);font-size:.75rem;font-weight:600}.table tbody tr:hover{background:var(--color-surface-hover)}.table tbody tr:last-child td{border-bottom:none}.badge{border-radius:var(--radius-sm);text-transform:uppercase;letter-spacing:.02em;align-items:center;padding:.1875rem .5rem;font-size:.6875rem;font-weight:600;display:inline-flex}.badge-success{color:#166534;background:#22c55e1a}.badge-warning{color:#854d0e;background:#f59e0b1a}.badge-danger{color:#991b1b;background:#ef44441a}.badge-secondary{background:var(--color-border);color:var(--color-muted)}.badge-primary{background:var(--color-primary-soft);color:var(--color-primary-hover)}.modal-overlay{top:var(--admin-bar-h,46px);bottom:var(--admin-footer-h,48px);backdrop-filter:blur(2px);z-index:1500;background:#0a0a0a99;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;left:0;right:0}.modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);width:100%;max-width:560px;max-height:100%;box-shadow:var(--shadow-xl);padding:1.5rem;overflow-y:auto}.modal-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.toast{border-radius:var(--radius-md);background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-xl);z-index:1100;padding:.75rem 1rem;animation:.2s ease-out slideIn;position:fixed;bottom:1.5rem;right:1.5rem}@keyframes slideIn{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.toast-success{border-left:4px solid var(--color-success)}.toast-error{border-left:4px solid var(--color-danger)}.toast-warning{border-left:4px solid var(--color-warning)}.toast-info{border-left:4px solid var(--color-primary)}.spinner{border:2px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;width:1.25rem;height:1.25rem;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.muted{color:var(--color-muted);font-size:.875rem}.notice{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text);margin-bottom:1rem;padding:.75rem 1rem}.notice--error{border-color:var(--color-danger);color:var(--color-danger);background:#ef44440d}.notice--success{border-color:var(--color-success);color:var(--color-success);background:#22c55e0d}.toolbar{flex-wrap:wrap;gap:.5rem;margin:1rem 0;display:flex}.toolbar .input{flex:1;min-width:200px}.pagination{justify-content:center;align-items:center;gap:.5rem;margin-top:1.5rem;display:flex}.upload-zone{border:2px dashed var(--color-border);border-radius:var(--radius-xl);background:var(--color-surface);text-align:center;flex-direction:column;align-items:center;gap:.75rem;padding:2.5rem 1.5rem;transition:border-color .15s,background .15s;display:flex}.upload-zone--active{border-color:var(--color-primary);background:var(--color-primary-soft)}.media-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem;display:grid}.media-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);cursor:pointer;color:var(--color-text);font:inherit;flex-direction:column;gap:.5rem;padding:.5rem;transition:all .15s;display:flex}.media-card:hover{border-color:var(--color-primary);box-shadow:var(--shadow-md)}.media-card--selected{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-soft), 0 0 0 4px var(--color-primary)}.media-card__preview{aspect-ratio:4/3;border-radius:var(--radius-md);background:var(--color-background);justify-content:center;align-items:center;display:flex;overflow:hidden}.media-card__preview img{object-fit:cover;width:100%;height:100%}.media-card__ext{color:var(--color-muted);letter-spacing:.05em;text-align:center;padding:1rem;font-weight:700}.media-card__meta{flex-direction:column;gap:.125rem;display:flex}.media-card__name{white-space:nowrap;text-overflow:ellipsis;font-size:.8125rem;font-weight:500;overflow:hidden}.media-details{flex-direction:column;gap:.75rem;margin-top:1.5rem;display:flex;position:sticky;bottom:0}.media-details__preview img{border-radius:var(--radius-lg);object-fit:contain;background:var(--color-background);max-width:100%;max-height:280px}.media-details__list{grid-template-columns:100px 1fr;gap:.35rem .75rem;margin:0;display:grid}.media-details__list dt{color:var(--color-muted);font-size:.8125rem}.media-details__list dd{overflow-wrap:anywhere;margin:0;font-size:.875rem}.media-details__url{align-items:center;gap:.5rem;display:flex}.media-details__url code{background:var(--color-background);border-radius:var(--radius-sm);padding:.125rem .375rem;font-size:.75rem}.media-details__actions{flex-wrap:wrap;gap:.5rem;display:flex}.media-library .modal{max-width:min(1120px,96vw)}.media-modal{flex-direction:column;gap:1rem;display:flex}.media-modal__preview{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-background);justify-content:center;align-items:center;min-height:280px;max-height:460px;display:flex;overflow:hidden}.media-modal__preview img,.media-modal__preview video{object-fit:contain;max-width:100%;max-height:440px}.media-modal__preview audio{width:min(560px,90%)}.media-modal__preview iframe{border:0;width:100%;height:440px}.media-modal__file-icon{font-size:2rem}.media-modal__layout{grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:1.25rem;display:grid}.media-modal__fields{flex-direction:column;gap:.75rem;display:flex}.media-modal__textarea{resize:vertical;min-height:120px;font:inherit}.media-modal__facts{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-background);align-content:start;padding:.85rem}.media-modal__replace{flex-wrap:wrap;align-items:center;gap:.75rem;padding-top:.25rem;display:flex}@media (width<=720px){.media-modal__layout{grid-template-columns:1fr}.media-modal__preview{min-height:200px}}.users-table{border-collapse:collapse;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);width:100%;overflow:hidden}.users-table th,.users-table td{text-align:left;border-bottom:1px solid var(--color-border);padding:.75rem 1rem;font-size:.875rem}.users-table th{background:var(--color-background);color:var(--color-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem;font-weight:600}.users-table tr:last-child td{border-bottom:none}.users-table__row--selected td{background:var(--color-primary-soft)}.users-table__actions{white-space:nowrap;justify-content:flex-end;gap:.375rem;display:flex}.status-dot{background:var(--color-danger);border-radius:50%;flex-shrink:0;width:8px;height:8px;margin-right:.5rem;display:inline-block}.status-dot--active{background:var(--color-success)}.user-details{flex-direction:column;gap:.75rem;margin-top:1.25rem;display:flex}.dashboard-home{flex-direction:column;gap:1.5rem;display:flex}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;display:grid}.stat-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);text-align:center;padding:1.5rem;transition:all .15s}.stat-card:hover{border-color:var(--color-primary);box-shadow:var(--shadow-md)}.stat-label{color:var(--color-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.5rem;font-size:.8125rem;font-weight:500}.stat-value{color:var(--color-primary);font-size:2.5rem;font-weight:700;line-height:1.2}.login-page{background:var(--color-background);justify-content:center;align-items:center;min-height:100vh;padding:2rem 1rem;display:flex}.login-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);width:100%;max-width:420px;box-shadow:var(--shadow-lg);padding:2.5rem 2rem}.login-header{text-align:center;margin-bottom:2rem}.login-header .logo{justify-content:center;align-items:center;margin-bottom:1rem;display:inline-flex}.login-header .logo img{width:96px;height:96px;display:block}.login-header p{color:var(--color-muted);font-size:.9375rem}.login-form{flex-direction:column;gap:1.25rem;display:flex}.form-group{flex-direction:column;gap:.5rem;display:flex}.form-group label{color:var(--color-text);font-size:.8125rem;font-weight:500}.form-group .input{padding:.625rem .875rem;font-size:.9375rem}.form-group .input::placeholder{color:var(--color-muted)}.form-actions{gap:.5rem;margin-top:.5rem;display:flex}.form-actions .btn{flex:1}.empty-state,.skeleton{text-align:center;color:var(--color-muted);padding:2rem}.login-form .btn-primary{margin-top:.5rem;padding:.75rem 1.5rem;font-size:.9375rem;font-weight:600}.login-form .btn-primary:focus-visible{box-shadow:0 0 0 3px var(--color-primary-soft), 0 0 0 5px var(--color-primary)}.error-message{border-radius:var(--radius-md);border:1px solid var(--color-danger);color:var(--color-danger);background:#ef444414;padding:.75rem 1rem;font-size:.875rem}[dir=rtl]{direction:rtl}[dir=rtl] .table th,[dir=rtl] .table td,[dir=rtl] .users-table th,[dir=rtl] .users-table td{text-align:right}[dir=rtl] .toolbar{flex-direction:row-reverse}[dir=rtl] .toolbar .input{text-align:right}[dir=rtl] .form-grid,[dir=rtl] .form-grid label{direction:rtl}[dir=rtl] .card-header,[dir=rtl] .modal-header,[dir=rtl] .toolbar,[dir=rtl] .toolbar{flex-direction:row-reverse}[dir=rtl] .badge{direction:rtl}[dir=rtl] .toast{left:1.5rem;right:auto}[dir=rtl] .media-grid{direction:rtl}[dir=rtl] .media-card__meta{text-align:right}[dir=rtl] .media-details__list{direction:rtl}[dir=rtl] .media-details__url{flex-direction:row-reverse}[dir=rtl] .user-details .form-grid{direction:rtl}[dir=rtl] .user-details .media-details__actions{flex-direction:row-reverse}[dir=rtl] .notice{direction:rtl}[dir=rtl] .pagination{flex-direction:row-reverse}[dir=rtl] input,[dir=rtl] textarea,[dir=rtl] select,[dir=rtl] input::placeholder,[dir=rtl] textarea::placeholder{text-align:right}[dir=rtl] .chevron{transform:scaleX(-1)}[dir=rtl] .language-trigger[aria-expanded=true] .chevron{transform:scaleX(-1)rotate(180deg)}[dir=rtl] .users-table__actions{justify-content:flex-start}[dir=rtl] .media-details__actions{flex-direction:row-reverse}[dir=rtl] .media-details__preview{margin-left:auto;margin-right:0}[dir=rtl] .login-card{direction:rtl}[dir=rtl] .login-form .form-group label,[dir=rtl] .login-header{text-align:right}[dir=rtl] .settings-cards{direction:rtl}[dir=rtl] .settings-card{text-align:right}[dir=rtl] .action-card,[dir=rtl] .media-card__name{direction:rtl}[dir=rtl] .login-form .form-group{text-align:right}[dir=rtl] select.input{background-position:.75rem;padding-left:2.5rem;padding-right:.75rem}[dir=rtl] .status-dot{margin-left:.4rem;margin-right:0}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--color-background)}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--color-muted)}.resource-hub{gap:1rem;display:grid}.resource-tabs,.resource-actions{flex-wrap:wrap;gap:.5rem;display:flex}.resource-form,.term-form{gap:.75rem;margin:1rem 0;display:grid}.resource-form label{gap:.35rem;display:grid}.resource-form textarea,.term-form{width:100%}.card-header-row{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.card-header-row p{color:var(--color-muted);margin:.35rem 0 0}.logs-retention-form{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.logs-retention-form label{min-width:220px}.logs-filters{flex-wrap:wrap;gap:.5rem;margin:1rem 0;display:flex}.logs-filters .input{min-width:200px}.table-scroll{overflow-x:auto}.webhooks-manager select[multiple]{min-height:9rem}.webhooks-manager .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.access-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:1rem;display:grid}.table{border-collapse:collapse;width:100%}.table th,.table td{border-bottom:1px solid var(--color-border);text-align:left;vertical-align:middle;padding:.65rem}.terms-panel{gap:.75rem;display:grid}.form-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem;display:grid}.form-grid label{align-content:start;gap:.35rem;display:grid}.form-grid label.checkbox-label{align-items:center;gap:.5rem;margin-top:1.5rem;display:flex}.form-grid>label:last-child{align-self:end}.supports{flex-wrap:wrap;gap:.75rem 1.25rem;margin-bottom:1rem;display:flex}.supports label{align-items:center;gap:.4rem;display:flex}.post-types-manager,.taxonomies-manager{grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}.post-types-manager>.notice,.taxonomies-manager>.notice{grid-column:1/-1}.settings-table-card{padding:0;overflow:hidden}.settings-table-card .table th{background:var(--color-bg-tertiary);text-transform:uppercase;letter-spacing:.03em;font-size:.75rem}.settings-table-card .table td{padding:.65rem .75rem}@media (width<=1100px){.post-types-manager,.taxonomies-manager{grid-template-columns:1fr}}.resource-form label.checkbox-label,label.checkbox-label{align-items:center;gap:.5rem;font-weight:500;display:flex}.resource-form label.checkbox-label{margin-top:0}.webhooks-manager .resource-form{max-width:720px}.webhooks-manager .form-grid{margin-bottom:0}.field-type-picker{position:relative}.field-type-picker__trigger{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);width:100%;color:var(--color-text);cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .75rem;font-size:.875rem;display:flex}.field-type-picker__trigger:hover{border-color:var(--color-primary)}.field-type-picker__selected{align-items:center;gap:.5rem;min-width:0;display:inline-flex}.field-type-picker__selected svg,.field-type-picker__selected i{width:16px;height:16px;color:var(--color-primary);flex-shrink:0}.field-type-picker__panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);gap:.5rem;max-height:320px;padding:.5rem;display:grid;overflow-y:auto;box-shadow:0 12px 32px #0f0f0f2e}.field-type-picker__search{border:1px solid var(--color-border);border-radius:var(--radius-md);width:100%;padding:.4rem .6rem;font-size:.85rem}.field-type-picker__group{gap:.1rem;display:grid}.field-type-picker__group-label{text-transform:uppercase;letter-spacing:.04em;color:var(--color-muted);padding:.35rem .5rem 0;font-size:.7rem}.field-type-picker__option{border-radius:var(--radius-md);width:100%;color:var(--color-text);cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:.5rem;padding:.4rem .5rem;font-size:.85rem;display:flex}.field-type-picker__option:hover{background:var(--color-bg-tertiary)}.field-type-picker__option.is-selected{color:#8a6d1d;background:#d8b45e29;font-weight:600}.field-type-picker__option svg,.field-type-picker__option i{flex-shrink:0;width:15px;height:15px}.field-type-picker__group-label svg,.field-type-picker__group-label i{vertical-align:-2px;width:13px;height:13px;margin-right:.25rem}.field-type-picker__hint{color:var(--color-muted);white-space:nowrap;margin-left:auto;font-size:.7rem}.general-settings__tz{align-content:start;gap:.35rem;display:grid}.tz-select{position:relative}.tz-select__trigger{text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.tz-select__value{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.tz-select__panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);gap:.5rem;padding:.5rem;display:grid;box-shadow:0 12px 32px #0f0f0f2e}.tz-select__search{width:100%}.tz-select__options{gap:.1rem;max-height:280px;display:grid;overflow-y:auto}.tz-select__option{border-radius:var(--radius-md);color:var(--color-text);cursor:pointer;text-align:left;background:0 0;border:0;padding:.4rem .6rem;font-size:.85rem}.tz-select__option:hover{background:var(--color-bg-tertiary)}.tz-select__option.is-selected{color:#8a6d1d;background:#d8b45e29;font-weight:600}.tz-select__empty{color:var(--color-muted);margin:0;padding:.5rem .6rem;font-size:.85rem}.post-types-manager__icon-field{align-self:start}.icon-picker{position:relative}.icon-picker__trigger{cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:.75rem;width:100%;display:flex}.icon-picker__value{align-items:center;gap:.5rem;min-width:0;display:inline-flex}.icon-picker__preview{width:18px;height:18px;color:var(--color-primary);flex-shrink:0;display:inline-flex}.icon-picker__preview svg{width:18px;height:18px;display:block}.icon-picker__name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem;overflow:hidden}.icon-picker__caret{color:var(--color-muted);flex-shrink:0}.icon-picker__panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);gap:.5rem;padding:.5rem;display:grid;box-shadow:0 12px 32px #0f0f0f2e}.icon-picker__search{width:100%}.icon-picker__viewport{contain:layout paint;scrollbar-gutter:stable;height:300px;position:relative;overflow:hidden auto}.icon-picker__grid{width:100%;position:relative}.icon-picker__cell{border-radius:var(--radius-md);color:var(--color-text);cursor:pointer;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;padding:0;display:flex;position:absolute}.icon-picker__cell svg{pointer-events:none;width:20px;height:20px;display:block}.icon-picker__cell:hover{background:var(--color-bg-tertiary)}.icon-picker__cell.is-active{outline:2px solid var(--color-primary);outline-offset:-2px}.icon-picker__cell.is-selected{border-color:var(--color-primary);color:#8a6d1d;background:#d8b45e29}.icon-picker__cell:focus-visible{box-shadow:var(--focus-ring);outline:none}.icon-picker__empty{color:var(--color-muted);margin:0;padding:.5rem .6rem;font-size:.85rem}.icon-picker__count{color:var(--color-muted);text-align:right;margin:0;padding:0 .25rem;font-size:.7rem}.permission-picker{display:grid}.permission-picker__trigger{text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:.75rem;width:100%;display:flex}.permission-picker__value{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.permission-picker__value.is-empty{color:var(--color-muted)}.permission-picker__panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);gap:.5rem;padding:.5rem;display:grid;box-shadow:0 12px 32px #0f0f0f2e}.permission-picker__search{width:100%}.permission-picker__matrix{gap:.1rem;max-height:300px;display:grid;overflow-y:auto}.permission-picker__row{border-radius:var(--radius-sm);grid-template-columns:minmax(110px,1fr) repeat(5,2.1rem);align-items:center;gap:.25rem;padding:.15rem .25rem;display:grid}.permission-picker__row:hover{background:var(--color-bg-tertiary)}.permission-picker__row--head{background:var(--color-surface);z-index:1;border-bottom:1px solid var(--color-border);padding-bottom:.35rem;position:sticky;top:0}.permission-picker__row--head:hover{background:var(--color-surface)}.permission-picker__resource{text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.permission-picker__action-label{text-transform:uppercase;letter-spacing:.03em;color:var(--color-muted);text-align:center;font-size:.62rem}.permission-picker__cell{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);cursor:pointer;color:#0000;place-items:center;width:1.5rem;height:1.5rem;margin:0 auto;font-size:.75rem;transition:background .12s,border-color .12s;display:grid}.permission-picker__cell input{opacity:0;pointer-events:none;position:absolute}.permission-picker__cell:hover{border-color:var(--color-primary)}.permission-picker__cell.is-checked{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-ink)}.permission-picker__cell--empty{cursor:default;background:0 0;border:0}.permission-picker__empty{color:var(--color-muted);margin:0;padding:.5rem .6rem;font-size:.85rem}.permission-picker__custom{border-top:1px solid var(--color-border);gap:.35rem;padding-top:.5rem;display:grid}.permission-picker__custom-label{text-transform:uppercase;letter-spacing:.03em;color:var(--color-muted);margin:0;font-size:.7rem}.permission-picker__chips{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}.permission-picker__chip{border:1px solid var(--color-border);background:var(--color-bg-tertiary);border-radius:999px;align-items:center;gap:.25rem;padding:.1rem .2rem .1rem .45rem;font-size:.75rem;display:inline-flex}.permission-picker__chip code{font-size:.72rem}.permission-picker__chip button{color:var(--color-muted);cursor:pointer;background:0 0;border:0;padding:0 .25rem;font-size:.9rem;line-height:1}.permission-picker__chip button:hover{color:var(--color-danger,#b42318)}.permission-picker__custom-form{flex:1;gap:.35rem;min-width:180px;display:flex}.permission-picker__custom-input{flex:1;min-width:0;font-size:.8rem}.access-actions{white-space:nowrap;justify-content:flex-end;gap:.35rem;display:flex}.access-permissions-cell{text-overflow:ellipsis;white-space:nowrap;max-width:26ch;color:var(--color-muted);font-size:.8rem;overflow:hidden}.resource-form__label{font-size:.8rem;font-weight:500}.resource-form__field{gap:.35rem;display:grid}.modal .form-actions{justify-content:flex-end}.modal .form-actions .btn{flex:none}.modal-close{color:var(--color-muted);cursor:pointer;border-radius:var(--radius-sm);background:0 0;border:0;padding:0 .35rem;font-size:1.5rem;line-height:1}.modal-close:hover{color:var(--color-text);background:var(--color-bg-tertiary)}.post-types-manager__icon{align-items:center;gap:.5rem;display:inline-flex}.post-types-manager__icon-preview{width:16px;height:16px;color:var(--color-muted);display:inline-flex}.post-types-manager__icon-preview svg{width:16px;height:16px;display:block}.content-list__heading,.classic-editor__topbar{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.content-list__heading h2,.classic-editor__topbar h2{color:var(--color-ink);font-size:1.5rem}.content-list__heading p{margin-top:.25rem}.classic-editor__eyebrow{color:var(--color-primary-hover);letter-spacing:.08em;text-transform:uppercase;font-size:.75rem;font-weight:700;display:block}.classic-editor__actions{gap:.5rem;display:flex}.classic-editor__columns{grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:1rem;display:grid}.classic-editor__main,.classic-editor__sidebar{gap:1rem;min-width:0;display:grid}.classic-editor__canvas-card{padding:1.25rem}.classic-editor__title{width:100%;color:var(--color-ink);border:0;outline:0;padding:.25rem 0 .75rem;font-size:clamp(1.75rem,3vw,2.4rem);font-weight:600;line-height:1.2}.classic-editor__title::placeholder{color:#9ca3af}.classic-editor__permalink{color:var(--color-muted);border-bottom:1px solid var(--color-border);align-items:center;gap:.5rem;padding-bottom:1rem;font-size:.8125rem;display:flex}.classic-editor__permalink .input{max-width:420px;padding:.3rem .5rem}.classic-editor__toolbar{border:1px solid var(--color-border);background:#f0f0f1;border-bottom:0;flex-wrap:wrap;align-items:center;gap:.25rem;margin-top:1rem;padding:.45rem;display:flex}.classic-editor__toolbar button{border-radius:var(--radius-sm);min-width:2rem;min-height:2rem;color:var(--color-text);background:0 0;border:1px solid #0000;padding:.25rem .45rem}.classic-editor__toolbar button:hover{border-color:var(--color-border);background:var(--color-white)}.classic-editor__toolbar-divider{background:var(--color-border);width:1px;height:1.5rem;margin:0 .25rem}.field-renderer__wysiwyg{gap:.25rem;display:grid}.field-renderer__wysiwyg-toolbar{border:1px solid var(--color-border);border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:#f0f0f1;border-bottom:0;flex-wrap:wrap;align-items:center;gap:.25rem;padding:.45rem;display:flex}.field-renderer__wysiwyg-toolbar select.input{max-width:160px;padding:.25rem .45rem}.field-renderer__wysiwyg-divider{background:var(--color-border);width:1px;height:1.5rem;margin:0 .25rem}.field-renderer__wysiwyg-toolbar button{border-radius:var(--radius-sm);min-width:2rem;min-height:2rem;color:var(--color-text);background:0 0;border:1px solid #0000;padding:.25rem .45rem}.field-renderer__wysiwyg-toolbar button:hover{border-color:var(--color-border);background:var(--color-white)}.field-renderer__wysiwyg-body{border:1px solid var(--color-border);background:var(--color-white);min-height:200px;color:var(--color-text);border-radius:0 0 var(--radius-sm) var(--radius-sm);border-top:0;outline:none;padding:.75rem;font-size:.9375rem;line-height:1.6}.field-renderer__wysiwyg-body:focus{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary)}.field-renderer__wysiwyg-body:empty:before{content:attr(data-placeholder);color:var(--color-muted)}.field-renderer__wysiwyg-body blockquote{border-left:3px solid var(--color-primary);color:var(--color-muted);margin:1rem 0;padding-left:1rem}.field-renderer__wysiwyg-body pre{border-radius:var(--radius-sm);background:#f5f5f5;padding:.5rem;overflow-x:auto}.classic-editor__body{border:1px solid var(--color-border);background:var(--color-white);min-height:360px;color:var(--color-text);outline:none;padding:1rem;font-size:1rem;line-height:1.7}.classic-editor__body:focus{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary)}.classic-editor__body:empty:before{content:attr(data-placeholder);color:var(--color-muted)}.classic-editor__body blockquote{border-left:3px solid var(--color-primary);color:var(--color-muted);margin:1rem 0;padding-left:1rem}.plugin-editor{border:1px dashed var(--color-border);background:var(--color-white);min-height:360px;color:var(--color-text);padding:1rem}.plugin-editor--below{min-height:8rem;margin-top:1rem}.classic-editor__excerpt{gap:.4rem;margin-top:1rem;display:grid}.classic-editor__panel{gap:.75rem;display:grid}.classic-editor__panel h3{border-bottom:1px solid var(--color-border);color:var(--color-ink);padding-bottom:.65rem;font-size:.95rem}.classic-editor__full-button{width:100%}@media (width<=720px){.access-grid{grid-template-columns:1fr}.table{display:block;overflow-x:auto}.content-list__heading,.classic-editor__topbar{flex-direction:column}.classic-editor__columns{grid-template-columns:1fr}.classic-editor__sidebar{order:-1}}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.customizer__tabs{border-bottom:1px solid var(--color-border);flex-wrap:wrap;gap:.25rem;margin-bottom:.75rem;padding:.5rem 0;display:flex}.customizer__tab{border-radius:var(--radius-md) var(--radius-md) 0 0;background:var(--color-surface);color:var(--color-muted);cursor:pointer;border:1px solid #0000;border-bottom:none;padding:.5rem 1rem;font-size:.8125rem;font-weight:500;transition:all .15s}.customizer__tab:hover{color:var(--color-text);background:var(--color-white)}.customizer__tab.active{color:var(--color-primary);background:var(--color-white);border-color:var(--color-border);border-bottom-color:var(--color-white);margin-bottom:-1px}.customizer__tab-panel{animation:.15s fadeIn}.customizer__accordion>*+*{margin-top:.5rem}.customizer__accordion .customizer__field{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-white);padding:.75rem}.customizer__accordion .customizer__field:first-child{margin-top:0}.okcms-rate-limit-notice{z-index:2000;background:var(--bg-primary,#1f2430);max-width:min(92vw,520px);color:var(--text-primary,#e7e9ee);border:1px solid var(--border,#94a3b847);text-align:center;opacity:0;pointer-events:none;border-radius:10px;padding:12px 18px;font-size:14px;line-height:1.4;transition:opacity .18s,transform .18s;position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);box-shadow:0 10px 30px #0f172a59}.okcms-rate-limit-notice.visible{opacity:1;transform:translate(-50%)}.fb-eyebrow{color:var(--color-primary);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.25rem;font-size:.72rem;font-weight:700;display:block}.fb-back-link{color:var(--color-primary-hover);cursor:pointer;background:0 0;border:0;margin-bottom:.5rem;padding:0;font-size:.85rem;display:inline-block}.fb-back-link:hover{color:var(--color-ink);text-decoration:underline}.fb-icon-button{color:var(--color-muted);cursor:pointer;background:0 0;border:0;font-size:1.6rem;line-height:1}.fb-icon-button:hover{color:var(--color-ink)}.editor-actions{align-items:center;gap:.6rem;display:flex}.fb-panel{box-shadow:var(--shadow-sm);margin-bottom:1.25rem;overflow:hidden}.fb-panel__header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 1.35rem;display:flex}.fb-panel__header h3{color:var(--color-ink);margin:0;font-size:1.08rem}.fb-panel__header p{margin:.3rem 0 0}.fb-panel__body{padding:1.35rem}.fb-list__header,.fb-editor__header{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.5rem;display:flex}.fb-list__header h2,.fb-editor__header h2{color:var(--color-ink);margin:.3rem 0 0;font-size:clamp(1.4rem,2vw,1.85rem);font-weight:600}.fb-list__header p{margin:.35rem 0 0}.fb-list__toolbar{border:1px solid var(--color-border);background:var(--color-surface);border-bottom:0;border-radius:.55rem .55rem 0 0;align-items:flex-end;gap:1rem;margin-bottom:1rem;padding:.9rem 1rem;display:flex}.fb-list__filter{align-items:center;gap:.6rem;display:flex}.fb-list__filter>span{color:var(--color-muted);white-space:nowrap;font-size:.8rem;font-weight:600}.fb-list__search{max-width:320px;margin-left:auto}.fb-groups-table{border-radius:.55rem;padding:0;overflow:hidden}.fb-groups-table__head,.fb-groups-table__row{grid-template-columns:minmax(200px,1.6fr) minmax(140px,1fr) minmax(140px,1fr) 70px 100px minmax(180px,auto);align-items:center;gap:1rem;display:grid}.fb-groups-table__head{background:var(--color-background);color:var(--color-muted);letter-spacing:.05em;text-transform:uppercase;padding:.7rem 1.1rem;font-size:.72rem;font-weight:700}.fb-groups-table__row{border-top:1px solid var(--color-border);background:var(--color-surface);cursor:pointer;min-height:4.4rem;padding:.85rem 1.1rem;transition:background .15s}.fb-groups-table__row:hover{background:var(--color-primary-soft)}.fb-groups-table__title{gap:.15rem;min-width:0;display:grid}.fb-groups-table__title strong{color:var(--color-primary-hover);font-size:.95rem}.fb-groups-table__title code{color:var(--color-muted);text-overflow:ellipsis;font-size:.72rem;overflow:hidden}.fb-groups-table__desc{text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.fb-groups-table__location,.fb-groups-table__count{color:var(--color-muted);font-size:.85rem}.fb-groups-table__actions{opacity:.8;justify-content:flex-end;gap:.5rem;display:flex}.fb-groups-table__row:hover .fb-groups-table__actions{opacity:1}.fb-row-action{color:var(--color-primary-hover);cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;font-size:.78rem}.fb-row-action:hover{text-decoration:underline}.fb-row-action.is-danger{color:var(--color-danger)}.fb-empty-groups{text-align:center;padding:3.5rem 1.25rem}.fb-empty-icon{color:var(--color-primary);margin-bottom:.6rem;display:inline-flex}.fb-empty-icon svg{width:2.75rem;height:2.75rem}.fb-empty-groups h4{margin:0 0 .35rem}.fb-empty-groups .btn{margin-top:1rem}.fb-editor__footer{justify-content:flex-end;margin-top:1.25rem}.fb-identity{align-items:flex-end;gap:1rem;display:flex}.fb-group-title{max-width:720px;min-height:2.6rem;font-size:1.1rem}.fb-identity__key{color:var(--color-muted);padding-bottom:.5rem;font-size:.8rem}.fb-tabs__list{border-bottom:1px solid var(--color-border);gap:.25rem;display:flex;overflow-x:auto}.fb-tabs__tab{color:var(--color-muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:.4rem;padding:.7rem .9rem;font-size:.86rem;font-weight:500;display:inline-flex;position:relative}.fb-tabs__tab:hover{color:var(--color-ink)}.fb-tabs__tab.is-active{color:var(--color-primary-hover);font-weight:600}.fb-tabs__tab.is-active:after{background:var(--color-primary);content:"";border-radius:3px 3px 0 0;height:3px;position:absolute;bottom:-1px;left:.4rem;right:.4rem}.fb-tabs__tab.is-disabled{opacity:.5;cursor:not-allowed}.fb-tabs__badge{border-radius:var(--radius-sm);background:var(--color-primary-soft);color:var(--color-primary);text-transform:uppercase;padding:.05rem .4rem;font-size:.66rem;font-weight:700}.fb-tabs__panel{padding-top:1.25rem}.fb-field-list{position:relative}.fb-sortable-list{display:grid}.fb-sortable-list--sub{border-left:3px solid var(--color-primary-soft);background:var(--color-background);margin-top:.5rem;padding-left:.75rem}.fb-sortable-empty{min-height:0}.fb-sortable-item{position:relative}.fb-sortable-item.is-dragging{opacity:.4}.fb-sortable-item.is-drop-target:before{z-index:3;background:var(--color-primary);content:"";border-radius:3px;height:3px;position:absolute;top:-1px;left:.25rem;right:.25rem}.fb-field-row{border:1px solid var(--color-border);background:var(--color-surface);border-radius:0}.fb-field-row:first-child{border-radius:.35rem .35rem 0 0}.fb-field-row:last-child{border-radius:0 0 .35rem .35rem}.fb-field-row+.fb-field-row{border-top:0}.fb-field-row.is-expanded{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);z-index:1}.fb-field-row__header{grid-template-columns:1.9rem 2.1rem minmax(160px,1.5fr) minmax(120px,1fr) minmax(120px,1fr) minmax(90px,.7fr) auto auto;align-items:center;min-height:3.9rem;display:grid}.fb-field-row__header:hover,.fb-field-row.is-expanded .fb-field-row__header{background:var(--color-primary-soft)}.fb-field-row__handle{width:1.9rem;color:var(--color-muted);cursor:grab;background:0 0;border:0;justify-content:center;align-self:stretch;align-items:center;display:flex}.fb-field-row__handle:hover{color:var(--color-primary-hover)}.fb-field-row__handle:active{cursor:grabbing}.fb-field-row__handle svg{width:1.05rem;height:1.05rem}.fb-field-row__toggle{cursor:pointer;text-align:left;color:var(--color-text);background:0 0;border:0;display:contents}.fb-field-row__order{background:var(--color-background);width:1.55rem;height:1.55rem;color:var(--color-muted);border-radius:50%;justify-content:center;align-items:center;margin-left:.35rem;font-size:.72rem;font-weight:700;display:inline-flex}.fb-field-row__label{align-items:center;gap:.55rem;min-width:0;padding-left:.6rem;display:inline-flex}.fb-field-row__label strong{color:var(--color-primary-hover);text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;font-weight:600;overflow:hidden}.fb-field-row__type-icon{width:1rem;height:1rem;color:var(--color-primary);flex:none}.fb-field-row__name,.fb-field-row__key{color:var(--color-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.fb-field-row__type{color:var(--color-text);font-size:.8rem}.fb-field-row__actions{align-items:center;gap:.55rem;padding:0 .7rem;display:flex}.fb-field-row__chevron{color:var(--color-muted);cursor:pointer;background:0 0;border:0;padding:0 .6rem}.fb-field-row__chevron svg{width:1rem;height:1rem}.fb-field-row__body{border-top:1px solid var(--color-border);background:var(--color-surface);gap:1.25rem;padding:1.35rem;display:grid}.fb-settings-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;display:grid}.fb-setting{flex-direction:column;gap:.35rem;min-width:0;display:flex}.fb-setting--wide{grid-column:1/-1}.fb-setting--inline{flex-direction:row;align-items:center;gap:.6rem}.fb-setting__label{color:var(--color-text);font-size:.82rem;font-weight:600}.fb-setting__hint{color:var(--color-muted);font-size:.74rem}.fb-setting__hint code{background:var(--color-background);border-radius:var(--radius-sm);padding:0 .25rem}.fb-settings-grid textarea{resize:vertical}.fb-input-append-wrap{align-items:center;display:flex;position:relative}.fb-input-append-wrap .input{padding-right:2.2rem}.fb-append-suffix{color:var(--color-muted);pointer-events:none;font-size:.82rem;position:absolute;right:.65rem}.fb-switch{cursor:pointer;align-items:center;gap:.5rem;display:inline-flex}.fb-checkbox-grid{flex-wrap:wrap;gap:.55rem 1.1rem;display:flex}.fb-checkbox{align-items:center;gap:.4rem;font-size:.82rem;display:inline-flex}.fb-subfields{border:1px dashed var(--color-border);border-radius:var(--radius-md);background:var(--color-background);padding:1rem}.fb-subfields--layout{margin-top:.75rem}.fb-subfields__header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.fb-subfields__header h5{margin:0}.fb-layouts{border:1px dashed var(--color-border);border-radius:var(--radius-md);background:var(--color-background);gap:.85rem;padding:1rem;display:grid}.fb-layout-card{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);gap:.85rem;padding:.9rem;display:grid}.fb-layout-card__header{align-items:center;gap:.6rem;display:flex}.fb-layout-card__header strong{color:var(--color-primary-hover)}.fb-layout-card__display{color:var(--color-muted);margin-left:auto;font-size:.75rem}.fb-layout-card__settings{padding:.25rem 0}.fb-empty-fields{text-align:center;color:var(--color-muted);padding:1.5rem .5rem .35rem}.fb-list-footer{justify-content:flex-end;margin-top:.85rem;display:flex}.fb-add-field{border:1px solid var(--color-primary);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-primary-hover);cursor:pointer;padding:.55rem .9rem;font-size:.85rem;font-weight:600}.fb-add-field:hover{background:var(--color-primary-soft)}.fb-rule-editor{gap:1rem;display:grid}.fb-rule-editor__toggle{cursor:pointer;align-items:center;gap:.5rem;font-weight:600;display:inline-flex}.fb-rule-groups{gap:.75rem;display:grid}.fb-rule-group{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-background);gap:.55rem;padding:.85rem;display:grid}.fb-rule-group__connector{color:var(--color-muted);text-align:center;font-size:.75rem;font-weight:700}.fb-rule-group__header{color:var(--color-text);font-size:.8rem;font-weight:700}.fb-rule-group__actions{align-items:center;gap:.6rem;margin-top:.2rem;display:flex}.fb-rule-group__and{color:var(--color-muted);font-size:.72rem}.fb-rule-row{grid-template-columns:minmax(160px,1.2fr) minmax(140px,.9fr) minmax(160px,1.2fr) auto;align-items:center;gap:.55rem;display:grid}.fb-rule-row__spacer{display:block}.fb-rule-remove{color:var(--color-danger);cursor:pointer;background:0 0;border:0;font-size:1.1rem}.fb-rule-add-group{justify-self:start}.fb-modal-backdrop{z-index:1000;top:var(--admin-bar-h,46px);bottom:var(--admin-footer-h,48px);background:#0a0a0a80;place-items:center;padding:1rem;display:grid;position:fixed;left:0;right:0}.fb-browse-modal{border:1px solid var(--color-border);background:var(--color-surface);width:min(920px,100%);max-height:100%;box-shadow:var(--shadow-xl);border-radius:.55rem;grid-template-rows:auto auto auto 1fr auto;display:grid;overflow:hidden}.fb-browse-modal__header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.1rem 1.35rem;display:flex}.fb-browse-modal__header h3{color:var(--color-ink);margin:.15rem 0 0}.fb-browse-modal__search{padding:.9rem 1.35rem .5rem}.fb-browse-modal__search .input{max-width:380px}.fb-browse-modal__tabs{border-bottom:1px solid var(--color-border);gap:1.1rem;padding:0 1.35rem;display:flex;overflow-x:auto}.fb-browse-modal__tabs button{color:var(--color-muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;padding:.6rem 0 .55rem;position:relative}.fb-browse-modal__tabs button.is-active{color:var(--color-primary-hover);font-weight:600}.fb-browse-modal__tabs button.is-active:after{background:var(--color-primary);content:"";height:3px;position:absolute;bottom:-1px;left:0;right:0}.fb-browse-modal__body{grid-template-columns:minmax(0,1fr) 230px;min-height:300px;display:grid;overflow:auto}.fb-browse-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));align-content:start;gap:.75rem;padding:1.25rem;display:grid}.fb-browse-tile{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-height:108px;color:var(--color-text);text-align:center;cursor:pointer;place-items:center;gap:.35rem;padding:.8rem;transition:border-color .15s,background .15s,box-shadow .15s;display:grid}.fb-browse-tile:hover,.fb-browse-tile.is-selected{border-color:var(--color-primary);background:var(--color-primary-soft);box-shadow:0 0 0 1px var(--color-primary)}.fb-browse-tile__icon{border:1px solid var(--color-primary);width:2.1rem;height:2.1rem;color:var(--color-primary-hover);border-radius:.4rem;place-items:center;display:grid}.fb-browse-tile__icon svg{width:1.2rem;height:1.2rem}.fb-browse-tile small{color:var(--color-muted);font-size:.7rem}.fb-browse-preview{border-left:1px solid var(--color-border);background:var(--color-background);flex-direction:column;align-items:flex-start;gap:.6rem;padding:1.5rem 1.25rem;display:flex}.fb-browse-preview__icon{border:1px solid var(--color-primary);width:2.5rem;height:2.5rem;color:var(--color-primary-hover);border-radius:.45rem;place-items:center;display:grid}.fb-browse-preview__icon svg{width:1.4rem;height:1.4rem}.fb-browse-preview h4{color:var(--color-ink);margin:0}.fb-browse-empty{text-align:center;grid-column:1/-1;padding:2rem}.fb-browse-modal__footer{border-top:1px solid var(--color-border);justify-content:space-between;align-items:flex-end;gap:1rem;padding:1.1rem 1.35rem;display:flex}.fb-browse-modal__label{flex:1;gap:.3rem;max-width:340px;display:grid}.fb-page-header{flex-direction:column;gap:1rem;margin-bottom:1.5rem;display:flex}.fb-page-header__main{flex-direction:column;gap:.35rem;display:flex}.fb-page-header__main .fb-eyebrow{margin-bottom:.25rem}.fb-page-header__main h1{color:var(--color-ink);margin:.3rem 0 0;font-size:clamp(1.4rem,2vw,1.85rem);font-weight:600}.fb-page-header__main p{margin:.35rem 0 0}.fb-page-header__actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.fb-page-header__toolbar{border:1px solid var(--color-border);background:var(--color-surface);border-bottom:0;border-radius:.55rem .55rem 0 0;align-items:flex-end;gap:1rem;margin-bottom:1rem;padding:.9rem 1rem;display:flex}.fb-toolbar{flex-wrap:wrap;align-items:flex-end;gap:1rem;display:flex}.fb-toolbar__filter{align-items:center;gap:.6rem;display:flex}.fb-toolbar__filter>span{color:var(--color-muted);white-space:nowrap;font-size:.8rem;font-weight:600}.fb-toolbar__search{max-width:320px;margin-left:auto}.fb-page-content{flex:1 0 auto;min-width:0}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:.55rem;overflow:hidden}.card--padded{padding:0}@media (width<=900px){.fb-groups-table__head{display:none}.fb-groups-table__row{grid-template-columns:1fr 1fr;gap:.55rem}.fb-groups-table__title,.fb-groups-table__actions{grid-column:1/-1}.fb-groups-table__actions{justify-content:flex-start}.fb-field-row__header{grid-template-columns:1.9rem 2.1rem minmax(0,1fr) auto auto}.fb-field-row__name,.fb-field-row__key,.fb-field-row__type{display:none}.fb-rule-row,.fb-browse-modal__body{grid-template-columns:1fr}.fb-browse-preview{display:none}.fb-browse-modal__footer{flex-direction:column;align-items:stretch}.fb-browse-modal__label{width:100%;max-width:none}.fb-list__header,.fb-editor__header,.fb-list__toolbar{flex-direction:column;align-items:stretch}.fb-list__search{max-width:none;margin-left:0}.fb-page-header__toolbar{flex-direction:column;align-items:stretch}.fb-toolbar__search{max-width:none;margin-left:0}}.fb-list__header-actions{align-items:center;gap:.5rem;display:flex}.fb-import-btn{display:inline-flex}.fb-import-btn input{opacity:0;width:0;height:0;position:absolute}.fb-btn-icon{vertical-align:middle;width:1rem;height:1rem;margin-right:.35rem;display:inline-flex}.fb-modal{border:1px solid var(--color-border);background:var(--color-surface);width:min(560px,100%);max-height:100%;box-shadow:var(--shadow-xl);border-radius:.55rem;flex-direction:column;display:flex;overflow:hidden}.fb-modal__header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:1.1rem 1.35rem;display:flex}.fb-modal__header h3{color:var(--color-ink);margin:0}.fb-modal__close{width:2rem;height:2rem;color:var(--color-muted);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:flex}.fb-modal__close:hover{background:var(--color-primary-soft);color:var(--color-primary-hover)}.fb-modal__body{min-height:0;padding:1.35rem;overflow-y:auto}.fb-import-dropzone{border:2px dashed var(--color-border);border-radius:var(--radius-md);background:var(--color-background);min-height:140px;color:var(--color-text);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;transition:border-color .15s,background .15s;display:flex}.fb-import-dropzone:hover{border-color:var(--color-primary);background:var(--color-primary-soft)}.fb-dropzone-icon{width:3rem;height:3rem;color:var(--color-primary)}.fb-import-hint{text-align:center;margin-top:.5rem;font-size:.8rem}.fb-modal__footer{border-top:1px solid var(--color-border);justify-content:flex-end;align-items:center;gap:.5rem;padding:1rem 1.35rem;display:flex}
@@ -1 +0,0 @@
1
- import{S as e,a as t,f as n,h as r,l as i,p as a,r as o}from"./solid.Ck4Vtfe4.js";import{_ as s,a as c,f as l,l as u,m as d,o as f,p,s as m,u as h}from"./web.DD6VKaIp.js";import{n as g}from"./i18n.A82w5XQu.js";import{n as _}from"./api.53l1ob4Z.js";import{r as v,t as y}from"./FieldRenderer.AYtSBfHZ.js";import{t as b}from"./clone.oDfZEkVn.js";import{c as x,n as S,o as C,t as w}from"./store.DLCqLxBR.js";var ee=s(`<div class="notice notice--success">`),te=s(`<input class=classic-editor__title required>`),ne=s(`<div class=classic-editor__toolbar role=toolbar><select class=input value><option value></option><option value="<h1>"></option><option value="<h2>"></option><option value="<h3>"></option><option value="<h4>"></option><option value="<blockquote>"></option><option value="<pre>"></option></select><span class=classic-editor__toolbar-divider></span><button type=button><strong></strong></button><button type=button><em></em></button><button type=button><u></u></button><span class=classic-editor__toolbar-divider></span><button type=button></button><button type=button></button><button type=button>`),re=s(`<div class=classic-editor__body data-classic-editor role=textbox aria-multiline=true>`),ie=s(`<div class="plugin-editor plugin-editor--below">`),ae=s(`<label class=classic-editor__excerpt><span></span><textarea class=input rows=4>`),oe=s(`<section class="card custom-fields"><h3></h3><!$><!/>`),se=s(`<section class="card classic-editor__panel"><h3></h3><input class=input><p class=muted>`),ce=s(`<section class="card classic-editor__panel"><h3></h3><label><!$><!/><select class=input><option value></option><!$><!/>`),le=s(`<form class="content-editor classic-editor"><!$><!/><!$><!/><div class=classic-editor__topbar><div><span class=classic-editor__eyebrow></span><h2></h2></div><div class=classic-editor__actions><a class="btn btn-secondary"></a><button type=submit class="btn btn-primary"></button></div></div><div class=classic-editor__columns><main class=classic-editor__main><section class="card classic-editor__canvas-card"><!$><!/><div class=classic-editor__permalink><span><!$><!/>:</span><input class=input></div><!$><!/><!$><!/><!$><!/></section><!$><!/><!$><!/></main><aside class=classic-editor__sidebar><section class="card classic-editor__panel"><h3></h3><label><!$><!/><select class=input><option value=DRAFT></option><option value=PUBLISHED></option><option value=ARCHIVED></option></select></label><button type=submit class="btn btn-primary classic-editor__full-button"></button></section><!$><!/><!$><!/><!$><!/></aside></div><!$><!/>`),ue=s(`<div class="notice notice--error">`),de=s(`<div class=plugin-editor>`),fe=s(`<option>`);function T(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e;return t.content===void 0&&typeof t.html==`string`&&(t.content=t.html),t}if(typeof e==`string`)try{let t=JSON.parse(e);if(typeof t==`object`&&t&&!Array.isArray(t)){let e=t;return e.content===void 0&&typeof e.html==`string`&&(e.content=e.html),e}}catch{}return{}}function E(s){let{t:c}=g(),[E,D]=r([]),[O,k]=r([]),[A,j]=r([]),[M,N]=r({}),[P,F]=r([]),[I,L]=r(!1),[R,z]=r(``),[B,V]=r(w()),[H,U]=r({type:s.initialType||`post`,title:``,status:`DRAFT`}),pe=()=>new Set(E().find(e=>e.slug===H().type)?.supports??[`title`,`editor`]),W=e=>pe().has(e),G=n(()=>{let e=H().type;return(B().editors??[]).filter(t=>t.screens.includes(`*`)||t.screens.includes(e)).sort((e,t)=>(e.priority??0)-(t.priority??0))[0]??null}),me=()=>({editorId:G().id,contentType:H().type,contentId:H().id??``,body:J(),setBody:e=>N({...M(),content:e}),disabled:I()}),K=(e,t)=>t||e[0]?.slug||`post`,he=()=>{let e=new Set;for(let t of A())for(let n of t.manifest?.provides?.layouts??[])e.add(n);return[...e].sort()},q=async e=>{try{let t=typeof e==`string`?{type:e}:e,n=await _.getFieldGroups(t.type?t:void 0),r=await Promise.all(n.filter(e=>e.active).map(async e=>(await _.getFieldGroup(e.id)).fields??[]));k(b(r.flat()))}catch(e){F([e instanceof Error?e.message:String(e)])}};e(async()=>{S().then(V);let e=[];try{let[t,n]=await Promise.all([_.getContentTypes(),_.getThemes().catch(()=>[])]);e=t,D(t),j(n)}catch(e){F([e instanceof Error?e.message:String(e)])}let t=new URLSearchParams(window.location.search).get(`id`);if(t||s.singleton)try{let e=t?await _.getContentById(t):await _.getSingletonContent(H().type);if(!e){await q({type:H().type,status:H().status});return}let n=e;U({id:e.id,type:e.type,title:e.title,slug:e.slug,excerpt:e.excerpt,featuredImageId:n.featuredImageId??n.featured_image_id,status:e.status,layout:e.layout}),N(T(e.body))}catch(e){F([e instanceof Error?e.message:String(e)])}else e.some(e=>e.slug===H().type)||U({...H(),type:K(e,s.initialType)});await q({type:H().type,slug:H().slug,status:H().status})});let J=()=>{let e=M().content;return typeof e==`string`?e:``},ge=e=>{N({...M(),content:e.innerHTML})},Y=(e,t)=>{document.execCommand(e,!1,t);let n=document.querySelector(`[data-classic-editor]`);n&&ge(n)},_e=async e=>{e.preventDefault(),z(``),F([]),L(!0);try{let e=v(J()),t=M(),n={...t,content:e};`html`in t&&(n.html=e);let r={...H(),layout:H().layout||null,body:n,...W(`excerpt`)?{}:{excerpt:void 0},...W(`thumbnail`)?{}:{featuredImageId:void 0}},i=H().id?await _.updateContent(H().id,r):await _.createContent(r);U({...H(),id:i.id}),z(c(`content.editor.saved`))}catch(e){F([e instanceof Error?e.message:String(e)])}finally{L(!1)}};return(()=>{var e=f(le),n=e.firstChild,[r,s]=m(n.nextSibling),g=r.nextSibling,[_,b]=m(g.nextSibling),S=_.nextSibling,w=S.firstChild,T=w.firstChild,D=T.nextSibling,k=w.nextSibling.firstChild,A=k.nextSibling,j=S.nextSibling,F=j.firstChild,L=F.firstChild,z=L.firstChild,[V,pe]=m(z.nextSibling),K=V.nextSibling,q=K.firstChild,ve=q.firstChild,[ye,be]=m(ve.nextSibling);ye.nextSibling;var X=q.nextSibling,xe=K.nextSibling,[Se,Ce]=m(xe.nextSibling),we=Se.nextSibling,[Te,Ee]=m(we.nextSibling),De=Te.nextSibling,[Oe,ke]=m(De.nextSibling),Ae=L.nextSibling,[je,Me]=m(Ae.nextSibling),Ne=je.nextSibling,[Pe,Fe]=m(Ne.nextSibling),Z=F.nextSibling,Ie=Z.firstChild,Le=Ie.firstChild,Q=Le.nextSibling,Re=Q.firstChild,[ze,Be]=m(Re.nextSibling),$=ze.nextSibling,Ve=$.firstChild,He=Ve.nextSibling,Ue=He.nextSibling,We=Q.nextSibling,Ge=Ie.nextSibling,[Ke,qe]=m(Ge.nextSibling),Je=Ke.nextSibling,[Ye,Xe]=m(Je.nextSibling),Ze=Ye.nextSibling,[Qe,$e]=m(Ze.nextSibling),et=j.nextSibling,[tt,nt]=m(et.nextSibling);return e.addEventListener(`submit`,_e),u(e,i(t,{get when(){return P().length>0},get children(){return i(o,{get each(){return P()},children:e=>(()=>{var t=f(ue);return u(t,e),t})()})}}),r,s),u(e,i(t,{get when(){return R()},get children(){var e=f(ee);return u(e,R),e}}),_,b),u(T,()=>E().find(e=>e.slug===H().type)?.singularLabel||H().type),u(D,(()=>{var e=h(()=>!!H().id);return()=>e()?c(`content.editor.editing`):c(`content.editor.adding`)})()),u(k,()=>c(`content.editor.backToList`)),u(A,(()=>{var e=h(()=>!!I());return()=>e()?c(`content.editor.saving`):c(`content.editor.save`)})()),u(L,i(t,{get when(){return W(`title`)},get children(){var e=f(te);return e.$$input=e=>U({...H(),title:e.currentTarget.value}),a(t=>{var n=c(`content.editor.title`),r=c(`content.editor.titlePlaceholder`);return n!==t.e&&p(e,`aria-label`,t.e=n),r!==t.t&&p(e,`placeholder`,t.t=r),t},{e:void 0,t:void 0}),a(()=>d(e,`value`,H().title)),l(),e}}),V,pe),u(q,()=>c(`content.editor.slug`),ye,be),X.$$input=e=>U({...H(),slug:e.currentTarget.value}),u(L,i(t,{get when(){return W(`editor`)},get children(){return i(t,{get when(){return G()?.mode!==`replace-body`},get fallback(){return(()=>{var e=f(de);return u(e,i(x,{get componentId(){return G().componentId},get extraProps(){return me()}})),a(()=>p(e,`data-plugin-editor`,G().id)),e})()},get children(){return[(()=>{var e=f(ne),t=e.firstChild,n=t.firstChild,r=n.nextSibling,i=r.nextSibling,o=i.nextSibling,s=o.nextSibling,d=s.nextSibling,m=d.nextSibling,h=t.nextSibling.nextSibling,g=h.firstChild,_=h.nextSibling,v=_.firstChild,y=_.nextSibling,b=y.firstChild,x=y.nextSibling.nextSibling,S=x.nextSibling,C=S.nextSibling;return t.addEventListener(`change`,e=>Y(`formatBlock`,e.currentTarget.value)),u(n,()=>c(`content.editor.formatParagraph`)),u(r,()=>c(`content.editor.formatH1`)),u(i,()=>c(`content.editor.formatH2`)),u(o,()=>c(`content.editor.formatH3`)),u(s,()=>c(`content.editor.formatH4`)),u(d,()=>c(`content.editor.formatBlockquote`)),u(m,()=>c(`content.editor.formatCode`)),h.$$click=()=>Y(`bold`),u(g,()=>c(`content.editor.bold`)),_.$$click=()=>Y(`italic`),u(v,()=>c(`content.editor.italic`)),y.$$click=()=>Y(`underline`),u(b,()=>c(`content.editor.underline`)),x.$$click=()=>Y(`insertUnorderedList`),u(x,()=>c(`content.editor.bulletList`)),S.$$click=()=>Y(`insertOrderedList`),u(S,()=>c(`content.editor.numberedList`)),C.$$click=()=>Y(`createLink`,window.prompt(c(`content.editor.linkPrompt`))||``),u(C,()=>c(`content.editor.link`)),a(n=>{var r=c(`content.editor.toolbar`),i=c(`content.editor.format`);return r!==n.e&&p(e,`aria-label`,n.e=r),i!==n.t&&p(t,`aria-label`,n.t=i),n},{e:void 0,t:void 0}),l(),e})(),(()=>{var e=f(re);return e.$$input=e=>ge(e.currentTarget),p(e,`contenteditable`,!0),a(t=>{var n=c(`content.editor.bodyPlaceholder`),r=v(J());return n!==t.e&&p(e,`data-placeholder`,t.e=n),r!==t.t&&d(e,`innerHTML`,t.t=r),t},{e:void 0,t:void 0}),l(),e})()]}})}}),Se,Ce),u(L,i(t,{get when(){return G()?.mode===`below`},get children(){var e=f(ie);return u(e,i(x,{get componentId(){return G().componentId},get extraProps(){return me()}})),a(()=>p(e,`data-plugin-editor`,G().id)),e}}),Te,Ee),u(L,i(t,{get when(){return W(`excerpt`)},get children(){var e=f(ae),t=e.firstChild,n=t.nextSibling;return u(t,()=>c(`content.editor.excerpt`)),n.$$input=e=>U({...H(),excerpt:e.currentTarget.value}),a(()=>d(n,`value`,H().excerpt??``)),l(),e}}),Oe,ke),u(F,i(t,{get when(){return O().length>0},get children(){var e=f(oe),t=e.firstChild,n=t.nextSibling,[r,a]=m(n.nextSibling);return u(t,()=>c(`content.editor.customFields`)),u(e,i(o,{get each(){return O()},children:e=>i(y,{field:e,get values(){return M()},onChange:(e,t)=>N({...M(),[e]:t}),t:c})}),r,a),e}}),je,Me),u(F,i(C,{get extensions(){return B()},get screen(){return H().type},context:`normal`}),Pe,Fe),u(Le,()=>c(`content.editor.publishPanel`)),u(Q,()=>c(`content.editor.status`),ze,Be),$.addEventListener(`change`,e=>U({...H(),status:e.currentTarget.value})),u(Ve,()=>c(`content.editor.statusOptions.draft`)),u(He,()=>c(`content.editor.statusOptions.published`)),u(Ue,()=>c(`content.editor.statusOptions.archived`)),u(We,(()=>{var e=h(()=>!!I());return()=>e()?c(`content.editor.saving`):c(`content.editor.save`)})()),u(Z,i(t,{get when(){return W(`thumbnail`)},get children(){var e=f(se),t=e.firstChild,n=t.nextSibling,r=n.nextSibling;return u(t,()=>c(`content.editor.featuredImage`)),n.$$input=e=>U({...H(),featuredImageId:e.currentTarget.value}),u(r,()=>c(`content.editor.featuredImageHint`)),a(()=>p(n,`placeholder`,c(`content.editor.mediaIdPlaceholder`))),a(()=>d(n,`value`,H().featuredImageId??``)),l(),e}}),Ke,qe),u(Z,i(t,{get when(){return he().length>0},get children(){var e=f(ce),t=e.firstChild,n=t.nextSibling,r=n.firstChild,[s,l]=m(r.nextSibling),p=s.nextSibling,h=p.firstChild,g=h.nextSibling,[_,v]=m(g.nextSibling);return u(t,()=>c(`content.editor.pageAttributes`)),u(n,()=>c(`content.editor.layout`),s,l),p.addEventListener(`change`,e=>U({...H(),layout:e.currentTarget.value||null})),u(h,()=>c(`content.editor.layoutAuto`)),u(p,i(o,{get each(){return he()},children:e=>(()=>{var t=f(fe);return d(t,`value`,e),u(t,e),t})()}),_,v),a(()=>d(p,`value`,H().layout??``)),e}}),Ye,Xe),u(Z,i(C,{get extensions(){return B()},get screen(){return H().type},context:`side`}),Qe,$e),u(e,i(C,{get extensions(){return B()},get screen(){return H().type},context:`advanced`}),tt,nt),a(e=>{var t=`/content/${encodeURIComponent(H().type)}`,n=I(),r=c(`content.editor.slugPlaceholder`),i=I();return t!==e.e&&p(k,`href`,e.e=t),n!==e.t&&d(A,`disabled`,e.t=n),r!==e.a&&p(X,`placeholder`,e.a=r),i!==e.o&&d(We,`disabled`,e.o=i),e},{e:void 0,t:void 0,a:void 0,o:void 0}),a(()=>d(X,`value`,H().slug??``)),a(()=>d($,`value`,H().status)),l(),e})()}c([`input`,`click`]);export{E as ContentEditor};
@@ -1 +0,0 @@
1
- import{S as e,a as t,f as n,h as r,l as i,p as a}from"./solid.Ck4Vtfe4.js";import{_ as o,l as s,o as c,p as l,s as u,u as d}from"./web.DD6VKaIp.js";import{n as f}from"./i18n.A82w5XQu.js";import{n as p}from"./api.53l1ob4Z.js";import{c as m,i as h,n as g,o as _,r as ee,s as te,t as v}from"./src.CYKGYEyR.js";import{c as y,n as b,r as x,t as S}from"./store.DLCqLxBR.js";import{ContentEditor as C}from"./ContentEditor.BlsJ2bwD.js";var w=o(`<span class=muted>—`),T=o(`<span class=muted>`),E=o(`<span>`),D=o(`<div class=users-table__actions><a class="btn btn-secondary btn-sm"></a><!$><!/><!$><!/>`),ne=o(`<div class="notice notice--error">`),re=o(`<div class=notice>`),ie=o(`<div class=content-list><div class=content-list__heading><div><h2></h2><p class=muted></p></div><a class="btn btn-primary"></a></div><!$><!/><!$><!/><div class=toolbar><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);function O(e){return e}function k(e){let t=O(e).updated_at??O(e).updatedAt??O(e).created_at;if(typeof t!=`string`)return`—`;let n=new Date(t);return Number.isNaN(n.getTime())?`—`:n.toLocaleString(`pt-BR`)}function A(o){let{t:d}=f(),[C,A]=r([]),[j,M]=r([]),[N,P]=r(0),[F,I]=r(1),[L,R]=r(``),[z]=r(o.contentType),[B,V]=r(``),[H,U]=r(``),[W,G]=r(``),[K,q]=r(``),[J,Y]=r(S()),X=async()=>{try{let e=await p.getContent({page:F(),limit:20,type:z()||void 0,status:B()||void 0,search:L()||void 0});A(e.data??[]),P(e.total??0)}catch(e){U(e instanceof Error?e.message:String(e))}};e(async()=>{b().then(Y);let e=new URLSearchParams(window.location.search);V(e.get(`status`)??``),R(e.get(`search`)??``),await X();try{M(await p.getContentTypes())}catch{}});let Z=n(()=>j().find(e=>e.slug===z())),ae=n(()=>Z()?.pluralLabel||d(`content.list.title`)),oe=n(()=>`/content/${encodeURIComponent(z())}/new`),Q=async()=>{I(1),await X()},$=async e=>{let t=O(e).status===`PUBLISHED`;q(e.id),U(``),G(``);try{await p.publishToggle(e.id,t),G(d(t?`content.list.toasts.unpublished`:`content.list.toasts.published`)),await X()}catch(e){U(e instanceof Error?e.message:String(e))}finally{q(``)}},se=async e=>{let t=String(O(e).title??e.id);if(confirm(d(`content.list.confirmDelete`,{title:t})))try{await p.deleteContent(e.id),await X()}catch(e){U(e instanceof Error?e.message:String(e))}},ce=n(()=>{let e=J().columns[z()]??[],t=J().columnRenderers[z()]??{},n=e=>({key:e.key,label:e.label,render:(n,r)=>{let a=t[e.key];if(a){let e=a.split(`:`)[0]??``;return i(y,{componentId:a,plugin:e,extraProps:{row:r}})}let o=r[e.key];return o==null?c(w):typeof o==`object`?(()=>{var e=c(T);return s(e,()=>JSON.stringify(o)),e})():(()=>{var e=c(E);return s(e,()=>String(o)),e})()}}),r=e.filter(e=>e.position===`before_title`).map(n),o=e.filter(e=>e.position===`after_title`).map(n),f=e.filter(e=>!e.position).map(n),p=e.filter(e=>e.position===`end`).map(n),m=[{key:`title`,label:d(`content.list.columns.title`)},{key:`type`,label:d(`content.list.columns.type`)},{key:`status`,label:d(`content.list.columns.status`),render:(e,t)=>{let n=String(t.status??``);return i(v,{variant:n===`PUBLISHED`?`success`:n===`ARCHIVED`?`warning`:`secondary`,children:n})}},{key:`updated_at`,label:d(`content.list.columns.updated`),render:(e,t)=>(()=>{var e=c(T);return s(e,()=>k(t)),e})()},{key:`actions`,label:``,render:(e,t)=>{let n=t,r=O(n).status===`PUBLISHED`;return(()=>{var e=c(D),t=e.firstChild,o=t.nextSibling,[f,p]=u(o.nextSibling),m=f.nextSibling,[h,_]=u(m.nextSibling);return s(t,()=>d(`content.list.actions.edit`)),s(e,i(g,{variant:r?`secondary`:`primary`,size:`sm`,get loading(){return K()===n.id},onClick:()=>void $(n),get children(){return d(r?`content.list.actions.unpublish`:`content.list.actions.publish`)}}),f,p),s(e,i(g,{variant:`danger`,size:`sm`,onClick:()=>void se(n),get children(){return d(`content.list.actions.delete`)}}),h,_),a(()=>l(t,`href`,`/content/${encodeURIComponent(n.type||z())}/edit?id=${encodeURIComponent(n.id)}`)),e})()}}];return[...r,m[0],...o,m[1],m[2],m[3],...f,m[4],...p]});return(()=>{var e=c(ie),n=e.firstChild,r=n.firstChild,o=r.firstChild,f=o.nextSibling,p=r.nextSibling,v=n.nextSibling,[y,b]=u(v.nextSibling),S=y.nextSibling,[w,T]=u(S.nextSibling),E=w.nextSibling,D=E.firstChild,[O,k]=u(D.nextSibling),A=O.nextSibling,[j,M]=u(A.nextSibling),P=j.nextSibling,[z,U]=u(P.nextSibling),G=E.nextSibling,[K,q]=u(G.nextSibling),Y=K.nextSibling,[Z,$]=u(Y.nextSibling);return s(o,ae),s(f,()=>d(`content.list.description`)),s(p,()=>d(`content.list.buttons.addNew`)),s(e,i(t,{get when(){return H()},get children(){var e=c(ne);return s(e,H),e}}),y,b),s(e,i(t,{get when(){return W()},get children(){var e=c(re);return s(e,W),e}}),w,T),s(E,i(h,{name:`search`,get placeholder(){return d(`content.list.filters.search`)},get value(){return L()},onInput:e=>{R(e),Q()}}),O,k),s(E,i(te,{name:`status`,get placeholder(){return d(`content.list.filters.allStatus`)},get value(){return B()},get options(){return[{value:`DRAFT`,label:d(`content.list.statuses.draft`)},{value:`PUBLISHED`,label:d(`content.list.statuses.published`)},{value:`ARCHIVED`,label:d(`content.list.statuses.archived`)}]},onChange:e=>{V(e),Q()}}),j,M),s(E,i(g,{variant:`secondary`,onClick:()=>void Q(),get children(){return d(`content.list.buttons.search`)}}),z,U),s(e,i(x,{get extensions(){return J()}}),K,q),s(e,i(ee,{get children(){return[i(m,{get columns(){return ce()},get data(){return C()},get emptyMessage(){return d(`content.list.empty`)}}),i(_,{get page(){return F()},limit:20,get total(){return N()},onPageChange:e=>{I(e),X()}})]}}),Z,$),a(()=>l(p,`href`,oe())),e})()}var j=o(`<div class="notice notice--error">`),M=o(`<div class=card>`);function N(n){let{t:a}=f(),[o,l]=r(null),[u,m]=r(``);return e(async()=>{try{let e=(await p.getContentTypes()).find(e=>e.slug===n.contentType);if(!e){m(a(`content.list.typeNotFound`));return}l(e)}catch(e){m(e instanceof Error?e.message:String(e))}}),i(t,{get when(){return o()},get fallback(){return d(()=>!!u())()?(()=>{var e=c(j);return s(e,u),e})():(()=>{var e=c(M);return s(e,()=>a(`common.loading`)),e})()},children:e=>i(t,{get when(){return e().singleton},get fallback(){return i(A,{get contentType(){return e().slug}})},get children(){return i(C,{get initialType(){return e().slug},singleton:!0})}})})}export{N as ContentTypeWorkspace};
@@ -1,3 +0,0 @@
1
- import{S as e,a as t,f as n,h as r,i,l as a,p as o,r as s,s as c}from"./solid.Ck4Vtfe4.js";import{_ as l,a as u,f as d,l as f,m as p,o as m,p as h,s as g,t as _,u as v}from"./web.DD6VKaIp.js";import{t as y}from"./preload-helper.oCYlU9a4.js";import{n as b}from"./api.53l1ob4Z.js";import"./src.CYKGYEyR.js";function x(e){return e==null?!0:typeof e==`string`?e.trim()===``:Array.isArray(e)?e.length===0:!1}function S(e,t,n,r){return!t||!x(e)||(r.push({field:n,code:`REQUIRED`,message:`${n} é obrigatório`}),!1)}function C(e,t,n,r){if(x(e))return;let i=String(e),a=t.minLength??t.minimum,o=t.characterLimit??t.maxLength;a!==void 0&&i.length<a&&r.push({field:n,code:`MIN_LENGTH`,message:`${n} deve ter pelo menos ${a} caracteres`}),o!==void 0&&i.length>o&&r.push({field:n,code:`CHARACTER_LIMIT`,message:`${n} excede o limite de ${o} caracteres`})}function w(e,t,n){x(e)||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(e))||n.push({field:t,code:`INVALID_EMAIL`,message:`${t} não é um e-mail válido`})}function T(e,t,n){if(!x(e))try{let t=new URL(String(e));if(![`http:`,`https:`].includes(t.protocol))throw Error(`protocol`)}catch{n.push({field:t,code:`INVALID_URL`,message:`${t} não é uma URL válida (http/https)`})}}function E(e,t,n,r){if(x(e))return;let i=Number(e);if(Number.isNaN(i)){r.push({field:n,code:`NOT_A_NUMBER`,message:`${n} deve ser um número`});return}let a=t.minValue??t.min,o=t.maxValue??t.max,s=t.step;if(a!==void 0&&i<a&&r.push({field:n,code:`MIN_VALUE`,message:`${n} deve ser maior ou igual a ${a}`}),o!==void 0&&i>o&&r.push({field:n,code:`MAX_VALUE`,message:`${n} deve ser menor ou igual a ${o}`}),s!==void 0&&s>0){let e=a??0;Math.abs((i-e)/s-Math.round((i-e)/s))>1e-9&&r.push({field:n,code:`STEP_MISMATCH`,message:`${n} deve seguir o incremento de ${s}`})}}function D(e){let t=e.choices??[];return new Set(t.map(e=>String(e.value)))}function O(e,t,n,r,i){n||t.has(String(e))||i.push({field:r,code:`INVALID_CHOICE`,message:`${r} contém um valor fora das opções permitidas`})}function k(e,t,n,r){let i=t.minSelections,a=t.maxSelections;i!==void 0&&e.length<i&&r.push({field:n,code:`MIN_SELECTIONS`,message:`${n} requer no mínimo ${i} seleção(ões)`}),a!==void 0&&e.length>a&&r.push({field:n,code:`MAX_SELECTIONS`,message:`${n} permite no máximo ${a} seleção(ões)`})}function A(e,t,n,r){if(x(e))return;let i=!!t.multiple,a=!!(t.allowCustom??!1),o=D(t);if(i){if(!Array.isArray(e)){r.push({field:n,code:`NOT_ARRAY`,message:`${n} deve ser uma lista`});return}if(!a)for(let t of e)O(t,o,!1,n,r);k(e,t,n,r);return}O(e,o,a,n,r),Array.isArray(e)&&r.push({field:n,code:`SINGLE_ONLY`,message:`${n} aceita apenas um valor`})}function j(e,t,n,r){if(x(e))return;if(!Array.isArray(e)){r.push({field:n,code:`NOT_ARRAY`,message:`${n} deve ser uma lista de valores`});return}let i=D(t);for(let t of e)O(t,i,!0,n,r);k(e,t,n,r)}function ee(e,t,n,r){x(e)||O(e,D(t),!!t.allowCustom,n,r)}function te(e,t,n){e!=null&&typeof e!=`boolean`&&e!==0&&e!==1&&e!==`0`&&e!==`1`&&n.push({field:t,code:`NOT_BOOLEAN`,message:`${t} deve ser verdadeiro ou falso`})}function M(e,t,n,r){if(typeof e!=`object`||!e||Array.isArray(e)){r.push({field:n,code:`INVALID_MEDIA`,message:`${n} deve referenciar uma mídia válida`});return}let i=e,a=t.mimeTypes??[];a.length>0&&i.mimeType&&(a.map(e=>e.toLowerCase()).includes(i.mimeType.toLowerCase())||r.push({field:n,code:`INVALID_MIME`,message:`${n} não aceita arquivos do tipo ${i.mimeType}`}));let o=t.maxSize,s=t.minSize;if(i.size!==void 0&&(o!==void 0&&i.size>o&&r.push({field:n,code:`FILE_TOO_LARGE`,message:`${n} excede o tamanho máximo de ${Math.round(o/1024)}KB`}),s!==void 0&&i.size<s&&r.push({field:n,code:`FILE_TOO_SMALL`,message:`${n} está abaixo do tamanho mínimo de ${Math.round(s/1024)}KB`})),i.width!==void 0&&i.height!==void 0){let e=t.minWidth,a=t.maxWidth,o=t.minHeight,s=t.maxHeight;e!==void 0&&i.width<e&&r.push({field:n,code:`MIN_WIDTH`,message:`${n} requer largura mínima de ${e}px`}),a!==void 0&&i.width>a&&r.push({field:n,code:`MAX_WIDTH`,message:`${n} permite largura máxima de ${a}px`}),o!==void 0&&i.height<o&&r.push({field:n,code:`MIN_HEIGHT`,message:`${n} requer altura mínima de ${o}px`}),s!==void 0&&i.height>s&&r.push({field:n,code:`MAX_HEIGHT`,message:`${n} permite altura máxima de ${s}px`})}}function N(e,t,n,r){x(e)||M(e,t,n,r)}function P(e,t,n,r){x(e)||M(e,t,n,r)}function ne(e,t,n,r){if(e==null)return;if(!Array.isArray(e)){r.push({field:n,code:`NOT_ARRAY`,message:`${n} deve ser uma lista de imagens`});return}let i=t.minSelections!==void 0||t.maxSelections!==void 0;if(e.length===0&&!i)return;let a=t.minSelections,o=t.maxSelections;a!==void 0&&e.length<a&&r.push({field:n,code:`MIN_SELECTIONS`,message:`${n} requer no mínimo ${a} imagem(ns)`}),o!==void 0&&e.length>o&&r.push({field:n,code:`MAX_SELECTIONS`,message:`${n} permite no máximo ${o} imagem(ns)`});for(let i of e)M(i,t,n,r)}function re(e,t,n,r){if(x(e))return;let i=t.multiple!==!1,a=t.minSelections,o=t.maxSelections,s=Array.isArray(e)?e:[e];for(let e of s)if(typeof e!=`string`&&typeof e!=`number`){r.push({field:n,code:`INVALID_ID`,message:`${n} contém um identificador inválido`});return}i?(o!==void 0&&s.length>o&&r.push({field:n,code:`MAX_SELECTIONS`,message:`${n} permite no máximo ${o} seleção(ões)`}),a!==void 0&&s.length<a&&r.push({field:n,code:`MIN_SELECTIONS`,message:`${n} requer no mínimo ${a} seleção(ões)`})):s.length>1&&r.push({field:n,code:`SINGLE_ONLY`,message:`${n} aceita apenas um valor`})}function ie(e,t,n){if(x(e))return;if(typeof e!=`object`||!e){n.push({field:t,code:`INVALID_LINK`,message:`${t} deve ser um objeto de link`});return}let r=e;if(!r.url||typeof r.url!=`string`){n.push({field:t,code:`LINK_URL_REQUIRED`,message:`${t} requer uma URL`});return}try{let e=new URL(r.url);if(![`http:`,`https:`,`mailto:`,`tel:`].includes(e.protocol)&&!r.url.startsWith(`#`)&&!r.url.startsWith(`/`))throw Error(`protocol`)}catch{!r.url.startsWith(`#`)&&!r.url.startsWith(`/`)&&!r.url.startsWith(`?`)&&n.push({field:t,code:`INVALID_URL`,message:`${t} contém uma URL inválida`})}r.target!==void 0&&![`_self`,`_blank`].includes(String(r.target))&&n.push({field:t,code:`INVALID_TARGET`,message:`${t} aceita apenas _self ou _blank`})}function ae(e,t,n){if(x(e))return;if(typeof e!=`object`||!e){n.push({field:t,code:`INVALID_MAP`,message:`${t} deve conter endereço e coordenadas`});return}let r=e;x(r.address)&&n.push({field:t,code:`ADDRESS_REQUIRED`,message:`${t} requer um endereço`});let i=Number(r.lat),a=Number(r.lng);(!Number.isFinite(i)||i<-90||i>90)&&n.push({field:t,code:`INVALID_LATITUDE`,message:`${t} contém latitude inválida (-90 a 90)`}),(!Number.isFinite(a)||a<-180||a>180)&&n.push({field:t,code:`INVALID_LONGITUDE`,message:`${t} contém longitude inválida (-180 a 180)`})}var oe=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;function se(e,t,n,r){if(x(e))return;let i=String(e),a=i.startsWith(`rgba(`);if(a&&!t.enableOpacity){r.push({field:n,code:`OPACITY_DISABLED`,message:`${n} não permite transparência`});return}if(!a&&!oe.test(i)){r.push({field:n,code:`INVALID_COLOR`,message:`${n} deve ser uma cor em formato hexadecimal válido`});return}let o=t.palette??[];o.length>0&&(o.map(e=>e.toLowerCase()).includes(i.toLowerCase())||r.push({field:n,code:`NOT_IN_PALETTE`,message:`${n} deve usar uma cor da paleta definida`}))}function ce(e,t){if(e.type===`clone`||e.type===`repeater`||e.type===`group`||e.type===`flexible_content`)return null;let n=e.config??{},r=[];switch(S(t,e.required,e.label,r),e.type){case`text`:case`textarea`:case`password`:C(t,n,e.label,r);break;case`slug`:C(t,n,e.label,r),!x(t)&&!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(String(t))&&r.push({field:e.label,code:`INVALID_SLUG`,message:`${e.label} deve ser um slug válido (a-z, 0-9 e hífens)`});break;case`email`:w(t,e.label,r);break;case`url`:case`oembed`:T(t,e.label,r);break;case`number`:case`range`:E(t,n,e.label,r);break;case`wysiwyg`:C(t,n,e.label,r);break;case`select`:A(t,n,e.label,r);break;case`checkbox`:j(t,n,e.label,r);break;case`radio`:ee(t,n,e.label,r);break;case`true_false`:te(t,e.label,r);break;case`image`:N(t,n,e.label,r);break;case`file`:P(t,n,e.label,r);break;case`gallery`:ne(t,n,e.label,r);break;case`link`:ie(t,e.label,r);break;case`page_link`:case`post_object`:case`relationship`:case`taxonomy`:case`user`:re(t,n,e.label,r);break;case`google_map`:ae(t,e.label,r);break;case`color_picker`:se(t,n,e.label,r)}return r[0]?.message??null}var le=new Set(`a.abbr.b.blockquote.br.code.dd.div.dl.dt.em.figcaption.figure.h1.h2.h3.h4.h5.h6.hr.i.img.li.ol.p.pre.q.s.span.strong.sub.sup.u.ul`.split(`.`)),ue=new Set([`br`,`hr`,`img`]),de=new Set([`script`,`style`,`iframe`,`object`,`embed`,`svg`,`math`,`textarea`,`title`,`noscript`,`template`]),fe=new Set([`class`,`title`,`alt`,`width`,`height`,`href`,`src`,`target`,`rel`]),pe=new Set([`http`,`https`,`mailto`,`tel`]),me=new Set([`http`,`https`]),F={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,colon:`:`,tab:` `,newline:`
2
- `,sol:`/`,lpar:`(`,rpar:`)`,num:`#`,period:`.`,excl:`!`,comma:`,`};function I(e){return e.replace(/&#x([0-9a-fA-F]+);?/g,(e,t)=>L(parseInt(t,16))).replace(/&#(\d+);?/g,(e,t)=>L(parseInt(t,10))).replace(/&([a-zA-Z][a-zA-Z0-9]{1,30});?/g,(e,t)=>F[t in F?t:t.toLowerCase()]??e)}function L(e){if(!Number.isFinite(e)||e<0||e>1114111)return``;try{return String.fromCodePoint(e)}catch{return``}}function R(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`)}function z(e){return e.replace(/&(?![a-zA-Z][a-zA-Z0-9]{1,30};|#[0-9]{1,7};|#[xX][0-9a-fA-F]{1,6};)|[<>]/g,e=>e===`&`?`&amp;`:e===`<`?`&lt;`:`&gt;`)}function B(e,t){let n=I(e).replace(/[\t\n\r]/g,``).trim(),r=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return!r||t.has(r[1].toLowerCase())}function V(e){return R(I(e))}function he(e){let t=[],n=e.length,r=0,i=e=>e===` `||e===` `||e===`
3
- `||e===`\r`||e===`\f`;for(;r<n;){for(;r<n&&(i(e.charAt(r))||e.charAt(r)===`/`);)r++;if(r>=n)break;let a=``;for(;r<n&&!i(e.charAt(r))&&e.charAt(r)!==`=`&&e.charAt(r)!==`>`&&e.charAt(r)!==`/`&&e.charAt(r)!==`<`;)a+=e.charAt(r),r++;if(!a){r++;continue}let o=``,s=r;for(;s<n&&i(e.charAt(s));)s++;if(s<n&&e.charAt(s)===`=`){for(s++;s<n&&i(e.charAt(s));)s++;if(s<n&&(e.charAt(s)===`"`||e.charAt(s)===`'`)){let t=e.charAt(s);s++;let r=s;for(;s<n&&e.charAt(s)!==t;)s++;o=e.slice(r,s),s++}else{let t=s;for(;s<n&&!i(e.charAt(s))&&e.charAt(s)!==`>`;)s++;o=e.slice(t,s)}r=s}t.push([a.toLowerCase(),o])}return t}function ge(e,t){let n=[],r=new Set,i=!1;for(let[e,a]of t)if(fe.has(e)&&!r.has(e)&&(e!==`href`||B(a,pe))&&(e!==`src`||B(a,me))){if(e===`target`){if(V(a)!==`_blank`)continue;i=!0;continue}e!==`rel`&&(r.add(e),n.push(`${e}="${V(a)}"`))}return e===`a`&&i&&(n.push(`target="_blank"`),n.push(`rel="noopener noreferrer"`)),n.length>0?` ${n.join(` `)}`:``}function H(e){if(typeof e!=`string`||e.length===0)return``;let t=e.toLowerCase(),n=e.length,r=[],i=``,a=0;for(;a<n;){let o=e.indexOf(`<`,a);if(o===-1){i+=z(e.slice(a));break}if(o>a&&(i+=z(e.slice(a,o))),e.startsWith(`<!--`,o)){let t=e.indexOf(`-->`,o+4);a=t===-1?n:t+3;continue}if(e.charAt(o+1)===`!`||e.charAt(o+1)===`?`){let t=e.indexOf(`>`,o+2);a=t===-1?n:t+1;continue}let s=/^<(\/?)([a-zA-Z][a-zA-Z0-9]*)(?=[\s/>])/.exec(e.slice(o,Math.min(o+64,n)));if(!s){i+=`&lt;`,a=o+1;continue}let c=s[1]===`/`,l=s[2].toLowerCase(),u=o+s[0].length,d=``;for(;u<n;){let t=e[u];if(d)t===d&&(d=``);else if(t===`"`||t===`'`)d=t;else if(t===`>`)break;u++}if(u>=n)break;let f=e.slice(o+s[0].length,u);if(a=u+1,!c&&de.has(l)){let r=t.indexOf(`</${l}`,a);if(r===-1)break;let i=e.indexOf(`>`,r);a=i===-1?n:i+1;continue}if(c){let e=r.lastIndexOf(l);if(e!==-1){for(let t=r.length-1;t>=e;t--)i+=`</${r[t]}>`;r.length=e}continue}if(!le.has(l))continue;let p=ge(l,he(f));ue.has(l)?i+=`<${l}${p} />`:(i+=`<${l}${p}>`,r.push(l))}for(let e=r.length-1;e>=0;e--)i+=`</${r[e]}>`;return i}var _e=l(`<ul class=relationship-picker__selection>`),ve=l(`<li class=relationship-picker__empty>Buscando...`),ye=l(`<li class=relationship-picker__empty>Nenhum resultado`),be=l(`<ul class=relationship-picker__results><!$><!/><!$><!/><!$><!/>`),xe=l(`<div class=relationship-picker><!$><!/><input type=search class=input><!$><!/>`),Se=l(`<li><!$><!/><button type=button aria-label=Remover>×`),Ce=l(`<li><button type=button><!$><!/><span class=relationship-picker__type>`);function we(e){let[i,c]=r(``),[l,u]=r([]),[_,y]=r([]),[x,S]=r(!1),[C,w]=r(!1),T=n(()=>{let t=e.value;return Array.isArray(t)?t.map(String):t?[String(t)]:[]}),E=async()=>{S(!0);try{let t=await b.getContent({type:e.postType,status:`PUBLISHED`,search:i()||void 0,limit:10});u(t.data.filter(e=>!T().includes(e.id)).map(e=>({id:e.id,title:e.title,type:e.type}))),w(!0)}catch{u([])}finally{S(!1)}},D=t=>{y(e=>[...e,t]),e.multiple?e.onChange([...T(),t.id]):(e.onChange(t.id),c(``)),u([]),w(!1)},O=t=>{y(e=>e.filter(e=>e.id!==t));let n=T().filter(e=>e!==t);e.onChange(e.multiple?n:n[0]??null)},k=async()=>{C()||await E()};return(()=>{var n=m(xe),r=n.firstChild,[u,y]=g(r.nextSibling),b=u.nextSibling,S=b.nextSibling,[A,j]=g(S.nextSibling);return f(n,a(t,{get when(){return _().length>0||T().length>0},get children(){var e=m(_e);return f(e,a(s,{get each(){return _()},children:e=>(()=>{var t=m(Se),n=t.firstChild,[r,i]=g(n.nextSibling),a=r.nextSibling;return f(t,()=>e.title,r,i),a.$$click=()=>O(e.id),d(),t})()})),e}}),u,y),b.addEventListener(`blur`,()=>setTimeout(()=>w(!1),150)),b.$$input=e=>{c(e.currentTarget.value),E()},b.addEventListener(`focus`,()=>void k()),f(n,a(t,{get when(){return v(()=>!!C())()&&(x()||l().length>0)},get children(){var e=m(be),n=e.firstChild,[r,i]=g(n.nextSibling),o=r.nextSibling,[c,u]=g(o.nextSibling),p=c.nextSibling,[h,_]=g(p.nextSibling);return f(e,a(t,{get when(){return x()},get children(){return m(ve)}}),r,i),f(e,a(s,{get each(){return l()},children:e=>(()=>{var t=m(Ce),n=t.firstChild,r=n.firstChild,[i,a]=g(r.nextSibling),o=i.nextSibling;return n.$$click=()=>D(e),n.$$mousedown=e=>e.preventDefault(),f(n,()=>e.title,i,a),f(o,()=>e.type),d(),t})()}),c,u),f(e,a(t,{get when(){return v(()=>!x())()&&l().length===0},get children(){return m(ye)}}),h,_),e}}),A,j),o(()=>h(b,`placeholder`,e.placeholder??`Buscar conteúdo...`)),o(()=>p(b,`value`,i())),d(),n})()}u([`input`,`click`,`mousedown`]);var Te=l(`<div class="fb-plugin-field-renderer fb-plugin-field-renderer--loading"><div class=fb-spinner aria-hidden=true></div><span>Carregando editor...`),Ee=l(`<div class=fb-renderer-error><i data-lucide=alert-circle aria-hidden=true></i><span>`),De=l(`<div class="fb-plugin-field-renderer fb-plugin-field-renderer--fallback"><!$><!/><!$><!/>`),Oe=l(`<div class=fb-plugin-field-renderer>`),ke=l(`<textarea class="input fb-plugin-fallback-textarea">`),Ae=l(`<input type=number class=input>`),je=l(`<input type=text class=input>`);function Me(n){let[o,s]=r(null),[l,u]=r(null),[d,p]=r(!0),[h,v]=r(!1);e(async()=>{let e=[n.adminRendererPath,n.adminComponentPath].filter(Boolean);for(let t of e)try{let e=await y(()=>import(t),[]),n=e.default||e.PluginFieldRenderer||e.PluginFieldConfig||Object.values(e)[0];if(n){s(n),p(!1);return}}catch(e){console.debug(`[PluginFieldRenderer] Failed to load ${t}:`,e)}n.adminRendererPath&&!h()&&v(!0),u(`Componente de renderização não encontrado`),p(!1)});let b=e=>{n.onChange(e)};return a(c,{get children(){return[a(i,{get when(){return d()},get children(){return m(Te)}}),a(i,{get when(){return l()||!o()},get children(){var e=m(De),r=e.firstChild,[i,o]=g(r.nextSibling),s=i.nextSibling,[c,u]=g(s.nextSibling);return f(e,a(t,{get when(){return l()},get children(){var e=m(Ee),t=e.firstChild.nextSibling;return f(t,l),e}}),i,o),f(e,a(Ne,{get field(){return n.field},get value(){return n.value},onChange:b,get disabled(){return n.disabled},get _t(){return n._t}}),c,u),e}}),a(i,{when:!0,get children(){var e=m(Oe);return f(e,a(_,{get component(){return o()},get field(){return n.field},get value(){return n.value},onChange:b,get disabled(){return n.disabled},get _t(){return n._t}})),e}})]}})}function Ne(e){let{field:t,value:n,onChange:r,disabled:i}=e,a=t.config?.inputType||`textarea`,o=t.config?.placeholder||``,s=t.config?.rows||4;return a===`textarea`||a===`code`||a===`markdown`?(()=>{var e=m(ke);return e.$$input=e=>r(e.currentTarget.value),p(e,`value`,n),h(e,`placeholder`,o),h(e,`rows`,s),p(e,`disabled`,i),h(e,`spellcheck`,!1),d(),e})():a===`number`?(()=>{var e=m(Ae);return e.$$input=e=>r(Number(e.currentTarget.value)||0),p(e,`value`,n),h(e,`placeholder`,o),p(e,`disabled`,i),d(),e})():(()=>{var e=m(je);return e.$$input=e=>r(e.currentTarget.value),p(e,`value`,n),h(e,`placeholder`,o),p(e,`disabled`,i),d(),e})()}u([`input`]);var Pe=l(`<span class=field-renderer__required>*`),Fe=l(`<p class=field-renderer__instructions>`),Ie=l(`<p class=field-renderer__error role=alert>`),Le=l(`<div class=field-renderer><label class=field-renderer__label><!$><!/><!$><!/></label><!$><!/><!$><!/><!$><!/>`),U=l(`<input type=text class=input>`),Re=l(`<textarea class=input>`),ze=l(`<div class=field-renderer__wysiwyg><div class=field-renderer__wysiwyg-toolbar role=toolbar><select class=input value><option value></option><option value="<h1>"></option><option value="<h2>"></option><option value="<h3>"></option><option value="<h4>"></option><option value="<blockquote>"></option><option value="<pre>"></option></select><span class=field-renderer__wysiwyg-divider></span><button type=button><strong></strong></button><button type=button><em></em></button><button type=button><u></u></button><span class=field-renderer__wysiwyg-divider></span><button type=button></button><button type=button></button><button type=button></button></div><div class="field-renderer__wysiwyg-body input"role=textbox aria-multiline=true>`),Be=l(`<input type=number class=input>`),Ve=l(`<input type=email class=input>`),He=l(`<input type=url class=input placeholder=https://>`),Ue=l(`<input type=password class=input>`),We=l(`<input type=checkbox>`),W=l(`<select class=input>`),G=l(`<option>`),K=l(`<div class=field-renderer__choices>`),Ge=l(`<label><input type=radio> <!$><!/>`),Ke=l(`<label><input type=checkbox> <!$><!/>`),qe=l(`<input type=date class=input>`),Je=l(`<input type=datetime-local class=input>`),Ye=l(`<input type=time class=input>`),Xe=l(`<input type=color class=input>`),Ze=l(`<div class=field-renderer__map><input type=text class=input placeholder=Endereço><input type=number class=input placeholder="Latitude (-90 a 90)"step=any min=-90 max=90><input type=number class=input placeholder="Longitude (-180 a 180)"step=any min=-180 max=180>`),Qe=l(`<div class=field-renderer__link><input type=url class=input placeholder="https:// ou /caminho"><select class=input><option value=_self>Mesma janela</option><option value=_blank>Nova janela`),$e=l(`<div class=field-renderer__rows><!$><!/><button type=button class=btn>+ Adicionar linha`),et=l(`<div class=field-renderer__rows><!$><!/><select class=input value><option value>+ Adicionar layout...</option><!$><!/>`),q=l(`<div class=field-renderer__row><div class=field-renderer__row-header><span><!$><!/> <!$><!/></span><button type=button class=btn>↑</button><button type=button class=btn>↓</button><button type=button class="btn btn-danger">Remover</button></div><!$><!/>`),tt=l(`<p class=field-renderer__instructions>Layout "<!$><!/>" não encontrado.`),nt=l(`<fieldset class=field-renderer__group>`),rt=l(`<div class=field-renderer__row><div class=field-renderer__row-header><span>Linha <!$><!/></span><button type=button class="btn btn-danger">Remover</button></div><!$><!/>`),it=l(`<input type=file class=input>`);function J(e){return e==null||e===``||Array.isArray(e)&&e.length===0||typeof e==`boolean`&&!e}function Y(e){return e.toLowerCase().normalize(`NFD`).replace(/[̀-ͯ]/g,``).replace(/[^a-z0-9]+/g,`-`).replace(/(^-|-$)/g,``)}function X(e,t){if(typeof t==`boolean`)return!!e===t;let n=Number(e),r=Number(t);return e===t||!Number.isNaN(n)&&!Number.isNaN(r)&&n===r}function Z(e,t){let n=e.conditionalLogic;return!n?.groups||n.groups.length===0||n.groups.map(e=>{let n=e.rules??[];if(n.length===0)return!0;let r=n.map(e=>{let n=t[e.field];switch(e.operator){case`eq`:return X(n,e.value);case`neq`:return!X(n,e.value);case`gt`:return Number(n)>Number(e.value);case`lt`:return Number(n)<Number(e.value);case`contains`:return Array.isArray(n)?n.includes(e.value):String(n??``).includes(String(e.value));case`pattern_matches`:try{return new RegExp(String(e.value)).test(String(n??``))}catch{return!1}case`has_any_value`:return!J(n);case`has_no_value`:return J(n);default:return!1}});return e.match===`ANY`?r.some(Boolean):r.every(Boolean)}).some(Boolean)}var at=new Set([`message`,`tab`,`accordion`]);function Q(e){let i=()=>Z(e.field,e.values),[s,c]=r(!1),l=()=>e.values[e.field.name],u=n(()=>s()?ce(e.field,e.values[e.field.name]):null),d=t=>{c(!0),e.onChange(e.field.name,t)};return a(t,{get when(){return v(()=>!!i())()&&!at.has(e.field.type)},get children(){var n=m(Le),r=n.firstChild,i=r.firstChild,[s,c]=g(i.nextSibling),p=s.nextSibling,[_,v]=g(p.nextSibling),y=r.nextSibling,[b,x]=g(y.nextSibling),S=b.nextSibling,[C,w]=g(S.nextSibling),T=C.nextSibling,[E,D]=g(T.nextSibling);return f(r,()=>e.field.label,s,c),f(r,a(t,{get when(){return e.field.required},get children(){return m(Pe)}}),_,v),f(n,a(t,{get when(){return e.field.instructions},get children(){var t=m(Fe);return f(t,()=>e.field.instructions),t}}),b,x),f(n,a(ot,{get field(){return e.field},get value(){return l()},onChange:d,get values(){return e.values},get t(){return e.t}}),C,w),f(n,a(t,{get when(){return u()},get children(){var e=m(Ie);return f(e,u),e}}),E,D),o(()=>h(n,`data-field-type`,e.field.type)),n}})}function ot(e){let n=()=>e.field.config??{},r=e=>{if(!e)return;document.execCommand(`formatBlock`,!1,e);let t=document.querySelector(`.field-renderer__wysiwyg-body[contenteditable="true"]:focus`);t&&t.dispatchEvent(new Event(`input`,{bubbles:!0}))},i=e=>{document.execCommand(e,!1);let t=document.querySelector(`.field-renderer__wysiwyg-body[contenteditable="true"]:focus`);t&&t.dispatchEvent(new Event(`input`,{bubbles:!0}))},c=()=>{let t=window.prompt(e.t(`content.editor.linkPrompt`)||``);if(t){document.execCommand(`createLink`,!1,t);let e=document.querySelector(`.field-renderer__wysiwyg-body[contenteditable="true"]:focus`);e&&e.dispatchEvent(new Event(`input`,{bubbles:!0}))}};switch(e.field.type){case`text`:return(()=>{var t=m(U);return t.addEventListener(`blur`,t=>e.onChange(t.currentTarget.value.trim())),t.$$input=t=>e.onChange(t.currentTarget.value),o(e=>{var r=n().placeholder,i=n().maxLength??n().characterLimit;return r!==e.e&&h(t,`placeholder`,e.e=r),i!==e.t&&h(t,`maxlength`,e.t=i),e},{e:void 0,t:void 0}),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`textarea`:return(()=>{var t=m(Re);return t.$$input=t=>e.onChange(t.currentTarget.value),o(e=>{var r=n().rows??4,i=n().placeholder,a=n().maxLength??n().characterLimit;return r!==e.e&&h(t,`rows`,e.e=r),i!==e.t&&h(t,`placeholder`,e.t=i),a!==e.a&&h(t,`maxlength`,e.a=a),e},{e:void 0,t:void 0,a:void 0}),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`wysiwyg`:return(()=>{var t=m(ze),a=t.firstChild,s=a.firstChild,l=s.firstChild,u=l.nextSibling,g=u.nextSibling,_=g.nextSibling,v=_.nextSibling,y=v.nextSibling,b=y.nextSibling,x=s.nextSibling.nextSibling,S=x.firstChild,C=x.nextSibling,w=C.firstChild,T=C.nextSibling,E=T.firstChild,D=T.nextSibling.nextSibling,O=D.nextSibling,k=O.nextSibling,A=a.nextSibling;return s.addEventListener(`change`,e=>r(e.currentTarget.value)),f(l,()=>e.t(`content.editor.formatParagraph`)),f(u,()=>e.t(`content.editor.formatH1`)),f(g,()=>e.t(`content.editor.formatH2`)),f(_,()=>e.t(`content.editor.formatH3`)),f(v,()=>e.t(`content.editor.formatH4`)),f(y,()=>e.t(`content.editor.formatBlockquote`)),f(b,()=>e.t(`content.editor.formatCode`)),x.$$click=()=>i(`bold`),f(S,()=>e.t(`content.editor.bold`)),C.$$click=()=>i(`italic`),f(w,()=>e.t(`content.editor.italic`)),T.$$click=()=>i(`underline`),f(E,()=>e.t(`content.editor.underline`)),D.$$click=()=>i(`insertUnorderedList`),f(D,()=>e.t(`content.editor.bulletList`)),O.$$click=()=>i(`insertOrderedList`),f(O,()=>e.t(`content.editor.numberedList`)),k.$$click=()=>c(),f(k,()=>e.t(`content.editor.link`)),A.addEventListener(`blur`,t=>{let n=H(t.currentTarget.innerHTML);n!==t.currentTarget.innerHTML&&(t.currentTarget.innerHTML=n,e.onChange(n))}),A.$$input=t=>{let n=t.currentTarget.innerHTML;e.onChange(n)},h(A,`contenteditable`,!0),o(t=>{var r=e.t(`content.editor.toolbar`),i=e.t(`content.editor.format`),o=n().placeholder,c=e.value??n().defaultValue??``;return r!==t.e&&h(a,`aria-label`,t.e=r),i!==t.t&&h(s,`aria-label`,t.t=i),o!==t.a&&h(A,`data-placeholder`,t.a=o),c!==t.o&&p(A,`innerHTML`,t.o=c),t},{e:void 0,t:void 0,a:void 0,o:void 0}),d(),t})();case`number`:case`range`:return(()=>{var t=m(Be);return t.$$input=t=>e.onChange(t.currentTarget.value===``?void 0:Number(t.currentTarget.value)),o(e=>{var r=n().min??n().minValue,i=n().max??n().maxValue,a=n().step;return r!==e.e&&h(t,`min`,e.e=r),i!==e.t&&h(t,`max`,e.t=i),a!==e.a&&h(t,`step`,e.a=a),e},{e:void 0,t:void 0,a:void 0}),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`email`:return(()=>{var t=m(Ve);return t.$$input=t=>e.onChange(t.currentTarget.value),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`url`:return(()=>{var t=m(He);return t.$$input=t=>e.onChange(t.currentTarget.value),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`password`:return(()=>{var t=m(Ue);return t.$$input=t=>e.onChange(t.currentTarget.value),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`slug`:return(()=>{var t=m(U);return t.addEventListener(`blur`,t=>e.onChange(Y(t.currentTarget.value.trim()))),t.$$input=t=>e.onChange(Y(t.currentTarget.value)),o(()=>h(t,`placeholder`,n().placeholder)),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`true_false`:return(()=>{var t=m(We);return t.addEventListener(`change`,t=>e.onChange(t.currentTarget.checked)),o(()=>p(t,`checked`,!!e.value)),t})();case`select`:return(()=>{var t=m(W);return t.addEventListener(`change`,t=>e.onChange(t.currentTarget.multiple?Array.from(t.currentTarget.selectedOptions).map(e=>e.value):t.currentTarget.value)),f(t,a(s,{get each(){return n().choices??[]},children:e=>(()=>{var t=m(G);return f(t,()=>e.label),o(()=>p(t,`value`,e.value)),t})()})),o(()=>p(t,`multiple`,n().multiple===!0)),o(()=>p(t,`value`,n().multiple===!0?Array.isArray(e.value)?e.value:[]:e.value??n().defaultValue??``)),t})();case`radio`:return(()=>{var t=m(K);return f(t,a(s,{get each(){return n().choices??[]},children:t=>(()=>{var n=m(Ge),r=n.firstChild,i=r.nextSibling.nextSibling,[a,s]=g(i.nextSibling);return r.addEventListener(`change`,()=>e.onChange(t.value)),f(n,()=>t.label,a,s),o(()=>h(r,`name`,e.field.name)),o(()=>p(r,`checked`,e.value===t.value)),n})()})),t})();case`checkbox`:return(()=>{var t=m(K);return f(t,a(s,{get each(){return n().choices??[]},children:t=>{let n=()=>Array.isArray(e.value)&&e.value.includes(t.value);return(()=>{var r=m(Ke),i=r.firstChild,a=i.nextSibling.nextSibling,[s,c]=g(a.nextSibling);return i.addEventListener(`change`,n=>{let r=Array.isArray(e.value)?[...e.value]:[];e.onChange(n.currentTarget.checked?[...r,t.value]:r.filter(e=>e!==t.value))}),f(r,()=>t.label,s,c),o(()=>p(i,`checked`,n())),r})()}})),t})();case`date_picker`:return(()=>{var t=m(qe);return t.$$input=t=>e.onChange(t.currentTarget.value),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`date_time_picker`:return(()=>{var t=m(Je);return t.$$input=t=>e.onChange(t.currentTarget.value),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`time_picker`:return(()=>{var t=m(Ye);return t.$$input=t=>e.onChange(t.currentTarget.value),o(()=>p(t,`value`,e.value??n().defaultValue??``)),d(),t})();case`color_picker`:return(()=>{var t=m(Xe);return t.addEventListener(`change`,t=>e.onChange(t.currentTarget.value)),o(()=>p(t,`value`,e.value??n().defaultValue??``)),t})();case`image`:case`file`:return a($,{multiple:!1,get onChange(){return e.onChange},get accept(){return e.field.type===`image`?`image/*`:void 0}});case`gallery`:return a($,{multiple:!0,get onChange(){return e.onChange},accept:`image/*`});case`google_map`:return(()=>{var t=m(Ze),n=t.firstChild,r=n.nextSibling,i=r.nextSibling;return n.$$input=t=>{let n=e.value??{};e.onChange({...n,address:t.currentTarget.value})},r.$$input=t=>{let n=e.value??{};e.onChange({...n,lat:Number(t.currentTarget.value)})},i.$$input=t=>{let n=e.value??{};e.onChange({...n,lng:Number(t.currentTarget.value)})},o(()=>p(n,`value`,e.value?.address??``)),o(()=>p(r,`value`,e.value?.lat??``)),o(()=>p(i,`value`,e.value?.lng??``)),d(),t})();case`link`:return(()=>{var t=m(Qe),n=t.firstChild,r=n.nextSibling;return n.$$input=t=>{let n=e.value??{};e.onChange({...n,url:t.currentTarget.value})},r.addEventListener(`change`,t=>{let n=e.value??{};e.onChange({...n,target:t.currentTarget.value})}),o(()=>p(n,`value`,e.value?.url??``)),o(()=>p(r,`value`,e.value?.target??`_self`)),d(),t})();case`relationship`:case`post_object`:return a(we,{get postType(){return n().postType},get multiple(){return n().multiple!==!1},get value(){return e.value},get onChange(){return e.onChange}});case`taxonomy`:case`user`:return a(ct,{get field(){return e.field},get value(){return e.value},get onChange(){return e.onChange},get multiple(){return n().multiple!==!1}});case`repeater`:{let t=()=>Array.isArray(e.value)?e.value:[];return(()=>{var n=m($e),r=n.firstChild,[i,o]=g(r.nextSibling),c=i.nextSibling;return f(n,a(s,{get each(){return t()},children:(n,r)=>a(st,{get field(){return e.field},row:n,get index(){return r()},get t(){return e.t},onUpdate:n=>{let i=[...t()];i[r()]=n,e.onChange(i)},onRemove:()=>{e.onChange(t().filter((e,t)=>t!==r()))}})}),i,o),c.$$click=()=>e.onChange([...t(),{}]),d(),n})()}case`flexible_content`:{let r=()=>e.field.layouts.length>0?e.field.layouts:n().layouts??[],i=()=>(Array.isArray(e.value)?e.value:[]).map(e=>({fc_layout:String(e.fc_layout??``),data:e}));return(()=>{var n=m(et),c=n.firstChild,[l,u]=g(c.nextSibling),h=l.nextSibling,_=h.firstChild.nextSibling,[v,y]=g(_.nextSibling);return f(n,a(s,{get each(){return i()},children:(n,c)=>{let l=()=>r().find(e=>e.name===n.fc_layout),u=()=>{let{fc_layout:e,...t}=n.data;return t};return(()=>{var r=m(q),h=r.firstChild,_=h.firstChild,v=_.firstChild,[y,b]=g(v.nextSibling),x=y.nextSibling.nextSibling,[S,C]=g(x.nextSibling),w=_.nextSibling,T=w.nextSibling,E=T.nextSibling,D=h.nextSibling,[O,k]=g(D.nextSibling);return f(_,()=>l()?.label||n.fc_layout||`Linha`,y,b),f(_,()=>c()+1,S,C),w.$$click=()=>{let t=[...Array.isArray(e.value)?e.value:[]];[t[c()-1],t[c()]]=[t[c()],t[c()-1]],e.onChange(t)},T.$$click=()=>{let t=[...Array.isArray(e.value)?e.value:[]];[t[c()],t[c()+1]]=[t[c()+1],t[c()]],e.onChange(t)},E.$$click=()=>e.onChange((Array.isArray(e.value)?e.value:[]).filter((e,t)=>t!==c())),f(r,a(t,{get when(){return l()},get fallback(){return(()=>{var e=m(tt),t=e.firstChild.nextSibling,[r,i]=g(t.nextSibling);return r.nextSibling,f(e,()=>n.fc_layout,r,i),e})()},get children(){return a(s,{get each(){return l().subFields??[]},children:t=>a(Q,{field:t,get values(){return u()},get t(){return e.t},onChange:(t,n)=>{let r=[...Array.isArray(e.value)?e.value:[]];r[c()]={...r[c()],[t]:n},e.onChange(r)}})})}}),O,k),o(e=>{var t=c()===0,n=c()===i().length-1;return t!==e.e&&p(w,`disabled`,e.e=t),n!==e.t&&p(T,`disabled`,e.t=n),e},{e:void 0,t:void 0}),d(),r})()}}),l,u),h.addEventListener(`change`,t=>{t.currentTarget.value&&(e.onChange([...Array.isArray(e.value)?e.value:[],{fc_layout:t.currentTarget.value}]),t.currentTarget.value=``)}),f(h,a(s,{get each(){return r()},children:e=>(()=>{var t=m(G);return f(t,()=>e.label??e.name),o(()=>p(t,`value`,e.name)),t})()}),v,y),n})()}case`group`:return(()=>{var t=m(nt);return f(t,a(s,{get each(){return e.field.subFields??[]},children:t=>a(Q,{field:t,get values(){return e.value??{}},get t(){return e.t},onChange:(t,n)=>e.onChange({...e.value??{},[t]:n})})})),t})();default:return e.field.isPluginType&&(e.field.adminRendererPath||e.field.adminComponentPath)?a(Me,{get field(){return e.field},get value(){return e.value},get onChange(){return e.onChange},get adminRendererPath(){return e.field.adminRendererPath},get adminComponentPath(){return e.field.adminComponentPath},get _t(){return e.t}}):(()=>{var t=m(U);return t.$$input=t=>e.onChange(t.currentTarget.value),d(),t})()}}function st(e){return(()=>{var t=m(rt),n=t.firstChild,r=n.firstChild,i=r.firstChild.nextSibling,[o,c]=g(i.nextSibling),l=r.nextSibling,u=n.nextSibling,[p,h]=g(u.nextSibling);return f(r,()=>e.index+1,o,c),l.$$click=()=>e.onRemove(),f(t,a(s,{get each(){return e.field.subFields??[]},children:t=>a(Q,{field:t,get values(){return e.row},get t(){return e.t},onChange:(t,n)=>e.onUpdate({...e.row,[t]:n})})}),p,h),d(),t})()}function $(e){return(()=>{var t=m(it);return t.addEventListener(`change`,t=>{let n=Array.from(t.currentTarget.files??[]);e.onChange(e.multiple?n:n[0])}),o(n=>{var r=e.multiple,i=e.accept;return r!==n.e&&p(t,`multiple`,n.e=r),i!==n.t&&h(t,`accept`,n.t=i),n},{e:void 0,t:void 0}),t})()}function ct(e){let t=()=>Array.isArray(e.value)?e.value:e.value?[e.value]:[];return(()=>{var n=m(W);return n.addEventListener(`change`,t=>{let n=Array.from(t.currentTarget.selectedOptions).map(e=>e.value);e.onChange(e.multiple?n:n[0])}),f(n,a(s,{get each(){return e.field.config?.choices??[]},children:e=>(()=>{var n=m(G);return f(n,()=>e.label),o(()=>p(n,`selected`,t().includes(e.value))),o(()=>p(n,`value`,e.value)),n})()})),o(t=>{var r=e.multiple,i=Math.min(6,Math.max(3,(e.field.config?.choices??[]).length||3));return r!==t.e&&p(n,`multiple`,t.e=r),i!==t.t&&h(n,`size`,t.t=i),t},{e:void 0,t:void 0}),n})()}u([`input`,`click`]);export{Z as n,H as r,Q as t};
@@ -1,112 +0,0 @@
1
- import{S as e,h as t,l as n,p as r,r as i}from"./solid.Ck4Vtfe4.js";import{_ as a,i as o,l as s,o as c,s as l,u}from"./web.DD6VKaIp.js";import{n as d}from"./i18n.A82w5XQu.js";import{n as f}from"./api.53l1ob4Z.js";var p=a(`<div class=plugin-manager><p class=page-hint></p><!$><!/><!$><!/><!$><!/><style>
2
- .page-hint {
3
- margin: 0 0 1.25rem;
4
- color: var(--color-muted);
5
- font-size: 0.8125rem;
6
- }
7
- .badge-enabled {
8
- display: inline-block;
9
- margin-left: 0.5rem;
10
- padding: 0.125rem 0.375rem;
11
- font-size: 0.625rem;
12
- font-weight: 600;
13
- text-transform: uppercase;
14
- background: var(--color-success-soft);
15
- color: var(--color-success);
16
- border-radius: var(--radius-full);
17
- }
18
- .enabled-badge {
19
- color: var(--color-success);
20
- font-weight: 500;
21
- }
22
- .disabled-badge {
23
- color: var(--color-muted);
24
- font-weight: 500;
25
- }
26
- .plugins-table-container {
27
- overflow-x: auto;
28
- }
29
- .table {
30
- width: 100%;
31
- border-collapse: collapse;
32
- }
33
- .table th,
34
- .table td {
35
- padding: 0.75rem 1rem;
36
- text-align: left;
37
- border-bottom: 1px solid var(--color-border);
38
- }
39
- .table th {
40
- font-weight: 600;
41
- color: var(--color-text);
42
- background: var(--color-surface);
43
- }
44
- .plugin-row:hover {
45
- background: var(--color-background);
46
- }
47
- .plugin-name {
48
- display: flex;
49
- flex-direction: column;
50
- gap: 0.25rem;
51
- }
52
- .plugin-name strong {
53
- font-weight: 500;
54
- }
55
- .plugin-description {
56
- font-size: 0.75rem;
57
- color: var(--color-muted);
58
- }
59
- .status-badge {
60
- display: inline-flex;
61
- align-items: center;
62
- padding: 0.25rem 0.5rem;
63
- border-radius: var(--radius-full);
64
- font-size: 0.6875rem;
65
- font-weight: 600;
66
- text-transform: uppercase;
67
- }
68
- .status-active {
69
- background: var(--color-success-soft);
70
- color: var(--color-success);
71
- }
72
- .status-installed {
73
- background: var(--color-primary-soft);
74
- color: var(--color-primary);
75
- }
76
- .status-inactive {
77
- background: var(--color-muted-soft);
78
- color: var(--color-muted);
79
- }
80
- .status-quarantined {
81
- background: var(--color-warning-soft);
82
- color: var(--color-warning);
83
- }
84
- .status-missing {
85
- background: var(--color-error-soft);
86
- color: var(--color-error);
87
- }
88
- .status-load-failed {
89
- background: var(--color-error-soft);
90
- color: var(--color-error);
91
- }
92
- .empty-state {
93
- padding: 2rem;
94
- text-align: center;
95
- color: var(--color-muted);
96
- }
97
- .alert {
98
- padding: 0.75rem 1rem;
99
- border-radius: var(--radius-md);
100
- margin-bottom: 1rem;
101
- }
102
- .alert-error {
103
- background: var(--color-error-soft);
104
- color: var(--color-error);
105
- border: 1px solid var(--color-error);
106
- }
107
- .skeleton {
108
- padding: 2rem;
109
- text-align: center;
110
- color: var(--color-muted);
111
- }
112
- `),m=a(`<div class="alert alert-error">`),h=a(`<div class=skeleton>Loading...`),g=a(`<div class=plugins-table-container><table class=table><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody></tbody></table><!$><!/>`),_=a(`<tr class=plugin-row><td class=plugin-name><strong></strong><!$><!/><!$><!/></td><td></td><td><span></span></td><td>`),v=a(`<span class=plugin-description>`),y=a(`<span class=badge-enabled>`),b=a(`<span class=enabled-badge>`),x=a(`<span class=disabled-badge>`),S=a(`<div class=empty-state>`);function C(){let{t:a}=d(),[C,w]=t([]),[T,E]=t(!0),[D,O]=t(null);e(async()=>{await k()});async function k(){try{E(!0);let e=await f.getPlugins();w(e)}catch{O(a(`plugins.loadError`))}finally{E(!1)}}let A=e=>{switch(e){case`ACTIVE`:case`ACTIVATED`:return a(`plugins.status.active`);case`INSTALLED`:return a(`plugins.status.installed`);case`INACTIVE`:case`DEACTIVATED`:return a(`plugins.status.inactive`);case`QUARANTINED`:return a(`plugins.status.quarantined`);case`MISSING`:return a(`plugins.status.missing`);case`LOAD_FAILED`:return a(`plugins.status.loadFailed`);default:return e}},j=e=>{switch(e){case`ACTIVE`:case`ACTIVATED`:return`status-active`;case`INSTALLED`:return`status-installed`;case`INACTIVE`:case`DEACTIVATED`:return`status-inactive`;case`QUARANTINED`:return`status-quarantined`;case`MISSING`:return`status-missing`;case`LOAD_FAILED`:return`status-load-failed`;default:return``}};return(()=>{var e=c(p),t=e.firstChild,d=t.nextSibling,[f,w]=l(d.nextSibling),E=f.nextSibling,[O,k]=l(E.nextSibling),M=O.nextSibling,[N,P]=l(M.nextSibling);return N.nextSibling,s(t,()=>a(`plugins.directoryHint`)),s(e,(()=>{var e=u(()=>!!D());return()=>e()&&(()=>{var e=c(m);return s(e,D),e})()})(),f,w),s(e,(()=>{var e=u(()=>!!T());return()=>e()&&c(h)})(),O,k),s(e,(()=>{var e=u(()=>!(T()||D()));return()=>e()&&(()=>{var e=c(g),t=e.firstChild,d=t.firstChild,f=d.firstChild.firstChild,p=f.nextSibling,m=p.nextSibling,h=m.nextSibling,w=d.nextSibling,T=t.nextSibling,[E,D]=l(T.nextSibling);return s(f,()=>a(`plugins.columns.name`)),s(p,()=>a(`plugins.columns.version`)),s(m,()=>a(`plugins.columns.status`)),s(h,()=>a(`plugins.columns.enabled`)),s(w,n(i,{get each(){return C()},children:e=>(()=>{var t=c(_),n=t.firstChild,i=n.firstChild,d=i.nextSibling,[f,p]=l(d.nextSibling),m=f.nextSibling,[h,g]=l(m.nextSibling),S=n.nextSibling,C=S.nextSibling,w=C.firstChild,T=C.nextSibling;return s(i,()=>e.name),s(n,(()=>{var t=u(()=>!!e.manifest?.description);return()=>t()&&(()=>{var t=c(v);return s(t,()=>e.manifest.description),t})()})(),f,p),s(n,(()=>{var t=u(()=>!!e.enabled);return()=>t()&&(()=>{var e=c(y);return s(e,()=>a(`plugins.enabledForTenant`)),e})()})(),h,g),s(S,()=>e.version),s(w,()=>A(e.status)),s(T,(()=>{var t=u(()=>!!e.enabled);return()=>t()?(()=>{var e=c(b);return s(e,()=>a(`plugins.enabledYes`)),e})():(()=>{var e=c(x);return s(e,()=>a(`plugins.enabledNo`)),e})()})()),r(()=>o(w,`status-badge ${j(e.status)}`)),t})()})),s(e,(()=>{var e=u(()=>C().length===0);return()=>e()&&(()=>{var e=c(S);return s(e,()=>a(`plugins.empty`)),e})()})(),E,D),e})()})(),N,P),e})()}export{C as PluginManager};
@@ -1 +0,0 @@
1
- import{S as e,a as t,h as n,l as r,p as i,r as a}from"./solid.Ck4Vtfe4.js";import{_ as o,a as s,f as c,l,m as u,o as d,s as f,u as p}from"./web.DD6VKaIp.js";import{n as m}from"./i18n.A82w5XQu.js";import{n as h}from"./api.53l1ob4Z.js";import{t as g}from"./FieldRenderer.AYtSBfHZ.js";import{t as _}from"./clone.oDfZEkVn.js";var v=o(`<div class="notice notice--error">`),ee=o(`<div class=term-meta-fields><h4></h4><!$><!/>`),te=o(`<button class=btn type=button>`),ne=o(`<table class=table><thead><tr><th></th><th></th><th></th></tr></thead><tbody>`),y=o(`<div class=taxonomy-manager__layout><div class=taxonomy-manager__form-col><form class="card term-form"><h3></h3><label><!$><!/><input class=input required></label><label><!$><!/><input class=input></label><label><!$><!/><textarea class=input rows=3></textarea></label><!$><!/><div class=form-actions><button class="btn btn-primary"type=submit></button><!$><!/></div></form></div><div class=taxonomy-manager__table-col><div class=card><div class=card-header><div><h3></h3><p class=muted></p></div><span class=badge></span></div><!$><!/>`),b=o(`<div class=taxonomy-manager><!$><!/><!$><!/><!$><!/>`),re=o(`<p class=muted>`),ie=o(`<tr><td></td><td></td><td><button class="btn btn-secondary btn-sm"type=button></button> <button class="btn btn-danger btn-sm"type=button>`);function x(o){let{t:s}=m(),[x,S]=n(null),[C,w]=n([]),[T,E]=n(``),[D,O]=n(``),[k,A]=n(``),[j,M]=n(null),[N,P]=n(``),[ae,F]=n(!1),[I,L]=n([]),[R,z]=n({}),B=async()=>{if(o.taxonomySlug)try{let[e,t]=await Promise.all([h.getTaxonomies(),h.getTaxonomyTerms(o.taxonomySlug)]);S(e.find(e=>e.slug===o.taxonomySlug)??null),w(t)}catch(e){P(e instanceof Error?e.message:String(e))}},V=async()=>{if(o.taxonomySlug)try{let e=await h.getFieldGroups({taxonomy:o.taxonomySlug}),t=await Promise.all(e.filter(e=>e.active).map(async e=>h.getFieldGroup(e.id)));L(_(t.flatMap(e=>e.fields??[])))}catch{L([])}};e(()=>{B(),V()});let H=()=>{M(null),E(``),O(``),A(``),z({})},oe=e=>{M(e.id??null),E(e.name),O(e.slug),A(e.description??``),z({...e.meta??{}}),P(``)},se=async e=>{e.preventDefault(),P(``),F(!0);try{let e=C().find(e=>e.id===j())?.meta??{},t={name:T(),slug:D()||void 0,description:k()||void 0,...I().length>0?{meta:{...e,...R()}}:{}};j()?await h.updateTaxonomyTerm(o.taxonomySlug,j(),t):await h.createTaxonomyTerm(o.taxonomySlug,t),H(),await B()}catch(e){P(e instanceof Error?e.message:String(e))}finally{F(!1)}},ce=async e=>{if(e.id&&confirm(s(`content.taxonomy.confirmDelete`,{name:e.name})))try{await h.deleteTaxonomyTerm(o.taxonomySlug,e.id),await B()}catch(e){P(e instanceof Error?e.message:String(e))}};return(()=>{var e=d(b),n=e.firstChild,[m,h]=f(n.nextSibling),_=m.nextSibling,[S,w]=f(_.nextSibling),M=S.nextSibling,[P,F]=f(M.nextSibling);return l(e,r(t,{get when(){return N()},get children(){var e=d(v);return l(e,N),e}}),m,h),l(e,r(t,{get when(){return p(()=>!x())()&&o.taxonomySlug},get children(){var e=d(v);return l(e,()=>s(`content.taxonomy.notFound`)),e}}),S,w),l(e,r(t,{get when(){return x()},get children(){var e=d(y),n=e.firstChild,m=n.firstChild,h=m.firstChild,_=h.nextSibling,v=_.firstChild,[b,S]=f(v.nextSibling),w=b.nextSibling,M=_.nextSibling,N=M.firstChild,[P,F]=f(N.nextSibling),L=P.nextSibling,B=M.nextSibling,V=B.firstChild,[U,W]=f(V.nextSibling),G=U.nextSibling,le=B.nextSibling,[K,ue]=f(le.nextSibling),q=K.nextSibling,J=q.firstChild,de=J.nextSibling,[fe,Y]=f(de.nextSibling),X=n.nextSibling.firstChild,Z=X.firstChild,Q=Z.firstChild,$=Q.firstChild,pe=$.nextSibling,me=Q.nextSibling,he=Z.nextSibling,[ge,_e]=f(he.nextSibling);return m.addEventListener(`submit`,se),l(h,(()=>{var e=p(()=>!!j());return()=>e()?s(`content.taxonomy.editTerm`):s(`content.taxonomy.addTerm`)})()),l(_,()=>s(`content.taxonomy.name`),b,S),w.$$input=e=>E(e.currentTarget.value),l(M,()=>s(`content.taxonomy.slug`),P,F),L.$$input=e=>O(e.currentTarget.value),l(B,()=>s(`content.taxonomy.description`),U,W),G.$$input=e=>A(e.currentTarget.value),l(m,r(t,{get when(){return I().length>0},get children(){var e=d(ee),t=e.firstChild,n=t.nextSibling,[i,o]=f(n.nextSibling);return l(t,()=>s(`content.taxonomy.termFields`)),l(e,r(a,{get each(){return I()},children:e=>r(g,{field:e,get values(){return R()},onChange:(e,t)=>z({...R(),[e]:t}),t:s})}),i,o),e}}),K,ue),l(J,(()=>{var e=p(()=>!!j());return()=>e()?s(`common.save`):s(`content.taxonomy.add`)})()),l(q,r(t,{get when(){return j()},get children(){var e=d(te);return e.$$click=H,l(e,()=>s(`common.cancel`)),c(),e}}),fe,Y),l($,()=>x().name),l(pe,(()=>{var e=p(()=>!!o.contentType);return()=>e()?`${s(`content.taxonomy.attachedTo`)}: ${o.contentType}`:s(`content.taxonomy.descriptionHint`)})()),l(me,()=>C().length),l(X,r(t,{get when(){return C().length>0},get fallback(){return(()=>{var e=d(re);return l(e,()=>s(`content.taxonomy.empty`)),e})()},get children(){var e=d(ne),t=e.firstChild,n=t.firstChild.firstChild,i=n.nextSibling,o=t.nextSibling;return l(n,()=>s(`content.taxonomy.name`)),l(i,()=>s(`content.taxonomy.slug`)),l(o,r(a,{get each(){return C()},children:e=>(()=>{var t=d(ie),n=t.firstChild,r=n.nextSibling,i=r.nextSibling.firstChild,a=i.nextSibling.nextSibling;return l(n,()=>e.name),l(r,()=>e.slug),i.$$click=()=>oe(e),l(i,()=>s(`common.edit`)),a.$$click=()=>void ce(e),l(a,()=>s(`content.taxonomy.delete`)),c(),t})()})),e}}),ge,_e),i(()=>u(J,`disabled`,ae())),i(()=>u(w,`value`,T())),i(()=>u(L,`value`,D())),i(()=>u(G,`value`,k())),c(),e}}),P,F),e})()}s([`input`,`click`]);export{x as TaxonomyTermsManager};
@@ -1 +0,0 @@
1
- import{S as e,a as t,h as n,l as r}from"./solid.Ck4Vtfe4.js";import{_ as i,l as a,o,s}from"./web.DD6VKaIp.js";import"./src.CYKGYEyR.js";import{a as c,i as l,n as u,s as d,t as f}from"./store.DLCqLxBR.js";var p=i(`<div class=sidebar-plugins data-extensions=sidebar><!$><!/><!$><!/>`);function m(){let[i,c]=n(f());e(async()=>{c(await u())});let m=()=>!0;return r(t,{get when(){return i().menuPages.length>0||i().notices.length>0},get children(){var e=o(p),t=e.firstChild,[n,c]=s(t.nextSibling),u=n.nextSibling,[f,h]=s(u.nextSibling);return a(e,r(d,{get extensions(){return i()}}),n,c),a(e,r(l,{get extensions(){return i()},can:m}),f,h),e}})}function h(){let[i,a]=n(f());return e(async()=>{a(await u())}),r(t,{get when(){return i().dashboardWidgets.length>0},get children(){return r(c,{get extensions(){return i()}})}})}export{h as PluginDashboardWidgetsSlot,m as PluginExtensionsSlot,f as emptyExtensionsState};
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime.BpQH8Ho1.js";import{S as t,h as n}from"./solid.Ck4Vtfe4.js";import{t as r}from"./preload-helper.oCYlU9a4.js";import{n as i}from"./api.53l1ob4Z.js";var a=[`pt-BR`,`en`,`es-ES`,`ru`,`uk`,`tr`,`he`,`it`,`pl`,`zh-CN`,`ja`,`ar`,`sw`,`yo`,`zu`,`am`,`ha`,`ig`],ee={"pt-BR":`Português (Brasil)`,en:`English`,"es-ES":`Español`,ru:`Русский`,uk:`Українська`,tr:`Türkçe`,he:`עברית`,it:`Italiano`,pl:`Polski`,"zh-CN":`中文 (简体)`,ja:`日本語`,ar:`العربية`,sw:`Kiswahili`,yo:`Yorùbá`,zu:`isiZulu`,am:`አማርኛ`,ha:`Hausa`,ig:`Igbo`},te={"pt-BR":`🇧🇷`,en:`🇺🇸`,"es-ES":`🇪🇸`,ru:`🇷🇺`,uk:`🇺🇦`,tr:`🇹🇷`,he:`🇮🇱`,it:`🇮🇹`,pl:`🇵🇱`,"zh-CN":`🇨🇳`,ja:`🇯🇵`,ar:`🇸🇦`,sw:`🇹🇿`,yo:`🇳🇬`,zu:`🇿🇦`,am:`🇪🇹`,ha:`🇳🇬`,ig:`🇳🇬`};function ne(e){return a.includes(e)}var o=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},s=new Map;async function c(e){if(s.has(e))return s.get(e);try{let t=await o(Object.assign({"./locales/ar.json":()=>r(()=>import(`./ar.BCtMLfbL.js`),[]),"./locales/en.json":()=>r(()=>Promise.resolve().then(()=>h),void 0),"./locales/es-ES.json":()=>r(()=>import(`./es-ES.BfYd3kCv.js`),[]),"./locales/he.json":()=>r(()=>import(`./he.pQFPO6hc.js`),[]),"./locales/it.json":()=>r(()=>import(`./it.ZpeUogpB.js`),[]),"./locales/ja.json":()=>r(()=>import(`./ja.Ch5X4gaR.js`),[]),"./locales/pl.json":()=>r(()=>import(`./pl.DDgkAPXr.js`),[]),"./locales/pt-BR.json":()=>r(()=>import(`./pt-BR.zZcF2v3X.js`),[]),"./locales/ru.json":()=>r(()=>import(`./ru.CAjJz8Cj.js`),[]),"./locales/sw.json":()=>r(()=>import(`./sw.CehAEkRN.js`),[]),"./locales/tr.json":()=>r(()=>import(`./tr.Sf1XkPHa.js`),[]),"./locales/uk.json":()=>r(()=>import(`./uk.-2u2eOOq.js`),[]),"./locales/yo.json":()=>r(()=>import(`./yo.os9m69tq.js`),[]),"./locales/zh-CN.json":()=>r(()=>import(`./zh-CN.Bt1lpQQu.js`),[])}),`./locales/${e}.json`,3),n=t.default??t;return s.set(e,n),n}catch{return e===`en`?{}:c(`en`)}}var l=`admin_locale`;function re(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(?:^|; )${l}=([^;]+)`));return e?.[1]&&a.includes(e[1])?e[1]:null}function u(e){typeof document<`u`&&(document.cookie=`${l}=${e}; path=/; max-age=31536000; SameSite=Lax`)}function d(){if(typeof navigator>`u`)return`en`;let e=navigator.language?.split(`-`)[0]?.toLowerCase(),t=navigator.language?.toLowerCase();for(let n of a)if(n.toLowerCase()===t||n.split(`-`)[0]===e)return n;return`en`}async function f(){try{let e=await i.getUserLocale();if(e&&a.includes(e))return e}catch{}return null}async function ie(e){await i.setUserLocale(e)}async function p(){return re()||await f()||d()||`en`}async function m(e){u(e);try{await ie(e)}catch{}}var h=e({access:()=>w,activity:()=>P,adminBar:()=>F,apiKeys:()=>D,comments:()=>B,common:()=>N,content:()=>v,customizer:()=>z,dashboard:()=>_,default:()=>V,footer:()=>I,helpTabs:()=>L,layout:()=>g,login:()=>M,logs:()=>T,media:()=>y,menus:()=>S,notFound:()=>A,plugins:()=>O,rateLimit:()=>j,resources:()=>C,screenOptions:()=>R,settings:()=>x,themes:()=>k,users:()=>b,webhooks:()=>E}),g={appName:`OkCMS`,admin:`Admin`,nav:{dashboard:`Dashboard`,content:`Content`,media:`Media`,users:`Users`,menus:`Menus`,settings:`Settings`,plugins:`Plugins`,themes:`Themes`,customize:`Customize`,comments:`Comments`,settings_reading:`Reading`},actions:{logout:`Logout`,newPost:`New Post`,uploadMedia:`Upload Media`,addUser:`Add User`,openSettings:`Settings`}},_={title:`Dashboard`,stats:{totalContent:`Total Content`,published:`Published`,drafts:`Drafts`,mediaFiles:`Media Files`,users:`Users`},recent:{title:`Recent Content`,viewAll:`View All`,empty:`No content yet — create your first!`,columns:{title:`Title`,type:`Type`,status:`Status`,updated:`Updated`}},widgets:{atGlance:`At a Glance`,posts:`Posts`,postsDesc:`Published / Drafts / Trash`,pages:`Pages`,pagesDesc:`Published / Drafts / Trash`,media:`Media`,mediaDesc:`Files in the library`,users:`Users`,usersDesc:`Total / Active / Inactive`,storage:`Storage`,quickDraft:{title:`Quick Draft`,heading:`Title`,headingPlaceholder:`Give your draft a title`,content:`Content`,contentPlaceholder:`What's on your mind?`,save:`Save Draft`,yourDrafts:`Your Drafts`,noDrafts:`No drafts yet.`},activity:{title:`Activity`,empty:`No activity yet.`}}},v={list:{title:`Content`,description:`Search, filter, edit and publish your content.`,typeNotFound:`This content type was not found.`,columns:{title:`Title`,type:`Type`,status:`Status`,updated:`Updated`},actions:{edit:`Edit`,publish:`Publish`,unpublish:`Unpublish`,delete:`Delete`},filters:{search:`Search content…`,allTypes:`All types`,allStatus:`All status`},buttons:{new:`+ New content`,addNew:`+ Add new`,search:`Search`},all:`All content`,empty:`No content found.`,statuses:{draft:`Draft`,published:`Published`,archived:`Archived`},confirmDelete:`Delete "{title}"?`,toasts:{published:`Content published ✓`,unpublished:`Content unpublished ✓`}},editor:{type:`Type`,adding:`Add new`,editing:`Edit`,backToList:`Back to list`,saving:`Saving…`,title:`Title`,titlePlaceholder:`Add title`,slug:`Slug`,slugPlaceholder:`auto-generated-from-title`,toolbar:`Editor toolbar`,bodyPlaceholder:`Start writing…`,linkPrompt:`Enter the URL:`,excerpt:`Excerpt`,featuredImage:`Featured Image (media ID)`,mediaIdPlaceholder:`Media ID`,featuredImageHint:`Choose a media item from the Media library.`,pageAttributes:`Page attributes`,publishPanel:`Publish`,status:`Status`,statusOptions:{draft:`Draft`,published:`Published`,archived:`Archived`},layout:`Layout`,layoutAuto:`Automatic (theme hierarchy)`,customFields:`Custom Fields`,inspectTypes:`Inspect available types`,save:`Save`,saved:`Content saved successfully.`,format:`Format`,formatParagraph:`Paragraph`,formatH1:`Heading 1`,formatH2:`Heading 2`,formatH3:`Heading 3`,formatH4:`Heading 4`,formatBlockquote:`Blockquote`,formatCode:`Code`,bold:`Bold`,italic:`Italic`,underline:`Underline`,bulletList:`Bullet List`,numberedList:`Numbered List`,link:`Link`},taxonomy:{title:`Taxonomy terms`,back:`← Back to content`,choose:`Choose a taxonomy from the content menu.`,notFound:`Taxonomy not found.`,addTerm:`Add new term`,editTerm:`Edit term`,name:`Name`,slug:`Slug`,description:`Description`,descriptionHint:`Manage the terms used by this content type.`,attachedTo:`Attached to`,add:`Add term`,delete:`Delete`,empty:`No terms yet.`,confirmDelete:`Delete "{name}"?`,termFields:`Term fields`}},y={title:`Media Library`,description:"Upload and manage images, videos and documents. Files are stored in `uploads/` and served publicly.",upload:{dropzone:`Drop files here or`,select:`Select files`,uploading:`Uploading…`,hint:`Images, videos, audio and documents · up to 25MB per file`},toolbar:{search:`Search by name or alt…`,allTypes:`All types`,searchBtn:`Search`},mimeTypes:{png:`PNG`,jpeg:`JPEG`,gif:`GIF`,webp:`WebP`,svg:`SVG`,pdf:`PDF`,mp4:`MP4`,mp3:`MP3`},empty:`No files yet. Upload the first one!`,details:{title:`Details`,titleField:`Title`,file:`File`,type:`Type`,size:`Size`,dimensions:`Dimensions`,uploaded:`Uploaded`,url:`URL`,copy:`Copy`,alt:`Alt text`,caption:`Caption`,description:`Description`,save:`Save details`,replace:`Replace file`,replacing:`Replacing…`,replaceHint:`Keeps this attachment and its metadata.`,delete:`Delete`,close:`Close`,confirmDelete:`Delete "{filename}"? The file will be removed from disk.`,saved:`Details saved ✓`,copied:`URL copied ✓`,copyError:`Could not copy URL`,replaced:`File replaced ✓`},toasts:{uploaded:`{count} file(s) uploaded ✓`}},b={title:`Users`,description:`Manage accounts, roles and project access.`,new:`New User`,toolbar:{search:`Search by name or email…`,allStatus:`All status`,active:`Active`,inactive:`Inactive`,newBtn:`+ New user`,searchBtn:`Search`},table:{name:`Name`,email:`Email`,role:`Role`,status:`Status`,lastAccess:`Last access`,actions:{manage:`Manage`,delete:`Delete`}},empty:`No users found.`,noRole:`No role`,detail:{title:`Manage user`,fields:{name:`Name`,email:`Email`,status:`Status`,role:`Role`,password:`Password`},statusOptions:{active:`Active`,inactive:`Inactive`},rolePlaceholder:`— no role —`,meta:`Created on {created} · last access {lastAccess}`,actions:{save:`Save`,resetPassword:`Reset password`,close:`Close`},passwordPrompt:`New password for {email} (minimum 8 chars):`,passwordError:`Password must be at least 8 characters`,toasts:{roleUpdated:`Role for {name} updated ✓`,passwordChanged:`Password for {name} changed ✓`,saved:`User {name} saved ✓`,deleted:`User {name} deleted ✓`},confirmDelete:`Delete user {email}?`}},x=JSON.parse(`{"general":{"title":"General","description":"Basic information displayed on the site.","back":"← All settings","fields":{"siteTitle":"Site Title","siteTitlePlaceholder":"My Site","siteDescription":"Description","siteDescriptionPlaceholder":"A new site built with OkCMS","language":"Language","timezone":"Timezone","timezonePlaceholder":"America/Sao_Paulo"},"saved":"Settings saved ✓","loading":"Loading…","save":"Save"},"postTypes":{"title":"Content Types","description":"Create custom content types (CPTs) beyond Posts and Pages.","form":{"title":"Create Content Type","slug":"Slug (singular, e.g.: portfolio)","slugHint":"Only lowercase letters, numbers and underscore","singular":"Singular name","plural":"Plural name","supports":"Supports","supportsOptions":{"title":"Title","editor":"Editor","thumbnail":"Featured Image","excerpt":"Excerpt","revisions":"Revisions"},"hasArchive":"Has public archive (/slug)","singleton":"Singleton (only one content entry)","icon":"Sidebar menu icon","iconHint":"Pick a Lucide icon — its name is what shows in the admin sidebar","iconSearchPlaceholder":"Search icons…","iconEmpty":"No icons found.","iconCount":"{count} icons available","editTitle":"Edit Content Type","update":"Update","cancel":"Cancel","create":"Create"},"table":{"slug":"Slug","singular":"Singular","plural":"Plural","source":"Source","supports":"Supports","archive":"Archive","mode":"Mode","singleton":"Singleton","collection":"Collection","icon":"Icon","actions":{"edit":"Edit","remove":"Remove"}},"sources":{"admin":"Admin","core":"Core"}},"taxonomies":{"title":"Taxonomies","description":"Create custom taxonomies and link them to content types.","form":{"title":"Create Taxonomy","name":"Name (e.g.: Genre)","slug":"Slug (optional, generated from name)","slugHint":"Only lowercase letters, numbers and underscore","hierarchical":"Hierarchical (allows parent/child terms)","attachTo":"Link to content types","create":"Create"},"table":{"taxonomy":"Taxonomy","hierarchical":"Hierarchical","attachedTypes":"Linked content types","actions":{"remove":"Remove"}}},"customFields":{"title":"Custom Fields","description":"Create field groups, arrange fields and choose which standard fields are visible for each content type.","contentType":"Content type","location":{"title":"Location rules","description":"Choose where this field group appears. Rules in the same group use AND; groups use OR.","parameter":"Location parameter","operator":"Operator","chooseValue":"Choose a value","valuePlaceholder":"Enter a value or slug","showIf":"Show if","removeRule":"Remove rule","required":"Add a value to every location rule.","addRule":"Add condition","addGroup":"Add OR group","remove":"Remove","and":"AND","or":"OR","params":{"content_type":"Post type","content_slug":"Post slug","taxonomy":"Taxonomy","term":"Term slug","user_role":"User role","page_template":"Page template","post_status":"Post status","block":"Block"},"operators":{"eq":"is","neq":"is not"}},"standard":{"title":"Standard fields","description":"Title and slug are required. The other standard fields can be enabled or disabled.","enabled":"Enabled","locked":"Required","fields":{"title":"Title","slug":"Slug","content":"Content","excerpt":"Excerpt","featured_image":"Featured image","seo_title":"SEO title","seo_description":"SEO description","status":"Status","author":"Author"}},"groups":{"title":"Field groups","new":"New field group","empty":"No custom field groups yet.","emptyHint":"Create your first group to start modelling your content.","search":"Search groups…","groupName":"Group","status":"Status","fields":"fields","appliesTo":"Applies to","allContentTypes":"All content types","edit":"Edit","active":"Active","inactive":"Inactive"},"form":{"createTitle":"Create field group","editTitle":"Edit field group","title":"Group name","titlePlaceholder":"Example: Product details","displayTitle":"Display title","active":"Active","backToGroups":"Back to groups","editorEyebrow":"Field builder","groupTitleHint":"This name identifies the field set inside the content editor.","fieldsTitle":"Fields","fieldsDescription":"Add, configure and order fields. Use the six-dot handle to drag without losing their position.","noFields":"This group has no fields yet.","settingsTitle":"Group settings","settingsDescription":"Presentation and panel visibility options for this panel.","description":"Description","labelPlacement":"Label placement","instructionPlacement":"Instruction placement","menuOrder":"Menu order","hideOnScreen":"Hide on edit screen","hide":{"permalink":"Permalink","content":"Content editor","excerpt":"Excerpt","featured_image":"Featured image","author":"Author","revisions":"Revisions","comments":"Comments"},"assignTitle":"Location","assignDescription":"Choose the content type where this field group will be available.","contentType":"Content type","position":"Position","positions":{"normal":"Normal","side":"Sidebar","after_title":"After title"},"displayStyle":"Display style","displayStyles":{"standard":"Standard","seamless":"Seamless","grouped":"Grouped"},"field":"Field","fieldName":"Name/key","fieldNamePlaceholder":"product_code","fieldLabel":"Label","fieldLabelPlaceholder":"Product code","fieldType":"Type","instructions":"Instructions","instructionsPlaceholder":"Optional help text for editors","required":"Required","options":"Options","optionsHint":"One option per line: value|Label","addField":"Add field","removeField":"Remove","dragHint":"Drag to reorder","editField":"Edit","duplicateField":"Duplicate","copySuffix":"(copy)","selectFieldType":"Select field type","searchFieldTypes":"Search field types…","popularFields":"Popular","noMatchingFieldTypes":"No field types found.","fieldTypeHint":"Choose the type that best represents the value editors will enter in this field.","selectField":"Select field","save":"Save group","cancel":"Cancel","newFieldDefault":"New field","saved":"Field group saved.","deleted":"Field group deleted."},"listEyebrow":"Content structure","validation":{"titleRequired":"Group name is required."},"tabs":{"locationRules":"Location rules","presentation":"Presentation","groupSettings":"Group settings"},"fieldSettings":{"general":"General","fieldLabel":"Field label","fieldName":"Field name","instructions":"Instructions","required":"Required","defaultValue":"Default value","placeholder":"Placeholder","presentation":"Presentation","wrapperWidth":"Wrapper width (%)","labelPlacement":"Label","instructionPlacement":"Instructions","top":"Above","left":"Left","above":"Before field","below":"After field","textSettings":"Text","prepend":"Prepend","append":"Append","minLength":"Minimum length","maxLength":"Maximum length","rows":"Rows","newLines":"New lines","wpautop":"Automatic paragraphs","none":"None","numberSettings":"Number","min":"Minimum","max":"Maximum","step":"Step","choiceSettings":"Choices","choices":"Choices","layout":"Layout","vertical":"Vertical","horizontal":"Horizontal","multiple":"Multiple choice","allowNull":"Allow empty","mediaSettings":"Media","returnFormat":"Return format","array":"Array","id":"ID","previewSize":"Preview size","library":"Library","all":"All","uploadedToPost":"Uploaded to this post","allowedTypes":"Allowed types","minWidth":"Minimum width","maxWidth":"Maximum width","minHeight":"Minimum height","maxHeight":"Maximum height","wysiwygSettings":"WYSIWYG","tabs":"Tabs","toolbar":"Toolbar","mediaUpload":"Allow media upload","dateSettings":"Date and time","displayFormat":"Display format","firstDay":"First day","colorSettings":"Color","enableOpacity":"Allow opacity","mapSettings":"Map","center":"Center","zoom":"Zoom","height":"Height","relationSettings":"Relationship","postType":"Post type","taxonomy":"Taxonomy","booleanSettings":"True/False","message":"Message","defaultChecked":"Checked by default","linkSettings":"Link","cloneSettings":"Clone","cloneFields":"Fields to clone","cloneHint":"One field name per line","containerSettings":"Structure","buttonLabel":"Button label","collapsed":"Collapsed row title field","subFields":"Subfields","layouts":"Layouts","addLayout":"Add layout","newLayout":"New layout","layoutName":"Layout name","layoutLabel":"Layout label","layoutDisplay":"Layout display","conditionalLogic":"Conditional logic","conditionalHint":"Show this field only when the rules match.","chooseField":"Choose a field","conditionValue":"Value","addCondition":"Add condition","addConditionGroup":"Add OR group","conditionsAnd":"Conditions in this group use AND.","choicesHint":"One choice per line in the format value|Label.","cloneSource":"Source group or field","cloneSourceHint":"Field group key or field name to copy fields from.","requiredOn":"Required","requiredOff":"Not required","pluginConfig":"Plugin Configuration","mermaid":{"diagramSettings":"Diagram Settings","theme":"Theme","selectTheme":"Select theme","editable":"Allow editing in content editor","defaultCode":"Default Mermaid Code","defaultCodeHint":"Initial code when field is added to content. User can edit later.","examples":"Examples","exampleFlowchart":"Flowchart","exampleSequence":"Sequence","exampleClass":"Class Diagram","diagram":"Mermaid Diagram","copyCode":"Copy code","rerender":"Re-render","showCode":"Show source code","renderError":"Render Error","rendering":"Rendering diagram..."},"libraryAll":"All","libraryUploaded":"Uploaded to this post","ui":"Enhanced UI","uiHint":"Use enhanced styling for the dropdown.","wrapperClass":"Wrapper class","wrapperWidthHint":"CSS width of the field wrapper, e.g. 50%.","collapsedHint":"Name of the sub-field used as the row title.","conditionalActive":"Active","showIf":"Show if","removeRule":"Remove rule","and":"AND","or":"OR","noLayouts":"No layouts yet.","validation":"Validation","advanced":"Advanced","fieldType":"Type","fieldNameHint":"Letters, numbers and underscores only.","ariaLabel":"Field settings","operators":{"eq":"equals","neq":"does not equal","gt":"is greater than","lt":"is less than","contains":"contains","hasAny":"has any value","hasNone":"is empty"}},"actions":{"delete":"Delete","confirmDelete":"Delete this field group?","edit":"Edit","duplicate":"Duplicate","activate":"Activate","deactivate":"Deactivate","export":"Export","import":"Import"},"import":{"description":"Import field groups from a JSON file. The file must contain a field group object or an array of field group objects. Existing groups with the same key will be updated; new groups will be created.","dropzone":"Click to select a .json file, or drag and drop here","hint":"File selected. Click Import to proceed."},"loading":"Loading custom fields…","loadError":"Could not load custom fields."},"reading":{"title":"Reading","description":"Configure how your homepage and posts page are displayed.","frontPageDisplays":"Your homepage displays","frontPageDisplaysOptions":{"latest":"Your latest posts","static":"A static page"},"frontPage":"Homepage","postsPage":"Posts page","selectPage":"— Select a page —","saved":"Reading settings saved ✓","save":"Save Changes","timezoneString":"Timezone","timezoneStringPlaceholder":"America/Sao_Paulo","gmtOffset":"GMT Offset","gmtOffsetPlaceholder":"-3","timezoneDescription":"A timezone string in IANA format (e.g. America/Sao_Paulo). GMT offset is an alternative in hours.","gmtOffsetDescription":"GMT offset in hours (e.g. -3 for UTC-3). Alternative to IANA timezone string.","loading":"Loading…"}}`),S={title:`Menus`,description:`Create and manage the navigation menus used by your site.`,hint:`Menus are independent from content types and can be rendered by your theme.`,new:`New menu`,create:`Create menu`,edit:`Edit menu`,name:`Name`,slug:`Slug`,items:`Items`,back:`Back to menus`,nameRequired:`Enter a menu name.`,editor:{eyebrow:`Navigation structure`,addItems:`Add menu items`,search:`Search…`,addSelected:`Add selected`,addToMenu:`Add to menu`,structure:`Menu structure`,structureHint:`Drag items to reorder. Use the arrows to create nested submenus.`,empty:`Add items from the panels on the left.`,emptyLevel:`No submenu items.`,drag:`Drag to reorder`,untitled:`Untitled item`,noUrl:`No URL`,up:`Move up`,down:`Move down`,indent:`Make submenu`,outdent:`Move to parent level`,itemSettings:`Item settings`,navigationLabel:`Navigation label`,url:`URL`,titleAttribute:`Title attribute`,cssClasses:`CSS classes`,target:`Open link in`,sameWindow:`Same window`,newWindow:`New window`,xfn:`Link relationship (XFN)`,description:`Description`,remove:`Remove`,settings:`Menu settings`,autoAddPages:`Automatically add new top-level pages to this menu`,autoAddPagesHint:`This setting is saved with the menu and can be used by the active theme.`},sources:{pages:`Pages`,posts:`Posts`,custom:`Custom Links`,customHint:`Add any internal or external URL.`,home:`Home`,contentTypes:`Content type items`,archives:`Content type archives`,taxonomies:`Taxonomy terms`},saved:`Menu saved.`,deleted:`Menu deleted.`,empty:`No menus yet.`,confirmDelete:`Delete menu "{name}"?`},C={title:`Content Resources`,description:`Description`,tabs:{category:`Categories`,tag:`Tags`,menu:`Menus`},new:`New resource`,name:`Name`,slug:`Slug`,items:`Menu items (JSON)`,saved:`Resource saved.`,confirmDelete:`Delete this resource?`,form:{new:`Create resource`,edit:`Edit resource`},terms:{title:`Taxonomy terms`,choose:`Choose a taxonomy`,new:`New term`}},w={title:`Access`,description:`Manage roles, permissions and tenants.`,roles:`Roles`,tenants:`Tenants`,permissions:`Permissions`,domain:`Domain`,permissionsPlaceholder:`No permissions selected`,permissionsSummary:`{resources} resources · {count} permissions`,permissionSearch:`Filter resources…`,permissionNoMatches:`No resource matches.`,customPermissions:`Custom permissions`,customPermission:`permission:resource`,permissionsSelected:`{count} selected`,newRole:`New role`,editRole:`Edit role`,newTenant:`New tenant`,editTenant:`Edit tenant`,resources:{content:`Content`,media:`Media`,category:`Categories`,tag:`Tags`,menu:`Menus`,user:`Users`,roles:`Roles`,theme:`Themes`,plugin:`Plugins`,setting:`Settings`,webhook:`Webhooks`,tenants:`Tenants`,audit:`Audit`,build:`Builds`,system:`System`}},T={title:`Logs`,description:`Complete audit history of actions performed in the CMS.`,retentionTitle:`Log retention`,retentionDescription:`Logs older than this period are removed automatically.`,retentionDays:`Keep logs for (days)`,retentionSaved:`Log retention updated.`,historyTitle:`Audit history`,actionFilter:`Filter by action`,resourceFilter:`Filter by resource`,loading:`Loading logs…`,empty:`No actions recorded yet.`,system:`System`,columns:{date:`Date`,action:`Action`,resource:`Resource`,user:`User`,status:`Status`,ip:`IP`}},E={title:`Webhooks`,description:`Send CMS events to external services with configurable authentication.`,listTitle:`Configured webhooks`,new:`New webhook`,create:`Create webhook`,edit:`Edit webhook`,url:`Endpoint URL`,events:`Events`,selectEvents:`Select one or more events`,searchEvents:`Search events…`,noEvents:`No events found.`,eventsRequired:`Select at least one event.`,authentication:`Authentication`,active:`Active`,token:`Bearer token`,username:`Username`,password:`Password`,headerName:`Header name`,apiKeyValue:`API key value`,secret:`HMAC secret`,signatureHeader:`Signature header`,keepExisting:`Leave blank to keep current value`,loading:`Loading webhooks…`,empty:`No webhooks configured.`,auth:{none:`None`,bearer:`Bearer token`,basic:`Basic authentication`,apiKey:`API key`,hmac_sha256:`HMAC SHA-256`}},D={title:`API keys`,description:`Issue one-time credentials so external apps can exchange an API key for access and refresh JWTs and consume the content API.`,howItWorks:`The key is used only once, at POST /api/v1/auth/api-key-login, to obtain JWTs. It never authorizes requests directly.`,listTitle:`Issued keys`,new:`New API key`,create:`Create API key`,createSubmit:`Create key`,prefix:`Prefix`,lastUsed:`Last used`,neverUsed:`Never used`,revoke:`Revoke`,revoked:`API key revoked.`,loading:`Loading API keys…`,empty:`No API keys issued.`,status:{active:`Active`,oneTime:`Single-use`,expired:`Expired`,revoked:`Revoked`},form:{name:`Name`,namePlaceholder:`e.g. Mobile app backend`,user:`Identity (user)`,currentUser:`Current user`,expiresAt:`Expires at (optional)`,oneTime:`Single-use (revoke automatically after the first login)`,oneTimeHint:`Recommended for integrations that can exchange the key for JWTs immediately.`},errors:{nameRequired:`Name is required.`},created:{title:`API key created`,warning:`Copy this value now — it will never be shown again. If you lose it, revoke the key and create a new one.`,value:`API key`,howToUse:`Use it once to obtain JWTs:`,copy:`Copy`,copied:`Copied!`}},O={title:`Plugins`,description:`View installed plugins.`,directoryHint:`Detected automatically from the project's plugins/ directory. To install, update or activate a plugin, place its files in plugins/ and restart the server (okcms start, pm2 or docker).`,columns:{name:`Name`,version:`Version`,status:`Status`,enabled:`Enabled for tenant`},status:{active:`Active`,installed:`Installed`,inactive:`Inactive`,quarantined:`Quarantined`,missing:`Missing`,loadFailed:`Load failed`},install:`Install plugin`,uninstall:`Uninstall`,confirmUninstall:`Uninstall {name}?`,name:`Plugin name`,version:`Version`,manifest:`Manifest (JSON)`,loadError:`Could not load plugins.`,installError:`Could not install the plugin.`,uninstallError:`Could not uninstall the plugin.`,empty:`No plugins installed.`,enabledForTenant:`Active for this tenant`,enabledYes:`Yes`,enabledNo:`No`},k={title:`Themes`,description:`Manage installed themes.`,directoryHint:`Detected automatically from the project's themes/ directory. Use the CLI or deploy files to add themes.`,version:`Version`,active:`Active`,status:{active:`Active`,installed:`Installed`,inactive:`Inactive`},activate:`Activate`,deactivate:`Deactivate`,customize:`Customize`,install:`Install theme`,name:`Theme name`,manifest:`Manifest (JSON)`,loadError:`Could not load themes.`,activateError:`Could not activate the theme.`,deactivateError:`Could not deactivate the theme.`,deactivateBlocked:`At least one theme must remain active.`,installError:`Could not install the theme.`,reload:`Reload`,empty:`No themes installed.`},A={title:`Page not found`,description:`The address may be out of date or the page may have moved. Check the URL or pick one of the sections below.`,requestedPath:`You tried to open`,suggestionsLabel:`Or visit one of these`,goHome:`Back to home`,goBack:`Go back`},j={notice:`Request limit reached — wait a few seconds and try again.`,noticeRetry:`Request limit reached — retrying automatically in {seconds}s.`},M={title:`Login`,subtitle:`Sign in to your account`,email:`Email`,password:`Password`,submit:`Sign In`,failed:`Invalid email or password`},N={save:`Save`,cancel:`Cancel`,delete:`Delete`,edit:`Edit`,close:`Close`,confirm:`Confirm`,loading:`Loading…`,yes:`Yes`,no:`No`,search:`Search`,filter:`Filter`,create:`Create`,update:`Update`,remove:`Remove`,viewAll:`View All`,back:`Back`,next:`Next`,previous:`Previous`,page:`Page`,of:`of`,items:`items`,item:`item`,empty:`No {items} found.`,toast:{success:`✓`,error:`Error: {message}`},status:{active:`Active`,inactive:`Inactive`,draft:`Draft`,published:`Published`,archived:`Archived`,locked:`Locked`},language:`Language`,refresh:`Refresh`,actions:`Actions`,add:`Add`},P={justNow:`just now`,minAgo:`minutes ago`,ago:`ago`,published:`Published`,updated:`Updated`,newUser:`New user: {name}`},F={mainMenu:`Main menu`,notifications:`Notifications`,notificationsEmpty:`No recent activity`,settings:`Settings`,toggleSidebar:`Toggle sidebar`,userMenu:`User menu`},I={copyright:`© 2026 OkCMS. All rights reserved.`,links:`Links`,website:`Website`,github:`GitHub`,docs:`Documentation`,community:`Community`,poweredBy:`Powered by Oktis Works`},L={title:`Help`,label:`Help`,tabs:`Help topics`,topics:{overview:{label:`Overview`,content:`<h4>Welcome to the OkCMS Dashboard</h4><p>This dashboard gives you an overview of your site's content and activity.</p><h4>Available Widgets</h4><ul><li><strong>At a Glance:</strong> overview of posts, pages, media, and users</li><li><strong>Quick Draft:</strong> save drafts quickly from the dashboard</li><li><strong>Activity:</strong> recent site activity and updates</li></ul>`},content:{label:`Content Management`,content:`<h4>Managing Content</h4><p>Create, edit, and publish content from the Content section.</p><h4>Quick Actions</h4><ul><li>Click "New Content" to create a new post or page</li><li>Use filters to find specific content</li><li>Bulk actions available for multiple items</li></ul>`},media:{label:`Media Library`,content:`<h4>Managing Media</h4><p>Upload and manage images, videos, and documents.</p><h4>Tips</h4><ul><li>Drag and drop files to upload</li><li>Add alt text for accessibility</li><li>Organize with folders (coming soon)</li></ul>`}}},R={title:`Screen Options`,label:`Screen Options`,showOnScreen:`Show on screen`},z={title:`Customizer`,description:`Adjust the active theme settings with a live preview. Changes apply to the preview instantly and only persist when you save.`,loadError:`Failed to load themes.`,saveError:`Failed to save the theme settings.`,noTheme:`No active theme to customize.`,goToThemes:`Go to Themes`,noSettings:`This theme declares no customizable settings (manifest.settings).`,save:`Save`,saving:`Saving...`,saved:`Saved.`,reset:`Reset`,refreshPreview:`Refresh preview`,previewHint:`The preview overlays your draft on top of the saved settings — it is request-only and never persists.`,previewPath:`Preview path`,previewTitle:`Theme preview`},B={title:`Comments`,description:`Moderate visitor comments: approve, mark as spam, trash or delete permanently.`,loading:`Loading comments...`,empty:`No comments in this queue.`,reload:`Reload`,author:`Author`,comment:`Comment`,inReplyTo:`Content`,submitted:`Submitted`,approve:`Approve`,spam:`Spam`,trash:`Trash`,delete:`Delete`,confirmDelete:`Delete this comment permanently? This cannot be undone.`,status:{pending:`Pending`,approved:`Approved`,spam:`Spam`,trashed:`Trash`}},V={layout:g,dashboard:_,content:v,media:y,users:b,settings:x,menus:S,resources:C,access:w,logs:T,webhooks:E,apiKeys:D,plugins:O,themes:k,notFound:A,rateLimit:j,login:M,common:N,activity:P,adminBar:F,footer:I,helpTabs:L,screenOptions:R,customizer:z,comments:B},H=new Map,U=V,[W,G]=n(0),K=null;function q(e){return(e.split(`.`).at(-1)??e).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/[-_]+/g,` `).replace(/\s+/g,` `).trim().replace(/^\w/,e=>e.toUpperCase())}function J(e,t){return function(n,r){let i=n.split(`.`),a=e;for(let e of i)if(a&&typeof a==`object`&&e in a)a=a[e];else{a=t;for(let e of i)if(a&&typeof a==`object`&&e in a)a=a[e];else return q(n);break}return typeof a==`string`?r?a.replace(/\{(\w+)\}/g,(e,t)=>String(r[t]??``)):a:q(n)}}async function Y(e){if(H.has(e))return H.get(e);let[t,n]=await Promise.all([c(e),c(`en`)]),r=J(t,n);return H.set(e,r),r}var X=J(U,U),Z=`en`,Q=!0,ae=`okcms:locale-changed`;function $(){typeof window<`u`&&window.dispatchEvent(new CustomEvent(ae,{detail:{locale:Z}}))}function oe(e){return t(async()=>{Q&&(K||=(async()=>{let t=e??await p();Z=t,X=await Y(t),Q=!1,G(e=>e+1),$()})(),await K)}),{t:(e,t)=>(W(),X(e,t)),locale:()=>(W(),Z),changeLocale:async e=>{Q=!0,Z=e,X=await Y(e),Q=!1,G(e=>e+1),$(),await m(e)},get loading(){return Q}}}export{ee as a,te as i,oe as n,a as o,u as r,ne as s,Y as t};
@@ -1 +0,0 @@
1
- var e=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),t=function(e){return`/`+e},n={},r=function(e){return e.pathname.endsWith(`.css`)},i=function(i,a,o){let s=Promise.resolve();if(a&&a.length>0){let i,c=document.querySelector(`meta[property=csp-nonce]`),l=c?.nonce||c?.getAttribute(`nonce`);function u(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function d(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}s=u(a.map(a=>{a=t(a,o);let s=d(a);if(s.href in n)return;n[s.href]=!0;let c=r(s);if(i===void 0){i={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];i.all.add(n.href),n.rel===`stylesheet`&&i.styles.add(n.href)}}if((c?i.styles:i.all).has(s.href))return;let u=document.createElement(`link`);if(u.rel=c?`stylesheet`:e,c||(u.as=`script`),u.crossOrigin=``,u.href=s.href,l&&u.setAttribute(`nonce`,l),document.head.appendChild(u),c)return new Promise((e,t)=>{u.addEventListener(`load`,e),u.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${s}`)))})}).filter(e=>e!==void 0))}function c(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then(e=>{for(let t of e||[])t.status===`rejected`&&c(t.reason);return i().catch(c)})};export{i as t};
@@ -1 +0,0 @@
1
- import{S as e,a as t,h as n,i as r,l as i,p as a,r as o,s,y as c}from"./solid.Ck4Vtfe4.js";import{_ as l,a as u,f as d,h as f,i as p,l as m,o as h,p as g,s as _,t as v,u as y}from"./web.DD6VKaIp.js";import{t as b}from"./preload-helper.oCYlU9a4.js";import{n as x}from"./api.53l1ob4Z.js";var S=l(`<span class=muted>…`),C=l(`<span class=muted>⚙ <!$><!/>`),w=l(`<div class=sidebar__submenu>`),T=l(`<div class=sidebar-plugins__group><a class=sidebar__link><!$><!/> <!$><!/></a><!$><!/>`),E=l(`<span aria-hidden=true>`),D=l(`<a class="sidebar__link sidebar__link--sub">`),O=l(`<div class=dashboard-widgets>`),k=l(`<div class="card widget"><h3 class=stat-label></h3><div>`),A=l(`<div class=notices role=status aria-live=polite>`),j=l(`<button type=button class=notice__close aria-label=Dispensar>×`),M=l(`<div><span></span><!$><!/>`),N=l(`<div class="metabox card"><h3 class=metabox__title></h3><div class=metabox__body>`),P=l(`<div class=action-links>`),F=l(`<a class=action-link>`);function I(e,t){if(e.startsWith(`@/`))return e;let n=e.indexOf(`:`);if(n===-1){let n=t??``,r=e.replace(/^\/+/,``);return n?`@/plugins/${n}/${r}`:e}let r=t??e.slice(0,n),i=e.slice(n+1);return i.startsWith(`@/`)?i:i.includes(`/`)?`@/plugins/${r}/${i.replace(/^\/+/,``)}`:`@/plugins/${r}/admin/components/${i}.tsx`}function L(t){let[o,l]=n(null),[u,d]=n(null),[f,p]=n(!0);return e(async()=>{try{let e=I(t.componentId,t.plugin),n=await b(()=>import(e),[]),r=n.default??Object.values(n).find(e=>typeof e==`function`);if(!r)throw Error(`componente default ausente no módulo`);l(()=>r)}catch(e){console.warn(`[PluginComponentHost] falha ao carregar ${t.componentId}:`,e),d(e instanceof Error?e.message:String(e))}finally{p(!1)}}),i(s,{get children(){return[i(r,{get when(){return f()},get children(){var e=h(S);return a(()=>g(e,`data-plugin-component-loading`,t.componentId)),e}}),i(r,{get when(){return u()||!o()},get children(){var e=h(C),n=e.firstChild.nextSibling,[r,i]=_(n.nextSibling);return m(e,()=>t.componentId,r,i),a(n=>{var r=t.componentId,i=u()??``;return r!==n.e&&g(e,`data-plugin-component-error`,n.e=r),i!==n.t&&g(e,`title`,n.t=i),n},{e:void 0,t:void 0}),e}}),i(r,{when:!0,get children(){return i(v,c({get component(){return o()}},()=>t.extraProps??{}))}})]}})}function R(e){let n=()=>e.extensions.menuPages.filter(t=>e.can(t.capability??`read`)),r=t=>e.extensions.submenuPages.filter(e=>e.parentSlug===t).filter(t=>e.can(t.capability??`read`)).sort((e,t)=>(e.position??0)-(t.position??0));return i(o,{get each(){return n()},children:e=>(()=>{var n=h(T),s=n.firstChild,c=s.firstChild,[l,u]=_(c.nextSibling),d=l.nextSibling.nextSibling,[f,p]=_(d.nextSibling),v=s.nextSibling,[b,x]=_(v.nextSibling);return m(s,(()=>{var t=y(()=>!!e.icon);return()=>t()?(()=>{var t=h(E);return m(t,()=>e.icon),t})():null})(),l,u),m(s,()=>e.label,f,p),m(n,i(t,{get when(){return r(e.slug).length>0},get children(){var t=h(w);return m(t,i(o,{get each(){return r(e.slug)},children:e=>(()=>{var t=h(D);return m(t,()=>e.label),a(()=>g(t,`href`,`/plugins/${e.slug}`)),t})()})),t}}),b,x),a(t=>{var r=e.slug,i=`/plugins/${e.slug}`;return r!==t.e&&g(n,`data-plugin-menu`,t.e=r),i!==t.t&&g(s,`href`,t.t=i),t},{e:void 0,t:void 0}),n})()})}function z(e){return i(t,{get when(){return e.extensions.dashboardWidgets.length>0},get children(){var t=h(O);return m(t,i(o,{get each(){return e.extensions.dashboardWidgets},children:e=>{let t=e.componentId.split(`:`)[0]??e.id.split(`:`)[0]??`unknown`;return(()=>{var n=h(k),r=n.firstChild,o=r.nextSibling;return g(n,`data-plugin`,t),m(r,()=>e.title),g(o,`data-plugin`,t),m(o,i(L,{get componentId(){return e.componentId},plugin:t})),a(t=>{var r=e.id,i=`span ${e.columnsSpan??1}`,a=e.componentId;return r!==t.e&&g(n,`data-widget-id`,t.e=r),i!==t.t&&f(n,`grid-column`,t.t=i),a!==t.a&&g(o,`data-plugin-component`,t.a=a),t},{e:void 0,t:void 0,a:void 0}),n})()}})),t}})}function B(e){return(()=>{var n=h(A);return m(n,i(o,{get each(){return e.extensions.notices},children:n=>{let r=n.id.split(`:`)[0]??`unknown`;return(()=>{var o=h(M),s=o.firstChild,c=s.nextSibling,[l,u]=_(c.nextSibling);return g(o,`data-plugin`,r),m(s,()=>n.message),m(o,i(t,{get when(){return y(()=>n.dismissible!==!1)()&&e.onDismiss},get children(){var t=h(j);return t.$$click=()=>e.onDismiss?.(n.id),d(),t}}),l,u),a(()=>p(o,`notice notice--${n.level}`)),o})()}})),n})()}function V(e){let t=()=>e.extensions.metaBoxes.filter(t=>t.screens.includes(e.screen)&&t.context===e.context).sort((e,t)=>{let n={high:0,default:1,low:2};return n[e.priority]-n[t.priority]});return i(o,{get each(){return t()},children:e=>{let t=e.componentId.split(`:`)[0]??e.id.split(`:`)[0]??`unknown`;return(()=>{var n=h(N),r=n.firstChild,o=r.nextSibling;return g(n,`data-plugin`,t),m(r,()=>e.title),g(o,`data-plugin`,t),m(o,i(L,{get componentId(){return e.componentId},plugin:t})),a(t=>{var r=e.id,i=e.componentId;return r!==t.e&&g(n,`data-metabox-id`,t.e=r),i!==t.t&&g(o,`data-plugin-component`,t.t=i),t},{e:void 0,t:void 0}),n})()}})}function H(e){return i(t,{get when(){return e.extensions.actionLinks.length>0},get children(){var t=h(P);return m(t,i(o,{get each(){return e.extensions.actionLinks},children:e=>(()=>{var t=h(F);return m(t,()=>e.label),a(()=>g(t,`href`,e.url)),t})()})),t}})}u([`click`]);function U(){return{menuPages:[],submenuPages:[],dashboardWidgets:[],metaBoxes:[],notices:[],columns:{},columnRenderers:{},actionLinks:[],editors:[]}}var[W,G]=n(U()),K=null,q=new Set;function J(e){let t=typeof window<`u`&&typeof window.requestIdleCallback==`function`?e=>window.requestIdleCallback(()=>e()):e=>setTimeout(e,1),n=[...e.dashboardWidgets.map(e=>e.componentId),...e.metaBoxes.map(e=>e.componentId),...e.editors.map(e=>e.componentId),...Object.values(e.columnRenderers).flatMap(e=>Object.values(e))];for(let e of n)e&&!q.has(e)&&(q.add(e),t(()=>{b(()=>import(I(e)),[]).catch(()=>{})}))}function Y(){return K||=x.getAdminExtensions().then(e=>{G(e),J(e)}).catch(()=>{}),K.then(()=>W())}export{z as a,L as c,R as i,Y as n,V as o,H as r,B as s,U as t};