@gbmtech/aurora-ui 0.3.7 → 0.3.8

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 (29) hide show
  1. package/dist/cjs/components/data-table/index.cjs +1 -1
  2. package/dist/cjs/components/data-table/index.cjs.map +1 -1
  3. package/dist/cjs/components/sidebar/index.cjs +1 -1
  4. package/dist/cjs/components/sidebar/index.cjs.map +1 -1
  5. package/dist/cjs/components/sidebar/nav-modules.cjs +1 -1
  6. package/dist/cjs/components/sidebar/nav-modules.cjs.map +1 -1
  7. package/dist/cjs/components/sidebar/nav-modules.d.ts.map +1 -1
  8. package/dist/cjs/components/sidebar/nav-user.cjs +1 -1
  9. package/dist/cjs/components/sidebar/nav-user.cjs.map +1 -1
  10. package/dist/cjs/components/sidebar/nav-user.d.ts.map +1 -1
  11. package/dist/cjs/components/sidebar/sidebar.cjs +1 -1
  12. package/dist/cjs/components/sidebar/sidebar.cjs.map +1 -1
  13. package/dist/cjs/components/sidebar/sidebar.d.ts +2 -2
  14. package/dist/cjs/components/sidebar/sidebar.d.ts.map +1 -1
  15. package/dist/esm/components/data-table/index.js +1 -2
  16. package/dist/esm/components/sidebar/index.js +1 -2
  17. package/dist/esm/components/sidebar/nav-modules.d.ts.map +1 -1
  18. package/dist/esm/components/sidebar/nav-modules.js +1 -1
  19. package/dist/esm/components/sidebar/nav-modules.js.map +1 -1
  20. package/dist/esm/components/sidebar/nav-user.d.ts.map +1 -1
  21. package/dist/esm/components/sidebar/nav-user.js +1 -1
  22. package/dist/esm/components/sidebar/nav-user.js.map +1 -1
  23. package/dist/esm/components/sidebar/sidebar.d.ts +2 -2
  24. package/dist/esm/components/sidebar/sidebar.d.ts.map +1 -1
  25. package/dist/esm/components/sidebar/sidebar.js +1 -1
  26. package/dist/esm/components/sidebar/sidebar.js.map +1 -1
  27. package/package.json +1 -1
  28. package/dist/esm/components/data-table/index.js.map +0 -1
  29. package/dist/esm/components/sidebar/index.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"@/components/data-table/data-table-date-filter":function(e){e.exports=require("./data-table-date-filter.cjs")},"@/components/data-table/data-table-faceted-filter":function(e){e.exports=require("./data-table-faceted-filter.cjs")},"./data-table-filter-list":function(e){e.exports=require("./data-table-filter-list.cjs")},"./data-table-filter-menu":function(e){e.exports=require("./data-table-filter-menu.cjs")},"@/components/data-table/data-table-pagination":function(e){e.exports=require("./data-table-pagination.cjs")},"@/components/data-table/data-table-range-filter":function(e){e.exports=require("./data-table-range-filter.cjs")},"./data-table-skeleton":function(e){e.exports=require("./data-table-skeleton.cjs")},"@/components/data-table/data-table-slider-filter":function(e){e.exports=require("./data-table-slider-filter.cjs")},"./data-table-sort-list":function(e){e.exports=require("./data-table-sort-list.cjs")},"./data-table-toolbar":function(e){e.exports=require("./data-table-toolbar.cjs")},"@/components/data-table/data-table-view-options":function(e){e.exports=require("./data-table-view-options.cjs")},"./data-table":function(e){e.exports=require("./data-table.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./data-table-action-bar"),_={};for(var a in e)"default"!==a&&(_[a]=(function(_){return e[_]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./data-table-advanced-toolbar"),_={};for(var a in t)"default"!==a&&(_[a]=(function(e){return t[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var r=__webpack_require__("./data-table-column-header"),_={};for(var a in r)"default"!==a&&(_[a]=(function(e){return r[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("@/components/data-table/data-table-date-filter"),_={};for(var a in n)"default"!==a&&(_[a]=(function(e){return n[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("@/components/data-table/data-table-faceted-filter"),_={};for(var a in i)"default"!==a&&(_[a]=(function(e){return i[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./data-table-filter-list"),_={};for(var a in o)"default"!==a&&(_[a]=(function(e){return o[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./data-table-filter-menu"),_={};for(var a in c)"default"!==a&&(_[a]=(function(e){return c[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var b=__webpack_require__("@/components/data-table/data-table-pagination"),_={};for(var a in b)"default"!==a&&(_[a]=(function(e){return b[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("@/components/data-table/data-table-range-filter"),_={};for(var a in u)"default"!==a&&(_[a]=(function(e){return u[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var d=__webpack_require__("./data-table-skeleton"),_={};for(var a in d)"default"!==a&&(_[a]=(function(e){return d[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("@/components/data-table/data-table-slider-filter"),_={};for(var a in p)"default"!==a&&(_[a]=(function(e){return p[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var l=__webpack_require__("./data-table-sort-list"),_={};for(var a in l)"default"!==a&&(_[a]=(function(e){return l[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var f=__webpack_require__("./data-table-toolbar"),_={};for(var a in f)"default"!==a&&(_[a]=(function(e){return f[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("@/components/data-table/data-table-view-options"),_={};for(var a in s)"default"!==a&&(_[a]=(function(e){return s[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var w=__webpack_require__("./data-table"),_={};for(var a in w)"default"!==a&&(_[a]=(function(e){return w[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"./data-table-date-filter":function(e){e.exports=require("./data-table-date-filter.cjs")},"./data-table-faceted-filter":function(e){e.exports=require("./data-table-faceted-filter.cjs")},"./data-table-filter-list":function(e){e.exports=require("./data-table-filter-list.cjs")},"./data-table-filter-menu":function(e){e.exports=require("./data-table-filter-menu.cjs")},"./data-table-pagination":function(e){e.exports=require("./data-table-pagination.cjs")},"./data-table-range-filter":function(e){e.exports=require("./data-table-range-filter.cjs")},"./data-table-skeleton":function(e){e.exports=require("./data-table-skeleton.cjs")},"./data-table-slider-filter":function(e){e.exports=require("./data-table-slider-filter.cjs")},"./data-table-sort-list":function(e){e.exports=require("./data-table-sort-list.cjs")},"./data-table-toolbar":function(e){e.exports=require("./data-table-toolbar.cjs")},"./data-table-view-options":function(e){e.exports=require("./data-table-view-options.cjs")},"./data-table":function(e){e.exports=require("./data-table.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./data-table-action-bar"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("./data-table-advanced-toolbar"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./data-table-column-header"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./data-table-date-filter"),_={};for(var r in i)"default"!==r&&(_[r]=(function(e){return i[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("./data-table-faceted-filter"),_={};for(var r in n)"default"!==r&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./data-table-filter-list"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("./data-table-filter-menu"),_={};for(var r in u)"default"!==r&&(_[r]=(function(e){return u[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./data-table-pagination"),_={};for(var r in c)"default"!==r&&(_[r]=(function(e){return c[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var b=__webpack_require__("./data-table-range-filter"),_={};for(var r in b)"default"!==r&&(_[r]=(function(e){return b[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var d=__webpack_require__("./data-table-skeleton"),_={};for(var r in d)"default"!==r&&(_[r]=(function(e){return d[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("./data-table-slider-filter"),_={};for(var r in p)"default"!==r&&(_[r]=(function(e){return p[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var l=__webpack_require__("./data-table-sort-list"),_={};for(var r in l)"default"!==r&&(_[r]=(function(e){return l[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var f=__webpack_require__("./data-table-toolbar"),_={};for(var r in f)"default"!==r&&(_[r]=(function(e){return f[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("./data-table-view-options"),_={};for(var r in s)"default"!==r&&(_[r]=(function(e){return s[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var w=__webpack_require__("./data-table"),_={};for(var r in w)"default"!==r&&(_[r]=(function(e){return w[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\data-table\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"46DACAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
1
+ {"version":3,"file":"components\\data-table\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"wyDACAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
@@ -1,2 +1,2 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/sidebar/app-sidebar":function(e){e.exports=require("./app-sidebar.cjs")},"./logo":function(e){e.exports=require("./logo.cjs")},"./nav-modules":function(e){e.exports=require("./nav-modules.cjs")},"@/components/sidebar/nav-sub-item":function(e){e.exports=require("./nav-sub-item.cjs")},"./nav-user":function(e){e.exports=require("./nav-user.cjs")},"@/components/sidebar/sidebar-icons":function(e){e.exports=require("./sidebar-icons.cjs")},"./sidebar":function(e){e.exports=require("./sidebar.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./sidebar"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("@/components/sidebar/app-sidebar"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./nav-modules"),_={};for(var r in i)"default"!==r&&(_[r]=(function(e){return i[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/components/sidebar/nav-sub-item"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("./nav-user"),_={};for(var r in n)"default"!==r&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("@/components/sidebar/sidebar-icons"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("./logo"),_={};for(var r in u)"default"!==r&&(_[r]=(function(e){return u[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/sidebar/app-sidebar":function(e){e.exports=require("./app-sidebar.cjs")},"@/components/sidebar/logo":function(e){e.exports=require("./logo.cjs")},"@/components/sidebar/nav-modules":function(e){e.exports=require("./nav-modules.cjs")},"@/components/sidebar/nav-sub-item":function(e){e.exports=require("./nav-sub-item.cjs")},"@/components/sidebar/nav-user":function(e){e.exports=require("./nav-user.cjs")},"@/components/sidebar/sidebar-icons":function(e){e.exports=require("./sidebar-icons.cjs")},"./sidebar":function(e){e.exports=require("./sidebar.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./sidebar"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("@/components/sidebar/app-sidebar"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/components/sidebar/nav-modules"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("@/components/sidebar/nav-sub-item"),_={};for(var r in n)"default"!==r&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("@/components/sidebar/nav-user"),_={};for(var r in i)"default"!==r&&(_[r]=(function(e){return i[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("@/components/sidebar/sidebar-icons"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("@/components/sidebar/logo"),_={};for(var r in c)"default"!==r&&(_[r]=(function(e){return c[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sidebar\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"m/BACAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
1
+ {"version":3,"file":"components\\sidebar\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"4iCACAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(a,{a:a}),a},__webpack_require__.d=(e,a)=>{for(var _ in a)__webpack_require__.o(a,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:a[_]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NavModules:()=>NavModules});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_collapsible_namespaceObject=require("@radix-ui/react-collapsible"),external_lucide_react_namespaceObject=require("lucide-react"),link_namespaceObject=require("next/link");var link_default=__webpack_require__.n(link_namespaceObject);let messages_cjs_namespaceObject=require("./intl/messages.cjs"),external_nav_sub_item_cjs_namespaceObject=require("./nav-sub-item.cjs"),external_sidebar_cjs_namespaceObject=require("./sidebar.cjs"),external_sidebar_icons_cjs_namespaceObject=require("./sidebar-icons.cjs");function NavModules(){let{modules:e,locale:a}=(0,external_sidebar_cjs_namespaceObject.useSidebar)();return(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarGroup,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarGroupLabel,{children:messages_cjs_namespaceObject.messages[a].modules}),(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenu,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuItem,{children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuButton,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(link_default(),{href:"/home",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.House,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:messages_cjs_namespaceObject.messages[a].home})]})})}),e.map(e=>(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.Collapsible,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenuItem,{children:[(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenuButton,{tooltip:e.name,children:[(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_icons_cjs_namespaceObject.SidebarIcons,{icon:e.icon}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:e.name}),(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuAction,{className:"group-data-[state=open]/menu-item:rotate-90",asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)("div",{children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRight,{className:"transition-transform"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Toggle"})]})})]})}),e.submodules?.length&&(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleContent,{children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuSub,{children:e.submodules?.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_nav_sub_item_cjs_namespaceObject.NavSubItem,{item:e},e.id))})})]})},e.id))]})]})}for(var __webpack_i__ in exports.NavModules=__webpack_exports__.NavModules,__webpack_exports__)-1===["NavModules"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(a,{a:a}),a},__webpack_require__.d=(e,a)=>{for(var _ in a)__webpack_require__.o(a,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:a[_]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NavModules:()=>NavModules});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_collapsible_namespaceObject=require("@radix-ui/react-collapsible"),external_lucide_react_namespaceObject=require("lucide-react"),link_namespaceObject=require("next/link");var link_default=__webpack_require__.n(link_namespaceObject);let messages_cjs_namespaceObject=require("./intl/messages.cjs"),external_nav_sub_item_cjs_namespaceObject=require("./nav-sub-item.cjs"),external_sidebar_cjs_namespaceObject=require("./sidebar.cjs"),external_sidebar_icons_cjs_namespaceObject=require("./sidebar-icons.cjs"),SIDEBAR_NAV_MODULES_NAME="NavModules";function NavModules(){let{modules:e,locale:a}=(0,external_sidebar_cjs_namespaceObject.useSidebar)("NavModules");return(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarGroup,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarGroupLabel,{children:messages_cjs_namespaceObject.messages[a].modules}),(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenu,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuItem,{children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuButton,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(link_default(),{href:"/home",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.House,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:messages_cjs_namespaceObject.messages[a].home})]})})}),e.map(e=>(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.Collapsible,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenuItem,{children:[(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenuButton,{tooltip:e.name,children:[(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_icons_cjs_namespaceObject.SidebarIcons,{icon:e.icon}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:e.name}),(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuAction,{className:"group-data-[state=open]/menu-item:rotate-90",asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)("div",{children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRight,{className:"transition-transform"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Toggle"})]})})]})}),e.submodules?.length&&(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleContent,{children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuSub,{children:e.submodules?.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_nav_sub_item_cjs_namespaceObject.NavSubItem,{item:e},e.id))})})]})},e.id))]})]})}for(var __webpack_i__ in exports.NavModules=__webpack_exports__.NavModules,__webpack_exports__)-1===["NavModules"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=nav-modules.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sidebar\\nav-modules.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-modules.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from '@radix-ui/react-collapsible'\nimport { ChevronRight, House } from 'lucide-react'\nimport Link from 'next/link'\n\nimport { messages } from './intl/messages'\nimport { NavSubItem } from './nav-sub-item'\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n useSidebar,\n} from './sidebar'\nimport { SidebarIcons } from './sidebar-icons'\n\nfunction NavModules() {\n const { modules, locale } = useSidebar()\n\n return (\n <SidebarGroup>\n <SidebarGroupLabel>{messages[locale].modules}</SidebarGroupLabel>\n <SidebarMenu>\n <SidebarMenuItem>\n <SidebarMenuButton asChild>\n <Link href=\"/home\">\n <House />\n <span>{messages[locale].home}</span>\n </Link>\n </SidebarMenuButton>\n </SidebarMenuItem>\n {modules.map(item => (\n <Collapsible key={item.id} asChild>\n <SidebarMenuItem>\n <CollapsibleTrigger asChild>\n <SidebarMenuButton tooltip={item.name}>\n <SidebarIcons icon={item.icon} />\n\n <span>{item.name}</span>\n <SidebarMenuAction\n className=\"group-data-[state=open]/menu-item:rotate-90\"\n asChild\n >\n <div>\n <ChevronRight className=\"transition-transform\" />\n <span className=\"sr-only\">Toggle</span>\n </div>\n </SidebarMenuAction>\n </SidebarMenuButton>\n </CollapsibleTrigger>\n {item.submodules?.length && (\n <CollapsibleContent>\n <SidebarMenuSub>\n {item.submodules?.map(subItem => (\n <NavSubItem key={subItem.id} item={subItem} />\n ))}\n </SidebarMenuSub>\n </CollapsibleContent>\n )}\n </SidebarMenuItem>\n </Collapsible>\n ))}\n </SidebarMenu>\n </SidebarGroup>\n )\n}\n\nexport { NavModules }\n"],"names":["__webpack_require__","e","Object","Symbol","NavModules","modules","locale","useSidebar","SidebarGroup","SidebarGroupLabel","messages","SidebarMenu","SidebarMenuItem","SidebarMenuButton","Link","House","item","Collapsible","CollapsibleTrigger","SidebarIcons","SidebarMenuAction","ChevronRight","CollapsibleContent","SidebarMenuSub","subItem","NavSubItem"],"mappings":";+PACAA,CAAAA,oBAAoB,CAAC,CAAG,IACvB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,wsBCkBA,SAASG,aACP,GAAM,CAAEC,QA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,"file":"components\\sidebar\\nav-modules.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-modules.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from '@radix-ui/react-collapsible'\nimport { ChevronRight, House } from 'lucide-react'\nimport Link from 'next/link'\n\nimport { messages } from './intl/messages'\nimport { NavSubItem } from './nav-sub-item'\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n useSidebar,\n} from './sidebar'\nimport { SidebarIcons } from './sidebar-icons'\n\n/* -----------------------------------------------------------------------------\n * Component: NavModules\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_NAV_MODULES_NAME = 'NavModules'\n\nfunction NavModules() {\n const { modules, locale } = useSidebar(SIDEBAR_NAV_MODULES_NAME)\n\n return (\n <SidebarGroup>\n <SidebarGroupLabel>{messages[locale].modules}</SidebarGroupLabel>\n <SidebarMenu>\n <SidebarMenuItem>\n <SidebarMenuButton asChild>\n <Link href=\"/home\">\n <House />\n <span>{messages[locale].home}</span>\n </Link>\n </SidebarMenuButton>\n </SidebarMenuItem>\n {modules.map(item => (\n <Collapsible key={item.id} asChild>\n <SidebarMenuItem>\n <CollapsibleTrigger asChild>\n <SidebarMenuButton tooltip={item.name}>\n <SidebarIcons icon={item.icon} />\n\n <span>{item.name}</span>\n <SidebarMenuAction\n className=\"group-data-[state=open]/menu-item:rotate-90\"\n asChild\n >\n <div>\n <ChevronRight className=\"transition-transform\" />\n <span className=\"sr-only\">Toggle</span>\n </div>\n </SidebarMenuAction>\n </SidebarMenuButton>\n </CollapsibleTrigger>\n {item.submodules?.length && (\n <CollapsibleContent>\n <SidebarMenuSub>\n {item.submodules?.map(subItem => (\n <NavSubItem key={subItem.id} item={subItem} />\n ))}\n </SidebarMenuSub>\n </CollapsibleContent>\n )}\n </SidebarMenuItem>\n </Collapsible>\n ))}\n </SidebarMenu>\n </SidebarGroup>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NavModules }\n"],"names":["__webpack_require__","e","Object","Symbol","SIDEBAR_NAV_MODULES_NAME","NavModules","modules","locale","useSidebar","SidebarGroup","SidebarGroupLabel","messages","SidebarMenu","SidebarMenuItem","SidebarMenuButton","Link","House","item","Collapsible","CollapsibleTrigger","SidebarIcons","SidebarMenuAction","ChevronRight","CollapsibleContent","SidebarMenuSub","subItem","NavSubItem"],"mappings":";+PACAA,CAAAA,oBAAoB,CAAC,CAAG,IACvB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAA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CAAAA,YAAYA,CAAAA,CAAC,KAAMH,EAAK,IAAI,GAE7B,oCAAC,Q,SAAMA,EAAK,IAAI,GAChB,oCAACI,qCAAAA,iBAAiBA,CAAAA,CAChB,UAAU,8CACV,QAAO,G,SAEP,qCAAC,O,UACC,oCAACC,sCAAAA,YAAYA,CAAAA,CAAC,UAAU,sB,GACxB,oCAAC,QAAK,UAAU,U,SAAU,Q,aAKjCL,EAAK,UAAU,EAAE,QAChB,oCAACM,kCAAAA,kBAAkBA,CAAAA,C,SACjB,oCAACC,qCAAAA,cAAcA,CAAAA,C,SACZP,EAAK,UAAU,EAAE,IAAIQ,GACpB,oCAACC,0CAAAA,UAAUA,CAAAA,CAAkB,KAAMD,C,EAAlBA,EAAQ,EAAE,E,SAtBrBR,EAAK,EAAE,G,KAiCnC,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"nav-modules.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-modules.tsx"],"names":[],"mappings":"AAwBA,iBAAS,UAAU,4CAiDlB;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"nav-modules.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-modules.tsx"],"names":[],"mappings":"AA8BA,iBAAS,UAAU,4CAiDlB;AAMD,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var s in a)__webpack_require__.o(a,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:a[s]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NavUser:()=>NavUser});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_dropdown_menu_cjs_namespaceObject=require("../dropdown-menu.cjs"),external_lucide_react_namespaceObject=require("lucide-react"),external_avatar_cjs_namespaceObject=require("../avatar.cjs"),messages_cjs_namespaceObject=require("./intl/messages.cjs"),external_sidebar_cjs_namespaceObject=require("./sidebar.cjs");function NavUser(){let{isMobile:e,user:a,locale:s}=(0,external_sidebar_cjs_namespaceObject.useSidebar)();return(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenu,{children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuItem,{children:(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenu,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenuButton,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[(0,jsx_runtime_namespaceObject.jsxs)(external_avatar_cjs_namespaceObject.Avatar,{className:"size-8 rounded-lg group-data-[collapsible=icon]:size-10",children:[(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarImage,{src:void 0,alt:a.name}),(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarFallback,{className:"rounded-lg",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.UserRound,{className:"size-4"})})]}),(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate font-medium",children:a.name}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate text-gbm-gray text-xs",children:a.email})]}),(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronsUpDown,{className:"ml-auto size-4"})]})}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuContent,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:e?"bottom":"right",align:"end",sideOffset:4,children:[(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuLabel,{className:"p-0 font-normal",children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[(0,jsx_runtime_namespaceObject.jsxs)(external_avatar_cjs_namespaceObject.Avatar,{className:"h-8 w-8 rounded-lg",children:[(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarImage,{src:void 0,alt:a.name}),(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarFallback,{className:"rounded-lg",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.UserRound,{className:"size-4"})})]}),(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate font-semibold",children:a.name}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate text-xs",children:a.email})]})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuGroup,{children:(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSub,{children:[(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSubTrigger,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Languages,{className:"mr-2 size-4"}),messages_cjs_namespaceObject.messages[s].language]}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSubContent,{children:[(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{className:"gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("img",{src:"/brazil.svg",alt:""}),"PT-BR"]}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{className:"gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("img",{src:"/united-states.svg",alt:""}),"EN-US"]}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{className:"gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("img",{src:"/spain.svg",alt:""}),"ES"]})]})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator,{}),(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)("a",{href:"/api/auth/sign-out",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.LogOut,{className:"mr-2 size-4"}),messages_cjs_namespaceObject.messages[s]["sign-out"]]})})]})]})})})}for(var __webpack_i__ in exports.NavUser=__webpack_exports__.NavUser,__webpack_exports__)-1===["NavUser"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var s in a)__webpack_require__.o(a,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:a[s]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NavUser:()=>NavUser});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_dropdown_menu_cjs_namespaceObject=require("../dropdown-menu.cjs"),external_lucide_react_namespaceObject=require("lucide-react"),external_avatar_cjs_namespaceObject=require("../avatar.cjs"),messages_cjs_namespaceObject=require("./intl/messages.cjs"),external_sidebar_cjs_namespaceObject=require("./sidebar.cjs"),SIDEBAR_NAV_USER_NAME="NavUser";function NavUser(){let{isMobile:e,user:a,locale:s}=(0,external_sidebar_cjs_namespaceObject.useSidebar)("NavUser");return(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenu,{children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuItem,{children:(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenu,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenuButton,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[(0,jsx_runtime_namespaceObject.jsxs)(external_avatar_cjs_namespaceObject.Avatar,{className:"size-8 rounded-lg group-data-[collapsible=icon]:size-10",children:[(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarImage,{src:void 0,alt:a.name}),(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarFallback,{className:"rounded-lg",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.UserRound,{className:"size-4"})})]}),(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate font-medium",children:a.name}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate text-gbm-gray text-xs",children:a.email})]}),(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronsUpDown,{className:"ml-auto size-4"})]})}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuContent,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:e?"bottom":"right",align:"end",sideOffset:4,children:[(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuLabel,{className:"p-0 font-normal",children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[(0,jsx_runtime_namespaceObject.jsxs)(external_avatar_cjs_namespaceObject.Avatar,{className:"h-8 w-8 rounded-lg",children:[(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarImage,{src:void 0,alt:a.name}),(0,jsx_runtime_namespaceObject.jsx)(external_avatar_cjs_namespaceObject.AvatarFallback,{className:"rounded-lg",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.UserRound,{className:"size-4"})})]}),(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate font-semibold",children:a.name}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate text-xs",children:a.email})]})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuGroup,{children:(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSub,{children:[(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSubTrigger,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Languages,{className:"mr-2 size-4"}),messages_cjs_namespaceObject.messages[s].language]}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSubContent,{children:[(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{className:"gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("img",{src:"/brazil.svg",alt:""}),"PT-BR"]}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{className:"gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("img",{src:"/united-states.svg",alt:""}),"EN-US"]}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{className:"gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("img",{src:"/spain.svg",alt:""}),"ES"]})]})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator,{}),(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)("a",{href:"/api/auth/sign-out",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.LogOut,{className:"mr-2 size-4"}),messages_cjs_namespaceObject.messages[s]["sign-out"]]})})]})]})})})}for(var __webpack_i__ in exports.NavUser=__webpack_exports__.NavUser,__webpack_exports__)-1===["NavUser"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=nav-user.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sidebar\\nav-user.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-user.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from '@/components/dropdown-menu'\nimport { ChevronsUpDown, Languages, LogOut, UserRound } from 'lucide-react'\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/avatar'\nimport { messages } from './intl/messages'\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from './sidebar'\n\nfunction NavUser() {\n const { isMobile, user, locale } = useSidebar()\n\n return (\n <SidebarMenu>\n <SidebarMenuItem>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <SidebarMenuButton\n size=\"lg\"\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n >\n <Avatar className=\"size-8 rounded-lg group-data-[collapsible=icon]:size-10\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{user.name}</span>\n <span className=\"truncate text-gbm-gray text-xs\">\n {user.email}\n </span>\n </div>\n <ChevronsUpDown className=\"ml-auto size-4\" />\n </SidebarMenuButton>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n className=\"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg\"\n side={isMobile ? 'bottom' : 'right'}\n align=\"end\"\n sideOffset={4}\n >\n <DropdownMenuLabel className=\"p-0 font-normal\">\n <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n <Avatar className=\"h-8 w-8 rounded-lg\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-semibold\">{user.name}</span>\n <span className=\"truncate text-xs\">{user.email}</span>\n </div>\n </div>\n </DropdownMenuLabel>\n <DropdownMenuGroup>\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>\n <Languages className=\"mr-2 size-4\" />\n {messages[locale].language}\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/brazil.svg\" alt=\"\" />\n PT-BR\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/united-states.svg\" alt=\"\" />\n EN-US\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/spain.svg\" alt=\"\" />\n ES\n </DropdownMenuItem>\n </DropdownMenuSubContent>\n </DropdownMenuSub>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem asChild>\n <a href=\"/api/auth/sign-out\">\n <LogOut className=\"mr-2 size-4\" />\n {messages[locale]['sign-out']}\n </a>\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n </SidebarMenu>\n )\n}\n\nexport { NavUser }\n"],"names":["__webpack_require__","e","Object","Symbol","NavUser","isMobile","user","locale","useSidebar","SidebarMenu","SidebarMenuItem","DropdownMenu","DropdownMenuTrigger","SidebarMenuButton","Avatar","AvatarImage","undefined","AvatarFallback","UserRound","ChevronsUpDown","DropdownMenuContent","DropdownMenuLabel","DropdownMenuGroup","DropdownMenuSub","DropdownMenuSubTrigger","Languages","messages","DropdownMenuSubContent","DropdownMenuItem","DropdownMenuSeparator","LogOut"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,ogBCmBA,SAASG,UACP,GAAM,CAAEC,SAAAA,CAAQ,CAAEC,KAAAA,CAAI,CAAEC,OAAAA,CAAM,CAAE,CAAGC,GAAAA,qCAAAA,UAAAA,IAEnC,MACE,oCAACC,qCAAAA,WAAWA,CAAAA,C,SACV,oCAACC,qCAAAA,eAAeA,CAAAA,C,SACd,qCAACC,2CAAAA,YAAYA,CAAAA,C,UACX,oCAACC,2CAAAA,mBAAmBA,CAAAA,CAAC,QAAO,G,SAC1B,qCAACC,qCAAAA,iBAAiBA,CAAAA,CAChB,KAAK,KACL,UAAU,uF,UAEV,qCAACC,oCAAAA,MAAMA,CAAAA,CAAC,UAAU,0D,UAChB,oCAACC,oCAAAA,WAAWA,CAAAA,CAAC,IAAKC,O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ACA,2CAAAA,gBAAgBA,CAAAA,CAAC,UAAU,Q,UAC1B,oCAAC,OAAI,IAAI,qBAAqB,IAAI,E,GAAK,Q,GAGzC,qCAACA,2CAAAA,gBAAgBA,CAAAA,CAAC,UAAU,Q,UAC1B,oCAAC,OAAI,IAAI,aAAa,IAAI,E,GAAK,K,WAMvC,oCAACC,2CAAAA,qBAAqBA,CAAAA,CAAAA,GACtB,oCAACD,2CAAAA,gBAAgBA,CAAAA,CAAC,QAAO,G,SACvB,qCAAC,KAAE,KAAK,qB,UACN,oCAACE,sCAAAA,MAAMA,CAAAA,CAAC,UAAU,a,GACjBJ,6BAAAA,QAAQ,CAACnB,EAAO,CAAC,WAAW,C,cAQ7C,C"}
1
+ {"version":3,"file":"components\\sidebar\\nav-user.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-user.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from '@/components/dropdown-menu'\nimport { ChevronsUpDown, Languages, LogOut, UserRound } from 'lucide-react'\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/avatar'\nimport { messages } from './intl/messages'\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from './sidebar'\n\n/* -----------------------------------------------------------------------------\n * Component: NavUser\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_NAV_USER_NAME = 'NavUser'\n\nfunction NavUser() {\n const { isMobile, user, locale } = useSidebar(SIDEBAR_NAV_USER_NAME)\n\n return (\n <SidebarMenu>\n <SidebarMenuItem>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <SidebarMenuButton\n size=\"lg\"\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n >\n <Avatar className=\"size-8 rounded-lg group-data-[collapsible=icon]:size-10\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{user.name}</span>\n <span className=\"truncate text-gbm-gray text-xs\">\n {user.email}\n </span>\n </div>\n <ChevronsUpDown className=\"ml-auto size-4\" />\n </SidebarMenuButton>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n className=\"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg\"\n side={isMobile ? 'bottom' : 'right'}\n align=\"end\"\n sideOffset={4}\n >\n <DropdownMenuLabel className=\"p-0 font-normal\">\n <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n <Avatar className=\"h-8 w-8 rounded-lg\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-semibold\">{user.name}</span>\n <span className=\"truncate text-xs\">{user.email}</span>\n </div>\n </div>\n </DropdownMenuLabel>\n <DropdownMenuGroup>\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>\n <Languages className=\"mr-2 size-4\" />\n {messages[locale].language}\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/brazil.svg\" alt=\"\" />\n PT-BR\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/united-states.svg\" alt=\"\" />\n EN-US\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/spain.svg\" alt=\"\" />\n ES\n </DropdownMenuItem>\n </DropdownMenuSubContent>\n </DropdownMenuSub>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem asChild>\n <a href=\"/api/auth/sign-out\">\n <LogOut className=\"mr-2 size-4\" />\n {messages[locale]['sign-out']}\n </a>\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n </SidebarMenu>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NavUser }\n"],"names":["__webpack_require__","e","Object","Symbol","SIDEBAR_NAV_USER_NAME","NavUser","isMobile","user","locale","useSidebar","SidebarMenu","SidebarMenuItem","DropdownMenu","DropdownMenuTrigger","SidebarMenuButton","Avatar","AvatarImage","undefined","AvatarFallback","UserRound","ChevronsUpDown","DropdownMenuContent","DropdownMenuLabel","DropdownMenuGroup","DropdownMenuSub","DropdownMenuSubTrigger","Languages","messages","DropdownMenuSubContent","DropdownMenuItem","DropdownMenuSeparator","LogOut"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,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 @@
1
- {"version":3,"file":"nav-user.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-user.tsx"],"names":[],"mappings":"AAyBA,iBAAS,OAAO,4CAiFf;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"nav-user.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-user.tsx"],"names":[],"mappings":"AA+BA,iBAAS,OAAO,4CAiFf;AAMD,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SidebarFooter:()=>SidebarFooter,SidebarContent:()=>SidebarContent,SidebarMenuSubItem:()=>SidebarMenuSubItem,SidebarTrigger:()=>SidebarTrigger,SidebarMenuAction:()=>SidebarMenuAction,SidebarMenuItem:()=>SidebarMenuItem,SidebarHeader:()=>SidebarHeader,SidebarGroupLabel:()=>SidebarGroupLabel,useSidebar:()=>useSidebar,SidebarSeparator:()=>SidebarSeparator,SidebarProvider:()=>SidebarProvider,SidebarMenuSkeleton:()=>SidebarMenuSkeleton,SidebarGroup:()=>SidebarGroup,Sidebar:()=>Sidebar,SidebarMenu:()=>SidebarMenu,SidebarMenuSub:()=>SidebarMenuSub,SidebarMenuButton:()=>SidebarMenuButton});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_slot_namespaceObject=require("@radix-ui/react-slot"),external_react_namespaceObject=require("react"),use_mobile_cjs_namespaceObject=require("../../hooks/use-mobile.cjs"),index_cjs_namespaceObject=require("../../lib/index.cjs"),external_lucide_react_namespaceObject=require("lucide-react"),external_button_cjs_namespaceObject=require("../button.cjs"),external_separator_cjs_namespaceObject=require("../separator.cjs"),external_sheet_index_cjs_namespaceObject=require("../sheet/index.cjs"),external_skeleton_cjs_namespaceObject=require("../skeleton.cjs"),external_tooltip_cjs_namespaceObject=require("../tooltip.cjs"),SIDEBAR_COOKIE_NAME="gbm_sidebar_open",SIDEBAR_COOKIE_MAX_AGE=604800,SIDEBAR_WIDTH="16rem",SIDEBAR_WIDTH_MOBILE="18rem",SIDEBAR_WIDTH_ICON="4.5rem",SIDEBAR_KEYBOARD_SHORTCUT="b",SidebarContext=(0,external_react_namespaceObject.createContext)(null);function useSidebar(){let e=(0,external_react_namespaceObject.use)(SidebarContext);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function SidebarProvider({defaultOpen:e=!0,open:a,onOpenChange:t,className:r,style:n,user:i,modules:s,locale:c="pt-br",children:d,...o}){let b=(0,use_mobile_cjs_namespaceObject.useIsMobile)(),[_,l]=(0,external_react_namespaceObject.useState)(!1),[u,p]=(0,external_react_namespaceObject.useState)(e),m=a??u,x=(0,external_react_namespaceObject.useCallback)(e=>{let a="function"==typeof e?e(m):e;t?t(a):p(a),document.cookie=`gbm_sidebar_open=${a}; path=/; max-age=604800`},[t,m]),j=(0,external_react_namespaceObject.useCallback)(()=>b?l(e=>!e):x(e=>!e),[b,x,l]);(0,external_react_namespaceObject.useEffect)(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),j())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[j]);let S=m?"expanded":"collapsed",g=(0,external_react_namespaceObject.useMemo)(()=>({state:S,open:m,setOpen:x,isMobile:b,openMobile:_,setOpenMobile:l,toggleSidebar:j,locale:c,user:i,modules:s}),[S,m,x,b,_,l,j,i,s,c]);return(0,jsx_runtime_namespaceObject.jsx)(SidebarContext.Provider,{value:g,children:(0,jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipProvider,{delayDuration:0,children:(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"4.5rem",...n},className:(0,index_cjs_namespaceObject.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...o,children:d})})})}function Sidebar({side:e="left",variant:a="sidebar",collapsible:t="icon",className:r,children:n,...i}){let{isMobile:s,state:c,openMobile:d,setOpenMobile:o}=useSidebar();return"none"===t?(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar",className:(0,index_cjs_namespaceObject.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...i,children:n}):s?(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.Sheet,{open:d,onOpenChange:o,...i,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sheet_index_cjs_namespaceObject.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,jsx_runtime_namespaceObject.jsxs)(external_sheet_index_cjs_namespaceObject.SheetHeader,{className:"sr-only",children:[(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.SheetTitle,{children:"Sidebar"}),(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?t:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-gap",className:(0,index_cjs_namespaceObject.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===a||"inset"===a?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-container",className:(0,index_cjs_namespaceObject.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===a||"inset"===a?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:(0,jsx_runtime_namespaceObject.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:n})})]})}function SidebarTrigger({className:e,onClick:a,...t}){let{toggleSidebar:r}=useSidebar();return(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,index_cjs_namespaceObject.cn)("size-7",e),onClick:e=>{a?.(e),r()},...t,children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.PanelLeftIcon,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function SidebarHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarSeparator({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,index_cjs_namespaceObject.cn)("mx-2 w-auto bg-sidebar-border",e),...a})}function SidebarContent({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,index_cjs_namespaceObject.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden",e),...a})}function SidebarGroup({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,index_cjs_namespaceObject.cn)("relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarGroupLabel({className:e,asChild:a=!1,...t}){let r=a?react_slot_namespaceObject.Slot:"div";return(0,jsx_runtime_namespaceObject.jsx)(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,index_cjs_namespaceObject.cn)("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t})}function SidebarMenu({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,index_cjs_namespaceObject.cn)("flex w-full min-w-0 flex-col gap-1",e),...a})}function SidebarMenuItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,index_cjs_namespaceObject.cn)("group/menu-item relative",e),...a})}let sidebarMenuButtonVariants=(0,index_cjs_namespaceObject.tv)({base:"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function SidebarMenuButton({asChild:e=!1,isActive:a=!1,variant:t="default",size:r="default",tooltip:n,className:i,...s}){let c=e?react_slot_namespaceObject.Slot:"button",{isMobile:d,state:o}=useSidebar(),b=(0,jsx_runtime_namespaceObject.jsx)(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":a,className:(0,index_cjs_namespaceObject.cn)(sidebarMenuButtonVariants({variant:t,size:r}),i),...s});return n?("string"==typeof n&&(n={children:n}),(0,jsx_runtime_namespaceObject.jsxs)(external_tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:b}),(0,jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==o||d,...n})]})):b}function SidebarMenuAction({className:e,asChild:a=!1,showOnHover:t=!1,...r}){let n=a?react_slot_namespaceObject.Slot:"button";return(0,jsx_runtime_namespaceObject.jsx)(n,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,index_cjs_namespaceObject.cn)("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}function SidebarMenuSkeleton({className:e,showIcon:a=!1,...t}){let r=(0,external_react_namespaceObject.useMemo)(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,jsx_runtime_namespaceObject.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,index_cjs_namespaceObject.cn)("flex h-8 items-center gap-2 rounded-md px-2",e),...t,children:[a&&(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_cjs_namespaceObject.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_cjs_namespaceObject.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function SidebarMenuSub({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,index_cjs_namespaceObject.cn)("ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5","group-data-[collapsible=icon]:hidden",e),...a})}function SidebarMenuSubItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,index_cjs_namespaceObject.cn)("group/menu-sub-item relative",e),...a})}for(var __webpack_i__ in exports.Sidebar=__webpack_exports__.Sidebar,exports.SidebarContent=__webpack_exports__.SidebarContent,exports.SidebarFooter=__webpack_exports__.SidebarFooter,exports.SidebarGroup=__webpack_exports__.SidebarGroup,exports.SidebarGroupLabel=__webpack_exports__.SidebarGroupLabel,exports.SidebarHeader=__webpack_exports__.SidebarHeader,exports.SidebarMenu=__webpack_exports__.SidebarMenu,exports.SidebarMenuAction=__webpack_exports__.SidebarMenuAction,exports.SidebarMenuButton=__webpack_exports__.SidebarMenuButton,exports.SidebarMenuItem=__webpack_exports__.SidebarMenuItem,exports.SidebarMenuSkeleton=__webpack_exports__.SidebarMenuSkeleton,exports.SidebarMenuSub=__webpack_exports__.SidebarMenuSub,exports.SidebarMenuSubItem=__webpack_exports__.SidebarMenuSubItem,exports.SidebarProvider=__webpack_exports__.SidebarProvider,exports.SidebarSeparator=__webpack_exports__.SidebarSeparator,exports.SidebarTrigger=__webpack_exports__.SidebarTrigger,exports.useSidebar=__webpack_exports__.useSidebar,__webpack_exports__)-1===["Sidebar","SidebarContent","SidebarFooter","SidebarGroup","SidebarGroupLabel","SidebarHeader","SidebarMenu","SidebarMenuAction","SidebarMenuButton","SidebarMenuItem","SidebarMenuSkeleton","SidebarMenuSub","SidebarMenuSubItem","SidebarProvider","SidebarSeparator","SidebarTrigger","useSidebar"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SidebarFooter:()=>SidebarFooter,SidebarContent:()=>SidebarContent,SidebarMenuSubItem:()=>SidebarMenuSubItem,SidebarTrigger:()=>SidebarTrigger,SidebarMenuAction:()=>SidebarMenuAction,SidebarMenuItem:()=>SidebarMenuItem,SidebarHeader:()=>SidebarHeader,SidebarGroupLabel:()=>SidebarGroupLabel,useSidebar:()=>useSidebar,SidebarSeparator:()=>SidebarSeparator,SidebarProvider:()=>SidebarProvider,SidebarMenuSkeleton:()=>SidebarMenuSkeleton,SidebarGroup:()=>SidebarGroup,Sidebar:()=>Sidebar,SidebarMenu:()=>SidebarMenu,SidebarMenuSub:()=>SidebarMenuSub,SidebarMenuButton:()=>SidebarMenuButton});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_context_namespaceObject=require("@radix-ui/react-context"),react_slot_namespaceObject=require("@radix-ui/react-slot"),external_react_namespaceObject=require("react"),use_mobile_cjs_namespaceObject=require("../../hooks/use-mobile.cjs"),index_cjs_namespaceObject=require("../../lib/index.cjs"),external_lucide_react_namespaceObject=require("lucide-react"),external_button_cjs_namespaceObject=require("../button.cjs"),external_separator_cjs_namespaceObject=require("../separator.cjs"),external_sheet_index_cjs_namespaceObject=require("../sheet/index.cjs"),external_skeleton_cjs_namespaceObject=require("../skeleton.cjs"),external_tooltip_cjs_namespaceObject=require("../tooltip.cjs"),SIDEBAR_COOKIE_NAME="gbm_sidebar_open",SIDEBAR_COOKIE_MAX_AGE=604800,SIDEBAR_WIDTH="16rem",SIDEBAR_WIDTH_MOBILE="18rem",SIDEBAR_WIDTH_ICON="4.5rem",SIDEBAR_KEYBOARD_SHORTCUT="b",SIDEBAR_PROVIDER_NAME="SidebarProvider",[SidebarContextProvider,useSidebar]=(0,react_context_namespaceObject.createContext)("SidebarProvider");function SidebarProvider({defaultOpen:e=!0,open:a,onOpenChange:t,className:r,style:i,user:n,modules:s,locale:c="pt-br",children:d,...o}){let b=(0,use_mobile_cjs_namespaceObject.useIsMobile)(),[_,l]=(0,external_react_namespaceObject.useState)(!1),[u,p]=(0,external_react_namespaceObject.useState)(e),m=a??u,x=(0,external_react_namespaceObject.useCallback)(e=>{let a="function"==typeof e?e(m):e;t?t(a):p(a),document.cookie=`gbm_sidebar_open=${a}; path=/; max-age=604800`},[t,m]),j=(0,external_react_namespaceObject.useCallback)(()=>b?l(e=>!e):x(e=>!e),[b,x,l]);(0,external_react_namespaceObject.useEffect)(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),j())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[j]);let S=m?"expanded":"collapsed",g=(0,external_react_namespaceObject.useMemo)(()=>({state:S,open:m,setOpen:x,isMobile:b,openMobile:_,setOpenMobile:l,toggleSidebar:j,locale:c,user:n,modules:s}),[S,m,x,b,_,l,j,n,s,c]);return(0,jsx_runtime_namespaceObject.jsx)(SidebarContextProvider,{...g,children:(0,jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipProvider,{delayDuration:0,children:(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"4.5rem",...i},className:(0,index_cjs_namespaceObject.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...o,children:d})})})}let SIDEBAR_NAME="Sidebar";function Sidebar({side:e="left",variant:a="sidebar",collapsible:t="icon",className:r,children:i,...n}){let{isMobile:s,state:c,openMobile:d,setOpenMobile:o}=useSidebar("Sidebar");return"none"===t?(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar",className:(0,index_cjs_namespaceObject.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...n,children:i}):s?(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.Sheet,{open:d,onOpenChange:o,...n,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sheet_index_cjs_namespaceObject.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,jsx_runtime_namespaceObject.jsxs)(external_sheet_index_cjs_namespaceObject.SheetHeader,{className:"sr-only",children:[(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.SheetTitle,{children:"Sidebar"}),(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex h-full w-full flex-col",children:i})]})}):(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?t:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-gap",className:(0,index_cjs_namespaceObject.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===a||"inset"===a?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-container",className:(0,index_cjs_namespaceObject.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===a||"inset"===a?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...n,children:(0,jsx_runtime_namespaceObject.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:i})})]})}let SIDEBAR_TRIGGER_NAME="SidebarTrigger";function SidebarTrigger({className:e,onClick:a,...t}){let{toggleSidebar:r}=useSidebar("SidebarTrigger");return(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,index_cjs_namespaceObject.cn)("size-7",e),onClick:e=>{a?.(e),r()},...t,children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.PanelLeftIcon,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function SidebarHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarSeparator({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,index_cjs_namespaceObject.cn)("mx-2 w-auto bg-sidebar-border",e),...a})}function SidebarContent({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,index_cjs_namespaceObject.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden",e),...a})}function SidebarGroup({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,index_cjs_namespaceObject.cn)("relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarGroupLabel({className:e,asChild:a=!1,...t}){let r=a?react_slot_namespaceObject.Slot:"div";return(0,jsx_runtime_namespaceObject.jsx)(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,index_cjs_namespaceObject.cn)("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t})}function SidebarMenu({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,index_cjs_namespaceObject.cn)("flex w-full min-w-0 flex-col gap-1",e),...a})}function SidebarMenuItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,index_cjs_namespaceObject.cn)("group/menu-item relative",e),...a})}let sidebarMenuButtonVariants=(0,index_cjs_namespaceObject.tv)({base:"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),SIDEBAR_MENU_BUTTON_NAME="SidebarMenuButton";function SidebarMenuButton({asChild:e=!1,isActive:a=!1,variant:t="default",size:r="default",tooltip:i,className:n,...s}){let c=e?react_slot_namespaceObject.Slot:"button",{isMobile:d,state:o}=useSidebar("SidebarMenuButton"),b=(0,jsx_runtime_namespaceObject.jsx)(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":a,className:(0,index_cjs_namespaceObject.cn)(sidebarMenuButtonVariants({variant:t,size:r}),n),...s});return i?("string"==typeof i&&(i={children:i}),(0,jsx_runtime_namespaceObject.jsxs)(external_tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:b}),(0,jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==o||d,...i})]})):b}function SidebarMenuAction({className:e,asChild:a=!1,showOnHover:t=!1,...r}){let i=a?react_slot_namespaceObject.Slot:"button";return(0,jsx_runtime_namespaceObject.jsx)(i,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,index_cjs_namespaceObject.cn)("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}function SidebarMenuSkeleton({className:e,showIcon:a=!1,...t}){let r=(0,external_react_namespaceObject.useMemo)(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,jsx_runtime_namespaceObject.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,index_cjs_namespaceObject.cn)("flex h-8 items-center gap-2 rounded-md px-2",e),...t,children:[a&&(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_cjs_namespaceObject.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_cjs_namespaceObject.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function SidebarMenuSub({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,index_cjs_namespaceObject.cn)("ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5","group-data-[collapsible=icon]:hidden",e),...a})}function SidebarMenuSubItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,index_cjs_namespaceObject.cn)("group/menu-sub-item relative",e),...a})}for(var __webpack_i__ in exports.Sidebar=__webpack_exports__.Sidebar,exports.SidebarContent=__webpack_exports__.SidebarContent,exports.SidebarFooter=__webpack_exports__.SidebarFooter,exports.SidebarGroup=__webpack_exports__.SidebarGroup,exports.SidebarGroupLabel=__webpack_exports__.SidebarGroupLabel,exports.SidebarHeader=__webpack_exports__.SidebarHeader,exports.SidebarMenu=__webpack_exports__.SidebarMenu,exports.SidebarMenuAction=__webpack_exports__.SidebarMenuAction,exports.SidebarMenuButton=__webpack_exports__.SidebarMenuButton,exports.SidebarMenuItem=__webpack_exports__.SidebarMenuItem,exports.SidebarMenuSkeleton=__webpack_exports__.SidebarMenuSkeleton,exports.SidebarMenuSub=__webpack_exports__.SidebarMenuSub,exports.SidebarMenuSubItem=__webpack_exports__.SidebarMenuSubItem,exports.SidebarProvider=__webpack_exports__.SidebarProvider,exports.SidebarSeparator=__webpack_exports__.SidebarSeparator,exports.SidebarTrigger=__webpack_exports__.SidebarTrigger,exports.useSidebar=__webpack_exports__.useSidebar,__webpack_exports__)-1===["Sidebar","SidebarContent","SidebarFooter","SidebarGroup","SidebarGroupLabel","SidebarHeader","SidebarMenu","SidebarMenuAction","SidebarMenuButton","SidebarMenuItem","SidebarMenuSkeleton","SidebarMenuSub","SidebarMenuSubItem","SidebarProvider","SidebarSeparator","SidebarTrigger","useSidebar"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=sidebar.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sidebar\\sidebar.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sidebar/sidebar.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport { Slot } from '@radix-ui/react-slot'\nimport {\n CSSProperties,\n ComponentProps,\n createContext,\n use,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport { useIsMobile } from '@/hooks/use-mobile'\nimport { VariantProps, cn, tv } from '@/lib'\nimport { Locale, Module, User } from '@/types'\nimport { PanelLeftIcon } from 'lucide-react'\nimport { Button } from '../button'\nimport { Separator } from '../separator'\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n} from '../sheet'\nimport { Skeleton } from '../skeleton'\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '../tooltip'\n\nconst SIDEBAR_COOKIE_NAME = 'gbm_sidebar_open'\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7\nconst SIDEBAR_WIDTH = '16rem'\nconst SIDEBAR_WIDTH_MOBILE = '18rem'\nconst SIDEBAR_WIDTH_ICON = '4.5rem'\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b'\n\ntype SidebarContextProps = {\n state: 'expanded' | 'collapsed'\n open: boolean\n setOpen: (open: boolean) => void\n openMobile: boolean\n setOpenMobile: (open: boolean) => void\n isMobile: boolean\n toggleSidebar: () => void\n user: User\n modules: Module[]\n locale: Locale\n}\n\nconst SidebarContext = createContext<SidebarContextProps | null>(null)\n\nfunction useSidebar() {\n const context = use(SidebarContext)\n\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.')\n }\n\n return context\n}\n\nfunction SidebarProvider({\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n user,\n modules,\n locale = 'pt-br',\n children,\n ...props\n}: ComponentProps<'div'> & {\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n user: User\n modules: Module[]\n locale?: Locale\n}) {\n const isMobile = useIsMobile()\n const [openMobile, setOpenMobile] = useState(false)\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = useState(defaultOpen)\n const open = openProp ?? _open\n const setOpen = useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(open) : value\n if (setOpenProp) {\n setOpenProp(openState)\n } else {\n _setOpen(openState)\n }\n\n // This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`\n },\n [setOpenProp, open]\n )\n\n // Helper to toggle the sidebar.\n const toggleSidebar = useCallback(() => {\n return isMobile ? setOpenMobile(open => !open) : setOpen(open => !open)\n }, [isMobile, setOpen, setOpenMobile])\n\n // Adds a keyboard shortcut to toggle the sidebar.\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (\n event.key === SIDEBAR_KEYBOARD_SHORTCUT &&\n (event.metaKey || event.ctrlKey)\n ) {\n event.preventDefault()\n toggleSidebar()\n }\n }\n\n window.addEventListener('keydown', handleKeyDown)\n return () => window.removeEventListener('keydown', handleKeyDown)\n }, [toggleSidebar])\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? 'expanded' : 'collapsed'\n\n const contextValue = useMemo<SidebarContextProps>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n locale,\n user,\n modules,\n }),\n [\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n user,\n modules,\n locale,\n ]\n )\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n data-slot=\"sidebar-wrapper\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH,\n '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n ...style,\n } as CSSProperties\n }\n className={cn(\n 'group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar',\n className\n )}\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n )\n}\n\nfunction Sidebar({\n side = 'left',\n variant = 'sidebar',\n collapsible = 'icon',\n className,\n children,\n ...props\n}: ComponentProps<'div'> & {\n side?: 'left' | 'right'\n variant?: 'sidebar' | 'floating' | 'inset'\n collapsible?: 'offcanvas' | 'icon' | 'none'\n}) {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar()\n\n if (collapsible === 'none') {\n return (\n <div\n data-slot=\"sidebar\"\n className={cn(\n 'flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground',\n className\n )}\n {...props}\n >\n {children}\n </div>\n )\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar\"\n data-mobile=\"true\"\n className=\"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n } as CSSProperties\n }\n side={side}\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n )\n }\n\n return (\n <div\n className=\"group peer hidden text-sidebar-foreground md:block\"\n data-state={state}\n data-collapsible={state === 'collapsed' ? collapsible : ''}\n data-variant={variant}\n data-side={side}\n data-slot=\"sidebar\"\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n data-slot=\"sidebar-gap\"\n className={cn(\n 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',\n 'group-data-[collapsible=offcanvas]:w-0',\n 'group-data-[side=right]:rotate-180',\n variant === 'floating' || variant === 'inset'\n ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)'\n )}\n />\n <div\n data-slot=\"sidebar-container\"\n className={cn(\n 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',\n side === 'left'\n ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'\n : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',\n // Adjust the padding for floating and inset variants.\n variant === 'floating' || variant === 'inset'\n ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',\n className\n )}\n {...props}\n >\n <div\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar-inner\"\n className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm\"\n >\n {children}\n </div>\n </div>\n </div>\n )\n}\n\nfunction SidebarTrigger({\n className,\n onClick,\n ...props\n}: ComponentProps<typeof Button>) {\n const { toggleSidebar } = useSidebar()\n\n return (\n <Button\n data-sidebar=\"trigger\"\n data-slot=\"sidebar-trigger\"\n variant=\"ghost\"\n size=\"icon\"\n className={cn('size-7', className)}\n onClick={event => {\n onClick?.(event)\n toggleSidebar()\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n )\n}\n\nfunction SidebarHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-header\"\n data-sidebar=\"header\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarFooter({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-footer\"\n data-sidebar=\"footer\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarSeparator({\n className,\n ...props\n}: ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"sidebar-separator\"\n data-sidebar=\"separator\"\n className={cn('mx-2 w-auto bg-sidebar-border', className)}\n {...props}\n />\n )\n}\n\nfunction SidebarContent({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-content\"\n data-sidebar=\"content\"\n className={cn(\n 'flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarGroup({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-group\"\n data-sidebar=\"group\"\n className={cn(\n 'relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarGroupLabel({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'div'> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div'\n\n return (\n <Comp\n data-slot=\"sidebar-group-label\"\n data-sidebar=\"group-label\"\n className={cn(\n 'flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',\n 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarMenu({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu\"\n data-sidebar=\"menu\"\n className={cn('flex w-full min-w-0 flex-col gap-1', className)}\n {...props}\n />\n )\n}\n\nfunction SidebarMenuItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-item\"\n data-sidebar=\"menu-item\"\n className={cn('group/menu-item relative', className)}\n {...props}\n />\n )\n}\n\nconst sidebarMenuButtonVariants = tv({\n base: 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5',\n variants: {\n variant: {\n default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n outline:\n 'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'text-sm',\n sm: 'h-7 text-xs',\n lg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n})\n\nfunction SidebarMenuButton({\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n isActive?: boolean\n tooltip?: string | ComponentProps<typeof TooltipContent>\n} & VariantProps<typeof sidebarMenuButtonVariants>) {\n const Comp = asChild ? Slot : 'button'\n const { isMobile, state } = useSidebar()\n\n const button = (\n <Comp\n data-slot=\"sidebar-menu-button\"\n data-sidebar=\"menu-button\"\n data-size={size}\n data-active={isActive}\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n {...props}\n />\n )\n\n if (!tooltip) {\n return button\n }\n\n if (typeof tooltip === 'string') {\n tooltip = {\n children: tooltip,\n }\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent\n side=\"right\"\n align=\"center\"\n hidden={state !== 'collapsed' || isMobile}\n {...tooltip}\n />\n </Tooltip>\n )\n}\n\nfunction SidebarMenuAction({\n className,\n asChild = false,\n showOnHover = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n showOnHover?: boolean\n}) {\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n data-slot=\"sidebar-menu-action\"\n data-sidebar=\"menu-action\"\n className={cn(\n 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:-inset-2 after:absolute md:after:hidden',\n 'peer-data-[size=sm]/menu-button:top-1',\n 'peer-data-[size=default]/menu-button:top-1.5',\n 'peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:hidden',\n showOnHover &&\n 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarMenuSkeleton({\n className,\n showIcon = false,\n ...props\n}: ComponentProps<'div'> & {\n showIcon?: boolean\n}) {\n // Random width between 50 to 90%.\n const width = useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`\n }, [])\n\n return (\n <div\n data-slot=\"sidebar-menu-skeleton\"\n data-sidebar=\"menu-skeleton\"\n className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n {...props}\n >\n {showIcon && (\n <Skeleton\n className=\"size-4 rounded-md\"\n data-sidebar=\"menu-skeleton-icon\"\n />\n )}\n <Skeleton\n className=\"h-4 max-w-(--skeleton-width) flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n '--skeleton-width': width,\n } as CSSProperties\n }\n />\n </div>\n )\n}\n\nfunction SidebarMenuSub({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu-sub\"\n data-sidebar=\"menu-sub\"\n className={cn(\n 'ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5',\n 'group-data-[collapsible=icon]:hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarMenuSubItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-sub-item\"\n data-sidebar=\"menu-sub-item\"\n className={cn('group/menu-sub-item relative', className)}\n {...props}\n />\n )\n}\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n}\n"],"names":["__webpack_require__","e","Object","Symbol","SIDEBAR_COOKIE_NAME","SIDEBAR_COOKIE_MAX_AGE","SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_WIDTH_ICON","SIDEBAR_KEYBOARD_SHORTCUT","SidebarContext","createContext","useSidebar","context","use","Error","SidebarProvider","defaultOpen","openProp","setOpenProp","className","style","user","modules","locale","children","props","isMobile","useIsMobile","openMobile","setOpenMobile","useState","_open","_setOpen","open","setOpen","useCallback","value","openState","document","toggleSidebar","useEffect","handleKeyDown","event","window","state","contextValue","useMemo","TooltipProvider","cn","Sidebar","side","variant","collapsible","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","SidebarTrigger","onClick","Button","PanelLeftIcon","SidebarHeader","SidebarFooter","SidebarSeparator","Separator","SidebarContent","SidebarGroup","SidebarGroupLabel","asChild","Comp","Slot","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","tv","SidebarMenuButton","isActive","size","tooltip","button","Tooltip","TooltipTrigger","TooltipContent","SidebarMenuAction","showOnHover","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CAACG,sCAAAA,QAAQA,CAAAA,CACP,UAAU,oBACV,eAAa,oB,GAGjB,oCAACA,sCAAAA,QAAQA,CAAAA,CACP,UAAU,sCACV,eAAa,qBACb,MACE,CACE,mBAAoBF,CACtB,C,KAKV,CAEA,SAASG,eAAe,CAAExE,UAAAA,CAAS,CAAE,GAAGM,EAA6B,EACnE,MACE,oCAAC,MACC,YAAU,mBACV,eAAa,WACb,UAAWuB,GAAAA,0BAAAA,EAAAA,EACT,iGACA,uCACA7B,GAED,GAAGM,CAAK,EAGf,CAEA,SAASmE,mBAAmB,CAAEzE,UAAAA,CAAS,CAAE,GAAGM,EAA6B,EACvE,MACE,oCAAC,MACC,YAAU,wBACV,eAAa,gBACb,UAAWuB,GAAAA,0BAAAA,EAAAA,EAAG,+BAAgC7B,GAC7C,GAAGM,CAAK,EAGf,C"}
1
+ {"version":3,"file":"components\\sidebar\\sidebar.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sidebar/sidebar.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport { createContext } from '@radix-ui/react-context'\nimport { Slot } from '@radix-ui/react-slot'\nimport {\n CSSProperties,\n ComponentProps,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport { useIsMobile } from '@/hooks/use-mobile'\nimport { VariantProps, cn, tv } from '@/lib'\nimport { Locale, Module, User } from '@/types'\nimport { PanelLeftIcon } from 'lucide-react'\nimport { Button } from '../button'\nimport { Separator } from '../separator'\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n} from '../sheet'\nimport { Skeleton } from '../skeleton'\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '../tooltip'\n\nconst SIDEBAR_COOKIE_NAME = 'gbm_sidebar_open'\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7\nconst SIDEBAR_WIDTH = '16rem'\nconst SIDEBAR_WIDTH_MOBILE = '18rem'\nconst SIDEBAR_WIDTH_ICON = '4.5rem'\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b'\n\ntype SidebarContextValue = {\n state: 'expanded' | 'collapsed'\n open: boolean\n setOpen: (open: boolean) => void\n openMobile: boolean\n setOpenMobile: (open: boolean) => void\n isMobile: boolean\n toggleSidebar: () => void\n user: User\n modules: Module[]\n locale: Locale\n}\n\n/* -----------------------------------------------------------------------------\n * Context: SidebarProvider\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_PROVIDER_NAME = 'SidebarProvider'\n\nconst [SidebarContextProvider, useSidebar] = createContext<SidebarContextValue>(\n SIDEBAR_PROVIDER_NAME\n)\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarProvider\n * -------------------------------------------------------------------------- */\n\nfunction SidebarProvider({\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n user,\n modules,\n locale = 'pt-br',\n children,\n ...props\n}: ComponentProps<'div'> & {\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n user: User\n modules: Module[]\n locale?: Locale\n}) {\n const isMobile = useIsMobile()\n const [openMobile, setOpenMobile] = useState(false)\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = useState(defaultOpen)\n const open = openProp ?? _open\n const setOpen = useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(open) : value\n if (setOpenProp) {\n setOpenProp(openState)\n } else {\n _setOpen(openState)\n }\n\n // This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`\n },\n [setOpenProp, open]\n )\n\n // Helper to toggle the sidebar.\n const toggleSidebar = useCallback(() => {\n return isMobile ? setOpenMobile(open => !open) : setOpen(open => !open)\n }, [isMobile, setOpen, setOpenMobile])\n\n // Adds a keyboard shortcut to toggle the sidebar.\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (\n event.key === SIDEBAR_KEYBOARD_SHORTCUT &&\n (event.metaKey || event.ctrlKey)\n ) {\n event.preventDefault()\n toggleSidebar()\n }\n }\n\n window.addEventListener('keydown', handleKeyDown)\n return () => window.removeEventListener('keydown', handleKeyDown)\n }, [toggleSidebar])\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? 'expanded' : 'collapsed'\n\n const contextValue = useMemo<SidebarContextValue>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n locale,\n user,\n modules,\n }),\n [\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n user,\n modules,\n locale,\n ]\n )\n\n return (\n <SidebarContextProvider {...contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n data-slot=\"sidebar-wrapper\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH,\n '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n ...style,\n } as CSSProperties\n }\n className={cn(\n 'group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar',\n className\n )}\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContextProvider>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Sidebar\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_NAME = 'Sidebar'\n\nfunction Sidebar({\n side = 'left',\n variant = 'sidebar',\n collapsible = 'icon',\n className,\n children,\n ...props\n}: ComponentProps<'div'> & {\n side?: 'left' | 'right'\n variant?: 'sidebar' | 'floating' | 'inset'\n collapsible?: 'offcanvas' | 'icon' | 'none'\n}) {\n const { isMobile, state, openMobile, setOpenMobile } =\n useSidebar(SIDEBAR_NAME)\n\n if (collapsible === 'none') {\n return (\n <div\n data-slot=\"sidebar\"\n className={cn(\n 'flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground',\n className\n )}\n {...props}\n >\n {children}\n </div>\n )\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar\"\n data-mobile=\"true\"\n className=\"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n } as CSSProperties\n }\n side={side}\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n )\n }\n\n return (\n <div\n className=\"group peer hidden text-sidebar-foreground md:block\"\n data-state={state}\n data-collapsible={state === 'collapsed' ? collapsible : ''}\n data-variant={variant}\n data-side={side}\n data-slot=\"sidebar\"\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n data-slot=\"sidebar-gap\"\n className={cn(\n 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',\n 'group-data-[collapsible=offcanvas]:w-0',\n 'group-data-[side=right]:rotate-180',\n variant === 'floating' || variant === 'inset'\n ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)'\n )}\n />\n <div\n data-slot=\"sidebar-container\"\n className={cn(\n 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',\n side === 'left'\n ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'\n : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',\n // Adjust the padding for floating and inset variants.\n variant === 'floating' || variant === 'inset'\n ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',\n className\n )}\n {...props}\n >\n <div\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar-inner\"\n className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm\"\n >\n {children}\n </div>\n </div>\n </div>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarTrigger\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_TRIGGER_NAME = 'SidebarTrigger'\n\nfunction SidebarTrigger({\n className,\n onClick,\n ...props\n}: ComponentProps<typeof Button>) {\n const { toggleSidebar } = useSidebar(SIDEBAR_TRIGGER_NAME)\n\n return (\n <Button\n data-sidebar=\"trigger\"\n data-slot=\"sidebar-trigger\"\n variant=\"ghost\"\n size=\"icon\"\n className={cn('size-7', className)}\n onClick={event => {\n onClick?.(event)\n toggleSidebar()\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarHeader\n * -------------------------------------------------------------------------- */\n\nfunction SidebarHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-header\"\n data-sidebar=\"header\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarFooter\n * -------------------------------------------------------------------------- */\n\nfunction SidebarFooter({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-footer\"\n data-sidebar=\"footer\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarSeparator\n * -------------------------------------------------------------------------- */\n\nfunction SidebarSeparator({\n className,\n ...props\n}: ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"sidebar-separator\"\n data-sidebar=\"separator\"\n className={cn('mx-2 w-auto bg-sidebar-border', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarContent\n * -------------------------------------------------------------------------- */\n\nfunction SidebarContent({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-content\"\n data-sidebar=\"content\"\n className={cn(\n 'flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroup\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroup({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-group\"\n data-sidebar=\"group\"\n className={cn(\n 'relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupLabel\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupLabel({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'div'> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div'\n\n return (\n <Comp\n data-slot=\"sidebar-group-label\"\n data-sidebar=\"group-label\"\n className={cn(\n 'flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',\n 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenu\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenu({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu\"\n data-sidebar=\"menu\"\n className={cn('flex w-full min-w-0 flex-col gap-1', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-item\"\n data-sidebar=\"menu-item\"\n className={cn('group/menu-item relative', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuButton\n * -------------------------------------------------------------------------- */\n\nconst sidebarMenuButtonVariants = tv({\n base: 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5',\n variants: {\n variant: {\n default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n outline:\n 'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'text-sm',\n sm: 'h-7 text-xs',\n lg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n})\n\nconst SIDEBAR_MENU_BUTTON_NAME = 'SidebarMenuButton'\n\nfunction SidebarMenuButton({\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n isActive?: boolean\n tooltip?: string | ComponentProps<typeof TooltipContent>\n} & VariantProps<typeof sidebarMenuButtonVariants>) {\n const Comp = asChild ? Slot : 'button'\n const { isMobile, state } = useSidebar(SIDEBAR_MENU_BUTTON_NAME)\n\n const button = (\n <Comp\n data-slot=\"sidebar-menu-button\"\n data-sidebar=\"menu-button\"\n data-size={size}\n data-active={isActive}\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n {...props}\n />\n )\n\n if (!tooltip) {\n return button\n }\n\n if (typeof tooltip === 'string') {\n tooltip = {\n children: tooltip,\n }\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent\n side=\"right\"\n align=\"center\"\n hidden={state !== 'collapsed' || isMobile}\n {...tooltip}\n />\n </Tooltip>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuAction\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuAction({\n className,\n asChild = false,\n showOnHover = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n showOnHover?: boolean\n}) {\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n data-slot=\"sidebar-menu-action\"\n data-sidebar=\"menu-action\"\n className={cn(\n 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:-inset-2 after:absolute md:after:hidden',\n 'peer-data-[size=sm]/menu-button:top-1',\n 'peer-data-[size=default]/menu-button:top-1.5',\n 'peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:hidden',\n showOnHover &&\n 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSkeleton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSkeleton({\n className,\n showIcon = false,\n ...props\n}: ComponentProps<'div'> & {\n showIcon?: boolean\n}) {\n // Random width between 50 to 90%.\n const width = useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`\n }, [])\n\n return (\n <div\n data-slot=\"sidebar-menu-skeleton\"\n data-sidebar=\"menu-skeleton\"\n className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n {...props}\n >\n {showIcon && (\n <Skeleton\n className=\"size-4 rounded-md\"\n data-sidebar=\"menu-skeleton-icon\"\n />\n )}\n <Skeleton\n className=\"h-4 max-w-(--skeleton-width) flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n '--skeleton-width': width,\n } as CSSProperties\n }\n />\n </div>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSub\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSub({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu-sub\"\n data-sidebar=\"menu-sub\"\n className={cn(\n 'ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5',\n 'group-data-[collapsible=icon]:hidden',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSubItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-sub-item\"\n data-sidebar=\"menu-sub-item\"\n className={cn('group/menu-sub-item relative', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n}\n"],"names":["__webpack_require__","e","Object","Symbol","SIDEBAR_COOKIE_NAME","SIDEBAR_COOKIE_MAX_AGE","SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_WIDTH_ICON","SIDEBAR_KEYBOARD_SHORTCUT","SIDEBAR_PROVIDER_NAME","SidebarContextProvider","useSidebar","createContext","SidebarProvider","defaultOpen","openProp","setOpenProp","className","style","user","modules","locale","children","props","isMobile","useIsMobile","openMobile","setOpenMobile","useState","_open","_setOpen","open","setOpen","useCallback","value","openState","document","toggleSidebar","useEffect","handleKeyDown","event","window","state","contextValue","useMemo","TooltipProvider","cn","SIDEBAR_NAME","Sidebar","side","variant","collapsible","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","SIDEBAR_TRIGGER_NAME","SidebarTrigger","onClick","Button","PanelLeftIcon","SidebarHeader","SidebarFooter","SidebarSeparator","Separator","SidebarContent","SidebarGroup","SidebarGroupLabel","asChild","Comp","Slot","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","tv","SIDEBAR_MENU_BUTTON_NAME","SidebarMenuButton","isActive","size","tooltip","button","Tooltip","TooltipTrigger","TooltipContent","SidebarMenuAction","showOnHover","SidebarMenuSkeleton","showIcon","width","Math","Skeleton","SidebarMenuSub","SidebarMenuSubItem"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,y6CC4BMG,oBAAsB,mBACtBC,uBAAyB,OACzBC,cAAgB,QAChBC,qBAAuB,QACvBC,mBAAqB,SACrBC,0BAA4B,IAmB5BC,sBAAwB,kBAExB,CAACC,uBAAwBC,WAAW,CAAGC,GAAAA,8BAAAA,aAAAA,EAFf,mBAU9B,SAASC,gBAAgB,CACvBC,YAAAA,EAAc,EAAI,CAClB,KAAMC,CAAQ,CACd,aAAcC,CAAW,CACzBC,UAAAA,CAAS,CACTC,MAAAA,CAAK,CACLC,KAAAA,CAAI,CACJC,QAAAA,CAAO,CACP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,EAGJ,EAEC,IAAMkE,EAAQ7C,GAAAA,+BAAAA,OAAAA,EAAQ,IACb,CAAC,EAAE8C,KAAK,KAAK,CAACA,GAAAA,KAAK,MAAM,IAAW,GAAG,CAAC,CAAC,CAC/C,EAAE,EAEL,MACE,qCAAC,OACC,YAAU,wBACV,eAAa,gBACb,UAAW5C,GAAAA,0BAAAA,EAAAA,EAAG,8CAA+C7B,GAC5D,GAAGM,CAAK,C,UAERiE,GACC,oCAACG,sCAAAA,QAAQA,CAAAA,CACP,UAAU,oBACV,eAAa,oB,GAGjB,oCAACA,sCAAAA,QAAQA,CAAAA,CACP,UAAU,sCACV,eAAa,qBACb,MACE,CACE,mBAAoBF,CACtB,C,KAKV,CAMA,SAASG,eAAe,CAAE3E,UAAAA,CAAS,CAAE,GAAGM,EAA6B,EACnE,MACE,oCAAC,MACC,YAAU,mBACV,eAAa,WACb,UAAWuB,GAAAA,0BAAAA,EAAAA,EACT,iGACA,uCACA7B,GAED,GAAGM,CAAK,EAGf,CAMA,SAASsE,mBAAmB,CAAE5E,UAAAA,CAAS,CAAE,GAAGM,EAA6B,EACvE,MACE,oCAAC,MACC,YAAU,wBACV,eAAa,gBACb,UAAWuB,GAAAA,0BAAAA,EAAAA,EAAG,+BAAgC7B,GAC7C,GAAGM,CAAK,EAGf,C"}
@@ -4,7 +4,7 @@ import { Locale, Module, User } from '../../types';
4
4
  import { Button } from '../button';
5
5
  import { Separator } from '../separator';
6
6
  import { TooltipContent } from '../tooltip';
7
- type SidebarContextProps = {
7
+ type SidebarContextValue = {
8
8
  state: 'expanded' | 'collapsed';
9
9
  open: boolean;
10
10
  setOpen: (open: boolean) => void;
@@ -16,7 +16,7 @@ type SidebarContextProps = {
16
16
  modules: Module[];
17
17
  locale: Locale;
18
18
  };
19
- declare function useSidebar(): SidebarContextProps;
19
+ declare const useSidebar: (consumerName: string) => SidebarContextValue;
20
20
  declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, user, modules, locale, children, ...props }: ComponentProps<'div'> & {
21
21
  defaultOpen?: boolean;
22
22
  open?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,cAAc,EAOf,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,YAAY,EAAU,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AASxC,OAAO,EAEL,cAAc,EAGf,MAAM,YAAY,CAAA;AASnB,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAA;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAID,iBAAS,UAAU,wBAQlB;AAED,iBAAS,eAAe,CAAC,EACvB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,IAAI,EACJ,OAAO,EACP,MAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EA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,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAA"}
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,cAAc,EAKf,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,YAAY,EAAU,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AASxC,OAAO,EAEL,cAAc,EAGf,MAAM,YAAY,CAAA;AASnB,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAA;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAQD,QAAA,MAA+B,UAAU,+CAExC,CAAA;AAMD,iBAAS,eAAe,CAAC,EACvB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,IAAI,EACJ,OAAO,EACP,MAAgB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AC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,2CAapE;AAMD,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,2CASxE;AAMD,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAA"}
@@ -1,2 +1 @@
1
- import*as t from"./data-table-pagination.js";import*as a from"./data-table-view-options.js";export*from"./data-table-action-bar.js";export*from"./data-table-advanced-toolbar.js";export*from"./data-table-column-header.js";export*from"./data-table-date-filter.js";export*from"./data-table-faceted-filter.js";export*from"./data-table-filter-list.js";export*from"./data-table-filter-menu.js";export*from"./data-table-range-filter.js";export*from"./data-table-skeleton.js";export*from"./data-table-slider-filter.js";export*from"./data-table-sort-list.js";export*from"./data-table-toolbar.js";export*from"./data-table.js";var e={"@/components/data-table/data-table-pagination":function(a){a.exports=t},"@/components/data-table/data-table-view-options":function(t){t.exports=a}},o={};function r(t){var a=o[t];if(void 0!==a)return a.exports;var n=o[t]={exports:{}};return e[t](n,n.exports,r),n.exports}r.d=(t,a)=>{for(var e in a)r.o(a,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},r.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};r.r(n);var l=r("@/components/data-table/data-table-pagination"),d={};for(var i in l)"default"!==i&&(d[i]=(function(t){return l[t]}).bind(0,i));r.d(n,d);var f=r("@/components/data-table/data-table-view-options"),d={};for(var i in f)"default"!==i&&(d[i]=(function(t){return f[t]}).bind(0,i));r.d(n,d);
2
- //# sourceMappingURL=index.js.map
1
+ export*from"./data-table-action-bar.js";export*from"./data-table-advanced-toolbar.js";export*from"./data-table-column-header.js";export*from"./data-table-date-filter.js";export*from"./data-table-faceted-filter.js";export*from"./data-table-filter-list.js";export*from"./data-table-filter-menu.js";export*from"./data-table-pagination.js";export*from"./data-table-range-filter.js";export*from"./data-table-skeleton.js";export*from"./data-table-slider-filter.js";export*from"./data-table-sort-list.js";export*from"./data-table-toolbar.js";export*from"./data-table-view-options.js";export*from"./data-table.js";
@@ -1,2 +1 @@
1
- import*as r from"./logo.js";import*as o from"./nav-modules.js";import*as e from"./nav-user.js";import*as t from"./sidebar.js";export*from"./app-sidebar.js";export*from"./nav-sub-item.js";export*from"./sidebar-icons.js";var n={"./logo":function(o){o.exports=r},"./nav-modules":function(r){r.exports=o},"./nav-user":function(r){r.exports=e},"./sidebar":function(r){r.exports=t}},a={};function i(r){var o=a[r];if(void 0!==o)return o.exports;var e=a[r]={exports:{}};return n[r](e,e.exports,i),e.exports}i.d=(r,o)=>{for(var e in o)i.o(o,e)&&!i.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:o[e]})},i.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o),i.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var s={};i.r(s);var u=i("./sidebar"),f={};for(var d in u)"default"!==d&&(f[d]=(function(r){return u[r]}).bind(0,d));i.d(s,f);var p=i("./nav-modules"),f={};for(var d in p)"default"!==d&&(f[d]=(function(r){return p[r]}).bind(0,d));i.d(s,f);var v=i("./nav-user"),f={};for(var d in v)"default"!==d&&(f[d]=(function(r){return v[r]}).bind(0,d));i.d(s,f);var l=i("./logo"),f={};for(var d in l)"default"!==d&&(f[d]=(function(r){return l[r]}).bind(0,d));i.d(s,f);
2
- //# sourceMappingURL=index.js.map
1
+ export*from"./sidebar.js";export*from"./app-sidebar.js";export*from"./nav-modules.js";export*from"./nav-sub-item.js";export*from"./nav-user.js";export*from"./sidebar-icons.js";export*from"./logo.js";
@@ -1 +1 @@
1
- {"version":3,"file":"nav-modules.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-modules.tsx"],"names":[],"mappings":"AAwBA,iBAAS,UAAU,4CAiDlB;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"nav-modules.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-modules.tsx"],"names":[],"mappings":"AA8BA,iBAAS,UAAU,4CAiDlB;AAMD,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as e from"react/jsx-runtime";import*as s from"@radix-ui/react-collapsible";import*as i from"lucide-react";import*as r from"next/link";import*as a from"./intl/messages.js";import*as n from"./nav-sub-item.js";import*as l from"./sidebar.js";import*as o from"./sidebar-icons.js";function d(){let{modules:d,locale:t}=(0,l.useSidebar)();return(0,e.jsxs)(l.SidebarGroup,{children:[(0,e.jsx)(l.SidebarGroupLabel,{children:a.messages[t].modules}),(0,e.jsxs)(l.SidebarMenu,{children:[(0,e.jsx)(l.SidebarMenuItem,{children:(0,e.jsx)(l.SidebarMenuButton,{asChild:!0,children:(0,e.jsxs)(r.default,{href:"/home",children:[(0,e.jsx)(i.House,{}),(0,e.jsx)("span",{children:a.messages[t].home})]})})}),d.map(r=>(0,e.jsx)(s.Collapsible,{asChild:!0,children:(0,e.jsxs)(l.SidebarMenuItem,{children:[(0,e.jsx)(s.CollapsibleTrigger,{asChild:!0,children:(0,e.jsxs)(l.SidebarMenuButton,{tooltip:r.name,children:[(0,e.jsx)(o.SidebarIcons,{icon:r.icon}),(0,e.jsx)("span",{children:r.name}),(0,e.jsx)(l.SidebarMenuAction,{className:"group-data-[state=open]/menu-item:rotate-90",asChild:!0,children:(0,e.jsxs)("div",{children:[(0,e.jsx)(i.ChevronRight,{className:"transition-transform"}),(0,e.jsx)("span",{className:"sr-only",children:"Toggle"})]})})]})}),r.submodules?.length&&(0,e.jsx)(s.CollapsibleContent,{children:(0,e.jsx)(l.SidebarMenuSub,{children:r.submodules?.map(s=>(0,e.jsx)(n.NavSubItem,{item:s},s.id))})})]})},r.id))]})]})}export{d as NavModules};
2
+ import*as e from"react/jsx-runtime";import*as s from"@radix-ui/react-collapsible";import*as i from"lucide-react";import*as r from"next/link";import*as a from"./intl/messages.js";import*as n from"./nav-sub-item.js";import*as l from"./sidebar.js";import*as o from"./sidebar-icons.js";function d(){let{modules:d,locale:t}=(0,l.useSidebar)("NavModules");return(0,e.jsxs)(l.SidebarGroup,{children:[(0,e.jsx)(l.SidebarGroupLabel,{children:a.messages[t].modules}),(0,e.jsxs)(l.SidebarMenu,{children:[(0,e.jsx)(l.SidebarMenuItem,{children:(0,e.jsx)(l.SidebarMenuButton,{asChild:!0,children:(0,e.jsxs)(r.default,{href:"/home",children:[(0,e.jsx)(i.House,{}),(0,e.jsx)("span",{children:a.messages[t].home})]})})}),d.map(r=>(0,e.jsx)(s.Collapsible,{asChild:!0,children:(0,e.jsxs)(l.SidebarMenuItem,{children:[(0,e.jsx)(s.CollapsibleTrigger,{asChild:!0,children:(0,e.jsxs)(l.SidebarMenuButton,{tooltip:r.name,children:[(0,e.jsx)(o.SidebarIcons,{icon:r.icon}),(0,e.jsx)("span",{children:r.name}),(0,e.jsx)(l.SidebarMenuAction,{className:"group-data-[state=open]/menu-item:rotate-90",asChild:!0,children:(0,e.jsxs)("div",{children:[(0,e.jsx)(i.ChevronRight,{className:"transition-transform"}),(0,e.jsx)("span",{className:"sr-only",children:"Toggle"})]})})]})}),r.submodules?.length&&(0,e.jsx)(s.CollapsibleContent,{children:(0,e.jsx)(l.SidebarMenuSub,{children:r.submodules?.map(s=>(0,e.jsx)(n.NavSubItem,{item:s},s.id))})})]})},r.id))]})]})}export{d as NavModules};
3
3
  //# sourceMappingURL=nav-modules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sidebar\\nav-modules.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-modules.tsx"],"sourcesContent":["\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from '@radix-ui/react-collapsible'\nimport { ChevronRight, House } from 'lucide-react'\nimport Link from 'next/link'\n\nimport { messages } from './intl/messages'\nimport { NavSubItem } from './nav-sub-item'\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n useSidebar,\n} from './sidebar'\nimport { SidebarIcons } from './sidebar-icons'\n\nfunction NavModules() {\n const { modules, locale } = useSidebar()\n\n return (\n <SidebarGroup>\n <SidebarGroupLabel>{messages[locale].modules}</SidebarGroupLabel>\n <SidebarMenu>\n <SidebarMenuItem>\n <SidebarMenuButton asChild>\n <Link href=\"/home\">\n <House />\n <span>{messages[locale].home}</span>\n </Link>\n </SidebarMenuButton>\n </SidebarMenuItem>\n {modules.map(item => (\n <Collapsible key={item.id} asChild>\n <SidebarMenuItem>\n <CollapsibleTrigger asChild>\n <SidebarMenuButton tooltip={item.name}>\n <SidebarIcons icon={item.icon} />\n\n <span>{item.name}</span>\n <SidebarMenuAction\n className=\"group-data-[state=open]/menu-item:rotate-90\"\n asChild\n >\n <div>\n <ChevronRight className=\"transition-transform\" />\n <span className=\"sr-only\">Toggle</span>\n </div>\n </SidebarMenuAction>\n </SidebarMenuButton>\n </CollapsibleTrigger>\n {item.submodules?.length && (\n <CollapsibleContent>\n <SidebarMenuSub>\n {item.submodules?.map(subItem => (\n <NavSubItem key={subItem.id} item={subItem} />\n ))}\n </SidebarMenuSub>\n </CollapsibleContent>\n )}\n </SidebarMenuItem>\n </Collapsible>\n ))}\n </SidebarMenu>\n </SidebarGroup>\n )\n}\n\nexport { NavModules }\n"],"names":["NavModules","modules","locale","useSidebar","SidebarGroup","SidebarGroupLabel","messages","SidebarMenu","SidebarMenuItem","SidebarMenuButton","Link","House","item","Collapsible","CollapsibleTrigger","SidebarIcons","SidebarMenuAction","ChevronRight","CollapsibleContent","SidebarMenuSub","subItem","NavSubItem"],"mappings":";0RAwBA,SAASA,IACP,GAAM,CAAEC,QAAAA,CAAO,CAAEC,OAAAA,CAAM,CAAE,CAAGC,GAAAA,EAAAA,UAAAA,IAE5B,MACE,WAACC,EAAAA,YAAYA,CAAAA,C,UACX,UAACC,EAAAA,iBAAiBA,CAAAA,C,SAAEC,EAAAA,QAAQ,CAACJ,EAAO,CAAC,OAAO,GAC5C,WAACK,EAAAA,WAAWA,CAAAA,C,UACV,UAACC,EAAAA,eAAeA,CAAAA,C,SACd,UAACC,EAAAA,iBAAiBA,CAAAA,CAAC,QAAO,G,SACxB,WAACC,EAAAA,OAAIA,CAAAA,CAAC,KAAK,Q,UACT,UAACC,EAAAA,KAAKA,CAAAA,CAAAA,GACN,UAAC,Q,SAAML,EAAAA,QAAQ,CAACJ,EAAO,CAAC,IAAI,UAIjCD,EAAQ,GAAG,CAACW,GACX,UAACC,EAAAA,WAAWA,CAAAA,CAAe,QAAO,G,SAChC,WAACL,EAAAA,eAAeA,CAAAA,C,UACd,UAACM,EAAAA,kBAAkBA,CAAAA,CAAC,QAAO,G,SACzB,WAACL,EAAAA,iBAAiBA,CAAAA,CAAC,QAASG,EAAK,IAAI,C,UACnC,UAACG,EAAAA,YAAYA,CAAAA,CAAC,KAAMH,EAAK,IAAI,GAE7B,UAAC,Q,SAAMA,EAAK,IAAI,GAChB,UAACI,EAAAA,iBAAiBA,CAAAA,CAChB,UAAU,8CACV,QAAO,G,SAEP,WAAC,O,UACC,UAACC,EAAAA,YAAYA,CAAAA,CAAC,UAAU,sB,GACxB,UAAC,QAAK,UAAU,U,SAAU,Q,aAKjCL,EAAK,UAAU,EAAE,QAChB,UAACM,EAAAA,kBAAkBA,CAAAA,C,SACjB,UAACC,EAAAA,cAAcA,CAAAA,C,SACZP,EAAK,UAAU,EAAE,IAAIQ,GACpB,UAACC,EAAAA,UAAUA,CAAAA,CAAkB,KAAMD,C,EAAlBA,EAAQ,EAAE,E,SAtBrBR,EAAK,EAAE,G,KAiCnC,Q"}
