web-mojo 2.2.102 → 2.3.1

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 (127) hide show
  1. package/CHANGELOG.md +131 -0
  2. package/dist/admin-models.cjs.js +1 -1
  3. package/dist/admin-models.es.js +1 -1
  4. package/dist/admin.cjs.js +1 -1
  5. package/dist/admin.es.js +1 -1
  6. package/dist/auth.cjs.js +1 -1
  7. package/dist/auth.cjs.js.map +1 -1
  8. package/dist/auth.es.js +1 -1
  9. package/dist/auth.es.js.map +1 -1
  10. package/dist/charts.cjs.js +1 -1
  11. package/dist/charts.es.js +1 -1
  12. package/dist/chunks/{AssistantPanelView-CMRTtoqS.js → AssistantPanelView-CE6me7sJ.js} +2 -2
  13. package/dist/chunks/{AssistantPanelView-CMRTtoqS.js.map → AssistantPanelView-CE6me7sJ.js.map} +1 -1
  14. package/dist/chunks/{AssistantPanelView-CaVkWhVD.js → AssistantPanelView-DvsLAAIF.js} +2 -2
  15. package/dist/chunks/{AssistantPanelView-CaVkWhVD.js.map → AssistantPanelView-DvsLAAIF.js.map} +1 -1
  16. package/dist/chunks/{ChatView-B73uox2v.js → ChatView-CXykdAV1.js} +2 -2
  17. package/dist/chunks/{ChatView-B73uox2v.js.map → ChatView-CXykdAV1.js.map} +1 -1
  18. package/dist/chunks/{ChatView-W8daOwIo.js → ChatView-ys5MIiBf.js} +2 -2
  19. package/dist/chunks/{ChatView-W8daOwIo.js.map → ChatView-ys5MIiBf.js.map} +1 -1
  20. package/dist/chunks/{Collection-BZlmtcuL.js → Collection-BpUmNuDZ.js} +2 -2
  21. package/dist/chunks/{Collection-BZlmtcuL.js.map → Collection-BpUmNuDZ.js.map} +1 -1
  22. package/dist/chunks/{Collection-Bwoq6muu.js → Collection-CY6BblFn.js} +2 -2
  23. package/dist/chunks/{Collection-Bwoq6muu.js.map → Collection-CY6BblFn.js.map} +1 -1
  24. package/dist/chunks/{ContextMenu-q76hjQb6.js → ContextMenu-PtN50qH2.js} +2 -2
  25. package/dist/chunks/{ContextMenu-q76hjQb6.js.map → ContextMenu-PtN50qH2.js.map} +1 -1
  26. package/dist/chunks/{ContextMenu-BPPtuqKk.js → ContextMenu-XQVFU0mL.js} +2 -2
  27. package/dist/chunks/{ContextMenu-BPPtuqKk.js.map → ContextMenu-XQVFU0mL.js.map} +1 -1
  28. package/dist/chunks/{DataView-k-7wmk5_.js → DataView-BTi_BZHx.js} +2 -2
  29. package/dist/chunks/{DataView-k-7wmk5_.js.map → DataView-BTi_BZHx.js.map} +1 -1
  30. package/dist/chunks/{DataView-BbrwHMV4.js → DataView-WHRh1o6E.js} +2 -2
  31. package/dist/chunks/{DataView-BbrwHMV4.js.map → DataView-WHRh1o6E.js.map} +1 -1
  32. package/dist/chunks/{FormView-Dcy7XOtC.js → FormView-BzaGMf5_.js} +3 -3
  33. package/dist/chunks/{FormView-Dcy7XOtC.js.map → FormView-BzaGMf5_.js.map} +1 -1
  34. package/dist/chunks/{FormView-DPSuwWMq.js → FormView-DTD-Zy22.js} +3 -3
  35. package/dist/chunks/{FormView-DPSuwWMq.js.map → FormView-DTD-Zy22.js.map} +1 -1
  36. package/dist/chunks/{ListView-iGBsD4a7.js → ListView-BsnnTcmC.js} +2 -2
  37. package/dist/chunks/{ListView-iGBsD4a7.js.map → ListView-BsnnTcmC.js.map} +1 -1
  38. package/dist/chunks/{ListView-DHC-yBIw.js → ListView-Xf7kO6Me.js} +2 -2
  39. package/dist/chunks/{ListView-DHC-yBIw.js.map → ListView-Xf7kO6Me.js.map} +1 -1
  40. package/dist/chunks/{MetricsCountryMapView-CAD9wR_T.js → MetricsCountryMapView-BzGOi1d2.js} +2 -2
  41. package/dist/chunks/{MetricsCountryMapView-CAD9wR_T.js.map → MetricsCountryMapView-BzGOi1d2.js.map} +1 -1
  42. package/dist/chunks/{MetricsCountryMapView-Dzk3Yrzx.js → MetricsCountryMapView-C-S00Wiw.js} +2 -2
  43. package/dist/chunks/{MetricsCountryMapView-Dzk3Yrzx.js.map → MetricsCountryMapView-C-S00Wiw.js.map} +1 -1
  44. package/dist/chunks/{Modal-DuULCMFZ.js → Modal-GWjyfcz5.js} +3 -3
  45. package/dist/chunks/Modal-GWjyfcz5.js.map +1 -0
  46. package/dist/chunks/{Modal-DBJU16cc.js → Modal-wrfWfQhv.js} +3 -3
  47. package/dist/chunks/Modal-wrfWfQhv.js.map +1 -0
  48. package/dist/chunks/{Passkeys-CGRZ8ZMv.js → Passkeys-BviQX3_5.js} +2 -2
  49. package/dist/chunks/{Passkeys-CGRZ8ZMv.js.map → Passkeys-BviQX3_5.js.map} +1 -1
  50. package/dist/chunks/{Passkeys-Dr8-oSm9.js → Passkeys-gXR1Rc6C.js} +2 -2
  51. package/dist/chunks/{Passkeys-Dr8-oSm9.js.map → Passkeys-gXR1Rc6C.js.map} +1 -1
  52. package/dist/chunks/TokenManager-C6aXkRaI.js +2 -0
  53. package/dist/chunks/TokenManager-C6aXkRaI.js.map +1 -0
  54. package/dist/chunks/TokenManager-DgvhhTqN.js +2 -0
  55. package/dist/chunks/TokenManager-DgvhhTqN.js.map +1 -0
  56. package/dist/chunks/{User-Dg7xpYEI.js → User-B_Urf7U7.js} +2 -2
  57. package/dist/chunks/{User-Dg7xpYEI.js.map → User-B_Urf7U7.js.map} +1 -1
  58. package/dist/chunks/{User-DNQhdBtI.js → User-KTBU_5cr.js} +2 -2
  59. package/dist/chunks/{User-DNQhdBtI.js.map → User-KTBU_5cr.js.map} +1 -1
  60. package/dist/chunks/{UserProfileView-Bpz3VZmP.js → UserProfileView-BmduMJ86.js} +2 -2
  61. package/dist/chunks/{UserProfileView-Bpz3VZmP.js.map → UserProfileView-BmduMJ86.js.map} +1 -1
  62. package/dist/chunks/{UserProfileView-B5nczdfw.js → UserProfileView-COxSyPB0.js} +2 -2
  63. package/dist/chunks/{UserProfileView-B5nczdfw.js.map → UserProfileView-COxSyPB0.js.map} +1 -1
  64. package/dist/chunks/{View-Yazho7OL.js → View-C8UWvaSM.js} +2 -2
  65. package/dist/chunks/{View-Yazho7OL.js.map → View-C8UWvaSM.js.map} +1 -1
  66. package/dist/chunks/{View-C5n3sIFi.js → View-Cvs2TY7b.js} +2 -2
  67. package/dist/chunks/{View-C5n3sIFi.js.map → View-Cvs2TY7b.js.map} +1 -1
  68. package/dist/chunks/{WebApp-CeiDNV6L.js → WebApp-DuwanN2O.js} +2 -2
  69. package/dist/chunks/{WebApp-CeiDNV6L.js.map → WebApp-DuwanN2O.js.map} +1 -1
  70. package/dist/chunks/{WebApp-irKlhuFX.js → WebApp-kbRq7dM_.js} +2 -2
  71. package/dist/chunks/{WebApp-irKlhuFX.js.map → WebApp-kbRq7dM_.js.map} +1 -1
  72. package/dist/chunks/admin-CszsTA0T.js +2 -0
  73. package/dist/chunks/admin-CszsTA0T.js.map +1 -0
  74. package/dist/chunks/admin-vsKDrnpV.js +2 -0
  75. package/dist/chunks/admin-vsKDrnpV.js.map +1 -0
  76. package/dist/chunks/{exportChart-Dk8D_du5.js → exportChart-Bkxr7mCe.js} +2 -2
  77. package/dist/chunks/exportChart-Bkxr7mCe.js.map +1 -0
  78. package/dist/chunks/{exportChart-DbsHDCxw.js → exportChart-Dn2pioNl.js} +2 -2
  79. package/dist/chunks/exportChart-Dn2pioNl.js.map +1 -0
  80. package/dist/chunks/{index-BNjCQA7q.js → index-BCWkcyOy.js} +2 -2
  81. package/dist/chunks/{index-BNjCQA7q.js.map → index-BCWkcyOy.js.map} +1 -1
  82. package/dist/chunks/{index-DBsIDOAa.js → index-CJeTVskY.js} +2 -2
  83. package/dist/chunks/{index-DBsIDOAa.js.map → index-CJeTVskY.js.map} +1 -1
  84. package/dist/chunks/version-CRFysUYb.js +2 -0
  85. package/dist/chunks/version-CRFysUYb.js.map +1 -0
  86. package/dist/chunks/version-uUvnEzFR.js +2 -0
  87. package/dist/chunks/version-uUvnEzFR.js.map +1 -0
  88. package/dist/core.css +134 -109
  89. package/dist/css/web-mojo.css +1 -1
  90. package/dist/docit.cjs.js +1 -1
  91. package/dist/docit.es.js +1 -1
  92. package/dist/index.cjs.js +1 -1
  93. package/dist/index.cjs.js.map +1 -1
  94. package/dist/index.es.js +1 -1
  95. package/dist/index.es.js.map +1 -1
  96. package/dist/lightbox.cjs.js +1 -1
  97. package/dist/lightbox.es.js +1 -1
  98. package/dist/map.cjs.js +1 -1
  99. package/dist/map.es.js +1 -1
  100. package/dist/mojo-auth.es.js +94 -65
  101. package/dist/mojo-auth.umd.js +1 -1
  102. package/dist/portal.css +32 -0
  103. package/dist/timeline.cjs.js +1 -1
  104. package/dist/timeline.es.js +1 -1
  105. package/dist/user-profile.cjs.js +1 -1
  106. package/dist/user-profile.es.js +1 -1
  107. package/dist/web-mojo.lite.iife.js +33 -9
  108. package/dist/web-mojo.lite.iife.js.map +1 -1
  109. package/dist/web-mojo.lite.iife.min.js +5 -5
  110. package/dist/web-mojo.lite.iife.min.js.map +1 -1
  111. package/package.json +1 -1
  112. package/dist/chunks/Modal-DBJU16cc.js.map +0 -1
  113. package/dist/chunks/Modal-DuULCMFZ.js.map +0 -1
  114. package/dist/chunks/TokenManager-CFsr1qUV.js +0 -2
  115. package/dist/chunks/TokenManager-CFsr1qUV.js.map +0 -1
  116. package/dist/chunks/TokenManager-CHQxK_e5.js +0 -2
  117. package/dist/chunks/TokenManager-CHQxK_e5.js.map +0 -1
  118. package/dist/chunks/admin-BkxeK68u.js +0 -2
  119. package/dist/chunks/admin-BkxeK68u.js.map +0 -1
  120. package/dist/chunks/admin-vjoNbv_1.js +0 -2
  121. package/dist/chunks/admin-vjoNbv_1.js.map +0 -1
  122. package/dist/chunks/exportChart-DbsHDCxw.js.map +0 -1
  123. package/dist/chunks/exportChart-Dk8D_du5.js.map +0 -1
  124. package/dist/chunks/version-B0cBv8MN.js +0 -2
  125. package/dist/chunks/version-B0cBv8MN.js.map +0 -1
  126. package/dist/chunks/version-DtqCY0ZY.js +0 -2
  127. package/dist/chunks/version-DtqCY0ZY.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{L as t,a as e}from"./chunks/ListView-DHC-yBIw.js";import{d as i}from"./chunks/Collection-Bwoq6muu.js";import{C as s,M as n}from"./chunks/Collection-Bwoq6muu.js";import{V as o}from"./chunks/View-C5n3sIFi.js";class TimelineViewItem extends t{constructor(t={}){super({className:"timeline-item",...t}),this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",t.template||(this.template='\n <div class="timeline-marker timeline-marker-{{displayColor}}">\n {{#hasIcon}}\n <i class="bi {{model.icon}}"></i>\n {{/hasIcon}}\n {{^hasIcon}}\n <div class="timeline-dot bg-{{displayColor}}"></div>\n {{/hasIcon}}\n </div>\n \n <div class="timeline-content">\n {{#showDate}}\n <div class="timeline-date text-muted small">\n {{formattedDate}}\n </div>\n {{/showDate}}\n \n <div class="timeline-card">\n {{#model.title}}\n <h6 class="timeline-title mb-1">{{model.title}}</h6>\n {{/model.title}}\n \n {{#model.description}}\n <p class="timeline-description mb-0">{{model.description}}</p>\n {{/model.description}}\n \n {{#model.meta}}\n <div class="timeline-meta mt-2 text-muted small">\n {{model.meta}}\n </div>\n {{/model.meta}}\n </div>\n </div>\n ')}async onInit(){await super.onInit(),this.processItemData()}processItemData(){this.displayColor=this.model?.get?.("color")||this.model?.color||this.theme;const t=!(!this.model?.get?.("icon")&&!this.model?.icon)&&"icon"===this.dotStyle;this.hasIcon=t,this.markerType=t?"icon":this.dotStyle;const e=this.model?.get?.("date")||this.model?.date;this.formattedDate=this.formatDate(e)}formatDate(t){if(!t)return"";switch(this.dateFormat){case"datetime":return i.pipe(t,"datetime");case"relative":return i.pipe(t,"timeago");default:return i.pipe(t,"date")}}async onActionSelect(t,e){t.stopPropagation(),this.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model}),this.listView&&this.listView.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model})}}class TimelineView extends e{constructor(t={}){super({className:"timeline-view",itemClass:t.itemClass||TimelineViewItem,selectionMode:"none",emptyMessage:t.emptyMessage||"No timeline events to display",template:'\n <div class="timeline-container timeline-{{position}}">\n {{#loading}}\n <div class="timeline-loading text-center py-4">\n <div class="spinner-border spinner-border-sm" role="status">\n <span class="visually-hidden">Loading...</span>\n </div>\n <span class="ms-2 text-muted">Loading timeline...</span>\n </div>\n {{/loading}}\n {{^loading}}\n {{#isEmpty}}\n <div class="timeline-empty text-center text-muted py-4">\n <i class="bi bi-clock-history fs-1 d-block mb-2"></i>\n <p>{{emptyMessage}}</p>\n </div>\n {{/isEmpty}}\n {{^isEmpty}}\n <div class="timeline" data-container="items"></div>\n {{/isEmpty}}\n {{/loading}}\n </div>\n ',...t}),this.position=t.position||"left",this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",this.groupBy=t.groupBy||"none"}_createItemView(t,e){if(this.itemViews.has(t.id))return;const i=new this.itemClass({model:t,index:e,listView:this,template:this.itemTemplate,dateFormat:this.dateFormat,dotStyle:this.dotStyle,showDate:this.showDate,theme:this.theme});return this.itemViews.set(t.id,i),i.on("item:click",this._onItemClick.bind(this)),i}_onItemClick(t){this.emit("item:click",t)}setPosition(t){return"left"!==t&&"center"!==t?(console.warn('Invalid position. Use "left" or "center"'),this):(this.position=t,this.isMounted()&&this.render(),this)}setDateFormat(t){return this.dateFormat=t,this.forEachItem(e=>{e.dateFormat=t,e.processItemData(),e.isMounted()&&e.render()}),this}setDotStyle(t){return this.dotStyle=t,this.forEachItem(e=>{e.dotStyle=t,e.processItemData(),e.isMounted()&&e.render()}),this}toggleDates(t=null){return this.showDate=null!==t?t:!this.showDate,this.forEachItem(t=>{t.showDate=this.showDate,t.isMounted()&&t.render()}),this}}export{s as Collection,e as ListView,t as ListViewItem,n as Model,TimelineView,TimelineViewItem,o as View};
