[{"data":1,"prerenderedAt":5905},["ShallowReactive",2],{"navigation_docs":3,"-modules-interface-dashboard":732,"-modules-interface-dashboard-surround":5900},[4,54,159,535,608,651],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":53},"Get Started","i-lucide-rocket","\u002Fget-started","1.get-started",[10,15,20,24,29,34,39,44,48],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fget-started\u002Fintroduction","1.get-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23},"Project Structure","\u002Fget-started\u002Fproject-structure","1.get-started\u002F3.project-structure",{"title":25,"path":26,"stem":27,"icon":28},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F4.configuration","i-lucide-settings",{"title":30,"path":31,"stem":32,"icon":33},"Authentication","\u002Fget-started\u002Fauthentication","1.get-started\u002F5.authentication","i-lucide-lock",{"title":35,"path":36,"stem":37,"icon":38},"Adding modules","\u002Fget-started\u002Fadding-modules","1.get-started\u002F6.adding-modules","i-lucide-puzzle",{"title":40,"path":41,"stem":42,"icon":43},"Database","\u002Fget-started\u002Fdatabase","1.get-started\u002F7.database","i-lucide-database",{"title":45,"path":46,"stem":47,"icon":6},"Deployment","\u002Fget-started\u002Fdeployment","1.get-started\u002F8.deployment",{"title":49,"path":50,"stem":51,"icon":52},"Upgrading","\u002Fget-started\u002Fupgrading","1.get-started\u002F9.upgrading","i-lucide-circle-arrow-up",false,{"title":55,"icon":56,"path":57,"stem":58,"children":59,"page":53},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[60,94,119,129],{"title":61,"icon":53,"path":62,"stem":63,"children":64,"page":53},"Concepts","\u002Fguide\u002Fconcepts","2.guide\u002F1.concepts",[65,70,75,80,84,89],{"title":66,"path":67,"stem":68,"icon":69},"Architecture","\u002Fguide\u002Fconcepts\u002Farchitecture","2.guide\u002F1.concepts\u002F1.architecture","i-lucide-blocks",{"title":71,"path":72,"stem":73,"icon":74},"Access control","\u002Fguide\u002Fconcepts\u002Fauth-and-scopes","2.guide\u002F1.concepts\u002F2.auth-and-scopes","i-lucide-shield-check",{"title":76,"path":77,"stem":78,"icon":79},"Extension points","\u002Fguide\u002Fconcepts\u002Fextension-points","2.guide\u002F1.concepts\u002F3.extension-points","i-lucide-plug",{"title":81,"path":82,"stem":83,"icon":43},"Database extensions","\u002Fguide\u002Fconcepts\u002Fdatabase-extensions","2.guide\u002F1.concepts\u002F4.database-extensions",{"title":85,"path":86,"stem":87,"icon":88},"Identity","\u002Fguide\u002Fconcepts\u002Fidentity","2.guide\u002F1.concepts\u002F5.identity","i-lucide-fingerprint",{"title":90,"path":91,"stem":92,"icon":93},"Glossary","\u002Fguide\u002Fconcepts\u002Fglossary","2.guide\u002F1.concepts\u002F6.glossary","i-lucide-book-a",{"title":95,"icon":53,"path":96,"stem":97,"children":98,"page":53},"UX patterns","\u002Fguide\u002Fux-patterns","2.guide\u002F2.ux-patterns",[99,104,109,114],{"title":100,"path":101,"stem":102,"icon":103},"Layouts and navigation","\u002Fguide\u002Fux-patterns\u002Flayouts-and-navigation","2.guide\u002F2.ux-patterns\u002F1.layouts-and-navigation","i-lucide-layout-template",{"title":105,"path":106,"stem":107,"icon":108},"Pages","\u002Fguide\u002Fux-patterns\u002Fpages","2.guide\u002F2.ux-patterns\u002F2.pages","i-lucide-table",{"title":110,"path":111,"stem":112,"icon":113},"Forms and actions","\u002Fguide\u002Fux-patterns\u002Fforms-and-actions","2.guide\u002F2.ux-patterns\u002F3.forms-and-actions","i-lucide-square-pen",{"title":115,"path":116,"stem":117,"icon":118},"Text and formatting","\u002Fguide\u002Fux-patterns\u002Ftext-and-formatting","2.guide\u002F2.ux-patterns\u002F4.text-and-formatting","i-lucide-type",{"title":120,"icon":53,"path":121,"stem":122,"children":123,"page":53},"Best practices","\u002Fguide\u002Fbest-practices","2.guide\u002F3.best-practices",[124],{"title":125,"path":126,"stem":127,"icon":128},"HTTP routes","\u002Fguide\u002Fbest-practices\u002Fhttp-routes","2.guide\u002F3.best-practices\u002F1.http-routes","i-lucide-route",{"title":130,"icon":53,"path":131,"stem":132,"children":133,"page":53},"Going further","\u002Fguide\u002Fgoing-further","2.guide\u002F4.going-further",[134,139,144,149,154],{"title":135,"path":136,"stem":137,"icon":138},"Use your own OAuth server","\u002Fguide\u002Fgoing-further\u002Fown-oauth-server","2.guide\u002F4.going-further\u002F1.own-oauth-server","i-lucide-key-round",{"title":140,"path":141,"stem":142,"icon":143},"Create an OAuth application","\u002Fguide\u002Fgoing-further\u002Foauth-application","2.guide\u002F4.going-further\u002F2.oauth-application","i-lucide-app-window",{"title":145,"path":146,"stem":147,"icon":148},"Signing keys","\u002Fguide\u002Fgoing-further\u002Fsigning-keys","2.guide\u002F4.going-further\u002F3.signing-keys","i-lucide-key-square",{"title":150,"path":151,"stem":152,"icon":153},"Stripe setup","\u002Fguide\u002Fgoing-further\u002Fstripe-setup","2.guide\u002F4.going-further\u002F4.stripe-setup","i-lucide-credit-card",{"title":155,"path":156,"stem":157,"icon":158},"Migrate to the permission model","\u002Fguide\u002Fgoing-further\u002Fmigrate-access-control","2.guide\u002F4.going-further\u002F5.migrate-access-control","i-lucide-arrow-right-left",{"title":160,"icon":161,"path":162,"stem":163,"children":164},"Modules","i-lucide-boxes","\u002Fmodules","3.modules",[165,167,252,261,290,303,350,396,473,518],{"title":160,"path":162,"stem":166},"3.modules\u002Findex",{"title":85,"icon":53,"path":168,"stem":169,"children":170,"page":53},"\u002Fmodules\u002Fidentity","3.modules\u002F1.identity",[171,198,202,206,228,232,248],{"title":172,"path":173,"stem":174,"children":175},"Auth","\u002Fmodules\u002Fidentity\u002Fauth","3.modules\u002F1.identity\u002F1.auth\u002Findex",[176,178,182,186,190,194],{"title":177,"path":173,"stem":174},"Overview",{"title":179,"path":180,"stem":181},"Server API","\u002Fmodules\u002Fidentity\u002Fauth\u002Fserver","3.modules\u002F1.identity\u002F1.auth\u002F2.server",{"title":183,"path":184,"stem":185},"Reference","\u002Fmodules\u002Fidentity\u002Fauth\u002Freference","3.modules\u002F1.identity\u002F1.auth\u002F3.reference",{"title":187,"path":188,"stem":189},"Client mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fclient-mode","3.modules\u002F1.identity\u002F1.auth\u002F4.client-mode",{"title":191,"path":192,"stem":193},"OAuth providers","\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers","3.modules\u002F1.identity\u002F1.auth\u002F5.oauth-providers",{"title":195,"path":196,"stem":197},"Resource mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fresource-mode","3.modules\u002F1.identity\u002F1.auth\u002F6.resource-mode",{"title":199,"path":200,"stem":201},"Users","\u002Fmodules\u002Fidentity\u002Fusers","3.modules\u002F1.identity\u002F2.users",{"title":203,"path":204,"stem":205},"Account","\u002Fmodules\u002Fidentity\u002Faccount","3.modules\u002F1.identity\u002F3.account",{"title":207,"path":208,"stem":209,"children":210},"Authorization","\u002Fmodules\u002Fidentity\u002Fauthorization","3.modules\u002F1.identity\u002F4.authorization\u002Findex",[211,212,216,220,224],{"title":177,"path":208,"stem":209},{"title":213,"path":214,"stem":215},"Roles and requirements","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Froles-and-requirements","3.modules\u002F1.identity\u002F4.authorization\u002F2.roles-and-requirements",{"title":217,"path":218,"stem":219},"Policies","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fpolicies","3.modules\u002F1.identity\u002F4.authorization\u002F3.policies",{"title":221,"path":222,"stem":223},"Client","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fclient","3.modules\u002F1.identity\u002F4.authorization\u002F4.client",{"title":225,"path":226,"stem":227},"Admin","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fadmin","3.modules\u002F1.identity\u002F4.authorization\u002F5.admin",{"title":229,"path":230,"stem":231},"Preferences","\u002Fmodules\u002Fidentity\u002Fpreferences","3.modules\u002F1.identity\u002F5.preferences",{"title":233,"path":234,"stem":235,"children":236},"OAuth Server","\u002Fmodules\u002Fidentity\u002Foauth-server","3.modules\u002F1.identity\u002F6.oauth-server\u002Findex",[237,238,241,245],{"title":177,"path":234,"stem":235},{"title":179,"path":239,"stem":240},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fserver","3.modules\u002F1.identity\u002F6.oauth-server\u002F2.server",{"title":242,"path":243,"stem":244},"Hooks","\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fhooks","3.modules\u002F1.identity\u002F6.oauth-server\u002F3.hooks",{"title":183,"path":246,"stem":247},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Froutes-and-clients","3.modules\u002F1.identity\u002F6.oauth-server\u002F4.routes-and-clients",{"title":249,"path":250,"stem":251},"OAuth Resource","\u002Fmodules\u002Fidentity\u002Foauth-resource","3.modules\u002F1.identity\u002F8.oauth-resource",{"title":253,"icon":53,"path":254,"stem":255,"children":256,"page":53},"Organisation","\u002Fmodules\u002Forganisation","3.modules\u002F2.organisation",[257],{"title":258,"path":259,"stem":260},"Teams","\u002Fmodules\u002Forganisation\u002Fteams","3.modules\u002F2.organisation\u002F1.teams",{"title":262,"icon":53,"path":263,"stem":264,"children":265,"page":53},"Commerce","\u002Fmodules\u002Fcommerce","3.modules\u002F3.commerce",[266,270,274],{"title":267,"path":268,"stem":269},"Stripe","\u002Fmodules\u002Fcommerce\u002Fstripe","3.modules\u002F3.commerce\u002F1.stripe",{"title":271,"path":272,"stem":273},"Payments","\u002Fmodules\u002Fcommerce\u002Fpayments","3.modules\u002F3.commerce\u002F2.payments",{"title":275,"path":276,"stem":277,"children":278},"Subscriptions","\u002Fmodules\u002Fcommerce\u002Fsubscriptions","3.modules\u002F3.commerce\u002F3.subscriptions\u002Findex",[279,280,283,287],{"title":177,"path":276,"stem":277},{"title":179,"path":281,"stem":282},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fserver","3.modules\u002F3.commerce\u002F3.subscriptions\u002F2.server",{"title":284,"path":285,"stem":286},"App","\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fapp","3.modules\u002F3.commerce\u002F3.subscriptions\u002F3.app",{"title":183,"path":288,"stem":289},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Freference","3.modules\u002F3.commerce\u002F3.subscriptions\u002F4.reference",{"title":291,"icon":53,"path":292,"stem":293,"children":294,"page":53},"Content","\u002Fmodules\u002Fcontent","3.modules\u002F4.content",[295,299],{"title":296,"path":297,"stem":298},"Help center","\u002Fmodules\u002Fcontent\u002Fhelp-center","3.modules\u002F4.content\u002F2.help-center",{"title":300,"path":301,"stem":302},"Documents","\u002Fmodules\u002Fcontent\u002Fdocuments","3.modules\u002F4.content\u002F3.documents",{"title":304,"icon":53,"path":305,"stem":306,"children":307,"page":53},"Features","\u002Fmodules\u002Ffeatures","3.modules\u002F5.features",[308,323,342,346],{"title":309,"path":310,"stem":311,"children":312},"Events","\u002Fmodules\u002Ffeatures\u002Fevents","3.modules\u002F5.features\u002F1.events\u002Findex",[313,314,317,320],{"title":177,"path":310,"stem":311},{"title":179,"path":315,"stem":316},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver","3.modules\u002F5.features\u002F1.events\u002F2.server",{"title":284,"path":318,"stem":319},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fapp","3.modules\u002F5.features\u002F1.events\u002F3.app",{"title":183,"path":321,"stem":322},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Freference","3.modules\u002F5.features\u002F1.events\u002F4.reference",{"title":324,"path":325,"stem":326,"children":327},"Forms","\u002Fmodules\u002Ffeatures\u002Fforms","3.modules\u002F5.features\u002F2.forms\u002Findex",[328,329,333,336,339],{"title":177,"path":325,"stem":326},{"title":330,"path":331,"stem":332},"Definition","\u002Fmodules\u002Ffeatures\u002Fforms\u002Fdefinition","3.modules\u002F5.features\u002F2.forms\u002F2.definition",{"title":179,"path":334,"stem":335},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fserver","3.modules\u002F5.features\u002F2.forms\u002F3.server",{"title":284,"path":337,"stem":338},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fapp","3.modules\u002F5.features\u002F2.forms\u002F4.app",{"title":183,"path":340,"stem":341},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Freference","3.modules\u002F5.features\u002F2.forms\u002F5.reference",{"title":343,"path":344,"stem":345},"Cookie Consent","\u002Fmodules\u002Ffeatures\u002Fcookie-consent","3.modules\u002F5.features\u002F3.cookie-consent",{"title":347,"path":348,"stem":349},"MCP","\u002Fmodules\u002Ffeatures\u002Fmcp","3.modules\u002F5.features\u002F4.mcp",{"title":351,"icon":53,"path":352,"stem":353,"children":354,"page":53},"Communication","\u002Fmodules\u002Fcommunication","3.modules\u002F6.communication",[355,359,376,380,384,388,392],{"title":356,"path":357,"stem":358},"Notify","\u002Fmodules\u002Fcommunication\u002Fnotify","3.modules\u002F6.communication\u002F1.notify",{"title":360,"path":361,"stem":362,"children":363},"Email Templates","\u002Fmodules\u002Fcommunication\u002Femail-templates","3.modules\u002F6.communication\u002F2.email-templates\u002Findex",[364,365,369,372],{"title":177,"path":361,"stem":362},{"title":366,"path":367,"stem":368},"Email components","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fcomponents","3.modules\u002F6.communication\u002F2.email-templates\u002F2.components",{"title":179,"path":370,"stem":371},"\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fserver","3.modules\u002F6.communication\u002F2.email-templates\u002F3.server",{"title":373,"path":374,"stem":375},"Module emails","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fmodule-emails","3.modules\u002F6.communication\u002F2.email-templates\u002F4.module-emails",{"title":377,"path":378,"stem":379},"Push","\u002Fmodules\u002Fcommunication\u002Fpush","3.modules\u002F6.communication\u002F3.push",{"title":381,"path":382,"stem":383},"Inbox","\u002Fmodules\u002Fcommunication\u002Finbox","3.modules\u002F6.communication\u002F4.inbox",{"title":385,"path":386,"stem":387},"Short links","\u002Fmodules\u002Fcommunication\u002Fshort-links","3.modules\u002F6.communication\u002F5.short-links",{"title":389,"path":390,"stem":391},"Campaigns","\u002Fmodules\u002Fcommunication\u002Fcampaigns","3.modules\u002F6.communication\u002F6.campaigns",{"title":393,"path":394,"stem":395},"SMS","\u002Fmodules\u002Fcommunication\u002Fsms","3.modules\u002F6.communication\u002F7.sms",{"title":397,"icon":53,"path":398,"stem":399,"children":400,"page":53},"Interface","\u002Fmodules\u002Finterface","3.modules\u002F7.interface",[401,426,429,433,437,451,455,469],{"title":402,"path":403,"stem":404,"children":405},"UI","\u002Fmodules\u002Finterface\u002Fui","3.modules\u002F7.interface\u002F1.ui\u002Findex",[406,407,411,415,419,423],{"title":177,"path":403,"stem":404},{"title":408,"path":409,"stem":410},"Page components","\u002Fmodules\u002Finterface\u002Fui\u002Fpage-components","3.modules\u002F7.interface\u002F1.ui\u002F2.page-components",{"title":412,"path":413,"stem":414},"App shell","\u002Fmodules\u002Finterface\u002Fui\u002Fapp-shell","3.modules\u002F7.interface\u002F1.ui\u002F3.app-shell",{"title":416,"path":417,"stem":418},"Form inputs","\u002Fmodules\u002Finterface\u002Fui\u002Fform-inputs","3.modules\u002F7.interface\u002F1.ui\u002F4.form-inputs",{"title":420,"path":421,"stem":422},"Composables and helpers","\u002Fmodules\u002Finterface\u002Fui\u002Fcomposables","3.modules\u002F7.interface\u002F1.ui\u002F5.composables",{"title":183,"path":424,"stem":425},"\u002Fmodules\u002Finterface\u002Fui\u002Freference","3.modules\u002F7.interface\u002F1.ui\u002F6.reference",{"title":225,"path":427,"stem":428},"\u002Fmodules\u002Finterface\u002Fadmin","3.modules\u002F7.interface\u002F2.admin",{"title":430,"path":431,"stem":432},"Menu","\u002Fmodules\u002Finterface\u002Fmenu","3.modules\u002F7.interface\u002F3.menu",{"title":434,"path":435,"stem":436},"Widget","\u002Fmodules\u002Finterface\u002Fwidget","3.modules\u002F7.interface\u002F4.widget",{"title":438,"path":439,"stem":440,"children":441},"Mobile","\u002Fmodules\u002Finterface\u002Fmobile","3.modules\u002F7.interface\u002F5.mobile\u002Findex",[442,443,447],{"title":177,"path":439,"stem":440},{"title":444,"path":445,"stem":446},"CLI and devices","\u002Fmodules\u002Finterface\u002Fmobile\u002Fcli-and-devices","3.modules\u002F7.interface\u002F5.mobile\u002F2.cli-and-devices",{"title":448,"path":449,"stem":450},"Splash screen","\u002Fmodules\u002Finterface\u002Fmobile\u002Fsplash-screen","3.modules\u002F7.interface\u002F5.mobile\u002F3.splash-screen",{"title":452,"path":453,"stem":454},"Dashboard","\u002Fmodules\u002Finterface\u002Fdashboard","3.modules\u002F7.interface\u002F6.dashboard",{"title":456,"path":457,"stem":458,"children":459},"Desktop","\u002Fmodules\u002Finterface\u002Fdesktop","3.modules\u002F7.interface\u002F7.desktop\u002Findex",[460,461,465],{"title":177,"path":457,"stem":458},{"title":462,"path":463,"stem":464},"CLI","\u002Fmodules\u002Finterface\u002Fdesktop\u002Fcli","3.modules\u002F7.interface\u002F7.desktop\u002F2.cli",{"title":466,"path":467,"stem":468},"Local mode","\u002Fmodules\u002Finterface\u002Fdesktop\u002Flocal-mode","3.modules\u002F7.interface\u002F7.desktop\u002F3.local-mode",{"title":470,"path":471,"stem":472},"Maps","\u002Fmodules\u002Finterface\u002Fmaps","3.modules\u002F7.interface\u002F8.maps",{"title":474,"icon":53,"path":475,"stem":476,"children":477,"page":53},"Platform","\u002Fmodules\u002Fplatform","3.modules\u002F8.platform",[478,500],{"title":479,"path":480,"stem":481,"children":482},"Module Kit","\u002Fmodules\u002Fplatform\u002Fmodule-kit","3.modules\u002F8.platform\u002F1.module-kit\u002Findex",[483,484,488,492,496],{"title":177,"path":480,"stem":481},{"title":485,"path":486,"stem":487},"Server toolkit","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fserver-toolkit","3.modules\u002F8.platform\u002F1.module-kit\u002F2.server-toolkit",{"title":489,"path":490,"stem":491},"Registries and menus","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fregistries-and-menus","3.modules\u002F8.platform\u002F1.module-kit\u002F3.registries-and-menus",{"title":493,"path":494,"stem":495},"Translations","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fi18n","3.modules\u002F8.platform\u002F1.module-kit\u002F4.i18n",{"title":497,"path":498,"stem":499},"Database helpers","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fdatabase","3.modules\u002F8.platform\u002F1.module-kit\u002F5.database",{"title":501,"path":502,"stem":503,"children":504},"Base Layer","\u002Fmodules\u002Fplatform\u002Fbase-layer","3.modules\u002F8.platform\u002F2.base-layer\u002Findex",[505,506,510,514],{"title":177,"path":502,"stem":503},{"title":507,"path":508,"stem":509},"Content collections","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcontent-collections","3.modules\u002F8.platform\u002F2.base-layer\u002F2.content-collections",{"title":511,"path":512,"stem":513},"Layouts and routing","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Flayouts-and-routing","3.modules\u002F8.platform\u002F2.base-layer\u002F3.layouts-and-routing",{"title":515,"path":516,"stem":517},"Composables and utils","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcomposables-and-utils","3.modules\u002F8.platform\u002F2.base-layer\u002F4.composables-and-utils",{"title":519,"icon":53,"path":520,"stem":521,"children":522,"page":53},"Volunteering","\u002Fmodules\u002Fvolunteering","3.modules\u002F9.volunteering",[523,527,531],{"title":524,"path":525,"stem":526},"Operations","\u002Fmodules\u002Fvolunteering\u002Foperations","3.modules\u002F9.volunteering\u002F1.operations",{"title":528,"path":529,"stem":530},"Crew","\u002Fmodules\u002Fvolunteering\u002Fcrew","3.modules\u002F9.volunteering\u002F2.crew",{"title":532,"path":533,"stem":534},"Shifts","\u002Fmodules\u002Fvolunteering\u002Fshifts","3.modules\u002F9.volunteering\u002F3.shifts",{"title":536,"icon":537,"path":538,"stem":539,"children":540,"page":53},"Examples","i-lucide-code-xml","\u002Fexamples","4.examples",[541,570,580],{"title":542,"icon":53,"path":543,"stem":544,"children":545,"page":53},"Starters","\u002Fexamples\u002Fstarters","4.examples\u002F1.starters",[546,550,555,560,565],{"title":547,"path":548,"stem":549},"Workspace","\u002Fexamples\u002Fstarters\u002Fworkspace","4.examples\u002F1.starters\u002F1.workspace",{"title":551,"path":552,"stem":553,"icon":554},"Mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile","4.examples\u002F1.starters\u002F2.mobile","i-lucide-smartphone",{"title":556,"path":557,"stem":558,"icon":559},"Standalone mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile-standalone","4.examples\u002F1.starters\u002F3.mobile-standalone","i-lucide-tablet-smartphone",{"title":561,"path":562,"stem":563,"icon":564},"Desktop starter","\u002Fexamples\u002Fstarters\u002Fdesktop","4.examples\u002F1.starters\u002F4.desktop","i-lucide-monitor",{"title":566,"path":567,"stem":568,"icon":569},"Multi-platform starter","\u002Fexamples\u002Fstarters\u002Fmulti-platform","4.examples\u002F1.starters\u002F5.multi-platform","i-lucide-layers",{"title":571,"icon":53,"path":572,"stem":573,"children":574,"page":53},"Apps","\u002Fexamples\u002Fapps","4.examples\u002F2.apps",[575],{"title":576,"path":577,"stem":578,"icon":579},"Frigear website app","\u002Fexamples\u002Fapps\u002Ffrigear-nu-website","4.examples\u002F2.apps\u002F1.frigear-nu-website","i-lucide-layout-dashboard",{"title":581,"icon":53,"path":582,"stem":583,"children":584,"page":53},"Tasks","\u002Fexamples\u002Ftasks","4.examples\u002F3.tasks",[585,589,593,598,603],{"title":586,"path":587,"stem":588,"icon":74},"Protect a route","\u002Fexamples\u002Ftasks\u002Fprotect-a-route","4.examples\u002F3.tasks\u002F1.protect-a-route",{"title":590,"path":591,"stem":592,"icon":579},"Add an admin page","\u002Fexamples\u002Ftasks\u002Fadd-an-admin-page","4.examples\u002F3.tasks\u002F2.add-an-admin-page",{"title":594,"path":595,"stem":596,"icon":597},"Sell event tickets","\u002Fexamples\u002Ftasks\u002Fsell-event-tickets","4.examples\u002F3.tasks\u002F3.sell-event-tickets","i-lucide-ticket",{"title":599,"path":600,"stem":601,"icon":602},"Build a form","\u002Fexamples\u002Ftasks\u002Fbuild-a-form","4.examples\u002F3.tasks\u002F4.build-a-form","i-lucide-clipboard-list",{"title":604,"path":605,"stem":606,"icon":607},"Send an email","\u002Fexamples\u002Ftasks\u002Fsend-an-email","4.examples\u002F3.tasks\u002F5.send-an-email","i-lucide-mail",{"title":462,"icon":609,"path":610,"stem":611,"children":612,"page":53},"i-lucide-square-terminal","\u002Fcli","5.cli",[613,616,621,625,630,633,638,642,647],{"title":177,"path":614,"stem":615,"icon":609},"\u002Fcli\u002Foverview","5.cli\u002F1.overview",{"title":617,"path":618,"stem":619,"icon":620},"Create a project","\u002Fcli\u002Fcreate-a-project","5.cli\u002F2.create-a-project","i-lucide-folder-plus",{"title":622,"path":623,"stem":624,"icon":569},"Platforms","\u002Fcli\u002Fplatforms","5.cli\u002F3.platforms",{"title":626,"path":627,"stem":628,"icon":629},"Custom platforms","\u002Fcli\u002Fcustom-platforms","5.cli\u002F4.custom-platforms","i-lucide-monitor-cog",{"title":160,"path":631,"stem":632,"icon":161},"\u002Fcli\u002Fmodules","5.cli\u002F5.modules",{"title":634,"path":635,"stem":636,"icon":637},"Refactoring","\u002Fcli\u002Frefactoring","5.cli\u002F6.refactoring","i-lucide-folder-tree",{"title":639,"path":640,"stem":641,"icon":52},"Upgrade","\u002Fcli\u002Fupgrade","5.cli\u002F7.upgrade",{"title":643,"path":644,"stem":645,"icon":646},"From code","\u002Fcli\u002Ffrom-code","5.cli\u002F8.from-code","i-lucide-code",{"title":648,"path":649,"stem":650,"icon":138},"Environment files","\u002Fcli\u002Fenvironment","5.cli\u002F9.environment",{"title":652,"icon":653,"path":654,"stem":655,"children":656,"page":53},"Contribute","i-lucide-git-pull-request","\u002Fcontribute","6.contribute",[657,660,665,691,696,699,703,716],{"title":177,"path":658,"stem":659,"icon":653},"\u002Fcontribute\u002Foverview","6.contribute\u002F1.overview",{"title":661,"path":662,"stem":663,"icon":664},"Local development","\u002Fcontribute\u002Flocal-development","6.contribute\u002F2.local-development","i-lucide-terminal",{"title":666,"icon":53,"path":667,"stem":668,"children":669,"page":53},"Writing a module","\u002Fcontribute\u002Fwriting-a-module","6.contribute\u002F3.writing-a-module",[670,674,679,683,688],{"title":671,"path":672,"stem":673,"icon":38},"Scaffold a module","\u002Fcontribute\u002Fwriting-a-module\u002Fscaffold","6.contribute\u002F3.writing-a-module\u002F1.scaffold",{"title":675,"path":676,"stem":677,"icon":678},"Setup checklist","\u002Fcontribute\u002Fwriting-a-module\u002Fsetup-checklist","6.contribute\u002F3.writing-a-module\u002F2.setup-checklist","i-lucide-list-checks",{"title":680,"path":681,"stem":682,"icon":43},"Database tables","\u002Fcontribute\u002Fwriting-a-module\u002Fdatabase-tables","6.contribute\u002F3.writing-a-module\u002F3.database-tables",{"title":684,"path":685,"stem":686,"icon":687},"Testing","\u002Fcontribute\u002Fwriting-a-module\u002Ftesting","6.contribute\u002F3.writing-a-module\u002F4.testing","i-lucide-flask-conical",{"title":71,"path":689,"stem":690,"icon":74},"\u002Fcontribute\u002Fwriting-a-module\u002Faccess-control","6.contribute\u002F3.writing-a-module\u002F5.access-control",{"title":692,"path":693,"stem":694,"icon":695},"Publishing","\u002Fcontribute\u002Fpublishing","6.contribute\u002F4.publishing","i-lucide-package-check",{"title":542,"path":697,"stem":698,"icon":6},"\u002Fcontribute\u002Fstarters","6.contribute\u002F5.starters",{"title":700,"path":701,"stem":702,"icon":56},"Documentation","\u002Fcontribute\u002Fdocumentation","6.contribute\u002F6.documentation",{"title":704,"icon":53,"path":705,"stem":706,"children":707,"page":53},"Tooling","\u002Fcontribute\u002Ftooling","6.contribute\u002F7.tooling",[708,711],{"title":462,"path":709,"stem":710,"icon":609},"\u002Fcontribute\u002Ftooling\u002Fcli","6.contribute\u002F7.tooling\u002F1.cli",{"title":712,"path":713,"stem":714,"icon":715},"ESLint config","\u002Fcontribute\u002Ftooling\u002Feslint-config","6.contribute\u002F7.tooling\u002F2.eslint-config","i-lucide-spell-check",{"title":717,"icon":53,"path":718,"stem":719,"children":720},"Decisions","\u002Fcontribute\u002Fdecisions","6.contribute\u002F8.decisions\u002Findex",[721,723,728],{"title":717,"path":718,"stem":719,"icon":722},"i-lucide-scale",{"title":724,"path":725,"stem":726,"icon":727},"Session lifetimes per OAuth client","\u002Fcontribute\u002Fdecisions\u002Foauth-token-lifetimes","6.contribute\u002F8.decisions\u002F1.oauth-token-lifetimes","i-lucide-timer",{"title":729,"path":730,"stem":731,"icon":74},"One permission model","\u002Fcontribute\u002Fdecisions\u002Fpermission-model","6.contribute\u002F8.decisions\u002F2.permission-model",{"id":733,"title":452,"body":734,"description":5894,"extension":5895,"links":5896,"meta":5897,"navigation":1554,"path":453,"seo":5898,"stem":454,"__hash__":5899},"docs\u002F3.modules\u002F7.interface\u002F6.dashboard.md",{"type":735,"value":736,"toc":5869},"minimark",[737,745,768,773,870,873,877,947,951,1185,1202,1206,1212,1411,1435,1456,1467,1482,1485,1493,1497,1507,1968,1974,2028,2038,2179,2296,2307,2315,2319,2354,2358,2379,2703,2731,2737,2931,2934,2948,2951,3203,3253,3256,3262,3376,3398,3512,3516,3526,3871,4342,4350,4354,4372,4482,4492,4694,4707,4730,4817,4839,4842,5001,5011,5015,5037,5040,5070,5208,5257,5260,5322,5329,5333,5343,5480,5483,5491,5559,5562,5571,5643,5655,5658,5668,5841,5845,5865],[738,739,740,741,744],"p",{},"Dashboard gives your app pages of cards that other modules fill. Shifts adds \"Your next shift\" to the volunteer home\nscreen, Teams adds \"My teams\", and neither knows the page. Each user can reorder, hide and\ncollapse the cards, and the layout follows them across devices. For a single area that only your own code fills, use\n",[742,743,434],"a",{"href":435}," directly instead.",[738,746,747,748,752,753,756,757,760,761,764,767],{},"The package is ",[749,750,751],"code",{},"@frigear-nu\u002Fdashboard",". A dashboard has a dotted name, such as ",[749,754,755],{},"crew.home",". It is a\n",[742,758,759],{"href":91},"registry"," on top of Widget: each dashboard is the ",[742,762,763],{"href":91},"widget area",[749,765,766],{},"dashboard.\u003Cname>",", plus a title and the platforms of each item.",[769,770,772],"h2",{"id":771},"what-you-get","What you get",[774,775,776,806,822,840,858],"ul",{},[777,778,779,783,784,787,788,791,792,791,795,791,798,801,802,805],"li",{},[780,781,782],"strong",{},"Components"," (on by default): ",[749,785,786],{},"\u003CDashboard>"," draws a dashboard in a responsive grid that packs the items to their\nsizes, with an edit mode to move, resize, hide and show items. ",[749,789,790],{},"DashboardGrid",", ",[749,793,794],{},"DashboardItem",[749,796,797],{},"ChartCard",[749,799,800],{},"ActionCard"," and ",[749,803,804],{},"EmptyCard"," are the building blocks.",[777,807,808,783,810,813,814,817,818,821],{},[780,809,420],{},[749,811,812],{},"useDashboard"," reads a dashboard for a page that lays it out itself,\n",[749,815,816],{},"useDashboardItem"," gives an item its loading, error, collapsed and settings state, and ",[749,819,820],{},"extendDashboard"," adds items\nfrom a module.",[777,823,824,827,828,831,832,835,836,839],{},[780,825,826],{},"Per-user layout"," (on with Preferences): the order, sizes, hidden and collapsed items and item settings are saved as the\n",[749,829,830],{},"dashboardLayouts"," preference, read and written through ",[749,833,834],{},"GET","\u002F",[749,837,838],{},"PATCH \u002Fapi\u002Fdashboard\u002Fme\u002Flayouts",".",[777,841,842,845,846,849,850,853,854,857],{},[780,843,844],{},"Hub"," (on with Auth): a signed-in page at ",[749,847,848],{},"\u002Fdashboard"," with a greeting, a compact row of shortcuts to the areas of\nthe ",[749,851,852],{},"dashboard"," menu and the user's own ",[749,855,856],{},"home"," dashboard below it, in a side navigation like the account area's.",[777,859,860,863,864,867,868,839],{},[780,861,862],{},"Mobile Home tab"," (on with Mobile): a Home tab at ",[749,865,866],{},"\u002Fcrew"," that draws ",[749,869,755],{},[738,871,872],{},"An item's component loads only when its dashboard is drawn.",[874,875],"module-runtime",{":client":876,":mobile":876},"true",[878,879,880,902,908],"note",{},[738,881,882,885,886,791,891,896,897,839],{},[780,883,884],{},"Installed for you:"," ",[742,887,888],{"href":435},[749,889,890],{},"@frigear-nu\u002Fwidget",[742,892,893],{"href":403},[749,894,895],{},"@frigear-nu\u002Fui"," and\n",[742,898,899],{"href":480},[749,900,901],{},"@frigear-nu\u002Fmodule-kit",[738,903,904,907],{},[780,905,906],{},"You add:"," nothing else.",[738,909,910,885,913,918,919,924,925,930,931,936,937,942,943,946],{},[780,911,912],{},"Optional:",[742,914,915],{"href":230},[749,916,917],{},"@frigear-nu\u002Fpreferences"," to save each user's layout,\n",[742,920,921],{"href":173},[749,922,923],{},"@frigear-nu\u002Fauth"," for the hub, ",[742,926,927],{"href":208},[749,928,929],{},"@frigear-nu\u002Fauthorization","\nto guard it, ",[742,932,933],{"href":431},[749,934,935],{},"@frigear-nu\u002Fmenu"," for its navigation,\n",[742,938,939],{"href":439},[749,940,941],{},"@frigear-nu\u002Fmobile"," for the Home tab, and ",[749,944,945],{},"@nuxtjs\u002Fi18n"," to translate titles.",[769,948,950],{"id":949},"quick-setup","Quick setup",[952,953,954,959,984,988,1052,1056,1078],"steps",{},[955,956,958],"h3",{"id":957},"install-dashboard","Install Dashboard",[960,961,966],"pre",{"className":962,"code":963,"language":964,"meta":965,"style":965},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @frigear-nu\u002Fdashboard\n","bash","",[749,967,968],{"__ignoreMap":965},[969,970,973,977,981],"span",{"class":971,"line":972},"line",1,[969,974,976],{"class":975},"sBMFI","pnpm",[969,978,980],{"class":979},"sfazB"," add",[969,982,983],{"class":979}," @frigear-nu\u002Fdashboard\n",[955,985,987],{"id":986},"add-it-to-nuxtconfigts","Add it to nuxt.config.ts",[960,989,994],{"className":990,"code":991,"filename":992,"language":993,"meta":965,"style":965},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@frigear-nu\u002Fdashboard'],\n})\n","nuxt.config.ts","ts",[749,995,996,1017,1043],{"__ignoreMap":965},[969,997,998,1002,1005,1009,1013],{"class":971,"line":972},[969,999,1001],{"class":1000},"s7zQu","export",[969,1003,1004],{"class":1000}," default",[969,1006,1008],{"class":1007},"s2Zo4"," defineNuxtConfig",[969,1010,1012],{"class":1011},"sTEyZ","(",[969,1014,1016],{"class":1015},"sMK4o","{\n",[969,1018,1020,1024,1027,1030,1033,1035,1037,1040],{"class":971,"line":1019},2,[969,1021,1023],{"class":1022},"swJcz","  modules",[969,1025,1026],{"class":1015},":",[969,1028,1029],{"class":1011}," [",[969,1031,1032],{"class":1015},"'",[969,1034,751],{"class":979},[969,1036,1032],{"class":1015},[969,1038,1039],{"class":1011},"]",[969,1041,1042],{"class":1015},",\n",[969,1044,1046,1049],{"class":971,"line":1045},3,[969,1047,1048],{"class":1015},"}",[969,1050,1051],{"class":1011},")\n",[955,1053,1055],{"id":1054},"draw-a-dashboard","Draw a dashboard",[738,1057,1058,1059,1063,1064,1066,1067,1069,1070,1072,1073,1063,1075,1077],{},"With Auth installed, the ",[742,1060,1062],{"href":1061},"#the-hub","hub"," at ",[749,1065,848],{}," draws the ",[749,1068,856],{}," dashboard. Any other dashboard goes on a page\nof yours; ",[742,1071,528],{"href":529}," draws ",[749,1074,755],{},[749,1076,866],{},", and a page of your own at that path takes its\nplace.",[960,1079,1084],{"className":1080,"code":1081,"filename":1082,"language":1083,"meta":965,"style":965},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-4\">\n    \u003CPageHeading title=\"Home\" \u002F>\n    \u003CDashboard name=\"crew.home\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","app\u002Fpages\u002Fcrew\u002Findex.vue","vue",[749,1085,1086,1097,1122,1145,1165,1175],{"__ignoreMap":965},[969,1087,1088,1091,1094],{"class":971,"line":972},[969,1089,1090],{"class":1015},"\u003C",[969,1092,1093],{"class":1022},"template",[969,1095,1096],{"class":1015},">\n",[969,1098,1099,1102,1105,1109,1112,1115,1118,1120],{"class":971,"line":1019},[969,1100,1101],{"class":1015},"  \u003C",[969,1103,1104],{"class":1022},"div",[969,1106,1108],{"class":1107},"spNyl"," class",[969,1110,1111],{"class":1015},"=",[969,1113,1114],{"class":1015},"\"",[969,1116,1117],{"class":979},"flex flex-col gap-4",[969,1119,1114],{"class":1015},[969,1121,1096],{"class":1015},[969,1123,1124,1127,1130,1133,1135,1137,1140,1142],{"class":971,"line":1045},[969,1125,1126],{"class":1015},"    \u003C",[969,1128,1129],{"class":1022},"PageHeading",[969,1131,1132],{"class":1107}," title",[969,1134,1111],{"class":1015},[969,1136,1114],{"class":1015},[969,1138,1139],{"class":979},"Home",[969,1141,1114],{"class":1015},[969,1143,1144],{"class":1015}," \u002F>\n",[969,1146,1148,1150,1152,1155,1157,1159,1161,1163],{"class":971,"line":1147},4,[969,1149,1126],{"class":1015},[969,1151,452],{"class":1022},[969,1153,1154],{"class":1107}," name",[969,1156,1111],{"class":1015},[969,1158,1114],{"class":1015},[969,1160,755],{"class":979},[969,1162,1114],{"class":1015},[969,1164,1144],{"class":1015},[969,1166,1168,1171,1173],{"class":971,"line":1167},5,[969,1169,1170],{"class":1015},"  \u003C\u002F",[969,1172,1104],{"class":1022},[969,1174,1096],{"class":1015},[969,1176,1178,1181,1183],{"class":971,"line":1177},6,[969,1179,1180],{"class":1015},"\u003C\u002F",[969,1182,1093],{"class":1022},[969,1184,1096],{"class":1015},[1186,1187,1190,1193,1194,1197,1198,1201],"callout",{"color":1188,"icon":1189},"success","i-lucide-check",[780,1191,1192],{},"What you should see:"," \"Nothing here yet\" until a module calls ",[749,1195,1196],{},"extendDashboard(nuxt, 'crew.home', …)",". Then its\nitems appear in the grid, with a small ",[780,1199,1200],{},"Customise dashboard"," icon button above them (on the hub, in the heading).",[769,1203,1205],{"id":1204},"options","Options",[738,1207,1208,1209,1211],{},"Options go under the ",[749,1210,852],{}," key.",[1213,1214,1215,1234],"table",{},[1216,1217,1218],"thead",{},[1219,1220,1221,1225,1228,1231],"tr",{},[1222,1223,1224],"th",{},"Option",[1222,1226,1227],{},"Type",[1222,1229,1230],{},"Default",[1222,1232,1233],{},"Purpose",[1235,1236,1237,1262,1282,1301,1324,1346,1364,1392],"tbody",{},[1219,1238,1239,1245,1250,1255],{},[1240,1241,1242],"td",{},[749,1243,1244],{},"homeTab",[1240,1246,1247],{},[749,1248,1249],{},"object | false",[1240,1251,1252],{},[749,1253,1254],{},"{ dashboard: 'crew.home', path: '\u002Fcrew' }",[1240,1256,1257,1258,1261],{},"The Home tab, with Mobile installed. ",[749,1259,1260],{},"false"," turns it off.",[1219,1263,1264,1269,1274,1279],{},[1240,1265,1266],{},[749,1267,1268],{},"homeTab.dashboard",[1240,1270,1271],{},[749,1272,1273],{},"string",[1240,1275,1276],{},[749,1277,1278],{},"'crew.home'",[1240,1280,1281],{},"The dashboard the tab draws.",[1219,1283,1284,1289,1293,1298],{},[1240,1285,1286],{},[749,1287,1288],{},"homeTab.path",[1240,1290,1291],{},[749,1292,1273],{},[1240,1294,1295],{},[749,1296,1297],{},"'\u002Fcrew'",[1240,1299,1300],{},"The path of the tab's page.",[1219,1302,1303,1308,1312,1317],{},[1240,1304,1305],{},[749,1306,1307],{},"homeTab.label",[1240,1309,1310],{},[749,1311,1273],{},[1240,1313,1314],{},[749,1315,1316],{},"'Home'",[1240,1318,1319,1320,1323],{},"The tab label. Without it the label is translated (",[749,1321,1322],{},"dashboard.home.label",").",[1219,1325,1326,1331,1335,1340],{},[1240,1327,1328],{},[749,1329,1330],{},"homeTab.icon",[1240,1332,1333],{},[749,1334,1273],{},[1240,1336,1337],{},[749,1338,1339],{},"'i-lucide-house'",[1240,1341,1342,1343,839],{},"The icon of the web tab bar. The native iOS tab uses the SF Symbol ",[749,1344,1345],{},"house",[1219,1347,1348,1353,1358,1361],{},[1240,1349,1350],{},[749,1351,1352],{},"homeTab.items",[1240,1354,1355],{},[749,1356,1357],{},"string[]",[1240,1359,1360],{},"every item",[1240,1362,1363],{},"Only these items of the dashboard, by id and in this order.",[1219,1365,1366,1371,1376,1381],{},[1240,1367,1368],{},[749,1369,1370],{},"settings.pages.home",[1240,1372,1373],{},[749,1374,1375],{},"string | boolean",[1240,1377,1378],{},[749,1379,1380],{},"'\u002Fdashboard'",[1240,1382,1383,1384,1386,1387,791,1389,1391],{},"The hub's path. ",[749,1385,876],{}," is ",[749,1388,848],{},[749,1390,1260],{}," turns the hub off. Needs Auth.",[1219,1393,1394,1399,1403,1408],{},[1240,1395,1396],{},[749,1397,1398],{},"settings.home.dashboard",[1240,1400,1401],{},[749,1402,1273],{},[1240,1404,1405],{},[749,1406,1407],{},"'home'",[1240,1409,1410],{},"The dashboard the hub draws below its shortcuts.",[738,1412,1413,1417,1418,1420,1421,1424,1425,1427,1428,801,1431,1434],{},[780,1414,1415,839],{},[749,1416,1244],{}," With ",[742,1419,438],{"href":439}," installed, Dashboard registers a page at ",[749,1422,1423],{},"path"," that draws the\ndashboard, and adds the tab ",[749,1426,856],{}," with ",[749,1429,1430],{},"order: 0",[749,1432,1433],{},"requiresAuth: true",". A page of your own at the same path wins.\nWithout Mobile, nothing is registered.",[738,1436,1437,1438,885,1441,1443,1444,1447,1448,1451,1452,1455],{},"The page draws the dashboard, then the ",[749,1439,1440],{},"dashboard.home",[742,1442,763],{"href":435},", where an app adds\nsections of its own with ",[749,1445,1446],{},"extendWidgets(nuxt, 'dashboard.home', ...)",". Each item and widget gets ",[749,1449,1450],{},"homeTab: true"," as a\nprop, so an item can render nothing there when it has nothing to say (as ",[749,1453,1454],{},"shifts.next"," does without a shift).",[738,1457,1458,1462,1463,1466],{},[780,1459,1460,839],{},[749,1461,1352],{}," For a short \"what's next\" Home while the rest of the dashboard lives in another tab, such as the\ncrew hub: ",[749,1464,1465],{},"homeTab: { items: ['shifts.next'] }",". The tab then has no edit mode, and with none of the items to show it\nshows nothing rather than an empty dashboard.",[738,1468,1469,1474,1475,1478,1479,839],{},[780,1470,1471,839],{},[749,1472,1473],{},"settings.pages"," The resolved path is in ",[749,1476,1477],{},"useRuntimeConfig().public.dashboard.pages.home"," (unset when the hub is\noff), and the hub's dashboard in ",[749,1480,1481],{},"useRuntimeConfig().public.dashboard.homeDashboard",[769,1483,284],{"id":1484},"app",[738,1486,1487,1488,1490,1491,839],{},"Your app draws dashboards with the components, or lays one out itself with ",[749,1489,812],{},". Module authors add items\nwith ",[749,1492,820],{},[955,1494,1496],{"id":1495},"add-items-from-a-module","Add items from a module",[738,1498,1499,1500,1502,1503,1506],{},"Call ",[749,1501,820],{}," in your module's ",[749,1504,1505],{},"setup()",", only when Dashboard is installed. The order between modules does not\nmatter.",[960,1508,1511],{"className":990,"code":1509,"filename":1510,"language":993,"meta":965,"style":965},"import { createResolver, defineNuxtModule, hasNuxtModule } from '@nuxt\u002Fkit'\n\nexport default defineNuxtModule({\n  meta: { name: '@frigear-nu\u002Fshifts' },\n  async setup(_options, nuxt) {\n    const resolver = createResolver(import.meta.url)\n\n    if (hasNuxtModule('@frigear-nu\u002Fdashboard')) {\n      const { extendDashboard, extendHubDashboard } = await import('@frigear-nu\u002Fdashboard\u002Futils')\n      const items = [{\n        id: 'shifts.next',\n        component: resolver.resolve('.\u002Fruntime\u002Fapp\u002Fdashboard\u002FNextShift.vue'),\n        titleKey: 'shifts.dashboard.next',\n        title: 'Your next shift',\n        order: 10,\n        size: { cols: 2, minCols: 1, maxCols: 4 },\n        permission: 'shifts:read',\n      }]\n      extendDashboard(nuxt, 'crew.home', items)\n      \u002F\u002F The same items on the signed-in hub, when there is one (see \"The hub\").\n      extendHubDashboard(nuxt, items, { except: 'crew.home' })\n    }\n  },\n})\n","module.ts",[749,1512,1513,1550,1556,1568,1591,1616,1645,1650,1675,1712,1726,1742,1770,1787,1804,1818,1858,1875,1884,1909,1916,1949,1955,1961],{"__ignoreMap":965},[969,1514,1515,1518,1521,1524,1527,1530,1532,1535,1538,1541,1544,1547],{"class":971,"line":972},[969,1516,1517],{"class":1000},"import",[969,1519,1520],{"class":1015}," {",[969,1522,1523],{"class":1011}," createResolver",[969,1525,1526],{"class":1015},",",[969,1528,1529],{"class":1011}," defineNuxtModule",[969,1531,1526],{"class":1015},[969,1533,1534],{"class":1011}," hasNuxtModule",[969,1536,1537],{"class":1015}," }",[969,1539,1540],{"class":1000}," from",[969,1542,1543],{"class":1015}," '",[969,1545,1546],{"class":979},"@nuxt\u002Fkit",[969,1548,1549],{"class":1015},"'\n",[969,1551,1552],{"class":971,"line":1019},[969,1553,1555],{"emptyLinePlaceholder":1554},true,"\n",[969,1557,1558,1560,1562,1564,1566],{"class":971,"line":1045},[969,1559,1001],{"class":1000},[969,1561,1004],{"class":1000},[969,1563,1529],{"class":1007},[969,1565,1012],{"class":1011},[969,1567,1016],{"class":1015},[969,1569,1570,1573,1575,1577,1579,1581,1583,1586,1588],{"class":971,"line":1147},[969,1571,1572],{"class":1022},"  meta",[969,1574,1026],{"class":1015},[969,1576,1520],{"class":1015},[969,1578,1154],{"class":1022},[969,1580,1026],{"class":1015},[969,1582,1543],{"class":1015},[969,1584,1585],{"class":979},"@frigear-nu\u002Fshifts",[969,1587,1032],{"class":1015},[969,1589,1590],{"class":1015}," },\n",[969,1592,1593,1596,1599,1601,1605,1607,1610,1613],{"class":971,"line":1167},[969,1594,1595],{"class":1107},"  async",[969,1597,1598],{"class":1022}," setup",[969,1600,1012],{"class":1015},[969,1602,1604],{"class":1603},"sHdIc","_options",[969,1606,1526],{"class":1015},[969,1608,1609],{"class":1603}," nuxt",[969,1611,1612],{"class":1015},")",[969,1614,1615],{"class":1015}," {\n",[969,1617,1618,1621,1624,1627,1629,1631,1633,1635,1638,1640,1643],{"class":971,"line":1177},[969,1619,1620],{"class":1107},"    const",[969,1622,1623],{"class":1011}," resolver",[969,1625,1626],{"class":1015}," =",[969,1628,1523],{"class":1007},[969,1630,1012],{"class":1022},[969,1632,1517],{"class":1000},[969,1634,839],{"class":1015},[969,1636,1637],{"class":1011},"meta",[969,1639,839],{"class":1015},[969,1641,1642],{"class":1011},"url",[969,1644,1051],{"class":1022},[969,1646,1648],{"class":971,"line":1647},7,[969,1649,1555],{"emptyLinePlaceholder":1554},[969,1651,1653,1656,1659,1662,1664,1666,1668,1670,1673],{"class":971,"line":1652},8,[969,1654,1655],{"class":1000},"    if",[969,1657,1658],{"class":1022}," (",[969,1660,1661],{"class":1007},"hasNuxtModule",[969,1663,1012],{"class":1022},[969,1665,1032],{"class":1015},[969,1667,751],{"class":979},[969,1669,1032],{"class":1015},[969,1671,1672],{"class":1022},")) ",[969,1674,1016],{"class":1015},[969,1676,1678,1681,1683,1686,1688,1691,1693,1695,1698,1701,1703,1705,1708,1710],{"class":971,"line":1677},9,[969,1679,1680],{"class":1107},"      const",[969,1682,1520],{"class":1015},[969,1684,1685],{"class":1011}," extendDashboard",[969,1687,1526],{"class":1015},[969,1689,1690],{"class":1011}," extendHubDashboard",[969,1692,1537],{"class":1015},[969,1694,1626],{"class":1015},[969,1696,1697],{"class":1000}," await",[969,1699,1700],{"class":1015}," import",[969,1702,1012],{"class":1022},[969,1704,1032],{"class":1015},[969,1706,1707],{"class":979},"@frigear-nu\u002Fdashboard\u002Futils",[969,1709,1032],{"class":1015},[969,1711,1051],{"class":1022},[969,1713,1715,1717,1720,1722,1724],{"class":971,"line":1714},10,[969,1716,1680],{"class":1107},[969,1718,1719],{"class":1011}," items",[969,1721,1626],{"class":1015},[969,1723,1029],{"class":1022},[969,1725,1016],{"class":1015},[969,1727,1729,1732,1734,1736,1738,1740],{"class":971,"line":1728},11,[969,1730,1731],{"class":1022},"        id",[969,1733,1026],{"class":1015},[969,1735,1543],{"class":1015},[969,1737,1454],{"class":979},[969,1739,1032],{"class":1015},[969,1741,1042],{"class":1015},[969,1743,1745,1748,1750,1752,1754,1757,1759,1761,1764,1766,1768],{"class":971,"line":1744},12,[969,1746,1747],{"class":1022},"        component",[969,1749,1026],{"class":1015},[969,1751,1623],{"class":1011},[969,1753,839],{"class":1015},[969,1755,1756],{"class":1007},"resolve",[969,1758,1012],{"class":1022},[969,1760,1032],{"class":1015},[969,1762,1763],{"class":979},".\u002Fruntime\u002Fapp\u002Fdashboard\u002FNextShift.vue",[969,1765,1032],{"class":1015},[969,1767,1612],{"class":1022},[969,1769,1042],{"class":1015},[969,1771,1773,1776,1778,1780,1783,1785],{"class":971,"line":1772},13,[969,1774,1775],{"class":1022},"        titleKey",[969,1777,1026],{"class":1015},[969,1779,1543],{"class":1015},[969,1781,1782],{"class":979},"shifts.dashboard.next",[969,1784,1032],{"class":1015},[969,1786,1042],{"class":1015},[969,1788,1790,1793,1795,1797,1800,1802],{"class":971,"line":1789},14,[969,1791,1792],{"class":1022},"        title",[969,1794,1026],{"class":1015},[969,1796,1543],{"class":1015},[969,1798,1799],{"class":979},"Your next shift",[969,1801,1032],{"class":1015},[969,1803,1042],{"class":1015},[969,1805,1807,1810,1812,1816],{"class":971,"line":1806},15,[969,1808,1809],{"class":1022},"        order",[969,1811,1026],{"class":1015},[969,1813,1815],{"class":1814},"sbssI"," 10",[969,1817,1042],{"class":1015},[969,1819,1821,1824,1826,1828,1831,1833,1836,1838,1841,1843,1846,1848,1851,1853,1856],{"class":971,"line":1820},16,[969,1822,1823],{"class":1022},"        size",[969,1825,1026],{"class":1015},[969,1827,1520],{"class":1015},[969,1829,1830],{"class":1022}," cols",[969,1832,1026],{"class":1015},[969,1834,1835],{"class":1814}," 2",[969,1837,1526],{"class":1015},[969,1839,1840],{"class":1022}," minCols",[969,1842,1026],{"class":1015},[969,1844,1845],{"class":1814}," 1",[969,1847,1526],{"class":1015},[969,1849,1850],{"class":1022}," maxCols",[969,1852,1026],{"class":1015},[969,1854,1855],{"class":1814}," 4",[969,1857,1590],{"class":1015},[969,1859,1861,1864,1866,1868,1871,1873],{"class":971,"line":1860},17,[969,1862,1863],{"class":1022},"        permission",[969,1865,1026],{"class":1015},[969,1867,1543],{"class":1015},[969,1869,1870],{"class":979},"shifts:read",[969,1872,1032],{"class":1015},[969,1874,1042],{"class":1015},[969,1876,1878,1881],{"class":971,"line":1877},18,[969,1879,1880],{"class":1015},"      }",[969,1882,1883],{"class":1022},"]\n",[969,1885,1887,1890,1892,1895,1897,1899,1901,1903,1905,1907],{"class":971,"line":1886},19,[969,1888,1889],{"class":1007},"      extendDashboard",[969,1891,1012],{"class":1022},[969,1893,1894],{"class":1011},"nuxt",[969,1896,1526],{"class":1015},[969,1898,1543],{"class":1015},[969,1900,755],{"class":979},[969,1902,1032],{"class":1015},[969,1904,1526],{"class":1015},[969,1906,1719],{"class":1011},[969,1908,1051],{"class":1022},[969,1910,1912],{"class":971,"line":1911},20,[969,1913,1915],{"class":1914},"sHwdD","      \u002F\u002F The same items on the signed-in hub, when there is one (see \"The hub\").\n",[969,1917,1919,1922,1924,1926,1928,1930,1932,1934,1937,1939,1941,1943,1945,1947],{"class":971,"line":1918},21,[969,1920,1921],{"class":1007},"      extendHubDashboard",[969,1923,1012],{"class":1022},[969,1925,1894],{"class":1011},[969,1927,1526],{"class":1015},[969,1929,1719],{"class":1011},[969,1931,1526],{"class":1015},[969,1933,1520],{"class":1015},[969,1935,1936],{"class":1022}," except",[969,1938,1026],{"class":1015},[969,1940,1543],{"class":1015},[969,1942,755],{"class":979},[969,1944,1032],{"class":1015},[969,1946,1537],{"class":1015},[969,1948,1051],{"class":1022},[969,1950,1952],{"class":971,"line":1951},22,[969,1953,1954],{"class":1015},"    }\n",[969,1956,1958],{"class":971,"line":1957},23,[969,1959,1960],{"class":1015},"  },\n",[969,1962,1964,1966],{"class":971,"line":1963},24,[969,1965,1048],{"class":1015},[969,1967,1051],{"class":1011},[738,1969,1970,1971,1973],{},"As for every soft dependency, also list ",[749,1972,751],{}," as an optional module dependency:",[960,1975,1977],{"className":990,"code":1976,"language":993,"meta":965,"style":965},"moduleDependencies: { '@frigear-nu\u002Fdashboard': { version: '>=0.0.0', optional: true } }\n",[749,1978,1979],{"__ignoreMap":965},[969,1980,1981,1984,1986,1988,1990,1992,1994,1997,2000,2003,2005,2007,2010,2012,2014,2017,2019,2023,2025],{"class":971,"line":972},[969,1982,1983],{"class":975},"moduleDependencies",[969,1985,1026],{"class":1015},[969,1987,1520],{"class":1015},[969,1989,1543],{"class":1015},[969,1991,751],{"class":979},[969,1993,1032],{"class":1015},[969,1995,1996],{"class":1022},": ",[969,1998,1999],{"class":1015},"{",[969,2001,2002],{"class":1022}," version",[969,2004,1026],{"class":1015},[969,2006,1543],{"class":1015},[969,2008,2009],{"class":979},">=0.0.0",[969,2011,1032],{"class":1015},[969,2013,1526],{"class":1015},[969,2015,2016],{"class":1022}," optional",[969,2018,1026],{"class":1015},[969,2020,2022],{"class":2021},"sfNiH"," true",[969,2024,1537],{"class":1015},[969,2026,2027],{"class":1015}," }\n",[738,2029,2030,2031,2037],{},"An item is a Widget ",[742,2032,2034],{"href":2033},"\u002Fmodules\u002Finterface\u002Fwidget#add-widgets-and-tabs-from-a-module",[749,2035,2036],{},"WidgetDefinition"," with five\nmore fields:",[960,2039,2041],{"className":990,"code":2040,"language":993,"meta":965,"style":965},"type DashboardItem = WidgetDefinition & {\n  title?: string \u002F\u002F plain fallback title\n  titleKey?: string \u002F\u002F i18n key, translated at render time\n  platforms?: ('web' | 'mobile')[] \u002F\u002F default: both\n  optional?: boolean \u002F\u002F often has nothing for this viewer: hidden until it has content\n  when?: { module?: string, platform?: 'web' | 'mobile' } \u002F\u002F every key that is set must hold\n}\n",[749,2042,2043,2061,2075,2087,2119,2132,2174],{"__ignoreMap":965},[969,2044,2045,2048,2051,2053,2056,2059],{"class":971,"line":972},[969,2046,2047],{"class":1107},"type",[969,2049,2050],{"class":975}," DashboardItem",[969,2052,1626],{"class":1015},[969,2054,2055],{"class":975}," WidgetDefinition",[969,2057,2058],{"class":1015}," &",[969,2060,1615],{"class":1015},[969,2062,2063,2066,2069,2072],{"class":971,"line":1019},[969,2064,2065],{"class":1022},"  title",[969,2067,2068],{"class":1015},"?:",[969,2070,2071],{"class":975}," string",[969,2073,2074],{"class":1914}," \u002F\u002F plain fallback title\n",[969,2076,2077,2080,2082,2084],{"class":971,"line":1045},[969,2078,2079],{"class":1022},"  titleKey",[969,2081,2068],{"class":1015},[969,2083,2071],{"class":975},[969,2085,2086],{"class":1914}," \u002F\u002F i18n key, translated at render time\n",[969,2088,2089,2092,2094,2096,2098,2101,2103,2106,2108,2111,2113,2116],{"class":971,"line":1147},[969,2090,2091],{"class":1022},"  platforms",[969,2093,2068],{"class":1015},[969,2095,1658],{"class":1011},[969,2097,1032],{"class":1015},[969,2099,2100],{"class":979},"web",[969,2102,1032],{"class":1015},[969,2104,2105],{"class":1015}," |",[969,2107,1543],{"class":1015},[969,2109,2110],{"class":979},"mobile",[969,2112,1032],{"class":1015},[969,2114,2115],{"class":1011},")[] ",[969,2117,2118],{"class":1914},"\u002F\u002F default: both\n",[969,2120,2121,2124,2126,2129],{"class":971,"line":1167},[969,2122,2123],{"class":1022},"  optional",[969,2125,2068],{"class":1015},[969,2127,2128],{"class":975}," boolean",[969,2130,2131],{"class":1914}," \u002F\u002F often has nothing for this viewer: hidden until it has content\n",[969,2133,2134,2137,2139,2141,2144,2146,2148,2150,2153,2155,2157,2159,2161,2163,2165,2167,2169,2171],{"class":971,"line":1177},[969,2135,2136],{"class":1022},"  when",[969,2138,2068],{"class":1015},[969,2140,1520],{"class":1015},[969,2142,2143],{"class":1022}," module",[969,2145,2068],{"class":1015},[969,2147,2071],{"class":975},[969,2149,1526],{"class":1015},[969,2151,2152],{"class":1022}," platform",[969,2154,2068],{"class":1015},[969,2156,1543],{"class":1015},[969,2158,2100],{"class":979},[969,2160,1032],{"class":1015},[969,2162,2105],{"class":1015},[969,2164,1543],{"class":1015},[969,2166,2110],{"class":979},[969,2168,1032],{"class":1015},[969,2170,1537],{"class":1015},[969,2172,2173],{"class":1914}," \u002F\u002F every key that is set must hold\n",[969,2175,2176],{"class":971,"line":1647},[969,2177,2178],{"class":1015},"}\n",[774,2180,2181,2195,2213,2242,2254,2262],{},[777,2182,2183,2188,2189,2191,2192,2194],{},[780,2184,2185],{},[749,2186,2187],{},"id"," is unique within a dashboard. An item registered again under the same ",[749,2190,2187],{}," replaces the earlier one, so\nyour app can replace a module's item. The ",[749,2193,2187],{}," defaults to the component's file name. Keep it at most 100\ncharacters.",[777,2196,2197,2202,2203,2205,2206,885,2209,2212],{},[780,2198,2199],{},[749,2200,2201],{},"permission"," hides the item from viewers who lack it. ",[742,2204,207],{"href":208}," does this\nthrough the ",[749,2207,2208],{},"widgets:filter",[742,2210,2211],{"href":91},"hook",". The data behind the item is still checked on the server.",[777,2214,2215,801,2220,2225,2226,2228,2229,2231,2232,2234,2235,2238,2239,2241],{},[780,2216,2217],{},[749,2218,2219],{},"platforms",[780,2221,2222],{},[749,2223,2224],{},"when.platform"," pick where the item shows. The platform is ",[749,2227,2110],{}," inside the native app of\nMobile, and ",[749,2230,2100],{}," everywhere else. The server always renders ",[749,2233,2100],{},": a server-rendered page (Mobile with\n",[749,2236,2237],{},"spa: false",") switches to ",[749,2240,2110],{}," once hydration is done.",[777,2243,2244,2249,2250,2253],{},[780,2245,2246],{},[749,2247,2248],{},"optional"," is for an item that often has nothing for the viewer, such as ",[780,2251,2252],{},"Your apps",". It shows no title or\nskeleton while it loads (not even in the server-rendered page) and joins the grid once it has rendered content, so it\nnever appears only to vanish again. Once shown, it behaves like any other item.",[777,2255,2256,2261],{},[780,2257,2258],{},[749,2259,2260],{},"when.module"," ships the item only when that module is installed. It is decided at build time, so the item's\ncomponent is not even bundled otherwise.",[777,2263,2264,2269,2270,791,2273,801,2276,2279,2280,2283,2284,2288,2289,2291,2292,2295],{},[780,2265,2266],{},[749,2267,2268],{},"size"," is how much room the item would like: ",[749,2271,2272],{},"cols",[749,2274,2275],{},"minCols",[749,2277,2278],{},"maxCols"," in columns of the four-column\ngrid, and ",[749,2281,2282],{},"rows",". See ",[742,2285,2287],{"href":2286},"#sizing","Sizing",". ",[749,2290,969],{}," still works as the old name of ",[749,2293,2294],{},"size.cols",", and is deprecated.",[2297,2298,2299,2300,2302,2303,2306],"warning",{},"Add items with ",[749,2301,820],{},", never with ",[749,2304,2305],{},"extendWidgets(nuxt, 'dashboard.\u003Cname>', …)",". A widget without the\ndashboard part is not shown, and the build warns about it.",[2308,2309,2310,2311,2314],"caution",{},"Hiding an item only hides the interface. Always call ",[749,2312,2313],{},"authorize"," on the server for the data an item loads.",[955,2316,2318],{"id":2317},"the-admin-dashboard","The admin dashboard",[738,2320,2321,2322,2324,2325,2328,2329,2332,2333,2335,2336,2339,2340,1658,2343,2347,2348,2351,2352,839],{},"With ",[742,2323,225],{"href":427}," installed, ",[749,2326,2327],{},"\u002Fadmin"," draws the dashboard ",[749,2330,2331],{},"admin",", with ",[780,2334,1200],{},"\nin its heading. Modules add to it with Admin's ",[749,2337,2338],{},"extendAdminDashboard",", which gives each widget a default size from its\nold ",[749,2341,2342],{},"position",[742,2344,2346],{"href":2345},"\u002Fmodules\u002Finterface\u002Fadmin#dashboard","Admin dashboard","), or with ",[749,2349,2350],{},"extendDashboard(nuxt, 'admin', …)",".\nWithout Dashboard the same widgets go into Admin's three widget areas. Each staff member's layout is saved like any\nother, under the name ",[749,2353,2331],{},[955,2355,2357],{"id":2356},"write-an-item","Write an item",[738,2359,2360,2361,2364,2365,2368,2369,801,2372,2375,2376,2378],{},"An item is an ordinary Vue component. It receives its ",[749,2362,2363],{},"props",", then every entry of the dashboard's ",[749,2366,2367],{},"context",". Reuse\n",[749,2370,2371],{},"StatCard",[749,2373,2374],{},"ListCard"," from ",[742,2377,402],{"href":403},", or the building blocks below.",[960,2380,2383],{"className":1080,"code":2381,"filename":2382,"language":1083,"meta":965,"style":965},"\u003Cscript setup lang=\"ts\">\nimport { useDashboardItem, useFetch, watchEffect } from '#imports'\n\nconst { loading, error, onRefresh } = useDashboardItem()\nconst { data, status, error: fetchError, refresh } = useFetch('\u002Fapi\u002Fshifts\u002Fme\u002Fnext', { lazy: true })\n\nwatchEffect(() => {\n  loading.value = status.value === 'pending'\n  error.value = fetchError.value\n})\nonRefresh(refresh)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003C!-- No `label`: the dashboard shows the item's `title` above it. -->\n  \u003CStatCard\n    :value=\"data?.startsAt\"\n    icon=\"i-lucide-calendar-clock\"\n    empty=\"No shift booked\"\n  \u002F>\n\u003C\u002Ftemplate>\n","runtime\u002Fapp\u002Fdashboard\u002FNextShift.vue",[749,2384,2385,2407,2437,2441,2470,2528,2532,2547,2575,2593,2599,2607,2615,2619,2627,2632,2639,2662,2676,2690,2695],{"__ignoreMap":965},[969,2386,2387,2389,2392,2394,2397,2399,2401,2403,2405],{"class":971,"line":972},[969,2388,1090],{"class":1015},[969,2390,2391],{"class":1022},"script",[969,2393,1598],{"class":1107},[969,2395,2396],{"class":1107}," lang",[969,2398,1111],{"class":1015},[969,2400,1114],{"class":1015},[969,2402,993],{"class":979},[969,2404,1114],{"class":1015},[969,2406,1096],{"class":1015},[969,2408,2409,2411,2413,2416,2418,2421,2423,2426,2428,2430,2432,2435],{"class":971,"line":1019},[969,2410,1517],{"class":1000},[969,2412,1520],{"class":1015},[969,2414,2415],{"class":1011}," useDashboardItem",[969,2417,1526],{"class":1015},[969,2419,2420],{"class":1011}," useFetch",[969,2422,1526],{"class":1015},[969,2424,2425],{"class":1011}," watchEffect",[969,2427,1537],{"class":1015},[969,2429,1540],{"class":1000},[969,2431,1543],{"class":1015},[969,2433,2434],{"class":979},"#imports",[969,2436,1549],{"class":1015},[969,2438,2439],{"class":971,"line":1045},[969,2440,1555],{"emptyLinePlaceholder":1554},[969,2442,2443,2446,2448,2451,2453,2456,2458,2461,2463,2465,2467],{"class":971,"line":1147},[969,2444,2445],{"class":1107},"const",[969,2447,1520],{"class":1015},[969,2449,2450],{"class":1011}," loading",[969,2452,1526],{"class":1015},[969,2454,2455],{"class":1011}," error",[969,2457,1526],{"class":1015},[969,2459,2460],{"class":1011}," onRefresh ",[969,2462,1048],{"class":1015},[969,2464,1626],{"class":1015},[969,2466,2415],{"class":1007},[969,2468,2469],{"class":1011},"()\n",[969,2471,2472,2474,2476,2479,2481,2484,2486,2488,2490,2493,2495,2498,2500,2502,2504,2506,2508,2511,2513,2515,2517,2520,2522,2524,2526],{"class":971,"line":1167},[969,2473,2445],{"class":1107},[969,2475,1520],{"class":1015},[969,2477,2478],{"class":1011}," data",[969,2480,1526],{"class":1015},[969,2482,2483],{"class":1011}," status",[969,2485,1526],{"class":1015},[969,2487,2455],{"class":1022},[969,2489,1026],{"class":1015},[969,2491,2492],{"class":1011}," fetchError",[969,2494,1526],{"class":1015},[969,2496,2497],{"class":1011}," refresh ",[969,2499,1048],{"class":1015},[969,2501,1626],{"class":1015},[969,2503,2420],{"class":1007},[969,2505,1012],{"class":1011},[969,2507,1032],{"class":1015},[969,2509,2510],{"class":979},"\u002Fapi\u002Fshifts\u002Fme\u002Fnext",[969,2512,1032],{"class":1015},[969,2514,1526],{"class":1015},[969,2516,1520],{"class":1015},[969,2518,2519],{"class":1022}," lazy",[969,2521,1026],{"class":1015},[969,2523,2022],{"class":2021},[969,2525,1537],{"class":1015},[969,2527,1051],{"class":1011},[969,2529,2530],{"class":971,"line":1177},[969,2531,1555],{"emptyLinePlaceholder":1554},[969,2533,2534,2537,2539,2542,2545],{"class":971,"line":1647},[969,2535,2536],{"class":1007},"watchEffect",[969,2538,1012],{"class":1011},[969,2540,2541],{"class":1015},"()",[969,2543,2544],{"class":1107}," =>",[969,2546,1615],{"class":1015},[969,2548,2549,2552,2554,2557,2559,2561,2563,2565,2568,2570,2573],{"class":971,"line":1652},[969,2550,2551],{"class":1011},"  loading",[969,2553,839],{"class":1015},[969,2555,2556],{"class":1011},"value",[969,2558,1626],{"class":1015},[969,2560,2483],{"class":1011},[969,2562,839],{"class":1015},[969,2564,2556],{"class":1011},[969,2566,2567],{"class":1015}," ===",[969,2569,1543],{"class":1015},[969,2571,2572],{"class":979},"pending",[969,2574,1549],{"class":1015},[969,2576,2577,2580,2582,2584,2586,2588,2590],{"class":971,"line":1677},[969,2578,2579],{"class":1011},"  error",[969,2581,839],{"class":1015},[969,2583,2556],{"class":1011},[969,2585,1626],{"class":1015},[969,2587,2492],{"class":1011},[969,2589,839],{"class":1015},[969,2591,2592],{"class":1011},"value\n",[969,2594,2595,2597],{"class":971,"line":1714},[969,2596,1048],{"class":1015},[969,2598,1051],{"class":1011},[969,2600,2601,2604],{"class":971,"line":1728},[969,2602,2603],{"class":1007},"onRefresh",[969,2605,2606],{"class":1011},"(refresh)\n",[969,2608,2609,2611,2613],{"class":971,"line":1744},[969,2610,1180],{"class":1015},[969,2612,2391],{"class":1022},[969,2614,1096],{"class":1015},[969,2616,2617],{"class":971,"line":1772},[969,2618,1555],{"emptyLinePlaceholder":1554},[969,2620,2621,2623,2625],{"class":971,"line":1789},[969,2622,1090],{"class":1015},[969,2624,1093],{"class":1022},[969,2626,1096],{"class":1015},[969,2628,2629],{"class":971,"line":1806},[969,2630,2631],{"class":1914},"  \u003C!-- No `label`: the dashboard shows the item's `title` above it. -->\n",[969,2633,2634,2636],{"class":971,"line":1820},[969,2635,1101],{"class":1015},[969,2637,2638],{"class":1022},"StatCard\n",[969,2640,2641,2644,2646,2648,2650,2653,2656,2659],{"class":971,"line":1860},[969,2642,2643],{"class":1015},"    :",[969,2645,2556],{"class":1107},[969,2647,1111],{"class":1015},[969,2649,1114],{"class":1015},[969,2651,2652],{"class":1011},"data",[969,2654,2655],{"class":1015},"?.",[969,2657,2658],{"class":1011},"startsAt",[969,2660,2661],{"class":1015},"\"\n",[969,2663,2664,2667,2669,2671,2674],{"class":971,"line":1877},[969,2665,2666],{"class":1107},"    icon",[969,2668,1111],{"class":1015},[969,2670,1114],{"class":1015},[969,2672,2673],{"class":979},"i-lucide-calendar-clock",[969,2675,2661],{"class":1015},[969,2677,2678,2681,2683,2685,2688],{"class":971,"line":1886},[969,2679,2680],{"class":1107},"    empty",[969,2682,1111],{"class":1015},[969,2684,1114],{"class":1015},[969,2686,2687],{"class":979},"No shift booked",[969,2689,2661],{"class":1015},[969,2691,2692],{"class":971,"line":1911},[969,2693,2694],{"class":1015},"  \u002F>\n",[969,2696,2697,2699,2701],{"class":971,"line":1918},[969,2698,1180],{"class":1015},[969,2700,1093],{"class":1022},[969,2702,1096],{"class":1015},[738,2704,2705,2706,2709,2710,2712,2713,2716,2717,2719,2720,2722,2723,2726,2727,2730],{},"The frame shows the item's ",[749,2707,2708],{},"title"," above the component, so the component shows no heading of its own (a ",[749,2711,2371],{},"\nwithout ",[749,2714,2715],{},"label",", a ",[749,2718,2374],{}," without ",[749,2721,2708],{},"). A component that is also a widget of another area, where it needs its\nheading, takes a ",[749,2724,2725],{},"framed"," prop and leaves the heading out when it is set; register the item with\n",[749,2728,2729],{},"props: { framed: true }"," (Help Center's onboarding summary, Admin's widgets).",[738,2732,2733,2736],{},[749,2734,2735],{},"useDashboardItem()"," returns the item's context. Outside a dashboard it returns local state, so the component still\nworks on a page of its own.",[960,2738,2740],{"className":990,"code":2739,"language":993,"meta":965,"style":965},"useDashboardItem(): {\n  dashboard: string\n  id: string\n  loading: Ref\u003Cboolean> \u002F\u002F set it: the frame shows a skeleton instead of the item\n  error: Ref\u003Cunknown> \u002F\u002F set it: the frame shows the error and a \"Try again\" button\n  empty: Ref\u003Cboolean> \u002F\u002F set it: nothing to show this viewer, the item (title included) leaves the grid\n  collapsed: ComputedRef\u003Cboolean>\n  settings: ComputedRef\u003CRecord\u003Cstring, unknown>> \u002F\u002F the user's settings of this item\n  setSettings(value: Record\u003Cstring, unknown>): Promise\u003Cvoid> \u002F\u002F replaces them, `{}` clears them\n  refresh(): Promise\u003Cvoid> \u002F\u002F clears `error` and calls the `onRefresh` handler\n  onRefresh(handler: () => unknown): void\n}\n",[749,2741,2742,2751,2761,2766,2782,2797,2811,2822,2844,2883,2902,2927],{"__ignoreMap":965},[969,2743,2744,2746,2749],{"class":971,"line":972},[969,2745,816],{"class":1007},[969,2747,2748],{"class":1011},"(): ",[969,2750,1016],{"class":1015},[969,2752,2753,2756,2758],{"class":971,"line":1019},[969,2754,2755],{"class":1022},"  dashboard",[969,2757,1026],{"class":1015},[969,2759,2760],{"class":1011}," string\n",[969,2762,2763],{"class":971,"line":1045},[969,2764,2765],{"class":1011},"  id: string\n",[969,2767,2768,2771,2773,2776,2779],{"class":971,"line":1147},[969,2769,2770],{"class":1011},"  loading: Ref",[969,2772,1090],{"class":1015},[969,2774,2775],{"class":1011},"boolean",[969,2777,2778],{"class":1015},">",[969,2780,2781],{"class":1914}," \u002F\u002F set it: the frame shows a skeleton instead of the item\n",[969,2783,2784,2787,2789,2792,2794],{"class":971,"line":1167},[969,2785,2786],{"class":1011},"  error: Ref",[969,2788,1090],{"class":1015},[969,2790,2791],{"class":1011},"unknown",[969,2793,2778],{"class":1015},[969,2795,2796],{"class":1914}," \u002F\u002F set it: the frame shows the error and a \"Try again\" button\n",[969,2798,2799,2802,2804,2806,2808],{"class":971,"line":1177},[969,2800,2801],{"class":1011},"  empty: Ref",[969,2803,1090],{"class":1015},[969,2805,2775],{"class":1011},[969,2807,2778],{"class":1015},[969,2809,2810],{"class":1914}," \u002F\u002F set it: nothing to show this viewer, the item (title included) leaves the grid\n",[969,2812,2813,2816,2818,2820],{"class":971,"line":1647},[969,2814,2815],{"class":1011},"  collapsed: ComputedRef",[969,2817,1090],{"class":1015},[969,2819,2775],{"class":1011},[969,2821,1096],{"class":1015},[969,2823,2824,2827,2829,2832,2834,2836,2838,2841],{"class":971,"line":1652},[969,2825,2826],{"class":1011},"  settings: ComputedRef",[969,2828,1090],{"class":1015},[969,2830,2831],{"class":1011},"Record",[969,2833,1090],{"class":1015},[969,2835,1273],{"class":1011},[969,2837,1526],{"class":1015},[969,2839,2840],{"class":1011}," unknown>> ",[969,2842,2843],{"class":1914},"\u002F\u002F the user's settings of this item\n",[969,2845,2846,2849,2851,2853,2855,2858,2860,2862,2864,2867,2870,2873,2875,2878,2880],{"class":971,"line":1677},[969,2847,2848],{"class":1022},"  setSettings",[969,2850,1012],{"class":1015},[969,2852,2556],{"class":1603},[969,2854,1026],{"class":1015},[969,2856,2857],{"class":975}," Record",[969,2859,1090],{"class":1015},[969,2861,1273],{"class":975},[969,2863,1526],{"class":1015},[969,2865,2866],{"class":975}," unknown",[969,2868,2869],{"class":1015},">):",[969,2871,2872],{"class":975}," Promise",[969,2874,1090],{"class":1015},[969,2876,2877],{"class":975},"void",[969,2879,2778],{"class":1015},[969,2881,2882],{"class":1914}," \u002F\u002F replaces them, `{}` clears them\n",[969,2884,2885,2888,2891,2893,2895,2897,2899],{"class":971,"line":1714},[969,2886,2887],{"class":1022},"  refresh",[969,2889,2890],{"class":1015},"():",[969,2892,2872],{"class":975},[969,2894,1090],{"class":1015},[969,2896,2877],{"class":975},[969,2898,2778],{"class":1015},[969,2900,2901],{"class":1914}," \u002F\u002F clears `error` and calls the `onRefresh` handler\n",[969,2903,2904,2907,2909,2912,2914,2917,2919,2921,2924],{"class":971,"line":1728},[969,2905,2906],{"class":1022},"  onRefresh",[969,2908,1012],{"class":1015},[969,2910,2911],{"class":1007},"handler",[969,2913,1026],{"class":1015},[969,2915,2916],{"class":1015}," ()",[969,2918,2544],{"class":1107},[969,2920,2866],{"class":975},[969,2922,2923],{"class":1015},"):",[969,2925,2926],{"class":975}," void\n",[969,2928,2929],{"class":971,"line":1744},[969,2930,2178],{"class":1015},[738,2932,2933],{},"An item that throws while rendering shows the same error state, without breaking the rest of the dashboard.",[738,2935,2936,2937,2940,2941,2943,2944,2947],{},"Set ",[749,2938,2939],{},"empty"," when the item has nothing for this viewer, such as no applications to open: the item takes no place in the\ngrid until it has something, and shows again (title only) while the user edits the layout. Prefer it to an empty card\nfor items that only make sense with data, and mark such an item ",[749,2942,2248],{}," so it does not flash while it loads. An item whose component renders nothing at all (a ",[749,2945,2946],{},"v-if"," on its root, as a\nwidget shared with another widget area may have) leaves the grid the same way, title included.",[955,2949,782],{"id":2950},"components",[1213,2952,2953,2965],{},[1216,2954,2955],{},[1219,2956,2957,2960,2963],{},[1222,2958,2959],{},"Component",[1222,2961,2962],{},"Props",[1222,2964,1233],{},[1235,2966,2967,3035,3060,3114,3144,3174],{},[1219,2968,2969,2973,3005],{},[1240,2970,2971],{},[749,2972,786],{},[1240,2974,2975,791,2978,791,2981,2984,2985,2987,2988,791,2991,2984,2994,2987,2996,2999,3000,2984,3003,1612],{},[749,2976,2977],{},"name: string",[749,2979,2980],{},"context?: Record\u003Cstring, unknown>",[749,2982,2983],{},"editable?: boolean"," (default ",[749,2986,876],{},"), ",[749,2989,2990],{},"v-model:editing",[749,2992,2993],{},"editButton?: boolean",[749,2995,876],{},[749,2997,2998],{},"items?: string[]"," (only these item ids, in this order), ",[749,3001,3002],{},"emptyState?: boolean",[749,3004,876],{},[1240,3006,3007,3008,3010,3011,3013,3014,3017,3018,2332,3021,3024,3025,3028,3029,801,3032,839],{},"Draws the dashboard in ",[749,3009,790],{},", with the edit mode. Slot ",[749,3012,2939],{},", for a dashboard with no items (none hidden either). With ",[749,3015,3016],{},":empty-state=\"false\""," such a dashboard renders nothing and takes no room (its root is ",[749,3019,3020],{},"hidden",[749,3022,3023],{},"data-dashboard-empty","), for a page with something else to show. With ",[749,3026,3027],{},":edit-button=\"false\""," the page starts edit mode itself; the component's ref exposes ",[749,3030,3031],{},"canEdit",[749,3033,3034],{},"start()",[1219,3036,3037,3042,3045],{},[1240,3038,3039],{},[749,3040,3041],{},"\u003CDashboardGrid>",[1240,3043,3044],{},"none",[1240,3046,3047,3048,3051,3052,3055,3056,3059],{},"Sized by the width it gets, not the screen (a container query): one column, two from 42rem, four from 56rem. Items in a row share its height. ",[749,3049,3050],{},"rows?: { 2?, 4? }"," sets the ",[749,3053,3054],{},"grid-template-rows"," of the two- and four-column grid (",[749,3057,3058],{},"packRowTemplate","); without it rows are as tall as their content.",[1219,3061,3062,3067,3087],{},[1240,3063,3064],{},[749,3065,3066],{},"\u003CDashboardItem>",[1240,3068,3069,791,3072,791,3075,791,3078,791,3081,791,3084],{},[749,3070,3071],{},"item: DashboardEntry",[749,3073,3074],{},"context?",[749,3076,3077],{},"editing?",[749,3079,3080],{},"first?",[749,3082,3083],{},"last?",[749,3085,3086],{},"placements?: { 2?, 4? }",[1240,3088,3089,3090,3093,3094,3097,3098,3101,3102,791,3105,791,3108,801,3111,839],{},"One item with its title, collapse toggle, skeleton and error state. Goes where ",[749,3091,3092],{},"placements"," says (",[749,3095,3096],{},"packDashboard","), else spans its own width in the grid's flow. Emits ",[749,3099,3100],{},"visible"," and, in edit mode, ",[749,3103,3104],{},"resize",[749,3106,3107],{},"moveUp",[749,3109,3110],{},"moveDown",[749,3112,3113],{},"hide",[1219,3115,3116,3121,3137],{},[1240,3117,3118],{},[749,3119,3120],{},"\u003CChartCard>",[1240,3122,3123,791,3125,791,3128,791,3131,791,3134],{},[749,3124,2708],{},[749,3126,3127],{},"description?",[749,3129,3130],{},"loading?",[749,3132,3133],{},"isEmpty?",[749,3135,3136],{},"empty?",[1240,3138,3139,3140,3143],{},"A frame for a chart in the default slot, with ",[749,3141,3142],{},"#actions",". No chart library is bundled.",[1219,3145,3146,3151,3168],{},[1240,3147,3148],{},[749,3149,3150],{},"\u003CActionCard>",[1240,3152,3153,791,3155,791,3157,791,3160,791,3163,791,3166],{},[749,3154,2708],{},[749,3156,3127],{},[749,3158,3159],{},"icon?",[749,3161,3162],{},"actionLabel",[749,3164,3165],{},"to?",[749,3167,3130],{},[1240,3169,3170,3171,839],{},"A call to action with one primary button. Emits ",[749,3172,3173],{},"action",[1219,3175,3176,3181,3194],{},[1240,3177,3178],{},[749,3179,3180],{},"\u003CEmptyCard>",[1240,3182,3183,791,3185,791,3187,791,3189,791,3192],{},[749,3184,2708],{},[749,3186,3127],{},[749,3188,3159],{},[749,3190,3191],{},"actionLabel?",[749,3193,3165],{},[1240,3195,3196,3197,3200,3201,839],{},"An empty state (",[749,3198,3199],{},"UEmpty",") with exactly one action. Emits ",[749,3202,3173],{},[774,3204,3205,3217,3226,3239],{},[777,3206,3207,885,3210,3212,3213,3216],{},[780,3208,3209],{},"Edit mode.",[780,3211,1200],{}," (a small settings icon with a tooltip; on the hub it sits in the page heading)\nshows buttons to move each item up or down, to resize it and to hide it, and lists the\nhidden items with a button to show each again. ",[780,3214,3215],{},"Reset layout"," asks for confirmation, then restores the default.\nThe buttons are disabled while a change is being saved. When changes are not saved for the user, edit mode says\nthey last until a reload.",[777,3218,3219,3222,3223,3225],{},[780,3220,3221],{},"Moving."," An item moves within the full order of the dashboard, so items the viewer does not see (on the other\nplatform, or hidden by ",[749,3224,2208],{},") keep their place.",[777,3227,3228,3231,3232,3234,3235,3238],{},[780,3229,3230],{},"Loading."," While the items load, ",[749,3233,786],{}," shows a skeleton grid, never an empty dashboard. If they fail to\nload, it shows an error with a ",[780,3236,3237],{},"Try again"," button.",[777,3240,3241,3246,3247,3249,3250,3252],{},[780,3242,3243],{},[749,3244,3245],{},"dashboardSpanClass(span)"," (deprecated) returns the container-query classes of an item spanning ",[749,3248,969],{}," columns,\nfor a grid of your own. ",[749,3251,794],{}," no longer uses it.",[955,3254,2287],{"id":3255},"sizing",[738,3257,3258,3259,3261],{},"An item says how much room it would like with ",[749,3260,2268],{},". Widths are in columns of the four-column grid:",[960,3263,3265],{"className":990,"code":3264,"language":993,"meta":965,"style":965},"size?: {\n  cols?: 1 | 2 | 3 | 4 \u002F\u002F preferred width; default `span`, else 1\n  minCols?: 1 | 2 | 3 | 4 \u002F\u002F narrowest, to fit the rest of a row; default `cols` (never shrinks)\n  maxCols?: 1 | 2 | 3 | 4 \u002F\u002F widest, to fill a row; default `cols`\n  rows?: 1 | 2 | 3 | 4 \u002F\u002F height in rows; default 1\n}\n",[749,3266,3267,3275,3300,3324,3348,3372],{"__ignoreMap":965},[969,3268,3269,3271,3273],{"class":971,"line":972},[969,3270,2268],{"class":1011},[969,3272,2068],{"class":1015},[969,3274,1615],{"class":1015},[969,3276,3277,3280,3282,3284,3286,3288,3290,3293,3295,3297],{"class":971,"line":1019},[969,3278,3279],{"class":1011},"  cols?",[969,3281,1026],{"class":1015},[969,3283,1845],{"class":1814},[969,3285,2105],{"class":1015},[969,3287,1835],{"class":1814},[969,3289,2105],{"class":1015},[969,3291,3292],{"class":1814}," 3",[969,3294,2105],{"class":1015},[969,3296,1855],{"class":1814},[969,3298,3299],{"class":1914}," \u002F\u002F preferred width; default `span`, else 1\n",[969,3301,3302,3305,3307,3309,3311,3313,3315,3317,3319,3321],{"class":971,"line":1045},[969,3303,3304],{"class":1011},"  minCols",[969,3306,2068],{"class":1015},[969,3308,1845],{"class":1814},[969,3310,2105],{"class":1015},[969,3312,1835],{"class":1814},[969,3314,2105],{"class":1015},[969,3316,3292],{"class":1814},[969,3318,2105],{"class":1015},[969,3320,1855],{"class":1814},[969,3322,3323],{"class":1914}," \u002F\u002F narrowest, to fit the rest of a row; default `cols` (never shrinks)\n",[969,3325,3326,3329,3331,3333,3335,3337,3339,3341,3343,3345],{"class":971,"line":1147},[969,3327,3328],{"class":1011},"  maxCols",[969,3330,2068],{"class":1015},[969,3332,1845],{"class":1814},[969,3334,2105],{"class":1015},[969,3336,1835],{"class":1814},[969,3338,2105],{"class":1015},[969,3340,3292],{"class":1814},[969,3342,2105],{"class":1015},[969,3344,1855],{"class":1814},[969,3346,3347],{"class":1914}," \u002F\u002F widest, to fill a row; default `cols`\n",[969,3349,3350,3353,3355,3357,3359,3361,3363,3365,3367,3369],{"class":971,"line":1167},[969,3351,3352],{"class":1011},"  rows",[969,3354,2068],{"class":1015},[969,3356,1845],{"class":1814},[969,3358,2105],{"class":1015},[969,3360,1835],{"class":1814},[969,3362,2105],{"class":1015},[969,3364,3292],{"class":1814},[969,3366,2105],{"class":1015},[969,3368,1855],{"class":1814},[969,3370,3371],{"class":1914}," \u002F\u002F height in rows; default 1\n",[969,3373,3374],{"class":971,"line":1177},[969,3375,2178],{"class":1015},[738,3377,3378,3379,801,3381,3383,3384,3386,3387,3390,3391,3394,3395,839],{},"An item changes width only within the bounds it declares: without ",[749,3380,2275],{},[749,3382,2278],{}," it keeps ",[749,3385,2272],{}," (so an old\n",[749,3388,3389],{},"span: 2"," item looks as it did). A list that reads well at any width is ",[749,3392,3393],{},"{ cols: 2, minCols: 1, maxCols: 4 }","; a stat\nis ",[749,3396,3397],{},"{ cols: 1 }",[774,3399,3400,3417,3436,3448,3490],{},[777,3401,3402,885,3405,3407,3408,3410,3411,3413,3414,3416],{},[780,3403,3404],{},"Packing.",[749,3406,786],{}," places the shown items for the two- and four-column grid with ",[749,3409,3096],{},", in the\nuser's order (never reordered to fill a hole, so moving up and down stays predictable). An item goes to the next spot\nwhere it fits: narrower, down to ",[749,3412,2275],{},", when that is the room left in the row, else on the next row. Then the\nitems of each row grow, in order, toward ",[749,3415,2278],{}," into the free cells to their right. Every width is clamped to the\ngrid, so on two columns a four-column item is two wide. With one column the items flow in order.",[777,3418,3419,3422,3423,3426,3427,3429,3430,3432,3433,839],{},[780,3420,3421],{},"Rows."," From two columns, a row that holds an expanded item is at least 10rem tall and grows with its content, so\nan item two rows tall sits beside two items one row tall. A collapsed item is one row tall, and a row of only\ncollapsed items is as tall as their titles. ",[749,3424,3425],{},"packRowTemplate(placements, collapsed)"," gives the ",[749,3428,3054],{},",\nwhich ",[749,3431,786],{}," passes to ",[749,3434,3435],{},"\u003CDashboardGrid :rows>",[777,3437,3438,3441,3442,3444,3445,3447],{},[780,3439,3440],{},"What takes a place."," Only the items that show are packed: an ",[749,3443,2248],{}," item that has nothing yet, or an item that\nis ",[749,3446,2939],{},", leaves no hole.",[777,3449,3450,3453,3454,801,3457,3460,3461,896,3463,3465,3466,896,3469,3472,3473,3476,3477,3479,3480,3483,3484,3486,3487,3489],{},[780,3451,3452],{},"Resizing."," In edit mode, ",[780,3455,3456],{},"Narrower",[780,3458,3459],{},"Wider"," change the width one column at a time within ",[749,3462,2275],{},[749,3464,2278],{}," (shown only when they differ), starting from the width the four-column grid shows. ",[780,3467,3468],{},"Shorter",[780,3470,3471],{},"Taller"," change the rows (1-4). ",[780,3474,3475],{},"Reset size"," returns the item to its ",[749,3478,2268],{},". The user's size is saved in the\nlayout (",[749,3481,3482],{},"sizes",") and wins over ",[749,3485,2268],{},"; a width the user chose is never shrunk or grown by the packing (only clamped\non two columns). ",[780,3488,3215],{}," clears every size.",[777,3491,3492,885,3495,801,3498,3501,3502,3504,3505,3508,3509,3511],{},[780,3493,3494],{},"Your own grid.",[749,3496,3497],{},"packDashboard(items, columns)",[749,3499,3500],{},"resolveItemSize(item, customSize?)"," from\n",[749,3503,1707],{}," are plain functions; ",[749,3506,3507],{},"DashboardEntry.effectiveSize"," is the size ",[749,3510,786],{}," packs.",[955,3513,3515],{"id":3514},"lay-out-a-dashboard-yourself","Lay out a dashboard yourself",[738,3517,3518,3519,3522,3523,3525],{},"A page can draw the same items in its own layout. ",[749,3520,3521],{},"useDashboard(name, context?)"," returns them filtered by ",[749,3524,2201],{},"\nand platform, in the user's order and without the hidden ones. Await it so they render on the server.",[960,3527,3529],{"className":1080,"code":3528,"filename":1082,"language":1083,"meta":965,"style":965},"\u003Cscript setup lang=\"ts\">\nconst { items, hidden, move, hide, show, resize, reset } = await useDashboard('crew.home')\nconst featured = computed(() => items.value[0])\nconst others = computed(() => items.value.slice(1))\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-4\">\n    \u003CPageHeading title=\"Home\" \u002F>\n    \u003CDashboardItem\n      v-if=\"featured\"\n      :item=\"featured\"\n    \u002F>\n    \u003CDashboardGrid>\n      \u003CDashboardItem\n        v-for=\"item in others\"\n        :key=\"item.id\"\n        :item=\"item\"\n      \u002F>\n    \u003C\u002FDashboardGrid>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n",[749,3530,3531,3551,3608,3639,3675,3683,3687,3695,3713,3731,3738,3752,3768,3773,3781,3788,3807,3827,3841,3846,3855,3863],{"__ignoreMap":965},[969,3532,3533,3535,3537,3539,3541,3543,3545,3547,3549],{"class":971,"line":972},[969,3534,1090],{"class":1015},[969,3536,2391],{"class":1022},[969,3538,1598],{"class":1107},[969,3540,2396],{"class":1107},[969,3542,1111],{"class":1015},[969,3544,1114],{"class":1015},[969,3546,993],{"class":979},[969,3548,1114],{"class":1015},[969,3550,1096],{"class":1015},[969,3552,3553,3555,3557,3559,3561,3564,3566,3569,3571,3574,3576,3579,3581,3584,3586,3589,3591,3593,3595,3598,3600,3602,3604,3606],{"class":971,"line":1019},[969,3554,2445],{"class":1107},[969,3556,1520],{"class":1015},[969,3558,1719],{"class":1011},[969,3560,1526],{"class":1015},[969,3562,3563],{"class":1011}," hidden",[969,3565,1526],{"class":1015},[969,3567,3568],{"class":1011}," move",[969,3570,1526],{"class":1015},[969,3572,3573],{"class":1011}," hide",[969,3575,1526],{"class":1015},[969,3577,3578],{"class":1011}," show",[969,3580,1526],{"class":1015},[969,3582,3583],{"class":1011}," resize",[969,3585,1526],{"class":1015},[969,3587,3588],{"class":1011}," reset ",[969,3590,1048],{"class":1015},[969,3592,1626],{"class":1015},[969,3594,1697],{"class":1000},[969,3596,3597],{"class":1007}," useDashboard",[969,3599,1012],{"class":1011},[969,3601,1032],{"class":1015},[969,3603,755],{"class":979},[969,3605,1032],{"class":1015},[969,3607,1051],{"class":1011},[969,3609,3610,3612,3615,3617,3620,3622,3624,3626,3628,3630,3633,3636],{"class":971,"line":1045},[969,3611,2445],{"class":1107},[969,3613,3614],{"class":1011}," featured ",[969,3616,1111],{"class":1015},[969,3618,3619],{"class":1007}," computed",[969,3621,1012],{"class":1011},[969,3623,2541],{"class":1015},[969,3625,2544],{"class":1107},[969,3627,1719],{"class":1011},[969,3629,839],{"class":1015},[969,3631,3632],{"class":1011},"value[",[969,3634,3635],{"class":1814},"0",[969,3637,3638],{"class":1011},"])\n",[969,3640,3641,3643,3646,3648,3650,3652,3654,3656,3658,3660,3662,3664,3667,3669,3672],{"class":971,"line":1147},[969,3642,2445],{"class":1107},[969,3644,3645],{"class":1011}," others ",[969,3647,1111],{"class":1015},[969,3649,3619],{"class":1007},[969,3651,1012],{"class":1011},[969,3653,2541],{"class":1015},[969,3655,2544],{"class":1107},[969,3657,1719],{"class":1011},[969,3659,839],{"class":1015},[969,3661,2556],{"class":1011},[969,3663,839],{"class":1015},[969,3665,3666],{"class":1007},"slice",[969,3668,1012],{"class":1011},[969,3670,3671],{"class":1814},"1",[969,3673,3674],{"class":1011},"))\n",[969,3676,3677,3679,3681],{"class":971,"line":1167},[969,3678,1180],{"class":1015},[969,3680,2391],{"class":1022},[969,3682,1096],{"class":1015},[969,3684,3685],{"class":971,"line":1177},[969,3686,1555],{"emptyLinePlaceholder":1554},[969,3688,3689,3691,3693],{"class":971,"line":1647},[969,3690,1090],{"class":1015},[969,3692,1093],{"class":1022},[969,3694,1096],{"class":1015},[969,3696,3697,3699,3701,3703,3705,3707,3709,3711],{"class":971,"line":1652},[969,3698,1101],{"class":1015},[969,3700,1104],{"class":1022},[969,3702,1108],{"class":1107},[969,3704,1111],{"class":1015},[969,3706,1114],{"class":1015},[969,3708,1117],{"class":979},[969,3710,1114],{"class":1015},[969,3712,1096],{"class":1015},[969,3714,3715,3717,3719,3721,3723,3725,3727,3729],{"class":971,"line":1677},[969,3716,1126],{"class":1015},[969,3718,1129],{"class":1022},[969,3720,1132],{"class":1107},[969,3722,1111],{"class":1015},[969,3724,1114],{"class":1015},[969,3726,1139],{"class":979},[969,3728,1114],{"class":1015},[969,3730,1144],{"class":1015},[969,3732,3733,3735],{"class":971,"line":1714},[969,3734,1126],{"class":1015},[969,3736,3737],{"class":1022},"DashboardItem\n",[969,3739,3740,3743,3745,3747,3750],{"class":971,"line":1728},[969,3741,3742],{"class":1000},"      v-if",[969,3744,1111],{"class":1015},[969,3746,1114],{"class":1015},[969,3748,3749],{"class":1011},"featured",[969,3751,2661],{"class":1015},[969,3753,3754,3757,3760,3762,3764,3766],{"class":971,"line":1744},[969,3755,3756],{"class":1015},"      :",[969,3758,3759],{"class":1107},"item",[969,3761,1111],{"class":1015},[969,3763,1114],{"class":1015},[969,3765,3749],{"class":1011},[969,3767,2661],{"class":1015},[969,3769,3770],{"class":971,"line":1772},[969,3771,3772],{"class":1015},"    \u002F>\n",[969,3774,3775,3777,3779],{"class":971,"line":1789},[969,3776,1126],{"class":1015},[969,3778,790],{"class":1022},[969,3780,1096],{"class":1015},[969,3782,3783,3786],{"class":971,"line":1806},[969,3784,3785],{"class":1015},"      \u003C",[969,3787,3737],{"class":1022},[969,3789,3790,3793,3795,3797,3799,3802,3805],{"class":971,"line":1820},[969,3791,3792],{"class":1000},"        v-for",[969,3794,1111],{"class":1015},[969,3796,1114],{"class":1015},[969,3798,3759],{"class":1011},[969,3800,3801],{"class":1015}," in ",[969,3803,3804],{"class":1011},"others",[969,3806,2661],{"class":1015},[969,3808,3809,3812,3815,3817,3819,3821,3823,3825],{"class":971,"line":1860},[969,3810,3811],{"class":1015},"        :",[969,3813,3814],{"class":1107},"key",[969,3816,1111],{"class":1015},[969,3818,1114],{"class":1015},[969,3820,3759],{"class":1011},[969,3822,839],{"class":1015},[969,3824,2187],{"class":1011},[969,3826,2661],{"class":1015},[969,3828,3829,3831,3833,3835,3837,3839],{"class":971,"line":1877},[969,3830,3811],{"class":1015},[969,3832,3759],{"class":1107},[969,3834,1111],{"class":1015},[969,3836,1114],{"class":1015},[969,3838,3759],{"class":1011},[969,3840,2661],{"class":1015},[969,3842,3843],{"class":971,"line":1886},[969,3844,3845],{"class":1015},"      \u002F>\n",[969,3847,3848,3851,3853],{"class":971,"line":1911},[969,3849,3850],{"class":1015},"    \u003C\u002F",[969,3852,790],{"class":1022},[969,3854,1096],{"class":1015},[969,3856,3857,3859,3861],{"class":971,"line":1918},[969,3858,1170],{"class":1015},[969,3860,1104],{"class":1022},[969,3862,1096],{"class":1015},[969,3864,3865,3867,3869],{"class":971,"line":1951},[969,3866,1180],{"class":1015},[969,3868,1093],{"class":1022},[969,3870,1096],{"class":1015},[960,3872,3874],{"className":990,"code":3873,"language":993,"meta":965,"style":965},"useDashboard(name: string, context?: MaybeRefOrGetter\u003CRecord\u003Cstring, unknown> | undefined>, options?: { only?: MaybeRefOrGetter\u003Creadonly string[] | undefined> }): {\n  items: ComputedRef\u003CDashboardEntry[]> \u002F\u002F shown items, in the user's order\n  hidden: ComputedRef\u003CDashboardEntry[]>\n  collapsed: ComputedRef\u003Cstring[]>\n  layout: ComputedRef\u003CDashboardLayout>\n  persisted: ComputedRef\u003Cboolean> \u002F\u002F whether changes are saved for the user\n  saving: Ref\u003Cboolean> \u002F\u002F a change is being saved\n  platform: Ref\u003C'web' | 'mobile'>\n  move(id: string, toIndex: number): Promise\u003Cvoid> \u002F\u002F index among `items`\n  hide(id: string): Promise\u003Cvoid>\n  show(id: string): Promise\u003Cvoid>\n  toggleCollapsed(id: string): Promise\u003Cvoid>\n  resize(id: string, size: { cols?: number, rows?: number } | null): Promise\u003Cvoid> \u002F\u002F `null`: back to the item's `size`\n  reset(): Promise\u003Cvoid>\n  status, error, refresh \u002F\u002F of the underlying `useWidgets`\n}\n\n\u002F\u002F The item's widget data and dashboard data, with `title` translated.\ntype DashboardEntry = WidgetMeta & {\n  title?: string, titleKey?: string, platforms?, when?, dashboard: string, collapsed: boolean\n  effectiveSize: { cols: number, minCols: number, maxCols: number, rows: number, fixed: boolean } \u002F\u002F `size` plus the user's\n  customSize?: { cols?: number, rows?: number } \u002F\u002F the user's size, if any\n}\n",[749,3875,3876,3944,3964,3975,3985,3997,4011,4025,4048,4070,4083,4094,4105,4153,4164,4180,4184,4188,4193,4209,4256,4310,4338],{"__ignoreMap":965},[969,3877,3878,3880,3883,3885,3888,3890,3893,3895,3897,3899,3901,3903,3905,3907,3909,3912,3915,3917,3919,3922,3924,3926,3928,3931,3934,3937,3939,3942],{"class":971,"line":972},[969,3879,812],{"class":1007},[969,3881,3882],{"class":1011},"(name: string",[969,3884,1526],{"class":1015},[969,3886,3887],{"class":1011}," context",[969,3889,2068],{"class":1015},[969,3891,3892],{"class":1011}," MaybeRefOrGetter",[969,3894,1090],{"class":1015},[969,3896,2831],{"class":1011},[969,3898,1090],{"class":1015},[969,3900,1273],{"class":1011},[969,3902,1526],{"class":1015},[969,3904,2866],{"class":1011},[969,3906,2778],{"class":1015},[969,3908,2105],{"class":1015},[969,3910,3911],{"class":1015}," undefined>,",[969,3913,3914],{"class":1011}," options",[969,3916,2068],{"class":1015},[969,3918,1520],{"class":1015},[969,3920,3921],{"class":1011}," only?",[969,3923,1026],{"class":1015},[969,3925,3892],{"class":1011},[969,3927,1090],{"class":1015},[969,3929,3930],{"class":1011},"readonly string[] ",[969,3932,3933],{"class":1015},"|",[969,3935,3936],{"class":1015}," undefined>",[969,3938,1537],{"class":1015},[969,3940,3941],{"class":1011},"): ",[969,3943,1016],{"class":1015},[969,3945,3946,3949,3951,3954,3956,3959,3961],{"class":971,"line":1019},[969,3947,3948],{"class":1022},"  items",[969,3950,1026],{"class":1015},[969,3952,3953],{"class":1011}," ComputedRef",[969,3955,1090],{"class":1015},[969,3957,3958],{"class":1011},"DashboardEntry[]",[969,3960,2778],{"class":1015},[969,3962,3963],{"class":1914}," \u002F\u002F shown items, in the user's order\n",[969,3965,3966,3969,3971,3973],{"class":971,"line":1045},[969,3967,3968],{"class":1011},"  hidden: ComputedRef",[969,3970,1090],{"class":1015},[969,3972,3958],{"class":1011},[969,3974,1096],{"class":1015},[969,3976,3977,3979,3981,3983],{"class":971,"line":1147},[969,3978,2815],{"class":1011},[969,3980,1090],{"class":1015},[969,3982,1357],{"class":1011},[969,3984,1096],{"class":1015},[969,3986,3987,3990,3992,3995],{"class":971,"line":1167},[969,3988,3989],{"class":1011},"  layout: ComputedRef",[969,3991,1090],{"class":1015},[969,3993,3994],{"class":1011},"DashboardLayout",[969,3996,1096],{"class":1015},[969,3998,3999,4002,4004,4006,4008],{"class":971,"line":1177},[969,4000,4001],{"class":1011},"  persisted: ComputedRef",[969,4003,1090],{"class":1015},[969,4005,2775],{"class":1011},[969,4007,2778],{"class":1015},[969,4009,4010],{"class":1914}," \u002F\u002F whether changes are saved for the user\n",[969,4012,4013,4016,4018,4020,4022],{"class":971,"line":1647},[969,4014,4015],{"class":1011},"  saving: Ref",[969,4017,1090],{"class":1015},[969,4019,2775],{"class":1011},[969,4021,2778],{"class":1015},[969,4023,4024],{"class":1914}," \u002F\u002F a change is being saved\n",[969,4026,4027,4030,4032,4034,4036,4038,4040,4042,4044,4046],{"class":971,"line":1652},[969,4028,4029],{"class":1011},"  platform: Ref",[969,4031,1090],{"class":1015},[969,4033,1032],{"class":1015},[969,4035,2100],{"class":979},[969,4037,1032],{"class":1015},[969,4039,2105],{"class":1015},[969,4041,1543],{"class":1015},[969,4043,2110],{"class":979},[969,4045,1032],{"class":1015},[969,4047,1096],{"class":1015},[969,4049,4050,4053,4056,4058,4061,4064,4067],{"class":971,"line":1677},[969,4051,4052],{"class":1007},"  move",[969,4054,4055],{"class":1011},"(id: string",[969,4057,1526],{"class":1015},[969,4059,4060],{"class":1011}," toIndex: number): ",[969,4062,4063],{"class":975},"Promise",[969,4065,4066],{"class":1015},"\u003Cvoid>",[969,4068,4069],{"class":1914}," \u002F\u002F index among `items`\n",[969,4071,4072,4075,4078,4080],{"class":971,"line":1714},[969,4073,4074],{"class":1007},"  hide",[969,4076,4077],{"class":1011},"(id: string): ",[969,4079,4063],{"class":975},[969,4081,4082],{"class":1015},"\u003Cvoid>\n",[969,4084,4085,4088,4090,4092],{"class":971,"line":1728},[969,4086,4087],{"class":1007},"  show",[969,4089,4077],{"class":1011},[969,4091,4063],{"class":975},[969,4093,4082],{"class":1015},[969,4095,4096,4099,4101,4103],{"class":971,"line":1744},[969,4097,4098],{"class":1007},"  toggleCollapsed",[969,4100,4077],{"class":1011},[969,4102,4063],{"class":975},[969,4104,4082],{"class":1015},[969,4106,4107,4110,4112,4114,4117,4119,4122,4124,4127,4129,4132,4134,4137,4139,4141,4144,4146,4148,4150],{"class":971,"line":1772},[969,4108,4109],{"class":1007},"  resize",[969,4111,4055],{"class":1011},[969,4113,1526],{"class":1015},[969,4115,4116],{"class":1011}," size: ",[969,4118,1999],{"class":1015},[969,4120,4121],{"class":1011}," cols?",[969,4123,1026],{"class":1015},[969,4125,4126],{"class":1011}," number",[969,4128,1526],{"class":1015},[969,4130,4131],{"class":1011}," rows?",[969,4133,1026],{"class":1015},[969,4135,4136],{"class":1011}," number ",[969,4138,1048],{"class":1015},[969,4140,2105],{"class":1015},[969,4142,4143],{"class":1015}," null",[969,4145,3941],{"class":1011},[969,4147,4063],{"class":975},[969,4149,4066],{"class":1015},[969,4151,4152],{"class":1914}," \u002F\u002F `null`: back to the item's `size`\n",[969,4154,4155,4158,4160,4162],{"class":971,"line":1789},[969,4156,4157],{"class":1007},"  reset",[969,4159,2748],{"class":1011},[969,4161,4063],{"class":975},[969,4163,4082],{"class":1015},[969,4165,4166,4169,4171,4173,4175,4177],{"class":971,"line":1806},[969,4167,4168],{"class":1011},"  status",[969,4170,1526],{"class":1015},[969,4172,2455],{"class":1011},[969,4174,1526],{"class":1015},[969,4176,2497],{"class":1011},[969,4178,4179],{"class":1914},"\u002F\u002F of the underlying `useWidgets`\n",[969,4181,4182],{"class":971,"line":1820},[969,4183,2178],{"class":1015},[969,4185,4186],{"class":971,"line":1860},[969,4187,1555],{"emptyLinePlaceholder":1554},[969,4189,4190],{"class":971,"line":1877},[969,4191,4192],{"class":1914},"\u002F\u002F The item's widget data and dashboard data, with `title` translated.\n",[969,4194,4195,4197,4200,4202,4205,4207],{"class":971,"line":1886},[969,4196,2047],{"class":1107},[969,4198,4199],{"class":975}," DashboardEntry",[969,4201,1626],{"class":1015},[969,4203,4204],{"class":975}," WidgetMeta",[969,4206,2058],{"class":1015},[969,4208,1615],{"class":1015},[969,4210,4211,4213,4215,4217,4219,4222,4224,4226,4228,4231,4234,4237,4239,4242,4244,4246,4248,4251,4253],{"class":971,"line":1911},[969,4212,2065],{"class":1022},[969,4214,2068],{"class":1015},[969,4216,2071],{"class":975},[969,4218,1526],{"class":1015},[969,4220,4221],{"class":1022}," titleKey",[969,4223,2068],{"class":1015},[969,4225,2071],{"class":975},[969,4227,1526],{"class":1015},[969,4229,4230],{"class":1022}," platforms",[969,4232,4233],{"class":1015},"?,",[969,4235,4236],{"class":1022}," when",[969,4238,4233],{"class":1015},[969,4240,4241],{"class":1022}," dashboard",[969,4243,1026],{"class":1015},[969,4245,2071],{"class":975},[969,4247,1526],{"class":1015},[969,4249,4250],{"class":1022}," collapsed",[969,4252,1026],{"class":1015},[969,4254,4255],{"class":975}," boolean\n",[969,4257,4258,4261,4263,4265,4267,4269,4271,4273,4275,4277,4279,4281,4283,4285,4287,4289,4292,4294,4296,4298,4301,4303,4305,4307],{"class":971,"line":1918},[969,4259,4260],{"class":1022},"  effectiveSize",[969,4262,1026],{"class":1015},[969,4264,1520],{"class":1015},[969,4266,1830],{"class":1022},[969,4268,1026],{"class":1015},[969,4270,4126],{"class":975},[969,4272,1526],{"class":1015},[969,4274,1840],{"class":1022},[969,4276,1026],{"class":1015},[969,4278,4126],{"class":975},[969,4280,1526],{"class":1015},[969,4282,1850],{"class":1022},[969,4284,1026],{"class":1015},[969,4286,4126],{"class":975},[969,4288,1526],{"class":1015},[969,4290,4291],{"class":1022}," rows",[969,4293,1026],{"class":1015},[969,4295,4126],{"class":975},[969,4297,1526],{"class":1015},[969,4299,4300],{"class":1022}," fixed",[969,4302,1026],{"class":1015},[969,4304,2128],{"class":975},[969,4306,1537],{"class":1015},[969,4308,4309],{"class":1914}," \u002F\u002F `size` plus the user's\n",[969,4311,4312,4315,4317,4319,4321,4323,4325,4327,4329,4331,4333,4335],{"class":971,"line":1951},[969,4313,4314],{"class":1022},"  customSize",[969,4316,2068],{"class":1015},[969,4318,1520],{"class":1015},[969,4320,1830],{"class":1022},[969,4322,2068],{"class":1015},[969,4324,4126],{"class":975},[969,4326,1526],{"class":1015},[969,4328,4291],{"class":1022},[969,4330,2068],{"class":1015},[969,4332,4126],{"class":975},[969,4334,1537],{"class":1015},[969,4336,4337],{"class":1914}," \u002F\u002F the user's size, if any\n",[969,4339,4340],{"class":971,"line":1957},[969,4341,2178],{"class":1015},[738,4343,4344,4346,4347,4349],{},[749,4345,794],{}," provides ",[749,4348,2735],{}," to the item, so items behave the same in your layout.",[955,4351,4353],{"id":4352},"the-hub","The hub",[738,4355,2321,4356,4358,4359,4361,4362,4364,4365,4367,4368,4371],{},[742,4357,172],{"href":173}," installed, Dashboard adds a page for signed-in users at ",[749,4360,1370],{},"\n(",[749,4363,848],{},"). It shows a greeting with the user's first name, a compact row of shortcuts (an icon and a label for every\narea in the ",[749,4366,852],{}," menu other than the hub itself, four to a row on wide screens), and then the user's own\ndashboard, ",[749,4369,4370],{},"\u003CDashboard :name=\"settings.home.dashboard\">",". With no shortcuts and no items it shows one empty state; with\nshortcuts and no items, nothing below them.",[774,4373,4374,4397,4423,4465],{},[777,4375,4376,4379,4380,4382,4383,4385,4386,4389,4390,4393,4394,4396],{},[780,4377,4378],{},"The area."," Every page at ",[749,4381,848],{}," and below gets the ",[749,4384,852],{}," layout (an ",[749,4387,4388],{},"appLayout"," route rule), unless the\npage chose a layout itself, and is for signed-in users only (",[749,4391,4392],{},"guardPages"," of Auth, enforced by\n",[742,4395,207],{"href":208},"; the build warns when it is missing). The Danish and other locale\nprefixes are covered too.",[777,4398,4399,885,4402,4404,4405,4408,4409,3501,4412,4415,4416,4418,4419,4422],{},[780,4400,4401],{},"The layout.",[749,4403,852],{}," wraps your ",[749,4406,4407],{},"default"," layout (site header and footer) around ",[749,4410,4411],{},"AreaNavLayout",[742,4413,402],{"href":4414},"\u002Fmodules\u002Finterface\u002Fui\u002Fapp-shell#a-side-navigation-area",": the user and the ",[749,4417,852],{}," menu in a sticky column on\nwide screens, a section switcher on narrow ones. An ",[749,4420,4421],{},"app\u002Flayouts\u002Fdashboard.vue"," of your own replaces it.",[777,4424,4425,4428,4429,4431,4432,4434,4435,4438,4439,4441,4442,4445,4446,791,4449,4452,4453,4456,4457,4460,4461,4464],{},[780,4426,4427],{},"The menu."," The navigation is the ",[749,4430,852],{}," menu of ",[742,4433,430],{"href":431},": the Overview\n(",[749,4436,4437],{},"dashboard-overview",", order ",[749,4440,3635],{},") and every area other modules add. Without Menu only the Overview is listed.\n",[749,4443,4444],{},"useDashboardNav()"," returns the same entries for a layout of your own: ",[749,4447,4448],{},"items",[749,4450,4451],{},"links"," (for ",[749,4454,4455],{},"UNavigationMenu","),\n",[749,4458,4459],{},"shortcuts"," (without the Overview) and ",[749,4462,4463],{},"current",". Await it.",[777,4466,4467,4470,4471,4473,4474,4477,4478,4481],{},[780,4468,4469],{},"The account menu."," A ",[749,4472,852],{}," item (order ",[749,4475,4476],{},"-100",") leads the ",[749,4479,4480],{},"account.dropdown"," menu, above Account.",[738,4483,4484,4485,4488,4489,4491],{},"A module adds its area to the hub from its ",[749,4486,4487],{},"runtime\u002Fmenus.ts",", the same way it adds pages to the account area. The\n",[749,4490,2201],{}," of an item hides it from users who lack it:",[960,4493,4495],{"className":990,"code":4494,"filename":4487,"language":993,"meta":965,"style":965},"import { defineMenuSource, extendMenuItem } from '@frigear-nu\u002Fmenu\u002Futils'\n\nexport default defineMenuSource(() => {\n  extendMenuItem('dashboard', {\n    id: 'crew',\n    label: 'Crew',\n    labelKey: 'crew.menu.home.label',\n    description: 'Your crew places, your shifts and swaps.',\n    icon: 'i-lucide-hand-heart',\n    to: '\u002Fdashboard\u002Fcrew',\n    order: 20,\n    permission: 'crew:read',\n  })\n})\n",[749,4496,4497,4522,4526,4542,4559,4575,4590,4606,4622,4637,4653,4665,4681,4688],{"__ignoreMap":965},[969,4498,4499,4501,4503,4506,4508,4511,4513,4515,4517,4520],{"class":971,"line":972},[969,4500,1517],{"class":1000},[969,4502,1520],{"class":1015},[969,4504,4505],{"class":1011}," defineMenuSource",[969,4507,1526],{"class":1015},[969,4509,4510],{"class":1011}," extendMenuItem",[969,4512,1537],{"class":1015},[969,4514,1540],{"class":1000},[969,4516,1543],{"class":1015},[969,4518,4519],{"class":979},"@frigear-nu\u002Fmenu\u002Futils",[969,4521,1549],{"class":1015},[969,4523,4524],{"class":971,"line":1019},[969,4525,1555],{"emptyLinePlaceholder":1554},[969,4527,4528,4530,4532,4534,4536,4538,4540],{"class":971,"line":1045},[969,4529,1001],{"class":1000},[969,4531,1004],{"class":1000},[969,4533,4505],{"class":1007},[969,4535,1012],{"class":1011},[969,4537,2541],{"class":1015},[969,4539,2544],{"class":1107},[969,4541,1615],{"class":1015},[969,4543,4544,4547,4549,4551,4553,4555,4557],{"class":971,"line":1147},[969,4545,4546],{"class":1007},"  extendMenuItem",[969,4548,1012],{"class":1022},[969,4550,1032],{"class":1015},[969,4552,852],{"class":979},[969,4554,1032],{"class":1015},[969,4556,1526],{"class":1015},[969,4558,1615],{"class":1015},[969,4560,4561,4564,4566,4568,4571,4573],{"class":971,"line":1167},[969,4562,4563],{"class":1022},"    id",[969,4565,1026],{"class":1015},[969,4567,1543],{"class":1015},[969,4569,4570],{"class":979},"crew",[969,4572,1032],{"class":1015},[969,4574,1042],{"class":1015},[969,4576,4577,4580,4582,4584,4586,4588],{"class":971,"line":1177},[969,4578,4579],{"class":1022},"    label",[969,4581,1026],{"class":1015},[969,4583,1543],{"class":1015},[969,4585,528],{"class":979},[969,4587,1032],{"class":1015},[969,4589,1042],{"class":1015},[969,4591,4592,4595,4597,4599,4602,4604],{"class":971,"line":1647},[969,4593,4594],{"class":1022},"    labelKey",[969,4596,1026],{"class":1015},[969,4598,1543],{"class":1015},[969,4600,4601],{"class":979},"crew.menu.home.label",[969,4603,1032],{"class":1015},[969,4605,1042],{"class":1015},[969,4607,4608,4611,4613,4615,4618,4620],{"class":971,"line":1652},[969,4609,4610],{"class":1022},"    description",[969,4612,1026],{"class":1015},[969,4614,1543],{"class":1015},[969,4616,4617],{"class":979},"Your crew places, your shifts and swaps.",[969,4619,1032],{"class":1015},[969,4621,1042],{"class":1015},[969,4623,4624,4626,4628,4630,4633,4635],{"class":971,"line":1677},[969,4625,2666],{"class":1022},[969,4627,1026],{"class":1015},[969,4629,1543],{"class":1015},[969,4631,4632],{"class":979},"i-lucide-hand-heart",[969,4634,1032],{"class":1015},[969,4636,1042],{"class":1015},[969,4638,4639,4642,4644,4646,4649,4651],{"class":971,"line":1714},[969,4640,4641],{"class":1022},"    to",[969,4643,1026],{"class":1015},[969,4645,1543],{"class":1015},[969,4647,4648],{"class":979},"\u002Fdashboard\u002Fcrew",[969,4650,1032],{"class":1015},[969,4652,1042],{"class":1015},[969,4654,4655,4658,4660,4663],{"class":971,"line":1728},[969,4656,4657],{"class":1022},"    order",[969,4659,1026],{"class":1015},[969,4661,4662],{"class":1814}," 20",[969,4664,1042],{"class":1015},[969,4666,4667,4670,4672,4674,4677,4679],{"class":971,"line":1744},[969,4668,4669],{"class":1022},"    permission",[969,4671,1026],{"class":1015},[969,4673,1543],{"class":1015},[969,4675,4676],{"class":979},"crew:read",[969,4678,1032],{"class":1015},[969,4680,1042],{"class":1015},[969,4682,4683,4686],{"class":971,"line":1772},[969,4684,4685],{"class":1015},"  }",[969,4687,1051],{"class":1022},[969,4689,4690,4692],{"class":971,"line":1789},[969,4691,1048],{"class":1015},[969,4693,1051],{"class":1011},[738,4695,4696,4697,3501,4700,4703,4704,4706],{},"Register the file with ",[749,4698,4699],{},"addOptionalMenuSource(nuxt, { file, menu: 'dashboard' })",[749,4701,4702],{},"@frigear-nu\u002Fmodule-kit\u002Futils",". Pages under ",[749,4705,848],{}," get the hub layout and guard without more work.",[738,4708,4709,4710,1427,4712,4715,4716,1658,4718,4721,4722,4725,4726,4729],{},"A module finds the hub's path in ",[749,4711,1505],{},[749,4713,4714],{},"resolveDashboardHubPath(nuxt)"," of\n",[742,4717,479],{"href":480},[749,4719,4720],{},"undefined"," when there is none; pass ",[749,4723,4724],{},"{ dependency: true }"," when the module\nrequires Dashboard and Auth), puts its default page below it, and redirects the old path with ",[749,4727,4728],{},"addPageRedirects(nuxt, { '\u002Fold': '\u002Fdashboard\u002Fnew' })",". The areas the modules add this way:",[1213,4731,4732,4745],{},[1216,4733,4734],{},[1219,4735,4736,4739,4742],{},[1222,4737,4738],{},"Area",[1222,4740,4741],{},"Module",[1222,4743,4744],{},"Order",[1235,4746,4747,4768,4785,4800],{},[1219,4748,4749,4758,4765],{},[1240,4750,4751,4753,4754,4757],{},[749,4752,4648],{},", with the ",[749,4755,4756],{},"crew.dashboard"," tabs",[1240,4759,4760,4762,4763,1612],{},[742,4761,528],{"href":529}," (tabs from ",[742,4764,532],{"href":533},[1240,4766,4767],{},"20",[1219,4769,4770,4778,4782],{},[1240,4771,4772,1658,4775,1612],{},[749,4773,4774],{},"\u002Fdashboard\u002Ftickets",[749,4776,4777],{},"pages.tickets: true",[1240,4779,4780],{},[742,4781,309],{"href":310},[1240,4783,4784],{},"30",[1219,4786,4787,4792,4797],{},[1240,4788,4789],{},[749,4790,4791],{},"\u002Fdashboard\u002Fhelp",[1240,4793,4794],{},[742,4795,4796],{"href":297},"Help Center",[1240,4798,4799],{},"40",[1219,4801,4802,4810,4814],{},[1240,4803,4804,1658,4807,1612],{},[749,4805,4806],{},"\u002Fdashboard\u002Fapps",[749,4808,4809],{},"pages.applications: true",[1240,4811,4812],{},[742,4813,233],{"href":234},[1240,4815,4816],{},"50",[738,4818,4819,4820,791,4822,4824,4825,4828,4829,4831,4832,4834,4835,4838],{},"A module adds items to the hub's dashboard (",[749,4821,1398],{},[749,4823,856],{}," by default) with\n",[749,4826,4827],{},"extendHubDashboard(nuxt, items)",". It decides once every module is set up whether there is a hub (Dashboard and Auth\ninstalled, ",[749,4830,1370],{}," not ",[749,4833,1260],{},") and adds nothing otherwise, so the order of the modules does not matter.\nA module that also adds the items to another dashboard passes that name as ",[749,4836,4837],{},"except",", so nothing is added twice when the\nhub draws that same dashboard. Layouts are saved per dashboard: a user arranges the hub apart from the crew home.",[738,4840,4841],{},"The personal items on the hub, in their default order:",[1213,4843,4844,4858],{},[1216,4845,4846],{},[1219,4847,4848,4851,4853,4855],{},[1222,4849,4850],{},"Item",[1222,4852,4741],{},[1222,4854,4744],{},[1222,4856,4857],{},"Size",[1235,4859,4860,4878,4895,4913,4929,4949,4965,4981],{},[1219,4861,4862,4868,4872,4875],{},[1240,4863,4864,4867],{},[749,4865,4866],{},"oauth-server.apps"," (optional)",[1240,4869,4870],{},[742,4871,233],{"href":234},[1240,4873,4874],{},"5",[1240,4876,4877],{},"4, down to 2",[1219,4879,4880,4885,4889,4892],{},[1240,4881,4882],{},[749,4883,4884],{},"crew.status",[1240,4886,4887],{},[742,4888,528],{"href":529},[1240,4890,4891],{},"10",[1240,4893,4894],{},"2, down to 1",[1219,4896,4897,4904,4908,4911],{},[1240,4898,4899,791,4901],{},[749,4900,1454],{},[749,4902,4903],{},"shifts.on-now",[1240,4905,4906],{},[742,4907,532],{"href":533},[1240,4909,4910],{},"20, 30",[1240,4912,4894],{},[1219,4914,4915,4920,4924,4926],{},[1240,4916,4917],{},[749,4918,4919],{},"shifts.swaps",[1240,4921,4922],{},[742,4923,532],{"href":533},[1240,4925,4799],{},[1240,4927,4928],{},"1, up to 2",[1219,4930,4931,4940,4944,4947],{},[1240,4932,4933,4936,4937],{},[749,4934,4935],{},"operations.wristband"," (optional), ",[749,4938,4939],{},"operations.upcoming",[1240,4941,4942],{},[742,4943,524],{"href":525},[1240,4945,4946],{},"45, 50",[1240,4948,4928],{},[1219,4950,4951,4956,4960,4963],{},[1240,4952,4953],{},[749,4954,4955],{},"teams.mine",[1240,4957,4958],{},[742,4959,258],{"href":259},[1240,4961,4962],{},"60",[1240,4964,4894],{},[1219,4966,4967,4972,4976,4979],{},[1240,4968,4969],{},[749,4970,4971],{},"help-center.onboarding",[1240,4973,4974],{},[742,4975,4796],{"href":297},[1240,4977,4978],{},"70",[1240,4980,4894],{},[1219,4982,4983,4992,4996,4999],{},[1240,4984,4985,791,4988,4991],{},[749,4986,4987],{},"inbox.unassigned",[749,4989,4990],{},"inbox.mine"," (web)",[1240,4993,4994],{},[742,4995,381],{"href":382},[1240,4997,4998],{},"80, 81",[1240,5000,4894],{},[738,5002,5003,5004,5006,5007,5010],{},"Crew, Shifts, Teams, Help Center and Operations add the same items to ",[749,5005,755],{},", which the crew home's Overview tab\nand the mobile Home tab draw; Inbox does when its ",[749,5008,5009],{},"settings.dashboard"," is left unset. At four columns every row fills,\nwhichever items a user has (they drop out when they have nothing to show).",[955,5012,5014],{"id":5013},"the-home-tab-and-the-crew-tab","The Home tab and the Crew tab",[738,5016,5017,5018,5020,5021,5023,5024,5026,5027,5030,5031,5033,5034,5036],{},"The Home tab opens ",[749,5019,866],{},", the Crew tab of ",[742,5022,528],{"href":529}," opens the crew home in the hub\n(",[749,5025,4648],{},"), or ",[749,5028,5029],{},"\u002Fcrew\u002Fstatus"," without the hub. A tab matches its page\nand everything below it, but the tab bar selects only the most specific match, so Home is selected on ",[749,5032,866],{}," and Crew on\n",[749,5035,5029],{},", never both.",[955,5038,826],{"id":5039},"per-user-layout",[738,5041,5042,5043,5045,5046,5048,5049,5052,5053,5056,5057,5060,5061,5064,5065,5069],{},"Each user's layout is one ",[742,5044,229],{"href":230}," key, ",[749,5047,830],{},". Dashboard registers it\nwith ",[749,5050,5051],{},"addUserPreferences"," when Preferences is installed, as a ",[749,5054,5055],{},"managed"," preference: it is never in the session cookie,\n",[749,5058,5059],{},"PATCH \u002Fapi\u002Fpreferences"," refuses it (",[749,5062,5063],{},"400 preference_managed","), and it is read and written only through Dashboard's own\n",[742,5066,5068],{"href":5067},"#routes","routes",". So a large layout never makes the session cookie too large to set.",[960,5071,5073],{"className":990,"code":5072,"language":993,"meta":965,"style":965},"type DashboardLayouts = Record\u003Cstring, { \u002F\u002F by dashboard name\n  order: string[] \u002F\u002F the ids of the items the user moved; the others keep their registered place\n  hidden: string[]\n  collapsed: string[]\n  settings?: Record\u003Cstring, Record\u003Cstring, unknown>> \u002F\u002F by item id\n  sizes?: Record\u003Cstring, { cols?: number, rows?: number }> \u002F\u002F by item id, each 1-4\n}>\n",[749,5074,5075,5097,5112,5124,5135,5166,5203],{"__ignoreMap":965},[969,5076,5077,5079,5082,5084,5086,5088,5090,5092,5094],{"class":971,"line":972},[969,5078,2047],{"class":1107},[969,5080,5081],{"class":975}," DashboardLayouts",[969,5083,1626],{"class":1015},[969,5085,2857],{"class":975},[969,5087,1090],{"class":1015},[969,5089,1273],{"class":975},[969,5091,1526],{"class":1015},[969,5093,1520],{"class":1015},[969,5095,5096],{"class":1914}," \u002F\u002F by dashboard name\n",[969,5098,5099,5102,5104,5106,5109],{"class":971,"line":1019},[969,5100,5101],{"class":1022},"  order",[969,5103,1026],{"class":1015},[969,5105,2071],{"class":975},[969,5107,5108],{"class":1011},"[] ",[969,5110,5111],{"class":1914},"\u002F\u002F the ids of the items the user moved; the others keep their registered place\n",[969,5113,5114,5117,5119,5121],{"class":971,"line":1045},[969,5115,5116],{"class":1022},"  hidden",[969,5118,1026],{"class":1015},[969,5120,2071],{"class":975},[969,5122,5123],{"class":1011},"[]\n",[969,5125,5126,5129,5131,5133],{"class":971,"line":1147},[969,5127,5128],{"class":1022},"  collapsed",[969,5130,1026],{"class":1015},[969,5132,2071],{"class":975},[969,5134,5123],{"class":1011},[969,5136,5137,5140,5142,5144,5146,5148,5150,5152,5154,5156,5158,5160,5163],{"class":971,"line":1167},[969,5138,5139],{"class":1022},"  settings",[969,5141,2068],{"class":1015},[969,5143,2857],{"class":975},[969,5145,1090],{"class":1015},[969,5147,1273],{"class":975},[969,5149,1526],{"class":1015},[969,5151,2857],{"class":975},[969,5153,1090],{"class":1015},[969,5155,1273],{"class":975},[969,5157,1526],{"class":1015},[969,5159,2866],{"class":975},[969,5161,5162],{"class":1015},">>",[969,5164,5165],{"class":1914}," \u002F\u002F by item id\n",[969,5167,5168,5171,5173,5175,5177,5179,5181,5183,5185,5187,5189,5191,5193,5195,5197,5200],{"class":971,"line":1177},[969,5169,5170],{"class":1022},"  sizes",[969,5172,2068],{"class":1015},[969,5174,2857],{"class":975},[969,5176,1090],{"class":1015},[969,5178,1273],{"class":975},[969,5180,1526],{"class":1015},[969,5182,1520],{"class":1015},[969,5184,1830],{"class":1022},[969,5186,2068],{"class":1015},[969,5188,4126],{"class":975},[969,5190,1526],{"class":1015},[969,5192,4291],{"class":1022},[969,5194,2068],{"class":1015},[969,5196,4126],{"class":975},[969,5198,5199],{"class":1015}," }>",[969,5201,5202],{"class":1914}," \u002F\u002F by item id, each 1-4\n",[969,5204,5205],{"class":971,"line":1647},[969,5206,5207],{"class":1015},"}>\n",[774,5209,5210,5219,5225,5231,5245,5251],{},[777,5211,5212,5215,5216,1323],{},[780,5213,5214],{},"Signed in with a cookie session, with Preferences:"," every change is saved. The layout follows the user to every\ndevice. The app saves from a cookie session, so this needs Auth in server mode (the routes also take a token given\n",[749,5217,5218],{},"dashboard:layouts",[777,5220,5221,5224],{},[780,5222,5223],{},"Without Preferences, signed out, or Auth in client mode"," (a Capacitor app, a bearer token): changes last for the\nsession. After a reload the registered order applies. Session changes belong to one user: they are dropped when\nsomeone else signs in.",[777,5226,5227,5230],{},[780,5228,5229],{},"Saving."," One save runs at a time, and changes made meanwhile go out together in the next one. A save sends only the\ndashboards changed in this session; the server merges them into the stored ones. A failed save shows an error toast\nand rolls the dashboard back to the last saved layout.",[777,5232,5233,5236,5237,5240,5241,5244],{},[780,5234,5235],{},"Moving"," an item stores only the ids whose place changed (",[749,5238,5239],{},"minimalOrder","), so a dashboard with any number of items\ncan be reordered. The order is worked out over every registered item (",[749,5242,5243],{},"applyLayout(items, layout, all)","), so items of\nthe other platform or hidden by a permission keep their place.",[777,5246,5247,5250],{},[780,5248,5249],{},"A stored layout that no longer parses"," (a limit changed, a row edited by hand) is dropped when the layouts are read\nor saved, and never sent back, so it cannot make every later save fail.",[777,5252,5253,5256],{},[780,5254,5255],{},"Ids that no longer exist"," are ignored, and dropped at the next save. An item a module adds later appears directly\nafter the item registered before it.",[738,5258,5259],{},"The layout is bounded, as one JSON column of the user holds it:",[1213,5261,5262,5272],{},[1216,5263,5264],{},[1219,5265,5266,5269],{},[1222,5267,5268],{},"Limit",[1222,5270,5271],{},"Value",[1235,5273,5274,5281,5298,5306,5314],{},[1219,5275,5276,5279],{},[1240,5277,5278],{},"Dashboards with a saved layout",[1240,5280,4767],{},[1219,5282,5283,5295],{},[1240,5284,5285,5286,791,5289,5291,5292],{},"Ids in ",[749,5287,5288],{},"order",[749,5290,3020],{}," or ",[749,5293,5294],{},"collapsed",[1240,5296,5297],{},"200 each",[1219,5299,5300,5303],{},[1240,5301,5302],{},"Length of an id",[1240,5304,5305],{},"100 characters",[1219,5307,5308,5311],{},[1240,5309,5310],{},"Item settings per dashboard, as JSON",[1240,5312,5313],{},"1 KB (UTF-8 bytes)",[1219,5315,5316,5319],{},[1240,5317,5318],{},"Item sizes per dashboard",[1240,5320,5321],{},"200",[738,5323,5324,5325,5328],{},"A save past a limit is rejected with ",[749,5326,5327],{},"400"," and rolled back. Keep item settings to a few small values.",[955,5330,5332],{"id":5331},"utils","Utils",[738,5334,5335,5337,5338,5340,5341,839],{},[749,5336,1707],{}," is safe to import in another module's ",[749,5339,1505],{},". It does not import ",[749,5342,1546],{},[1213,5344,5345,5354],{},[1216,5346,5347],{},[1219,5348,5349,5352],{},[1222,5350,5351],{},"Export",[1222,5353,1233],{},[1235,5355,5356,5368,5380,5395,5407,5449,5467],{},[1219,5357,5358,5363],{},[1240,5359,5360],{},[749,5361,5362],{},"extendDashboard(nuxt, name, items)",[1240,5364,5365,5366,839],{},"Adds one or more items to a dashboard, from a module's ",[749,5367,1505],{},[1219,5369,5370,5375],{},[1240,5371,5372],{},[749,5373,5374],{},"extendHubDashboard(nuxt, items, { except? })",[1240,5376,5377,5378,1323],{},"Adds items to the hub's dashboard when there is a hub, decided once every module is set up (",[742,5379,4353],{"href":1061},[1219,5381,5382,5387],{},[1240,5383,5384],{},[749,5385,5386],{},"resolveHubDashboardName(nuxt)",[1240,5388,5389,5390,791,5392,5394],{},"The dashboard the hub would draw (",[749,5391,1398],{},[749,5393,856],{}," by default), read from the app's options. It does not say whether there is a hub.",[1219,5396,5397,5402],{},[1240,5398,5399],{},[749,5400,5401],{},"dashboardArea(name)",[1240,5403,5404,5405,839],{},"The widget area of a dashboard: ",[749,5406,766],{},[1219,5408,5409,5443],{},[1240,5410,5411,791,5414,791,5417,791,5420,791,5422,791,5425,791,5428,791,5431,791,5434,791,5437,791,5440],{},[749,5412,5413],{},"applyLayout",[749,5415,5416],{},"orderItems",[749,5418,5419],{},"moveItem",[749,5421,5239],{},[749,5423,5424],{},"hideItem",[749,5426,5427],{},"showItem",[749,5429,5430],{},"toggleCollapsed",[749,5432,5433],{},"setItemSettings",[749,5435,5436],{},"setItemSize",[749,5438,5439],{},"pruneLayout",[749,5441,5442],{},"resetLayout",[1240,5444,5445,5446,5448],{},"The layout logic ",[749,5447,812],{}," uses, as plain functions.",[1219,5450,5451,5459],{},[1240,5452,5453,791,5455,791,5457],{},[749,5454,3497],{},[749,5456,3425],{},[749,5458,3500],{},[1240,5460,5461,5462,5464,5465,1323],{},"The grid packing ",[749,5463,786],{}," uses (",[742,5466,2287],{"href":2286},[1219,5468,5469,5477],{},[1240,5470,5471,791,5474],{},[749,5472,5473],{},"filterByPlatform(items, platform)",[749,5475,5476],{},"isOnPlatform(item, platform)",[1240,5478,5479],{},"The platform filter.",[769,5481,242],{"id":5482},"hooks",[738,5484,5485,5486,5488,5489,839],{},"Items are filtered by Widget's ",[749,5487,2208],{}," app hook, with the area ",[749,5490,766],{},[1213,5492,5493,5509],{},[1216,5494,5495],{},[1219,5496,5497,5500,5503,5506],{},[1222,5498,5499],{},"Hook",[1222,5501,5502],{},"Where",[1222,5504,5505],{},"When",[1222,5507,5508],{},"Payload",[1235,5510,5511,5541],{},[1219,5512,5513,5518,5521,5524],{},[1240,5514,5515],{},[749,5516,5517],{},"dashboard:extend",[1240,5519,5520],{},"Nuxt build",[1240,5522,5523],{},"Once every module is set up, before the dashboards are read",[1240,5525,5526,5529,5530,5532,5533,5536,5537,5540],{},[749,5527,5528],{},"extend(name, items)",", which adds items like ",[749,5531,820],{},", and ",[749,5534,5535],{},"{ hub }",", the hub's dashboard (unset without a hub). For a module that cannot import this package (Admin) and so adds items only when Dashboard is installed; ",[749,5538,5539],{},"extendHubDashboard"," uses it too.",[1219,5542,5543,5548,5551,5554],{},[1240,5544,5545,5547],{},[749,5546,2208],{}," (Widget)",[1240,5549,5550],{},"Nuxt app",[1240,5552,5553],{},"Before a dashboard's items are drawn",[1240,5555,5556],{},[749,5557,5558],{},"{ area: 'dashboard.\u003Cname>', widgets, context? }",[769,5560,5561],{"id":5068},"Routes",[738,5563,5564,5565,3501,5568,839],{},"With Preferences installed, Dashboard registers the caller's own layouts. Path builders: ",[749,5566,5567],{},"dashboardApi",[749,5569,5570],{},"@frigear-nu\u002Fdashboard\u002Fapi",[1213,5572,5573,5589],{},[1216,5574,5575],{},[1219,5576,5577,5580,5583,5586],{},[1222,5578,5579],{},"Method",[1222,5581,5582],{},"Path",[1222,5584,5585],{},"Access",[1222,5587,5588],{},"What it does",[1235,5590,5591,5613],{},[1219,5592,5593,5597,5602,5606],{},[1240,5594,5595],{},[749,5596,834],{},[1240,5598,5599],{},[749,5600,5601],{},"\u002Fapi\u002Fdashboard\u002Fme\u002Flayouts",[1240,5603,5604],{},[749,5605,5218],{},[1240,5607,5608,5609,5612],{},"The caller's layouts, ",[749,5610,5611],{},"{ layouts: { [dashboard]: DashboardLayout } }",". A stored layout that no longer parses is left out.",[1219,5614,5615,5620,5624,5628],{},[1240,5616,5617],{},[749,5618,5619],{},"PATCH",[1240,5621,5622],{},[749,5623,5601],{},[1240,5625,5626],{},[749,5627,5218],{},[1240,5629,5630,5633,5634,5637,5638,2288,5640,5642],{},[749,5631,5632],{},"{ layouts: { [dashboard]: DashboardLayout | null } }"," replaces the named layouts (",[749,5635,5636],{},"null"," removes one) and keeps the others; answers like the ",[749,5639,834],{},[749,5641,5327],{}," past a limit.",[738,5644,5645,5647,5648,5651,5652,839],{},[749,5646,5218],{}," is implicit: every signed-in user holds it, and may give it to an API token or an OAuth access\ntoken. Both routes only ever act on the caller. Without Auth, ",[749,5649,5650],{},"401 unauthorized","; a token without it,\n",[749,5653,5654],{},"403 insufficient_scope",[769,5656,493],{"id":5657},"translations",[738,5659,5660,5661,5664,5665,5667],{},"Override any string in your app's ",[749,5662,5663],{},"i18n\u002Flocales\u002F\u003Ccode>.json",". The namespace is ",[749,5666,852],{},", in English and Danish.",[1213,5669,5670,5680],{},[1216,5671,5672],{},[1219,5673,5674,5677],{},[1222,5675,5676],{},"Key",[1222,5678,5679],{},"Used for",[1235,5681,5682,5691,5710,5720,5739,5755,5765,5783,5799,5809,5822],{},[1219,5683,5684,5688],{},[1240,5685,5686],{},[749,5687,1322],{},[1240,5689,5690],{},"The Home tab label",[1219,5692,5693,5707],{},[1240,5694,5695,791,5698,791,5701,791,5704],{},[749,5696,5697],{},"dashboard.hub.title",[749,5699,5700],{},".greeting",[749,5702,5703],{},".description",[749,5705,5706],{},".empty.*",[1240,5708,5709],{},"The hub's heading (\"Hi {name}\", or \"Your dashboard\"), description and empty state",[1219,5711,5712,5717],{},[1240,5713,5714],{},[749,5715,5716],{},"dashboard.nav.label",[1240,5718,5719],{},"The accessible name of the hub navigation",[1219,5721,5722,5730],{},[1240,5723,5724,791,5727],{},[749,5725,5726],{},"dashboard.menu.dashboard.*",[749,5728,5729],{},"dashboard.menu.overview.*",[1240,5731,5732,5733,5735,5736,5738],{},"The hub's items in ",[749,5734,4480],{}," and the ",[749,5737,852],{}," menu",[1219,5740,5741,5752],{},[1240,5742,5743,791,5746,791,5749],{},[749,5744,5745],{},"dashboard.edit.start",[749,5747,5748],{},".done",[749,5750,5751],{},".sessionOnly",[1240,5753,5754],{},"The edit mode buttons and the session-only hint",[1219,5756,5757,5762],{},[1240,5758,5759],{},[749,5760,5761],{},"dashboard.save.error",[1240,5763,5764],{},"The toast when a layout change could not be saved",[1219,5766,5767,5780],{},[1240,5768,5769,791,5772,791,5775,791,5777],{},[749,5770,5771],{},"dashboard.reset.button",[749,5773,5774],{},".title",[749,5776,5703],{},[749,5778,5779],{},".confirm",[1240,5781,5782],{},"Reset layout and its confirmation",[1219,5784,5785,5793],{},[1240,5786,5787,791,5790],{},[749,5788,5789],{},"dashboard.permissions.layouts",[749,5791,5792],{},".layoutsDescription",[1240,5794,5795,5796,5798],{},"The ",[749,5797,5218],{}," permission on consent and token screens",[1219,5800,5801,5806],{},[1240,5802,5803],{},[749,5804,5805],{},"dashboard.item.*",[1240,5807,5808],{},"Collapse, move, resize and hide labels, and the error state of an item",[1219,5810,5811,5819],{},[1240,5812,5813,791,5816],{},[749,5814,5815],{},"dashboard.hidden.title",[749,5817,5818],{},".show",[1240,5820,5821],{},"The list of hidden items in edit mode",[1219,5823,5824,5838],{},[1240,5825,5826,791,5829,791,5832,791,5835],{},[749,5827,5828],{},"dashboard.empty.*",[749,5830,5831],{},"dashboard.allHidden.*",[749,5833,5834],{},"dashboard.error",[749,5836,5837],{},"dashboard.retry",[1240,5839,5840],{},"The empty and error states",[769,5842,5844],{"id":5843},"next-steps","Next steps",[774,5846,5847,5855,5860],{},[777,5848,5849,5852,5853,839],{},[742,5850,532],{"href":5851},"\u002Fmodules\u002Fvolunteering\u002Fshifts#dashboard-items"," – a module that adds three items to ",[749,5854,755],{},[777,5856,5857,5859],{},[742,5858,434],{"href":435}," – the widget areas dashboards are built on.",[777,5861,5862,5864],{},[742,5863,229],{"href":230}," – where each user's layout is stored.",[5866,5867,5868],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":965,"searchDepth":1019,"depth":1019,"links":5870},[5871,5872,5877,5878,5890,5891,5892,5893],{"id":771,"depth":1019,"text":772},{"id":949,"depth":1019,"text":950,"children":5873},[5874,5875,5876],{"id":957,"depth":1045,"text":958},{"id":986,"depth":1045,"text":987},{"id":1054,"depth":1045,"text":1055},{"id":1204,"depth":1019,"text":1205},{"id":1484,"depth":1019,"text":284,"children":5879},[5880,5881,5882,5883,5884,5885,5886,5887,5888,5889],{"id":1495,"depth":1045,"text":1496},{"id":2317,"depth":1045,"text":2318},{"id":2356,"depth":1045,"text":2357},{"id":2950,"depth":1045,"text":782},{"id":3255,"depth":1045,"text":2287},{"id":3514,"depth":1045,"text":3515},{"id":4352,"depth":1045,"text":4353},{"id":5013,"depth":1045,"text":5014},{"id":5039,"depth":1045,"text":826},{"id":5331,"depth":1045,"text":5332},{"id":5482,"depth":1019,"text":242},{"id":5068,"depth":1019,"text":5561},{"id":5657,"depth":1019,"text":493},{"id":5843,"depth":1019,"text":5844},"Lets modules put cards on a named dashboard, such as the volunteer home screen, and lets each user reorder, hide and collapse them.","md",null,{},{"title":452,"description":5894},"cTVH5qKhkWLkKlBRgv2V5ayhDap3dEWfeMilJ_MZppg",[5901,5903],{"title":448,"path":449,"stem":450,"description":5902,"children":-1},"An opt-in splash screen from the native launch image to the first page, with a default you can replace.",{"title":177,"path":457,"stem":458,"description":5904,"children":-1},"Turns a Nuxt app into a Tauri desktop app for macOS, Windows and Linux, either a static SPA that signs in at a remote issuer or the whole app with its own offline server.",1796157345576]