1
+ {"version":3,"file":"components\\sidebar\\nav-modules.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-modules.tsx"],"sourcesContent":["\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from '@radix-ui/react-collapsible'\nimport { ChevronRight, House } from 'lucide-react'\nimport Link from 'next/link'\n\nimport { messages } from './intl/messages'\nimport { NavSubItem } from './nav-sub-item'\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n useSidebar,\n} from './sidebar'\nimport { SidebarIcons } from './sidebar-icons'\n\n/* -----------------------------------------------------------------------------\n * Component: NavModules\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_NAV_MODULES_NAME = 'NavModules'\n\nfunction NavModules() {\n const { modules, locale } = useSidebar(SIDEBAR_NAV_MODULES_NAME)\n\n return (\n <SidebarGroup>\n <SidebarGroupLabel>{messages[locale].modules}</SidebarGroupLabel>\n <SidebarMenu>\n <SidebarMenuItem>\n <SidebarMenuButton asChild>\n <Link href=\"/home\">\n <House />\n <span>{messages[locale].home}</span>\n </Link>\n </SidebarMenuButton>\n </SidebarMenuItem>\n {modules.map(item => (\n <Collapsible key={item.id} asChild>\n <SidebarMenuItem>\n <CollapsibleTrigger asChild>\n <SidebarMenuButton tooltip={item.name}>\n <SidebarIcons icon={item.icon} />\n\n <span>{item.name}</span>\n <SidebarMenuAction\n className=\"group-data-[state=open]/menu-item:rotate-90\"\n asChild\n >\n <div>\n <ChevronRight className=\"transition-transform\" />\n <span className=\"sr-only\">Toggle</span>\n </div>\n </SidebarMenuAction>\n </SidebarMenuButton>\n </CollapsibleTrigger>\n {item.submodules?.length && (\n <CollapsibleContent>\n <SidebarMenuSub>\n {item.submodules?.map(subItem => (\n <NavSubItem key={subItem.id} item={subItem} />\n ))}\n </SidebarMenuSub>\n </CollapsibleContent>\n )}\n </SidebarMenuItem>\n </Collapsible>\n ))}\n </SidebarMenu>\n </SidebarGroup>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NavModules }\n"],"names":["NavModules","modules","locale","useSidebar","SidebarGroup","SidebarGroupLabel","messages","SidebarMenu","SidebarMenuItem","SidebarMenuButton","Link","House","item","Collapsible","CollapsibleTrigger","SidebarIcons","SidebarMenuAction","ChevronRight","CollapsibleContent","SidebarMenuSub","subItem","NavSubItem"],"mappings":";0RA8BA,SAASA,IACP,GAAM,CAAEC,QAAAA,CAAO,CAAEC,OAAAA,CAAM,CAAE,CAAGC,GAAAA,EAAAA,UAAAA,EAHG,cAK/B,MACE,WAACC,EAAAA,YAAYA,CAAAA,C,UACX,UAACC,EAAAA,iBAAiBA,CAAAA,C,SAAEC,EAAAA,QAAQ,CAACJ,EAAO,CAAC,OAAO,GAC5C,WAACK,EAAAA,WAAWA,CAAAA,C,UACV,UAACC,EAAAA,eAAeA,CAAAA,C,SACd,UAACC,EAAAA,iBAAiBA,CAAAA,CAAC,QAAO,G,SACxB,WAACC,EAAAA,OAAIA,CAAAA,CAAC,KAAK,Q,UACT,UAACC,EAAAA,KAAKA,CAAAA,CAAAA,GACN,UAAC,Q,SAAML,EAAAA,QAAQ,CAACJ,EAAO,CAAC,IAAI,UAIjCD,EAAQ,GAAG,CAACW,GACX,UAACC,EAAAA,WAAWA,CAAAA,CAAe,QAAO,G,SAChC,WAACL,EAAAA,eAAeA,CAAAA,C,UACd,UAACM,EAAAA,kBAAkBA,CAAAA,CAAC,QAAO,G,SACzB,WAACL,EAAAA,iBAAiBA,CAAAA,CAAC,QAASG,EAAK,IAAI,C,UACnC,UAACG,EAAAA,YAAYA,CAAAA,CAAC,KAAMH,EAAK,IAAI,GAE7B,UAAC,Q,SAAMA,EAAK,IAAI,GAChB,UAACI,EAAAA,iBAAiBA,CAAAA,CAChB,UAAU,8CACV,QAAO,G,SAEP,WAAC,O,UACC,UAACC,EAAAA,YAAYA,CAAAA,CAAC,UAAU,sB,GACxB,UAAC,QAAK,UAAU,U,SAAU,Q,aAKjCL,EAAK,UAAU,EAAE,QAChB,UAACM,EAAAA,kBAAkBA,CAAAA,C,SACjB,UAACC,EAAAA,cAAcA,CAAAA,C,SACZP,EAAK,UAAU,EAAE,IAAIQ,GACpB,UAACC,EAAAA,UAAUA,CAAAA,CAAkB,KAAMD,C,EAAlBA,EAAQ,EAAE,E,SAtBrBR,EAAK,EAAE,G,KAiCnC,Q"}
@@ -1 +1 @@
1
- {"version":3,"file":"nav-user.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-user.tsx"],"names":[],"mappings":"AAyBA,iBAAS,OAAO,4CAiFf;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"nav-user.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/nav-user.tsx"],"names":[],"mappings":"AA+BA,iBAAS,OAAO,4CAiFf;AAMD,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as e from"react/jsx-runtime";import*as s from"../dropdown-menu.js";import*as a from"lucide-react";import*as r from"../avatar.js";import*as n from"./intl/messages.js";import*as t from"./sidebar.js";function i(){let{isMobile:i,user:l,locale:d}=(0,t.useSidebar)();return(0,e.jsx)(t.SidebarMenu,{children:(0,e.jsx)(t.SidebarMenuItem,{children:(0,e.jsxs)(s.DropdownMenu,{children:[(0,e.jsx)(s.DropdownMenuTrigger,{asChild:!0,children:(0,e.jsxs)(t.SidebarMenuButton,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[(0,e.jsxs)(r.Avatar,{className:"size-8 rounded-lg group-data-[collapsible=icon]:size-10",children:[(0,e.jsx)(r.AvatarImage,{src:void 0,alt:l.name}),(0,e.jsx)(r.AvatarFallback,{className:"rounded-lg",children:(0,e.jsx)(a.UserRound,{className:"size-4"})})]}),(0,e.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,e.jsx)("span",{className:"truncate font-medium",children:l.name}),(0,e.jsx)("span",{className:"truncate text-gbm-gray text-xs",children:l.email})]}),(0,e.jsx)(a.ChevronsUpDown,{className:"ml-auto size-4"})]})}),(0,e.jsxs)(s.DropdownMenuContent,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:i?"bottom":"right",align:"end",sideOffset:4,children:[(0,e.jsx)(s.DropdownMenuLabel,{className:"p-0 font-normal",children:(0,e.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[(0,e.jsxs)(r.Avatar,{className:"h-8 w-8 rounded-lg",children:[(0,e.jsx)(r.AvatarImage,{src:void 0,alt:l.name}),(0,e.jsx)(r.AvatarFallback,{className:"rounded-lg",children:(0,e.jsx)(a.UserRound,{className:"size-4"})})]}),(0,e.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,e.jsx)("span",{className:"truncate font-semibold",children:l.name}),(0,e.jsx)("span",{className:"truncate text-xs",children:l.email})]})]})}),(0,e.jsx)(s.DropdownMenuGroup,{children:(0,e.jsxs)(s.DropdownMenuSub,{children:[(0,e.jsxs)(s.DropdownMenuSubTrigger,{children:[(0,e.jsx)(a.Languages,{className:"mr-2 size-4"}),n.messages[d].language]}),(0,e.jsxs)(s.DropdownMenuSubContent,{children:[(0,e.jsxs)(s.DropdownMenuItem,{className:"gap-2",children:[(0,e.jsx)("img",{src:"/brazil.svg",alt:""}),"PT-BR"]}),(0,e.jsxs)(s.DropdownMenuItem,{className:"gap-2",children:[(0,e.jsx)("img",{src:"/united-states.svg",alt:""}),"EN-US"]}),(0,e.jsxs)(s.DropdownMenuItem,{className:"gap-2",children:[(0,e.jsx)("img",{src:"/spain.svg",alt:""}),"ES"]})]})]})}),(0,e.jsx)(s.DropdownMenuSeparator,{}),(0,e.jsx)(s.DropdownMenuItem,{asChild:!0,children:(0,e.jsxs)("a",{href:"/api/auth/sign-out",children:[(0,e.jsx)(a.LogOut,{className:"mr-2 size-4"}),n.messages[d]["sign-out"]]})})]})]})})})}export{i as NavUser};
2
+ import*as e from"react/jsx-runtime";import*as s from"../dropdown-menu.js";import*as a from"lucide-react";import*as r from"../avatar.js";import*as n from"./intl/messages.js";import*as t from"./sidebar.js";function i(){let{isMobile:i,user:l,locale:d}=(0,t.useSidebar)("NavUser");return(0,e.jsx)(t.SidebarMenu,{children:(0,e.jsx)(t.SidebarMenuItem,{children:(0,e.jsxs)(s.DropdownMenu,{children:[(0,e.jsx)(s.DropdownMenuTrigger,{asChild:!0,children:(0,e.jsxs)(t.SidebarMenuButton,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[(0,e.jsxs)(r.Avatar,{className:"size-8 rounded-lg group-data-[collapsible=icon]:size-10",children:[(0,e.jsx)(r.AvatarImage,{src:void 0,alt:l.name}),(0,e.jsx)(r.AvatarFallback,{className:"rounded-lg",children:(0,e.jsx)(a.UserRound,{className:"size-4"})})]}),(0,e.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,e.jsx)("span",{className:"truncate font-medium",children:l.name}),(0,e.jsx)("span",{className:"truncate text-gbm-gray text-xs",children:l.email})]}),(0,e.jsx)(a.ChevronsUpDown,{className:"ml-auto size-4"})]})}),(0,e.jsxs)(s.DropdownMenuContent,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:i?"bottom":"right",align:"end",sideOffset:4,children:[(0,e.jsx)(s.DropdownMenuLabel,{className:"p-0 font-normal",children:(0,e.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[(0,e.jsxs)(r.Avatar,{className:"h-8 w-8 rounded-lg",children:[(0,e.jsx)(r.AvatarImage,{src:void 0,alt:l.name}),(0,e.jsx)(r.AvatarFallback,{className:"rounded-lg",children:(0,e.jsx)(a.UserRound,{className:"size-4"})})]}),(0,e.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,e.jsx)("span",{className:"truncate font-semibold",children:l.name}),(0,e.jsx)("span",{className:"truncate text-xs",children:l.email})]})]})}),(0,e.jsx)(s.DropdownMenuGroup,{children:(0,e.jsxs)(s.DropdownMenuSub,{children:[(0,e.jsxs)(s.DropdownMenuSubTrigger,{children:[(0,e.jsx)(a.Languages,{className:"mr-2 size-4"}),n.messages[d].language]}),(0,e.jsxs)(s.DropdownMenuSubContent,{children:[(0,e.jsxs)(s.DropdownMenuItem,{className:"gap-2",children:[(0,e.jsx)("img",{src:"/brazil.svg",alt:""}),"PT-BR"]}),(0,e.jsxs)(s.DropdownMenuItem,{className:"gap-2",children:[(0,e.jsx)("img",{src:"/united-states.svg",alt:""}),"EN-US"]}),(0,e.jsxs)(s.DropdownMenuItem,{className:"gap-2",children:[(0,e.jsx)("img",{src:"/spain.svg",alt:""}),"ES"]})]})]})}),(0,e.jsx)(s.DropdownMenuSeparator,{}),(0,e.jsx)(s.DropdownMenuItem,{asChild:!0,children:(0,e.jsxs)("a",{href:"/api/auth/sign-out",children:[(0,e.jsx)(a.LogOut,{className:"mr-2 size-4"}),n.messages[d]["sign-out"]]})})]})]})})})}export{i as NavUser};
3
3
  //# sourceMappingURL=nav-user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sidebar\\nav-user.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-user.tsx"],"sourcesContent":["\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from '@/components/dropdown-menu'\nimport { ChevronsUpDown, Languages, LogOut, UserRound } from 'lucide-react'\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/avatar'\nimport { messages } from './intl/messages'\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from './sidebar'\n\nfunction NavUser() {\n const { isMobile, user, locale } = useSidebar()\n\n return (\n <SidebarMenu>\n <SidebarMenuItem>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <SidebarMenuButton\n size=\"lg\"\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n >\n <Avatar className=\"size-8 rounded-lg group-data-[collapsible=icon]:size-10\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{user.name}</span>\n <span className=\"truncate text-gbm-gray text-xs\">\n {user.email}\n </span>\n </div>\n <ChevronsUpDown className=\"ml-auto size-4\" />\n </SidebarMenuButton>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n className=\"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg\"\n side={isMobile ? 'bottom' : 'right'}\n align=\"end\"\n sideOffset={4}\n >\n <DropdownMenuLabel className=\"p-0 font-normal\">\n <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n <Avatar className=\"h-8 w-8 rounded-lg\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-semibold\">{user.name}</span>\n <span className=\"truncate text-xs\">{user.email}</span>\n </div>\n </div>\n </DropdownMenuLabel>\n <DropdownMenuGroup>\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>\n <Languages className=\"mr-2 size-4\" />\n {messages[locale].language}\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/brazil.svg\" alt=\"\" />\n PT-BR\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/united-states.svg\" alt=\"\" />\n EN-US\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/spain.svg\" alt=\"\" />\n ES\n </DropdownMenuItem>\n </DropdownMenuSubContent>\n </DropdownMenuSub>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem asChild>\n <a href=\"/api/auth/sign-out\">\n <LogOut className=\"mr-2 size-4\" />\n {messages[locale]['sign-out']}\n </a>\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n </SidebarMenu>\n )\n}\n\nexport { NavUser }\n"],"names":["NavUser","isMobile","user","locale","useSidebar","SidebarMenu","SidebarMenuItem","DropdownMenu","DropdownMenuTrigger","SidebarMenuButton","Avatar","AvatarImage","undefined","AvatarFallback","UserRound","ChevronsUpDown","DropdownMenuContent","DropdownMenuLabel","DropdownMenuGroup","DropdownMenuSub","DropdownMenuSubTrigger","Languages","messages","DropdownMenuSubContent","DropdownMenuItem","DropdownMenuSeparator","LogOut"],"mappings":";4MAyBA,SAASA,IACP,GAAM,CAAEC,SAAAA,CAAQ,CAAEC,KAAAA,CAAI,CAAEC,OAAAA,CAAM,CAAE,CAAGC,GAAAA,EAAAA,UAAAA,IAEnC,MACE,UAACC,EAAAA,WAAWA,CAAAA,C,SACV,UAACC,EAAAA,eAAeA,CAAAA,C,SACd,WAACC,EAAAA,YAAYA,CAAAA,C,UACX,UAACC,EAAAA,mBAAmBA,CAAAA,CAAC,QAAO,G,SAC1B,WAACC,EAAAA,iBAAiBA,CAAAA,CAChB,KAAK,KACL,UAAU,uF,UAEV,WAACC,EAAAA,MAAMA,CAAAA,CAAC,UAAU,0D,UAChB,UAACC,EAAAA,WAAWA,C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CAAC,UAAU,Q,UAC1B,UAAC,OAAI,IAAI,qBAAqB,IAAI,E,GAAK,Q,GAGzC,WAACA,EAAAA,gBAAgBA,CAAAA,CAAC,UAAU,Q,UAC1B,UAAC,OAAI,IAAI,aAAa,IAAI,E,GAAK,K,WAMvC,UAACC,EAAAA,qBAAqBA,CAAAA,CAAAA,GACtB,UAACD,EAAAA,gBAAgBA,CAAAA,CAAC,QAAO,G,SACvB,WAAC,KAAE,KAAK,qB,UACN,UAACE,EAAAA,MAAMA,CAAAA,CAAC,UAAU,a,GACjBJ,EAAAA,QAAQ,CAACnB,EAAO,CAAC,WAAW,C,cAQ7C,Q"}