1
+ import{L as t,a as e}from"./chunks/ListView-Xf7kO6Me.js";import{d as i}from"./chunks/Collection-CY6BblFn.js";import{C as s,M as n}from"./chunks/Collection-CY6BblFn.js";import{V as o}from"./chunks/View-Cvs2TY7b.js";class TimelineViewItem extends t{constructor(t={}){super({className:"timeline-item",...t}),this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",t.template||(this.template='\n <div class="timeline-marker timeline-marker-{{displayColor}}">\n {{#hasIcon}}\n <i class="bi {{model.icon}}"></i>\n {{/hasIcon}}\n {{^hasIcon}}\n <div class="timeline-dot bg-{{displayColor}}"></div>\n {{/hasIcon}}\n </div>\n \n <div class="timeline-content">\n {{#showDate}}\n <div class="timeline-date text-muted small">\n {{formattedDate}}\n </div>\n {{/showDate}}\n \n <div class="timeline-card">\n {{#model.title}}\n <h6 class="timeline-title mb-1">{{model.title}}</h6>\n {{/model.title}}\n \n {{#model.description}}\n <p class="timeline-description mb-0">{{model.description}}</p>\n {{/model.description}}\n \n {{#model.meta}}\n <div class="timeline-meta mt-2 text-muted small">\n {{model.meta}}\n </div>\n {{/model.meta}}\n </div>\n </div>\n ')}async onInit(){await super.onInit(),this.processItemData()}processItemData(){this.displayColor=this.model?.get?.("color")||this.model?.color||this.theme;const t=!(!this.model?.get?.("icon")&&!this.model?.icon)&&"icon"===this.dotStyle;this.hasIcon=t,this.markerType=t?"icon":this.dotStyle;const e=this.model?.get?.("date")||this.model?.date;this.formattedDate=this.formatDate(e)}formatDate(t){if(!t)return"";switch(this.dateFormat){case"datetime":return i.pipe(t,"datetime");case"relative":return i.pipe(t,"timeago");default:return i.pipe(t,"date")}}async onActionSelect(t,e){t.stopPropagation(),this.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model}),this.listView&&this.listView.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model})}}class TimelineView extends e{constructor(t={}){super({className:"timeline-view",itemClass:t.itemClass||TimelineViewItem,selectionMode:"none",emptyMessage:t.emptyMessage||"No timeline events to display",template:'\n <div class="timeline-container timeline-{{position}}">\n {{#loading}}\n <div class="timeline-loading text-center py-4">\n <div class="spinner-border spinner-border-sm" role="status">\n <span class="visually-hidden">Loading...</span>\n </div>\n <span class="ms-2 text-muted">Loading timeline...</span>\n </div>\n {{/loading}}\n {{^loading}}\n {{#isEmpty}}\n <div class="timeline-empty text-center text-muted py-4">\n <i class="bi bi-clock-history fs-1 d-block mb-2"></i>\n <p>{{emptyMessage}}</p>\n </div>\n {{/isEmpty}}\n {{^isEmpty}}\n <div class="timeline" data-container="items"></div>\n {{/isEmpty}}\n {{/loading}}\n </div>\n ',...t}),this.position=t.position||"left",this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",this.groupBy=t.groupBy||"none"}_createItemView(t,e){if(this.itemViews.has(t.id))return;const i=new this.itemClass({model:t,index:e,listView:this,template:this.itemTemplate,dateFormat:this.dateFormat,dotStyle:this.dotStyle,showDate:this.showDate,theme:this.theme});return this.itemViews.set(t.id,i),i.on("item:click",this._onItemClick.bind(this)),i}_onItemClick(t){this.emit("item:click",t)}setPosition(t){return"left"!==t&&"center"!==t?(console.warn('Invalid position. Use "left" or "center"'),this):(this.position=t,this.isMounted()&&this.render(),this)}setDateFormat(t){return this.dateFormat=t,this.forEachItem(e=>{e.dateFormat=t,e.processItemData(),e.isMounted()&&e.render()}),this}setDotStyle(t){return this.dotStyle=t,this.forEachItem(e=>{e.dotStyle=t,e.processItemData(),e.isMounted()&&e.render()}),this}toggleDates(t=null){return this.showDate=null!==t?t:!this.showDate,this.forEachItem(t=>{t.showDate=this.showDate,t.isMounted()&&t.render()}),this}}export{s as Collection,e as ListView,t as ListViewItem,n as Model,TimelineView,TimelineViewItem,o as View};
2
2
  //# sourceMappingURL=timeline.es.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/UserProfileView-Bpz3VZmP.js"),i=require("./chunks/index-BNjCQA7q.js");exports.PasskeySetupView=e.PasskeySetupView,exports.ProfileApiKeysSection=e.ProfileApiKeysSection,exports.ProfileConnectedSection=e.ProfileConnectedSection,exports.ProfileDevicesSection=e.ProfileDevicesSection,exports.ProfileGroupsSection=e.ProfileGroupsSection,exports.ProfileNotificationsSection=e.ProfileNotificationsSection,exports.ProfileOverviewSection=e.ProfileOverviewSection,exports.ProfilePermissionsSection=e.ProfilePermissionsSection,exports.ProfilePersonalSection=e.ProfilePersonalSection,exports.ProfileSecurityEventsSection=e.ProfileSecurityEventsSection,exports.ProfileSecuritySection=e.ProfileSecuritySection,exports.ProfileSessionsSection=e.ProfileSessionsSection,exports.UserProfileView=e.UserProfileView,exports.ProfileActivitySection=i.ProfileActivitySection;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/UserProfileView-BmduMJ86.js"),i=require("./chunks/index-BCWkcyOy.js");exports.PasskeySetupView=e.PasskeySetupView,exports.ProfileApiKeysSection=e.ProfileApiKeysSection,exports.ProfileConnectedSection=e.ProfileConnectedSection,exports.ProfileDevicesSection=e.ProfileDevicesSection,exports.ProfileGroupsSection=e.ProfileGroupsSection,exports.ProfileNotificationsSection=e.ProfileNotificationsSection,exports.ProfileOverviewSection=e.ProfileOverviewSection,exports.ProfilePermissionsSection=e.ProfilePermissionsSection,exports.ProfilePersonalSection=e.ProfilePersonalSection,exports.ProfileSecurityEventsSection=e.ProfileSecurityEventsSection,exports.ProfileSecuritySection=e.ProfileSecuritySection,exports.ProfileSessionsSection=e.ProfileSessionsSection,exports.UserProfileView=e.UserProfileView,exports.ProfileActivitySection=i.ProfileActivitySection;