1
+ {"version":3,"file":"components\\sidebar\\nav-user.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/sidebar/nav-user.tsx"],"sourcesContent":["\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from '@/components/dropdown-menu'\nimport { ChevronsUpDown, Languages, LogOut, UserRound } from 'lucide-react'\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/avatar'\nimport { messages } from './intl/messages'\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from './sidebar'\n\n/* -----------------------------------------------------------------------------\n * Component: NavUser\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_NAV_USER_NAME = 'NavUser'\n\nfunction NavUser() {\n const { isMobile, user, locale } = useSidebar(SIDEBAR_NAV_USER_NAME)\n\n return (\n <SidebarMenu>\n <SidebarMenuItem>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <SidebarMenuButton\n size=\"lg\"\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n >\n <Avatar className=\"size-8 rounded-lg group-data-[collapsible=icon]:size-10\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{user.name}</span>\n <span className=\"truncate text-gbm-gray text-xs\">\n {user.email}\n </span>\n </div>\n <ChevronsUpDown className=\"ml-auto size-4\" />\n </SidebarMenuButton>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n className=\"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg\"\n side={isMobile ? 'bottom' : 'right'}\n align=\"end\"\n sideOffset={4}\n >\n <DropdownMenuLabel className=\"p-0 font-normal\">\n <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n <Avatar className=\"h-8 w-8 rounded-lg\">\n <AvatarImage src={undefined} alt={user.name} />\n <AvatarFallback className=\"rounded-lg\">\n <UserRound className=\"size-4\" />\n </AvatarFallback>\n </Avatar>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-semibold\">{user.name}</span>\n <span className=\"truncate text-xs\">{user.email}</span>\n </div>\n </div>\n </DropdownMenuLabel>\n <DropdownMenuGroup>\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>\n <Languages className=\"mr-2 size-4\" />\n {messages[locale].language}\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/brazil.svg\" alt=\"\" />\n PT-BR\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/united-states.svg\" alt=\"\" />\n EN-US\n </DropdownMenuItem>\n <DropdownMenuItem className=\"gap-2\">\n <img src=\"/spain.svg\" alt=\"\" />\n ES\n </DropdownMenuItem>\n </DropdownMenuSubContent>\n </DropdownMenuSub>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem asChild>\n <a href=\"/api/auth/sign-out\">\n <LogOut className=\"mr-2 size-4\" />\n {messages[locale]['sign-out']}\n </a>\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n </SidebarMenu>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NavUser }\n"],"names":["NavUser","isMobile","user","locale","useSidebar","SidebarMenu","SidebarMenuItem","DropdownMenu","DropdownMenuTrigger","SidebarMenuButton","Avatar","AvatarImage","undefined","AvatarFallback","UserRound","ChevronsUpDown","DropdownMenuContent","DropdownMenuLabel","DropdownMenuGroup","DropdownMenuSub","DropdownMenuSubTrigger","Languages","messages","DropdownMenuSubContent","DropdownMenuItem","DropdownMenuSeparator","LogOut"],"mappings":";4MA+BA,SAASA,IACP,GAAM,CAAEC,SAAAA,CAAQ,CAAEC,KAAAA,CAAI,CAAEC,OAAAA,CAAM,CAAE,CAAGC,GAAAA,EAAAA,UAAAA,EAHP,WAK5B,MACE,UAACC,EAAAA,WAAWA,CAAAA,C,SACV,UAACC,EAAAA,eAAeA,CAAAA,C,SACd,WAACC,EAAAA,YAAYA,CAAAA,C,UACX,UAACC,EAAAA,mBAAmBA,CAAAA,CAAC,QAAO,G,SAC1B,WAACC,EAAAA,iBAAiBA,CAAAA,CAChB,KAAK,KACL,UAAU,uF,UAEV,WAACC,EAAAA,MAAMA,CAAAA,CAAC,UAAU,0D,UAChB,UAACC,EAAAA,WAAWA,CAAAA,CAAC,IAAKC,OAAW,IAAKV,EAAK,IAAI,GAC3C,UAACW,EAAAA,cAAcA,CAAAA,CAAC,UAAU,a,SACxB,UAACC,EAAAA,SAASA,CAAAA,CAAC,UAAU,Q,QAGzB,WAAC,OAAI,UAAU,8C,UACb,UAAC,QAAK,UAAU,uB,SAAwBZ,EAAK,IAAI,GACjD,UAAC,QAAK,UAAU,iC,SACbA,EAAK,KAAK,MAGf,UAACa,EAAAA,cAAcA,CAAAA,CAAC,UAAU,gB,QAG9B,WAACC,EAAAA,mBAAmBA,CAAAA,CAClB,UA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,CAACnB,EAAO,CAAC,WAAW,C,cAQ7C,Q"}
@@ -4,7 +4,7 @@ import { Locale, Module, User } from '../../types';
4
4
  import { Button } from '../button';
5
5
  import { Separator } from '../separator';
6
6
  import { TooltipContent } from '../tooltip';
7
- type SidebarContextProps = {
7
+ type SidebarContextValue = {
8
8
  state: 'expanded' | 'collapsed';
9
9
  open: boolean;
10
10
  setOpen: (open: boolean) => void;
@@ -16,7 +16,7 @@ type SidebarContextProps = {
16
16
  modules: Module[];
17
17
  locale: Locale;
18
18
  };
19
- declare function useSidebar(): SidebarContextProps;
19
+ declare const useSidebar: (consumerName: string) => SidebarContextValue;
20
20
  declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, user, modules, locale, children, ...props }: ComponentProps<'div'> & {
21
21
  defaultOpen?: boolean;
22
22
  open?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,cAAc,EAOf,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,YAAY,EAAU,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AASxC,OAAO,EAEL,cAAc,EAGf,MAAM,YAAY,CAAA;AASnB,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAA;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,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CAAC,CAAA;CACzD,GAAG,YAAY,CAAC,OAAO,yBAAyB,CAAC,2CAoCjD;AAMD,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,OAAe,EACf,WAAmB,EACnB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,2CAsBA;AAMD,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,QAAgB,EAChB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,2CA8BA;AAMD,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,2CAapE;AAMD,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,2CASxE;AAMD,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAA"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as e from"react/jsx-runtime";import*as a from"@radix-ui/react-slot";import*as t from"react";import*as r from"../../hooks/use-mobile.js";import*as i from"../../lib/index.js";import*as s from"lucide-react";import*as o from"../button.js";import*as d from"../separator.js";import*as n from"../sheet/index.js";import*as l from"../skeleton.js";import*as c from"../tooltip.js";let u=(0,t.createContext)(null);function b(){let e=(0,t.use)(u);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function p({defaultOpen:a=!0,open:s,onOpenChange:o,className:d,style:n,user:l,modules:b,locale:p="pt-br",children:m,...f}){let g=(0,r.useIsMobile)(),[h,x]=(0,t.useState)(!1),[v,w]=(0,t.useState)(a),j=s??v,S=(0,t.useCallback)(e=>{let a="function"==typeof e?e(j):e;o?o(a):w(a),document.cookie=`gbm_sidebar_open=${a}; path=/; max-age=604800`},[o,j]),y=(0,t.useCallback)(()=>g?x(e=>!e):S(e=>!e),[g,S,x]);(0,t.useEffect)(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[y]);let N=j?"expanded":"collapsed",k=(0,t.useMemo)(()=>({state:N,open:j,setOpen:S,isMobile:g,openMobile:h,setOpenMobile:x,toggleSidebar:y,locale:p,user:l,modules:b}),[N,j,S,g,h,x,y,l,b,p]);return(0,e.jsx)(u.Provider,{value:k,children:(0,e.jsx)(c.TooltipProvider,{delayDuration:0,children:(0,e.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"4.5rem",...n},className:(0,i.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",d),...f,children:m})})})}function m({side:a="left",variant:t="sidebar",collapsible:r="icon",className:s,children:o,...d}){let{isMobile:l,state:c,openMobile:u,setOpenMobile:p}=b();return"none"===r?(0,e.jsx)("div",{"data-slot":"sidebar",className:(0,i.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",s),...d,children:o}):l?(0,e.jsx)(n.Sheet,{open:u,onOpenChange:p,...d,children:(0,e.jsxs)(n.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:a,children:[(0,e.jsxs)(n.SheetHeader,{className:"sr-only",children:[(0,e.jsx)(n.SheetTitle,{children:"Sidebar"}),(0,e.jsx)(n.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,e.jsx)("div",{className:"flex h-full w-full flex-col",children:o})]})}):(0,e.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?r:"","data-variant":t,"data-side":a,"data-slot":"sidebar",children:[(0,e.jsx)("div",{"data-slot":"sidebar-gap",className:(0,i.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,e.jsx)("div",{"data-slot":"sidebar-container",className:(0,i.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...d,children:(0,e.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:o})})]})}function f({className:a,onClick:t,...r}){let{toggleSidebar:d}=b();return(0,e.jsxs)(o.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,i.cn)("size-7",a),onClick:e=>{t?.(e),d()},...r,children:[(0,e.jsx)(s.PanelLeftIcon,{}),(0,e.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function g({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,i.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",a),...t})}function h({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,i.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",a),...t})}function x({className:a,...t}){return(0,e.jsx)(d.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,i.cn)("mx-2 w-auto bg-sidebar-border",a),...t})}function v({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,i.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden",a),...t})}function w({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,i.cn)("relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4",a),...t})}function j({className:t,asChild:r=!1,...s}){let o=r?a.Slot:"div";return(0,e.jsx)(o,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,i.cn)("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...s})}function S({className:a,...t}){return(0,e.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,i.cn)("flex w-full min-w-0 flex-col gap-1",a),...t})}function y({className:a,...t}){return(0,e.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,i.cn)("group/menu-item relative",a),...t})}let N=(0,i.tv)({base:"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function k({asChild:t=!1,isActive:r=!1,variant:s="default",size:o="default",tooltip:d,className:n,...l}){let u=t?a.Slot:"button",{isMobile:p,state:m}=b(),f=(0,e.jsx)(u,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":o,"data-active":r,className:(0,i.cn)(N({variant:s,size:o}),n),...l});return d?("string"==typeof d&&(d={children:d}),(0,e.jsxs)(c.Tooltip,{children:[(0,e.jsx)(c.TooltipTrigger,{asChild:!0,children:f}),(0,e.jsx)(c.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==m||p,...d})]})):f}function z({className:t,asChild:r=!1,showOnHover:s=!1,...o}){let d=r?a.Slot:"button";return(0,e.jsx)(d,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,i.cn)("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",s&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t),...o})}function M({className:a,showIcon:r=!1,...s}){let o=(0,t.useMemo)(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,e.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,i.cn)("flex h-8 items-center gap-2 rounded-md px-2",a),...s,children:[r&&(0,e.jsx)(l.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,e.jsx)(l.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}function C({className:a,...t}){return(0,e.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,i.cn)("ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5","group-data-[collapsible=icon]:hidden",a),...t})}function _({className:a,...t}){return(0,e.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,i.cn)("group/menu-sub-item relative",a),...t})}export{m as Sidebar,v as SidebarContent,h as SidebarFooter,w as SidebarGroup,j as SidebarGroupLabel,g as SidebarHeader,S as SidebarMenu,z as SidebarMenuAction,k as SidebarMenuButton,y as SidebarMenuItem,M as SidebarMenuSkeleton,C as SidebarMenuSub,_ as SidebarMenuSubItem,p as SidebarProvider,x as SidebarSeparator,f as SidebarTrigger,b as useSidebar};
2
+ import*as e from"react/jsx-runtime";import*as a from"@radix-ui/react-context";import*as t from"@radix-ui/react-slot";import*as r from"react";import*as i from"../../hooks/use-mobile.js";import*as s from"../../lib/index.js";import*as d from"lucide-react";import*as o from"../button.js";import*as n from"../separator.js";import*as l from"../sheet/index.js";import*as c from"../skeleton.js";import*as u from"../tooltip.js";let[b,p]=(0,a.createContext)("SidebarProvider");function m({defaultOpen:a=!0,open:t,onOpenChange:d,className:o,style:n,user:l,modules:c,locale:p="pt-br",children:m,...g}){let f=(0,i.useIsMobile)(),[h,x]=(0,r.useState)(!1),[v,w]=(0,r.useState)(a),j=t??v,S=(0,r.useCallback)(e=>{let a="function"==typeof e?e(j):e;d?d(a):w(a),document.cookie=`gbm_sidebar_open=${a}; path=/; max-age=604800`},[d,j]),y=(0,r.useCallback)(()=>f?x(e=>!e):S(e=>!e),[f,S,x]);(0,r.useEffect)(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[y]);let N=j?"expanded":"collapsed",k=(0,r.useMemo)(()=>({state:N,open:j,setOpen:S,isMobile:f,openMobile:h,setOpenMobile:x,toggleSidebar:y,locale:p,user:l,modules:c}),[N,j,S,f,h,x,y,l,c,p]);return(0,e.jsx)(b,{...k,children:(0,e.jsx)(u.TooltipProvider,{delayDuration:0,children:(0,e.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"4.5rem",...n},className:(0,s.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",o),...g,children:m})})})}function g({side:a="left",variant:t="sidebar",collapsible:r="icon",className:i,children:d,...o}){let{isMobile:n,state:c,openMobile:u,setOpenMobile:b}=p("Sidebar");return"none"===r?(0,e.jsx)("div",{"data-slot":"sidebar",className:(0,s.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),...o,children:d}):n?(0,e.jsx)(l.Sheet,{open:u,onOpenChange:b,...o,children:(0,e.jsxs)(l.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:a,children:[(0,e.jsxs)(l.SheetHeader,{className:"sr-only",children:[(0,e.jsx)(l.SheetTitle,{children:"Sidebar"}),(0,e.jsx)(l.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,e.jsx)("div",{className:"flex h-full w-full flex-col",children:d})]})}):(0,e.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?r:"","data-variant":t,"data-side":a,"data-slot":"sidebar",children:[(0,e.jsx)("div",{"data-slot":"sidebar-gap",className:(0,s.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,e.jsx)("div",{"data-slot":"sidebar-container",className:(0,s.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...o,children:(0,e.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:d})})]})}function f({className:a,onClick:t,...r}){let{toggleSidebar:i}=p("SidebarTrigger");return(0,e.jsxs)(o.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,s.cn)("size-7",a),onClick:e=>{t?.(e),i()},...r,children:[(0,e.jsx)(d.PanelLeftIcon,{}),(0,e.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function h({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,s.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",a),...t})}function x({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,s.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",a),...t})}function v({className:a,...t}){return(0,e.jsx)(n.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,s.cn)("mx-2 w-auto bg-sidebar-border",a),...t})}function w({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,s.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden",a),...t})}function j({className:a,...t}){return(0,e.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,s.cn)("relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4",a),...t})}function S({className:a,asChild:r=!1,...i}){let d=r?t.Slot:"div";return(0,e.jsx)(d,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,s.cn)("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...i})}function y({className:a,...t}){return(0,e.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,s.cn)("flex w-full min-w-0 flex-col gap-1",a),...t})}function N({className:a,...t}){return(0,e.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,s.cn)("group/menu-item relative",a),...t})}let k=(0,s.tv)({base:"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function z({asChild:a=!1,isActive:r=!1,variant:i="default",size:d="default",tooltip:o,className:n,...l}){let c=a?t.Slot:"button",{isMobile:b,state:m}=p("SidebarMenuButton"),g=(0,e.jsx)(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":d,"data-active":r,className:(0,s.cn)(k({variant:i,size:d}),n),...l});return o?("string"==typeof o&&(o={children:o}),(0,e.jsxs)(u.Tooltip,{children:[(0,e.jsx)(u.TooltipTrigger,{asChild:!0,children:g}),(0,e.jsx)(u.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==m||b,...o})]})):g}function M({className:a,asChild:r=!1,showOnHover:i=!1,...d}){let o=r?t.Slot:"button";return(0,e.jsx)(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,s.cn)("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",i&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...d})}function C({className:a,showIcon:t=!1,...i}){let d=(0,r.useMemo)(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,e.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,s.cn)("flex h-8 items-center gap-2 rounded-md px-2",a),...i,children:[t&&(0,e.jsx)(c.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,e.jsx)(c.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})}function _({className:a,...t}){return(0,e.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,s.cn)("ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5","group-data-[collapsible=icon]:hidden",a),...t})}function T({className:a,...t}){return(0,e.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,s.cn)("group/menu-sub-item relative",a),...t})}export{g as Sidebar,w as SidebarContent,x as SidebarFooter,j as SidebarGroup,S as SidebarGroupLabel,h as SidebarHeader,y as SidebarMenu,M as SidebarMenuAction,z as SidebarMenuButton,N as SidebarMenuItem,C as SidebarMenuSkeleton,_ as SidebarMenuSub,T as SidebarMenuSubItem,m as SidebarProvider,v as SidebarSeparator,f as SidebarTrigger,p as useSidebar};
3
3
  //# sourceMappingURL=sidebar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sidebar\\sidebar.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/sidebar/sidebar.tsx"],"sourcesContent":["\n\nimport { Slot } from '@radix-ui/react-slot'\nimport {\n CSSProperties,\n ComponentProps,\n createContext,\n use,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport { useIsMobile } from '@/hooks/use-mobile'\nimport { VariantProps, cn, tv } from '@/lib'\nimport { Locale, Module, User } from '@/types'\nimport { PanelLeftIcon } from 'lucide-react'\nimport { Button } from '../button'\nimport { Separator } from '../separator'\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n} from '../sheet'\nimport { Skeleton } from '../skeleton'\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '../tooltip'\n\nconst SIDEBAR_COOKIE_NAME = 'gbm_sidebar_open'\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7\nconst SIDEBAR_WIDTH = '16rem'\nconst SIDEBAR_WIDTH_MOBILE = '18rem'\nconst SIDEBAR_WIDTH_ICON = '4.5rem'\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b'\n\ntype SidebarContextProps = {\n state: 'expanded' | 'collapsed'\n open: boolean\n setOpen: (open: boolean) => void\n openMobile: boolean\n setOpenMobile: (open: boolean) => void\n isMobile: boolean\n toggleSidebar: () => void\n user: User\n modules: Module[]\n locale: Locale\n}\n\nconst SidebarContext = createContext<SidebarContextProps | null>(null)\n\nfunction useSidebar() {\n const context = use(SidebarContext)\n\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.')\n }\n\n return context\n}\n\nfunction SidebarProvider({\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n user,\n modules,\n locale = 'pt-br',\n children,\n ...props\n}: ComponentProps<'div'> & {\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n user: User\n modules: Module[]\n locale?: Locale\n}) {\n const isMobile = useIsMobile()\n const [openMobile, setOpenMobile] = useState(false)\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = useState(defaultOpen)\n const open = openProp ?? _open\n const setOpen = useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(open) : value\n if (setOpenProp) {\n setOpenProp(openState)\n } else {\n _setOpen(openState)\n }\n\n // This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`\n },\n [setOpenProp, open]\n )\n\n // Helper to toggle the sidebar.\n const toggleSidebar = useCallback(() => {\n return isMobile ? setOpenMobile(open => !open) : setOpen(open => !open)\n }, [isMobile, setOpen, setOpenMobile])\n\n // Adds a keyboard shortcut to toggle the sidebar.\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (\n event.key === SIDEBAR_KEYBOARD_SHORTCUT &&\n (event.metaKey || event.ctrlKey)\n ) {\n event.preventDefault()\n toggleSidebar()\n }\n }\n\n window.addEventListener('keydown', handleKeyDown)\n return () => window.removeEventListener('keydown', handleKeyDown)\n }, [toggleSidebar])\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? 'expanded' : 'collapsed'\n\n const contextValue = useMemo<SidebarContextProps>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n locale,\n user,\n modules,\n }),\n [\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n user,\n modules,\n locale,\n ]\n )\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n data-slot=\"sidebar-wrapper\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH,\n '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n ...style,\n } as CSSProperties\n }\n className={cn(\n 'group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar',\n className\n )}\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n )\n}\n\nfunction Sidebar({\n side = 'left',\n variant = 'sidebar',\n collapsible = 'icon',\n className,\n children,\n ...props\n}: ComponentProps<'div'> & {\n side?: 'left' | 'right'\n variant?: 'sidebar' | 'floating' | 'inset'\n collapsible?: 'offcanvas' | 'icon' | 'none'\n}) {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar()\n\n if (collapsible === 'none') {\n return (\n <div\n data-slot=\"sidebar\"\n className={cn(\n 'flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground',\n className\n )}\n {...props}\n >\n {children}\n </div>\n )\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar\"\n data-mobile=\"true\"\n className=\"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n } as CSSProperties\n }\n side={side}\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n )\n }\n\n return (\n <div\n className=\"group peer hidden text-sidebar-foreground md:block\"\n data-state={state}\n data-collapsible={state === 'collapsed' ? collapsible : ''}\n data-variant={variant}\n data-side={side}\n data-slot=\"sidebar\"\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n data-slot=\"sidebar-gap\"\n className={cn(\n 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',\n 'group-data-[collapsible=offcanvas]:w-0',\n 'group-data-[side=right]:rotate-180',\n variant === 'floating' || variant === 'inset'\n ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)'\n )}\n />\n <div\n data-slot=\"sidebar-container\"\n className={cn(\n 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',\n side === 'left'\n ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'\n : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',\n // Adjust the padding for floating and inset variants.\n variant === 'floating' || variant === 'inset'\n ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',\n className\n )}\n {...props}\n >\n <div\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar-inner\"\n className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm\"\n >\n {children}\n </div>\n </div>\n </div>\n )\n}\n\nfunction SidebarTrigger({\n className,\n onClick,\n ...props\n}: ComponentProps<typeof Button>) {\n const { toggleSidebar } = useSidebar()\n\n return (\n <Button\n data-sidebar=\"trigger\"\n data-slot=\"sidebar-trigger\"\n variant=\"ghost\"\n size=\"icon\"\n className={cn('size-7', className)}\n onClick={event => {\n onClick?.(event)\n toggleSidebar()\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n )\n}\n\nfunction SidebarHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-header\"\n data-sidebar=\"header\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarFooter({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-footer\"\n data-sidebar=\"footer\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarSeparator({\n className,\n ...props\n}: ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"sidebar-separator\"\n data-sidebar=\"separator\"\n className={cn('mx-2 w-auto bg-sidebar-border', className)}\n {...props}\n />\n )\n}\n\nfunction SidebarContent({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-content\"\n data-sidebar=\"content\"\n className={cn(\n 'flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarGroup({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-group\"\n data-sidebar=\"group\"\n className={cn(\n 'relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarGroupLabel({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'div'> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div'\n\n return (\n <Comp\n data-slot=\"sidebar-group-label\"\n data-sidebar=\"group-label\"\n className={cn(\n 'flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',\n 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarMenu({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu\"\n data-sidebar=\"menu\"\n className={cn('flex w-full min-w-0 flex-col gap-1', className)}\n {...props}\n />\n )\n}\n\nfunction SidebarMenuItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-item\"\n data-sidebar=\"menu-item\"\n className={cn('group/menu-item relative', className)}\n {...props}\n />\n )\n}\n\nconst sidebarMenuButtonVariants = tv({\n base: 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5',\n variants: {\n variant: {\n default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n outline:\n 'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'text-sm',\n sm: 'h-7 text-xs',\n lg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n})\n\nfunction SidebarMenuButton({\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n isActive?: boolean\n tooltip?: string | ComponentProps<typeof TooltipContent>\n} & VariantProps<typeof sidebarMenuButtonVariants>) {\n const Comp = asChild ? Slot : 'button'\n const { isMobile, state } = useSidebar()\n\n const button = (\n <Comp\n data-slot=\"sidebar-menu-button\"\n data-sidebar=\"menu-button\"\n data-size={size}\n data-active={isActive}\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n {...props}\n />\n )\n\n if (!tooltip) {\n return button\n }\n\n if (typeof tooltip === 'string') {\n tooltip = {\n children: tooltip,\n }\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent\n side=\"right\"\n align=\"center\"\n hidden={state !== 'collapsed' || isMobile}\n {...tooltip}\n />\n </Tooltip>\n )\n}\n\nfunction SidebarMenuAction({\n className,\n asChild = false,\n showOnHover = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n showOnHover?: boolean\n}) {\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n data-slot=\"sidebar-menu-action\"\n data-sidebar=\"menu-action\"\n className={cn(\n 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:-inset-2 after:absolute md:after:hidden',\n 'peer-data-[size=sm]/menu-button:top-1',\n 'peer-data-[size=default]/menu-button:top-1.5',\n 'peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:hidden',\n showOnHover &&\n 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarMenuSkeleton({\n className,\n showIcon = false,\n ...props\n}: ComponentProps<'div'> & {\n showIcon?: boolean\n}) {\n // Random width between 50 to 90%.\n const width = useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`\n }, [])\n\n return (\n <div\n data-slot=\"sidebar-menu-skeleton\"\n data-sidebar=\"menu-skeleton\"\n className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n {...props}\n >\n {showIcon && (\n <Skeleton\n className=\"size-4 rounded-md\"\n data-sidebar=\"menu-skeleton-icon\"\n />\n )}\n <Skeleton\n className=\"h-4 max-w-(--skeleton-width) flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n '--skeleton-width': width,\n } as CSSProperties\n }\n />\n </div>\n )\n}\n\nfunction SidebarMenuSub({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu-sub\"\n data-sidebar=\"menu-sub\"\n className={cn(\n 'ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5',\n 'group-data-[collapsible=icon]:hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SidebarMenuSubItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-sub-item\"\n data-sidebar=\"menu-sub-item\"\n className={cn('group/menu-sub-item relative', className)}\n {...props}\n />\n )\n}\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n}\n"],"names":["SidebarContext","createContext","useSidebar","context","use","Error","SidebarProvider","defaultOpen","openProp","setOpenProp","className","style","user","modules","locale","children","props","isMobile","useIsMobile","openMobile","setOpenMobile","useState","_open","_setOpen","open","setOpen","useCallback","value","openState","document","toggleSidebar","useEffect","handleKeyDown","event","window","state","contextValue","useMemo","TooltipProvider","cn","Sidebar","side","variant","collapsible","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","SidebarTrigger","onClick","Button","PanelLeftIcon","SidebarHeader","SidebarFooter","SidebarSeparator","Separator","SidebarContent","SidebarGroup","SidebarGroupLabel","asChild","Comp","Slot","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","tv","SidebarMenuButton","isActive","size","tooltip","button","Tooltip","TooltipTrigger","TooltipContent","SidebarMenuAction","showOnHover","SidebarMenuSkeleton","showIcon","width","Math","Skeleton","SidebarMenuSub","SidebarMenuSubItem"],"mappings":";yXAuDA,IAAMA,EAAiBC,GAAAA,EAAAA,aAAAA,EAA0C,MAEjE,SAASC,IACP,IAAMC,EAAUC,GAAAA,EAAAA,GAAAA,EAAIJ,GAEpB,GAAI,CAACG,EACH,MAAM,MAAU,qDAGlB,OAAOA,CACT,CAEA,SAASG,EAAgB,CACvBC,YAAAA,EAAc,EAAI,CAClB,KAAMC,CAAQ,CACd,aAAcC,CAAW,CACzBC,UAAAA,CAAS,CACTC,MAAAA,CAAK,CACLC,KAAAA,CAAI,CACJC,QAAAA,CAAO,CACPC,OAAAA,EAAS,OAAO,CAChBC,SAAAA,CAAQ,CACR,GAAGC,EAQJ,EACC,IAAMC,EAAWC,GAAAA,EAAAA,WAAAA,IACX,CAACC,EAAYC,EAAc,CAAGC,GAAAA,EAAAA,QAAAA,EAAS,IAIvC,CAACC,EAAOC,EAAS,CAAGF,GAAAA,EAAAA,QAAAA,EAASd,GAC7BiB,EAAOhB,GAAYc,EACnBG,EAAUC,GAAAA,EAAAA,WAAAA,EACd,IACE,IAAME,EAAY,mBAAOD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EAA6B,EACnE,MACE,UAAC,MACC,YAAU,mBACV,eAAa,WACb,UAAWuB,GAAAA,EAAAA,EAAAA,EACT,iGACA,uCACA7B,GAED,GAAGM,CAAK,EAGf,CAEA,SAASmE,EAAmB,CAAEzE,UAAAA,CAAS,CAAE,GAAGM,EAA6B,EACvE,MACE,UAAC,MACC,YAAU,wBACV,eAAa,gBACb,UAAWuB,GAAAA,EAAAA,EAAAA,EAAG,+BAAgC7B,GAC7C,GAAGM,CAAK,EAGf,Q"}
1
+ {"version":3,"file":"components\\sidebar\\sidebar.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/sidebar/sidebar.tsx"],"sourcesContent":["\n\nimport { createContext } from '@radix-ui/react-context'\nimport { Slot } from '@radix-ui/react-slot'\nimport {\n CSSProperties,\n ComponentProps,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport { useIsMobile } from '@/hooks/use-mobile'\nimport { VariantProps, cn, tv } from '@/lib'\nimport { Locale, Module, User } from '@/types'\nimport { PanelLeftIcon } from 'lucide-react'\nimport { Button } from '../button'\nimport { Separator } from '../separator'\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n} from '../sheet'\nimport { Skeleton } from '../skeleton'\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '../tooltip'\n\nconst SIDEBAR_COOKIE_NAME = 'gbm_sidebar_open'\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7\nconst SIDEBAR_WIDTH = '16rem'\nconst SIDEBAR_WIDTH_MOBILE = '18rem'\nconst SIDEBAR_WIDTH_ICON = '4.5rem'\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b'\n\ntype SidebarContextValue = {\n state: 'expanded' | 'collapsed'\n open: boolean\n setOpen: (open: boolean) => void\n openMobile: boolean\n setOpenMobile: (open: boolean) => void\n isMobile: boolean\n toggleSidebar: () => void\n user: User\n modules: Module[]\n locale: Locale\n}\n\n/* -----------------------------------------------------------------------------\n * Context: SidebarProvider\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_PROVIDER_NAME = 'SidebarProvider'\n\nconst [SidebarContextProvider, useSidebar] = createContext<SidebarContextValue>(\n SIDEBAR_PROVIDER_NAME\n)\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarProvider\n * -------------------------------------------------------------------------- */\n\nfunction SidebarProvider({\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n user,\n modules,\n locale = 'pt-br',\n children,\n ...props\n}: ComponentProps<'div'> & {\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n user: User\n modules: Module[]\n locale?: Locale\n}) {\n const isMobile = useIsMobile()\n const [openMobile, setOpenMobile] = useState(false)\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = useState(defaultOpen)\n const open = openProp ?? _open\n const setOpen = useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(open) : value\n if (setOpenProp) {\n setOpenProp(openState)\n } else {\n _setOpen(openState)\n }\n\n // This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`\n },\n [setOpenProp, open]\n )\n\n // Helper to toggle the sidebar.\n const toggleSidebar = useCallback(() => {\n return isMobile ? setOpenMobile(open => !open) : setOpen(open => !open)\n }, [isMobile, setOpen, setOpenMobile])\n\n // Adds a keyboard shortcut to toggle the sidebar.\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (\n event.key === SIDEBAR_KEYBOARD_SHORTCUT &&\n (event.metaKey || event.ctrlKey)\n ) {\n event.preventDefault()\n toggleSidebar()\n }\n }\n\n window.addEventListener('keydown', handleKeyDown)\n return () => window.removeEventListener('keydown', handleKeyDown)\n }, [toggleSidebar])\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? 'expanded' : 'collapsed'\n\n const contextValue = useMemo<SidebarContextValue>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n locale,\n user,\n modules,\n }),\n [\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n user,\n modules,\n locale,\n ]\n )\n\n return (\n <SidebarContextProvider {...contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n data-slot=\"sidebar-wrapper\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH,\n '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n ...style,\n } as CSSProperties\n }\n className={cn(\n 'group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar',\n className\n )}\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContextProvider>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Sidebar\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_NAME = 'Sidebar'\n\nfunction Sidebar({\n side = 'left',\n variant = 'sidebar',\n collapsible = 'icon',\n className,\n children,\n ...props\n}: ComponentProps<'div'> & {\n side?: 'left' | 'right'\n variant?: 'sidebar' | 'floating' | 'inset'\n collapsible?: 'offcanvas' | 'icon' | 'none'\n}) {\n const { isMobile, state, openMobile, setOpenMobile } =\n useSidebar(SIDEBAR_NAME)\n\n if (collapsible === 'none') {\n return (\n <div\n data-slot=\"sidebar\"\n className={cn(\n 'flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground',\n className\n )}\n {...props}\n >\n {children}\n </div>\n )\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar\"\n data-mobile=\"true\"\n className=\"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n } as CSSProperties\n }\n side={side}\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n )\n }\n\n return (\n <div\n className=\"group peer hidden text-sidebar-foreground md:block\"\n data-state={state}\n data-collapsible={state === 'collapsed' ? collapsible : ''}\n data-variant={variant}\n data-side={side}\n data-slot=\"sidebar\"\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n data-slot=\"sidebar-gap\"\n className={cn(\n 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',\n 'group-data-[collapsible=offcanvas]:w-0',\n 'group-data-[side=right]:rotate-180',\n variant === 'floating' || variant === 'inset'\n ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)'\n )}\n />\n <div\n data-slot=\"sidebar-container\"\n className={cn(\n 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',\n side === 'left'\n ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'\n : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',\n // Adjust the padding for floating and inset variants.\n variant === 'floating' || variant === 'inset'\n ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',\n className\n )}\n {...props}\n >\n <div\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar-inner\"\n className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm\"\n >\n {children}\n </div>\n </div>\n </div>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarTrigger\n * -------------------------------------------------------------------------- */\n\nconst SIDEBAR_TRIGGER_NAME = 'SidebarTrigger'\n\nfunction SidebarTrigger({\n className,\n onClick,\n ...props\n}: ComponentProps<typeof Button>) {\n const { toggleSidebar } = useSidebar(SIDEBAR_TRIGGER_NAME)\n\n return (\n <Button\n data-sidebar=\"trigger\"\n data-slot=\"sidebar-trigger\"\n variant=\"ghost\"\n size=\"icon\"\n className={cn('size-7', className)}\n onClick={event => {\n onClick?.(event)\n toggleSidebar()\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarHeader\n * -------------------------------------------------------------------------- */\n\nfunction SidebarHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-header\"\n data-sidebar=\"header\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarFooter\n * -------------------------------------------------------------------------- */\n\nfunction SidebarFooter({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-footer\"\n data-sidebar=\"footer\"\n className={cn(\n 'flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarSeparator\n * -------------------------------------------------------------------------- */\n\nfunction SidebarSeparator({\n className,\n ...props\n}: ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"sidebar-separator\"\n data-sidebar=\"separator\"\n className={cn('mx-2 w-auto bg-sidebar-border', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarContent\n * -------------------------------------------------------------------------- */\n\nfunction SidebarContent({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-content\"\n data-sidebar=\"content\"\n className={cn(\n 'flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroup\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroup({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sidebar-group\"\n data-sidebar=\"group\"\n className={cn(\n 'relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupLabel\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupLabel({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'div'> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div'\n\n return (\n <Comp\n data-slot=\"sidebar-group-label\"\n data-sidebar=\"group-label\"\n className={cn(\n 'flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',\n 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenu\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenu({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu\"\n data-sidebar=\"menu\"\n className={cn('flex w-full min-w-0 flex-col gap-1', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-item\"\n data-sidebar=\"menu-item\"\n className={cn('group/menu-item relative', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuButton\n * -------------------------------------------------------------------------- */\n\nconst sidebarMenuButtonVariants = tv({\n base: 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! group-data-[collapsible=icon]:gap-3 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5',\n variants: {\n variant: {\n default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n outline:\n 'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'text-sm',\n sm: 'h-7 text-xs',\n lg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n})\n\nconst SIDEBAR_MENU_BUTTON_NAME = 'SidebarMenuButton'\n\nfunction SidebarMenuButton({\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n isActive?: boolean\n tooltip?: string | ComponentProps<typeof TooltipContent>\n} & VariantProps<typeof sidebarMenuButtonVariants>) {\n const Comp = asChild ? Slot : 'button'\n const { isMobile, state } = useSidebar(SIDEBAR_MENU_BUTTON_NAME)\n\n const button = (\n <Comp\n data-slot=\"sidebar-menu-button\"\n data-sidebar=\"menu-button\"\n data-size={size}\n data-active={isActive}\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n {...props}\n />\n )\n\n if (!tooltip) {\n return button\n }\n\n if (typeof tooltip === 'string') {\n tooltip = {\n children: tooltip,\n }\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent\n side=\"right\"\n align=\"center\"\n hidden={state !== 'collapsed' || isMobile}\n {...tooltip}\n />\n </Tooltip>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuAction\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuAction({\n className,\n asChild = false,\n showOnHover = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean\n showOnHover?: boolean\n}) {\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n data-slot=\"sidebar-menu-action\"\n data-sidebar=\"menu-action\"\n className={cn(\n 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:-inset-2 after:absolute md:after:hidden',\n 'peer-data-[size=sm]/menu-button:top-1',\n 'peer-data-[size=default]/menu-button:top-1.5',\n 'peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:hidden',\n showOnHover &&\n 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSkeleton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSkeleton({\n className,\n showIcon = false,\n ...props\n}: ComponentProps<'div'> & {\n showIcon?: boolean\n}) {\n // Random width between 50 to 90%.\n const width = useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`\n }, [])\n\n return (\n <div\n data-slot=\"sidebar-menu-skeleton\"\n data-sidebar=\"menu-skeleton\"\n className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n {...props}\n >\n {showIcon && (\n <Skeleton\n className=\"size-4 rounded-md\"\n data-sidebar=\"menu-skeleton-icon\"\n />\n )}\n <Skeleton\n className=\"h-4 max-w-(--skeleton-width) flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n '--skeleton-width': width,\n } as CSSProperties\n }\n />\n </div>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSub\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSub({ className, ...props }: ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"sidebar-menu-sub\"\n data-sidebar=\"menu-sub\"\n className={cn(\n 'ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5',\n 'group-data-[collapsible=icon]:hidden',\n className\n )}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSubItem({ className, ...props }: ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"sidebar-menu-sub-item\"\n data-sidebar=\"menu-sub-item\"\n className={cn('group/menu-sub-item relative', className)}\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n}\n"],"names":["SidebarContextProvider","useSidebar","createContext","SidebarProvider","defaultOpen","openProp","setOpenProp","className","style","user","modules","locale","children","props","isMobile","useIsMobile","openMobile","setOpenMobile","useState","_open","_setOpen","open","setOpen","useCallback","value","openState","document","toggleSidebar","useEffect","handleKeyDown","event","window","state","contextValue","useMemo","TooltipProvider","cn","Sidebar","side","variant","collapsible","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","SidebarTrigger","onClick","Button","PanelLeftIcon","SidebarHeader","SidebarFooter","SidebarSeparator","Separator","SidebarContent","SidebarGroup","SidebarGroupLabel","asChild","Comp","Slot","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","tv","SidebarMenuButton","isActive","size","tooltip","button","Tooltip","TooltipTrigger","TooltipContent","SidebarMenuAction","showOnHover","SidebarMenuSkeleton","showIcon","width","Math","Skeleton","SidebarMenuSub","SidebarMenuSubItem"],"mappings":";maA4DA,GAAM,CAACA,EAAwBC,EAAW,CAAGC,GAAAA,EAAAA,aAAAA,EAFf,mBAU9B,SAASC,EAAgB,CACvBC,YAAAA,EAAc,EAAI,CAClB,KAAMC,CAAQ,CACd,aAAcC,CAAW,CACzBC,UAAAA,CAAS,CACTC,MAAAA,CAAK,CACLC,KAAAA,CAAI,CACJC,QAAAA,CAAO,CACPC,OAAAA,EAAS,OAAO,CAChBC,SAAAA,CAAQ,CACR,GAAGC,EAQJ,EACC,IAAMC,EAAWC,GAAAA,EAAAA,WAAAA,IACX,CAACC,EAAYC,EAAc,CAAGC,GAAAA,EAAAA,QAAAA,EAAS,IAIvC,CAACC,EAAOC,EAAS,CAAGF,GAAAA,EAAAA,QAAAA,EAASd,GAC7BiB,EAAOhB,GAAYc,EACnBG,EAAUC,GAAAA,EAAAA,WAAAA,EACd,IACE,IAAME,EAAY,mBAAOD,EAAuBA,EAAMH,GAA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AAGM,EAA6B,EACnE,MACE,UAAC,MACC,YAAU,mBACV,eAAa,WACb,UAAWuB,GAAAA,EAAAA,EAAAA,EACT,iGACA,uCACA7B,GAED,GAAGM,CAAK,EAGf,CAMA,SAASmE,EAAmB,CAAEzE,UAAAA,CAAS,CAAE,GAAGM,EAA6B,EACvE,MACE,UAAC,MACC,YAAU,wBACV,eAAa,gBACb,UAAWuB,GAAAA,EAAAA,EAAAA,EAAG,+BAAgC7B,GAC7C,GAAGM,CAAK,EAGf,Q"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gbmtech/aurora-ui",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"components\\data-table\\index.js","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["Object","Symbol"],"mappings":"83BAAA,EAAoB,CAAC,CAAG,CAAC,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAAC,EAAS,IACzEA,OAAO,cAAc,CAAC,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUA,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAAC,IACrB,AAAkB,aAAlB,OAAOC,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAAC,EAASC,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAAC,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components\\sidebar\\index.js","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["Object","Symbol"],"mappings":"mfAAA,EAAoB,CAAC,CAAG,CAAC,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAAC,EAAS,IACzEA,OAAO,cAAc,CAAC,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUA,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAAC,IACrB,AAAkB,aAAlB,OAAOC,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAAC,EAASC,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAAC,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}