2
2
  //# sourceMappingURL=user-profile.cjs.js.map
@@ -1,2 +1,2 @@
1
- import{P as e,a as i,b as o,c as s,d as r,e as n,f as t,g as c,h as a,i as f,j as P,k as S,U as l}from"./chunks/UserProfileView-B5nczdfw.js";import{ProfileActivitySection as p}from"./chunks/index-DBsIDOAa.js";export{e as PasskeySetupView,p as ProfileActivitySection,i as ProfileApiKeysSection,o as ProfileConnectedSection,s as ProfileDevicesSection,r as ProfileGroupsSection,n as ProfileNotificationsSection,t as ProfileOverviewSection,c as ProfilePermissionsSection,a as ProfilePersonalSection,f as ProfileSecurityEventsSection,P as ProfileSecuritySection,S as ProfileSessionsSection,l as UserProfileView};
1
+ import{P as e,a as i,b as o,c as s,d as r,e as n,f as t,g as c,h as a,i as f,j as P,k as S,U as l}from"./chunks/UserProfileView-COxSyPB0.js";import{ProfileActivitySection as p}from"./chunks/index-CJeTVskY.js";export{e as PasskeySetupView,p as ProfileActivitySection,i as ProfileApiKeysSection,o as ProfileConnectedSection,s as ProfileDevicesSection,r as ProfileGroupsSection,n as ProfileNotificationsSection,t as ProfileOverviewSection,c as ProfilePermissionsSection,a as ProfilePersonalSection,f as ProfileSecurityEventsSection,P as ProfileSecuritySection,S as ProfileSessionsSection,l as UserProfileView};
2
2
  //# sourceMappingURL=user-profile.es.js.map
@@ -5381,12 +5381,21 @@ var MOJO = (function(exports) {
5381
5381
  const modalId = options.id || `modal-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`;
5382
5382
  options.header === false || options.header === null;
5383
5383
  options.headerContent !== void 0 && options.headerContent !== null;
5384
- const bandlessClass = "";
5384
+ let resolvedStyle = options.style;
5385
+ let bandlessClass = "";
5386
+ if (options.eyebrow === false || options.eyebrow === null) {
5387
+ bandlessClass = "modal-bandless";
5388
+ } else if (options.eyebrow) {
5389
+ const safe = String(options.eyebrow).replace(/['"\\]/g, "");
5390
+ const styleVar = `--mojo-eyebrow: '${safe}'`;
5391
+ resolvedStyle = [resolvedStyle, styleVar].filter(Boolean).join("; ");
5392
+ }
5385
5393
  super({
5386
5394
  ...options,
5387
5395
  id: modalId,
5388
5396
  tagName: "div",
5389
5397
  className: `modal ${options.fade !== false ? "fade" : ""} ${bandlessClass} ${options.className || ""}`.trim().replace(/\s+/g, " "),
5398
+ style: resolvedStyle,
5390
5399
  attributes: {
5391
5400
  tabindex: "-1",
5392
5401
  "aria-hidden": "true",
@@ -5634,15 +5643,14 @@ var MOJO = (function(exports) {
5634
5643
  return filtered;
5635
5644
  }
5636
5645
  async buildBody() {
5646
+ const bodyClass = `modal-body ${this.noBodyPadding ? "modal-body-flush" : ""} ${this.bodyClass}`.replace(/\s+/g, " ").trim();
5637
5647
  if (this.bodyView) {
5638
5648
  this.bodyView.replaceById = true;
5639
- const bodyClass2 = this.noBodyPadding ? `modal-body p-0 py-4 ${this.bodyClass}` : `modal-body ${this.bodyClass}`;
5640
- return `<div class="${bodyClass2}" data-view-container="body">
5649
+ return `<div class="${bodyClass}" data-view-container="body">
5641
5650
  <div id="${this.bodyView.id}"></div>
5642
5651
  </div>`;
5643
5652
  }
5644
5653
  if (!this.body && this.body !== "") return "";
5645
- const bodyClass = this.noBodyPadding ? `modal-body p-0 ${this.bodyClass}` : `modal-body ${this.bodyClass}`;
5646
5654
  return `<div class="${bodyClass}">${this.body}</div>`;
5647
5655
  }
5648
5656
  async buildFooter() {
@@ -8816,6 +8824,25 @@ var MOJO = (function(exports) {
8816
8824
  }
8817
8825
  };
8818
8826
  class Modal {
8827
+ // ── Global eyebrow toggle ──────────────────────────────────
8828
+ //
8829
+ // The eyebrow band can be disabled app-wide by setting the
8830
+ // `mojo-no-eyebrow` class on <html>. These helpers just wrap that so
8831
+ // callers don't have to touch the DOM directly.
8832
+ //
8833
+ // Modal.setEyebrowEnabled(false); // turn the band off everywhere
8834
+ // Modal.setEyebrowEnabled(true); // turn it back on
8835
+ // if (Modal.isEyebrowEnabled()) ...
8836
+ /** Enable or disable the eyebrow band on every modal in the app. */
8837
+ static setEyebrowEnabled(enabled) {
8838
+ if (typeof document === "undefined") return;
8839
+ document.documentElement.classList.toggle("mojo-no-eyebrow", !enabled);
8840
+ }
8841
+ /** True when the eyebrow band is enabled (the default). */
8842
+ static isEyebrowEnabled() {
8843
+ if (typeof document === "undefined") return true;
8844
+ return !document.documentElement.classList.contains("mojo-no-eyebrow");
8845
+ }
8819
8846
  // ── Internal: shared render → show → resolve helper ────────
8820
8847
  //
8821
8848
  // Most static helpers want the same lifecycle: render the modal into
@@ -9250,11 +9277,8 @@ var MOJO = (function(exports) {
9250
9277
  style,
9251
9278
  ...rest2
9252
9279
  });
9253
- const result = await Modal._renderAndAwait(modal, {
9254
- buttons,
9255
- onAction: async (action) => action === "confirm" ? true : false
9256
- });
9257
- return result === true;
9280
+ const result = await Modal._renderAndAwait(modal, { buttons });
9281
+ return result === "confirm";
9258
9282
  }
9259
9283
  /**
9260
9284
  * Prompt dialog with a text input. Resolves to the entered string