[{"data":1,"prerenderedAt":5033},["ShallowReactive",2],{"navigation_docs":3,"-modules-interface-maps":732,"-modules-interface-maps-surround":5028},[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":470,"body":734,"description":5022,"extension":5023,"links":5024,"meta":5025,"navigation":1368,"path":471,"seo":5026,"stem":472,"__hash__":5027},"docs\u002F3.modules\u002F7.interface\u002F8.maps.md",{"type":735,"value":736,"toc":5003},"minimark",[737,741,749,773,776,781,878,882,897,901,1110,1122,1126,1133,1280,1295,1299,1302,1515,1674,1685,1688,1998,2118,2131,2135,2379,2473,2479,2483,2841,2941,3062,3065,3068,3111,3275,3413,3487,3510,3519,3619,3623,3642,3846,4052,4095,4099,4102,4256,4360,4379,4383,4678,4780,4799,4824,4827,4833,4970,4973,4983,4987,4999],[738,739,740],"p",{},"Maps is something other modules build with. It has no maps of its own, no tables, no routes and no admin pages. A\nmodule that needs a place (where an operation is) or a layout (where the bars, stations and seats of a venue are)\nstores the value in its own table. It edits the value on its own pages with the components Maps ships, and saves it\nthrough its own routes, which check access the module's own way.",[738,742,743,744,748],{},"The package is ",[745,746,747],"code",{},"@frigear-nu\u002Fmaps",". It works with two kinds of value:",[750,751,752,764],"ul",{},[753,754,755,759,760,763],"li",{},[756,757,758],"strong",{},"A location"," (",[745,761,762],{},"MapLocation","): a point on the earth, with an optional radius or an area around it. It is edited with\nthe location picker on OpenStreetMap-style tiles.",[753,765,766,759,769,772],{},[756,767,768],{},"A plane layout",[745,770,771],{},"PlaneFeatureCollection","): a flat drawing in its own units, optionally on an underlay image. It\nis edited with the plane editor. Each feature has a stable id that other records point to.",[738,774,775],{},"Seat maps are layouts only: a seat has an id and a place, never a booking.",[777,778,780],"h2",{"id":779},"what-you-get","What you get",[750,782,783,819,838,848,857],{},[753,784,785,788,789,792,793],{},[756,786,787],{},"Components"," (auto-imported, they work on props and ",[745,790,791],{},"v-model"," only):\n",[750,794,795,801,807,813],{},[753,796,797,800],{},[745,798,799],{},"\u003CMapLocationField>",", the location picker form field.",[753,802,803,806],{},[745,804,805],{},"\u003CMapPlaneEditor>",", the plane editor with underlay, grid snapping and allowed feature kinds.",[753,808,809,812],{},[745,810,811],{},"\u003CMapViewer>",", a read-only viewer for the web, with live layers.",[753,814,815,818],{},[745,816,817],{},"\u003CMapMobileViewer>",", the same viewer laid out for a mobile screen.",[753,820,821,824,825,828,829,828,831,833,834,837],{},[756,822,823],{},"Types and schemas:"," ",[745,826,827],{},"GeoPoint",", ",[745,830,762],{},[745,832,771],{}," and friends, and their zod schemas from\n",[745,835,836],{},"@frigear-nu\u002Fmaps\u002Fschemas",".",[753,839,840,843,844,847],{},[756,841,842],{},"Geometry helpers"," from ",[745,845,846],{},"@frigear-nu\u002Fmaps\u002Futils",": haversine distance, radius and area checks, centroids and\nanchors, bounds.",[753,849,850,824,853,856],{},[756,851,852],{},"Registries:",[745,854,855],{},"extendMaps(nuxt, { kinds, layers })"," for feature kinds (seat, station, container) and live layers.",[753,858,859,862,863,866,867,828,870,873,874,877],{},[756,860,861],{},"Server utils"," (auto-imported): ",[745,864,865],{},"validatePlaneLayout",", and ",[745,868,869],{},"storeMapUnderlay",[745,871,872],{},"serveMapUnderlay"," and\n",[745,875,876],{},"deleteMapUnderlay"," for underlay images in NuxtHub Blob.",[879,880],"module-runtime",{":client":881,":mobile":881,":server":881},"true",[883,884,885,888,889,824,892,896],"note",{},[756,886,887],{},"Installed for you:"," UI, Module Kit, Leaflet and leaflet-geoman.\n",[756,890,891],{},"You add:",[893,894,895],"a",{"href":91},"NuxtHub"," with Blob storage, when a module stores underlay images.",[777,898,900],{"id":899},"quick-setup","Quick setup",[902,903,904,909,934,939,946],"steps",{},[905,906,908],"h3",{"id":907},"install-maps","Install Maps",[910,911,916],"pre",{"className":912,"code":913,"language":914,"meta":915,"style":915},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @frigear-nu\u002Fmaps\n","bash","",[745,917,918],{"__ignoreMap":915},[919,920,923,927,931],"span",{"class":921,"line":922},"line",1,[919,924,926],{"class":925},"sBMFI","pnpm",[919,928,930],{"class":929},"sfazB"," add",[919,932,933],{"class":929}," @frigear-nu\u002Fmaps\n",[738,935,936,937,837],{},"Most apps get Maps through a module that uses it, such as ",[893,938,524],{"href":525},[905,940,942,943],{"id":941},"add-it-to-nuxtconfigts","Add it to ",[745,944,945],{},"nuxt.config.ts",[910,947,951],{"className":948,"code":949,"filename":945,"language":950,"meta":915,"style":915},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@frigear-nu\u002Fmaps'],\n  hub: { blob: true },\n  maps: {\n    tiles: {\n      url: 'https:\u002F\u002Ftiles.example.com\u002F{z}\u002F{x}\u002F{y}.png',\n      attribution: '&copy; OpenStreetMap contributors',\n    },\n  },\n})\n","ts",[745,952,953,974,1011,1034,1045,1055,1072,1089,1095,1101],{"__ignoreMap":915},[919,954,955,959,962,966,970],{"class":921,"line":922},[919,956,958],{"class":957},"s7zQu","export",[919,960,961],{"class":957}," default",[919,963,965],{"class":964},"s2Zo4"," defineNuxtConfig",[919,967,969],{"class":968},"sTEyZ","(",[919,971,973],{"class":972},"sMK4o","{\n",[919,975,977,981,984,987,990,993,995,998,1001,1003,1005,1008],{"class":921,"line":976},2,[919,978,980],{"class":979},"swJcz","  modules",[919,982,983],{"class":972},":",[919,985,986],{"class":968}," [",[919,988,989],{"class":972},"'",[919,991,992],{"class":929},"@nuxthub\u002Fcore",[919,994,989],{"class":972},[919,996,997],{"class":972},",",[919,999,1000],{"class":972}," '",[919,1002,747],{"class":929},[919,1004,989],{"class":972},[919,1006,1007],{"class":968},"]",[919,1009,1010],{"class":972},",\n",[919,1012,1014,1017,1019,1022,1025,1027,1031],{"class":921,"line":1013},3,[919,1015,1016],{"class":979},"  hub",[919,1018,983],{"class":972},[919,1020,1021],{"class":972}," {",[919,1023,1024],{"class":979}," blob",[919,1026,983],{"class":972},[919,1028,1030],{"class":1029},"sfNiH"," true",[919,1032,1033],{"class":972}," },\n",[919,1035,1037,1040,1042],{"class":921,"line":1036},4,[919,1038,1039],{"class":979},"  maps",[919,1041,983],{"class":972},[919,1043,1044],{"class":972}," {\n",[919,1046,1048,1051,1053],{"class":921,"line":1047},5,[919,1049,1050],{"class":979},"    tiles",[919,1052,983],{"class":972},[919,1054,1044],{"class":972},[919,1056,1058,1061,1063,1065,1068,1070],{"class":921,"line":1057},6,[919,1059,1060],{"class":979},"      url",[919,1062,983],{"class":972},[919,1064,1000],{"class":972},[919,1066,1067],{"class":929},"https:\u002F\u002Ftiles.example.com\u002F{z}\u002F{x}\u002F{y}.png",[919,1069,989],{"class":972},[919,1071,1010],{"class":972},[919,1073,1075,1078,1080,1082,1085,1087],{"class":921,"line":1074},7,[919,1076,1077],{"class":979},"      attribution",[919,1079,983],{"class":972},[919,1081,1000],{"class":972},[919,1083,1084],{"class":929},"&copy; OpenStreetMap contributors",[919,1086,989],{"class":972},[919,1088,1010],{"class":972},[919,1090,1092],{"class":921,"line":1091},8,[919,1093,1094],{"class":972},"    },\n",[919,1096,1098],{"class":921,"line":1097},9,[919,1099,1100],{"class":972},"  },\n",[919,1102,1104,1107],{"class":921,"line":1103},10,[919,1105,1106],{"class":972},"}",[919,1108,1109],{"class":968},")\n",[1111,1112,1115,824,1118,1121],"callout",{"color":1113,"icon":1114},"success","i-lucide-check",[756,1116,1117],{},"What you should see:",[745,1119,1120],{},"\u003CMapLocationField v-model=\"location\" \u002F>"," on any page shows a map you can tap to place a\npoint.",[777,1123,1125],{"id":1124},"options","Options",[738,1127,1128,1129,1132],{},"Options go under the ",[745,1130,1131],{},"maps"," key.",[1134,1135,1136,1155],"table",{},[1137,1138,1139],"thead",{},[1140,1141,1142,1146,1149,1152],"tr",{},[1143,1144,1145],"th",{},"Option",[1143,1147,1148],{},"Type",[1143,1150,1151],{},"Default",[1143,1153,1154],{},"Purpose",[1156,1157,1158,1177,1194,1214,1236,1256],"tbody",{},[1140,1159,1160,1166,1171,1174],{},[1161,1162,1163],"td",{},[745,1164,1165],{},"tiles.url",[1161,1167,1168],{},[745,1169,1170],{},"string",[1161,1172,1173],{},"OpenStreetMap's tiles",[1161,1175,1176],{},"The tile URL template of the picker and geographic viewers.",[1140,1178,1179,1184,1188,1191],{},[1161,1180,1181],{},[745,1182,1183],{},"tiles.attribution",[1161,1185,1186],{},[745,1187,1170],{},[1161,1189,1190],{},"OpenStreetMap's attribution",[1161,1192,1193],{},"The attribution shown on geographic maps.",[1140,1195,1196,1201,1206,1211],{},[1161,1197,1198],{},[745,1199,1200],{},"tiles.maxZoom",[1161,1202,1203],{},[745,1204,1205],{},"number",[1161,1207,1208],{},[745,1209,1210],{},"19",[1161,1212,1213],{},"The deepest zoom of the tiles.",[1140,1215,1216,1221,1226,1233],{},[1161,1217,1218],{},[745,1219,1220],{},"defaultCenter",[1161,1222,1223],{},[745,1224,1225],{},"{ center: [lat, lng], zoom }",[1161,1227,1228,1229,1232],{},"none: a world view (",[745,1230,1231],{},"[0, 0]",", zoom 2)",[1161,1234,1235],{},"Where the picker and viewers open without a value. The app sets it to its own area.",[1140,1237,1238,1243,1247,1250],{},[1161,1239,1240],{},[745,1241,1242],{},"maxUnderlayBytes",[1161,1244,1245],{},[745,1246,1205],{},[1161,1248,1249],{},"10 MB",[1161,1251,1252,1253,1255],{},"The largest image ",[745,1254,869],{}," accepts.",[1140,1257,1258,1266,1269,1274],{},[1161,1259,1260,828,1263],{},[745,1261,1262],{},"kinds",[745,1264,1265],{},"layers",[1161,1267,1268],{},"lists",[1161,1270,1271],{},[745,1272,1273],{},"[]",[1161,1275,1276,1277,837],{},"The host's own feature kinds and live layers, the same as ",[745,1278,1279],{},"extendMaps",[738,1281,1282,1287,1288,1294],{},[756,1283,1284,837],{},[745,1285,1286],{},"tiles"," The default is OpenStreetMap's public tile server. Its\n",[893,1289,1293],{"href":1290,"rel":1291},"https:\u002F\u002Foperations.osmfoundation.org\u002Fpolicies\u002Ftiles\u002F",[1292],"nofollow","tile usage policy"," forbids heavy use, such as a festival where\nthousands of phones open the site map at once. Use a hosted tile provider, or tiles you serve yourself, in production.\nKeep the provider's attribution.",[777,1296,1298],{"id":1297},"storing-a-value","Storing a value",[738,1300,1301],{},"A module stores a location or a layout in a JSON column of its own table. Maps exports the types; the module types the\ncolumn with them, in both dialects.",[910,1303,1306],{"className":948,"code":1304,"filename":1305,"language":950,"meta":915,"style":915},"import { sqliteTable, text } from 'drizzle-orm\u002Fsqlite-core'\nimport type { MapLocation, PlaneFeatureCollection } from '@frigear-nu\u002Fmaps\u002Futils'\n\nexport const venues = sqliteTable('venues', {\n  id: text().primaryKey(),\n  location: text({ mode: 'json' }).$type\u003CMapLocation>(),\n  layout: text({ mode: 'json' }).$type\u003CPlaneFeatureCollection>(),\n})\n","server\u002Fdb\u002Fschema.sqlite.ts",[745,1307,1308,1337,1364,1370,1399,1420,1468,1509],{"__ignoreMap":915},[919,1309,1310,1313,1315,1318,1320,1323,1326,1329,1331,1334],{"class":921,"line":922},[919,1311,1312],{"class":957},"import",[919,1314,1021],{"class":972},[919,1316,1317],{"class":968}," sqliteTable",[919,1319,997],{"class":972},[919,1321,1322],{"class":968}," text",[919,1324,1325],{"class":972}," }",[919,1327,1328],{"class":957}," from",[919,1330,1000],{"class":972},[919,1332,1333],{"class":929},"drizzle-orm\u002Fsqlite-core",[919,1335,1336],{"class":972},"'\n",[919,1338,1339,1341,1344,1346,1349,1351,1354,1356,1358,1360,1362],{"class":921,"line":976},[919,1340,1312],{"class":957},[919,1342,1343],{"class":957}," type",[919,1345,1021],{"class":972},[919,1347,1348],{"class":968}," MapLocation",[919,1350,997],{"class":972},[919,1352,1353],{"class":968}," PlaneFeatureCollection",[919,1355,1325],{"class":972},[919,1357,1328],{"class":957},[919,1359,1000],{"class":972},[919,1361,846],{"class":929},[919,1363,1336],{"class":972},[919,1365,1366],{"class":921,"line":1013},[919,1367,1369],{"emptyLinePlaceholder":1368},true,"\n",[919,1371,1372,1374,1378,1381,1384,1386,1388,1390,1393,1395,1397],{"class":921,"line":1036},[919,1373,958],{"class":957},[919,1375,1377],{"class":1376},"spNyl"," const",[919,1379,1380],{"class":968}," venues ",[919,1382,1383],{"class":972},"=",[919,1385,1317],{"class":964},[919,1387,969],{"class":968},[919,1389,989],{"class":972},[919,1391,1392],{"class":929},"venues",[919,1394,989],{"class":972},[919,1396,997],{"class":972},[919,1398,1044],{"class":972},[919,1400,1401,1404,1406,1408,1411,1413,1416,1418],{"class":921,"line":1047},[919,1402,1403],{"class":979},"  id",[919,1405,983],{"class":972},[919,1407,1322],{"class":964},[919,1409,1410],{"class":968},"()",[919,1412,837],{"class":972},[919,1414,1415],{"class":964},"primaryKey",[919,1417,1410],{"class":968},[919,1419,1010],{"class":972},[919,1421,1422,1425,1427,1429,1431,1434,1437,1439,1441,1444,1446,1448,1451,1453,1456,1459,1461,1464,1466],{"class":921,"line":1057},[919,1423,1424],{"class":979},"  location",[919,1426,983],{"class":972},[919,1428,1322],{"class":964},[919,1430,969],{"class":968},[919,1432,1433],{"class":972},"{",[919,1435,1436],{"class":979}," mode",[919,1438,983],{"class":972},[919,1440,1000],{"class":972},[919,1442,1443],{"class":929},"json",[919,1445,989],{"class":972},[919,1447,1325],{"class":972},[919,1449,1450],{"class":968},")",[919,1452,837],{"class":972},[919,1454,1455],{"class":964},"$type",[919,1457,1458],{"class":972},"\u003C",[919,1460,762],{"class":925},[919,1462,1463],{"class":972},">",[919,1465,1410],{"class":968},[919,1467,1010],{"class":972},[919,1469,1470,1473,1475,1477,1479,1481,1483,1485,1487,1489,1491,1493,1495,1497,1499,1501,1503,1505,1507],{"class":921,"line":1074},[919,1471,1472],{"class":979},"  layout",[919,1474,983],{"class":972},[919,1476,1322],{"class":964},[919,1478,969],{"class":968},[919,1480,1433],{"class":972},[919,1482,1436],{"class":979},[919,1484,983],{"class":972},[919,1486,1000],{"class":972},[919,1488,1443],{"class":929},[919,1490,989],{"class":972},[919,1492,1325],{"class":972},[919,1494,1450],{"class":968},[919,1496,837],{"class":972},[919,1498,1455],{"class":964},[919,1500,1458],{"class":972},[919,1502,771],{"class":925},[919,1504,1463],{"class":972},[919,1506,1410],{"class":968},[919,1508,1010],{"class":972},[919,1510,1511,1513],{"class":921,"line":1091},[919,1512,1106],{"class":972},[919,1514,1109],{"class":968},[910,1516,1519],{"className":948,"code":1517,"filename":1518,"language":950,"meta":915,"style":915},"import { jsonb, pgTable, text } from 'drizzle-orm\u002Fpg-core'\nimport type { MapLocation, PlaneFeatureCollection } from '@frigear-nu\u002Fmaps\u002Futils'\n\nexport const venues = pgTable('venues', {\n  id: text().primaryKey(),\n  location: jsonb().$type\u003CMapLocation>(),\n  layout: jsonb().$type\u003CPlaneFeatureCollection>(),\n})\n","server\u002Fdb\u002Fschema.postgresql.ts",[745,1520,1521,1550,1574,1578,1602,1620,1644,1668],{"__ignoreMap":915},[919,1522,1523,1525,1527,1530,1532,1535,1537,1539,1541,1543,1545,1548],{"class":921,"line":922},[919,1524,1312],{"class":957},[919,1526,1021],{"class":972},[919,1528,1529],{"class":968}," jsonb",[919,1531,997],{"class":972},[919,1533,1534],{"class":968}," pgTable",[919,1536,997],{"class":972},[919,1538,1322],{"class":968},[919,1540,1325],{"class":972},[919,1542,1328],{"class":957},[919,1544,1000],{"class":972},[919,1546,1547],{"class":929},"drizzle-orm\u002Fpg-core",[919,1549,1336],{"class":972},[919,1551,1552,1554,1556,1558,1560,1562,1564,1566,1568,1570,1572],{"class":921,"line":976},[919,1553,1312],{"class":957},[919,1555,1343],{"class":957},[919,1557,1021],{"class":972},[919,1559,1348],{"class":968},[919,1561,997],{"class":972},[919,1563,1353],{"class":968},[919,1565,1325],{"class":972},[919,1567,1328],{"class":957},[919,1569,1000],{"class":972},[919,1571,846],{"class":929},[919,1573,1336],{"class":972},[919,1575,1576],{"class":921,"line":1013},[919,1577,1369],{"emptyLinePlaceholder":1368},[919,1579,1580,1582,1584,1586,1588,1590,1592,1594,1596,1598,1600],{"class":921,"line":1036},[919,1581,958],{"class":957},[919,1583,1377],{"class":1376},[919,1585,1380],{"class":968},[919,1587,1383],{"class":972},[919,1589,1534],{"class":964},[919,1591,969],{"class":968},[919,1593,989],{"class":972},[919,1595,1392],{"class":929},[919,1597,989],{"class":972},[919,1599,997],{"class":972},[919,1601,1044],{"class":972},[919,1603,1604,1606,1608,1610,1612,1614,1616,1618],{"class":921,"line":1047},[919,1605,1403],{"class":979},[919,1607,983],{"class":972},[919,1609,1322],{"class":964},[919,1611,1410],{"class":968},[919,1613,837],{"class":972},[919,1615,1415],{"class":964},[919,1617,1410],{"class":968},[919,1619,1010],{"class":972},[919,1621,1622,1624,1626,1628,1630,1632,1634,1636,1638,1640,1642],{"class":921,"line":1057},[919,1623,1424],{"class":979},[919,1625,983],{"class":972},[919,1627,1529],{"class":964},[919,1629,1410],{"class":968},[919,1631,837],{"class":972},[919,1633,1455],{"class":964},[919,1635,1458],{"class":972},[919,1637,762],{"class":925},[919,1639,1463],{"class":972},[919,1641,1410],{"class":968},[919,1643,1010],{"class":972},[919,1645,1646,1648,1650,1652,1654,1656,1658,1660,1662,1664,1666],{"class":921,"line":1074},[919,1647,1472],{"class":979},[919,1649,983],{"class":972},[919,1651,1529],{"class":964},[919,1653,1410],{"class":968},[919,1655,837],{"class":972},[919,1657,1455],{"class":964},[919,1659,1458],{"class":972},[919,1661,771],{"class":925},[919,1663,1463],{"class":972},[919,1665,1410],{"class":968},[919,1667,1010],{"class":972},[919,1669,1670,1672],{"class":921,"line":1091},[919,1671,1106],{"class":972},[919,1673,1109],{"class":968},[738,1675,1676,1677,1680,1681,1684],{},"Maps ships no column helper on purpose. ",[745,1678,1679],{},"registerDatabaseTable"," copies a schema file's columns into the app's\ngenerated schema as text, with the file's named imports. A helper call such as ",[745,1682,1683],{},"mapColumn()"," survives that copy, but\nits import then has to resolve from the app's root. In a pnpm app, a package that only came in through another module\ndoes not resolve there, so the app's database build would fail. The plain column above has no such import, only types.",[738,1686,1687],{},"Validate what a client sends with the schemas, in the route that saves it:",[910,1689,1692],{"className":948,"code":1690,"filename":1691,"language":950,"meta":915,"style":915},"import { z } from 'zod'\nimport { mapLocationSchema } from '@frigear-nu\u002Fmaps\u002Fschemas'\nimport { validationError } from '@frigear-nu\u002Fmodule-kit\u002Fserver'\n\nexport default defineEventHandler(async (event) => {\n  await authorize(event, venuesAccess.permissions.manage)\n  const body = await readValidatedBody(event, z.object({ location: mapLocationSchema.nullable(), layout: z.unknown() }).parse)\n  const layout = validatePlaneLayout(body.layout, { kinds: ['venues.bar', 'maps.area'] })\n  if (!layout.success) throw validationError(layout.issues)\n  \u002F\u002F ... load the venue, authorize again with it (venuesAccess.permissions.manage, venue),\n  \u002F\u002F then save body.location and layout.data on it\n})\n","server\u002Froutes\u002Fadmin\u002Fvenue.patch.ts",[745,1693,1694,1714,1733,1753,1757,1784,1813,1889,1944,1979,1985,1991],{"__ignoreMap":915},[919,1695,1696,1698,1700,1703,1705,1707,1709,1712],{"class":921,"line":922},[919,1697,1312],{"class":957},[919,1699,1021],{"class":972},[919,1701,1702],{"class":968}," z",[919,1704,1325],{"class":972},[919,1706,1328],{"class":957},[919,1708,1000],{"class":972},[919,1710,1711],{"class":929},"zod",[919,1713,1336],{"class":972},[919,1715,1716,1718,1720,1723,1725,1727,1729,1731],{"class":921,"line":976},[919,1717,1312],{"class":957},[919,1719,1021],{"class":972},[919,1721,1722],{"class":968}," mapLocationSchema",[919,1724,1325],{"class":972},[919,1726,1328],{"class":957},[919,1728,1000],{"class":972},[919,1730,836],{"class":929},[919,1732,1336],{"class":972},[919,1734,1735,1737,1739,1742,1744,1746,1748,1751],{"class":921,"line":1013},[919,1736,1312],{"class":957},[919,1738,1021],{"class":972},[919,1740,1741],{"class":968}," validationError",[919,1743,1325],{"class":972},[919,1745,1328],{"class":957},[919,1747,1000],{"class":972},[919,1749,1750],{"class":929},"@frigear-nu\u002Fmodule-kit\u002Fserver",[919,1752,1336],{"class":972},[919,1754,1755],{"class":921,"line":1036},[919,1756,1369],{"emptyLinePlaceholder":1368},[919,1758,1759,1761,1763,1766,1768,1771,1773,1777,1779,1782],{"class":921,"line":1047},[919,1760,958],{"class":957},[919,1762,961],{"class":957},[919,1764,1765],{"class":964}," defineEventHandler",[919,1767,969],{"class":968},[919,1769,1770],{"class":1376},"async",[919,1772,759],{"class":972},[919,1774,1776],{"class":1775},"sHdIc","event",[919,1778,1450],{"class":972},[919,1780,1781],{"class":1376}," =>",[919,1783,1044],{"class":972},[919,1785,1786,1789,1792,1794,1796,1798,1801,1803,1806,1808,1811],{"class":921,"line":1057},[919,1787,1788],{"class":957},"  await",[919,1790,1791],{"class":964}," authorize",[919,1793,969],{"class":979},[919,1795,1776],{"class":968},[919,1797,997],{"class":972},[919,1799,1800],{"class":968}," venuesAccess",[919,1802,837],{"class":972},[919,1804,1805],{"class":968},"permissions",[919,1807,837],{"class":972},[919,1809,1810],{"class":968},"manage",[919,1812,1109],{"class":979},[919,1814,1815,1818,1821,1824,1827,1830,1832,1834,1836,1838,1840,1843,1845,1847,1850,1852,1854,1856,1859,1861,1863,1866,1868,1870,1872,1875,1878,1880,1882,1884,1887],{"class":921,"line":1074},[919,1816,1817],{"class":1376},"  const",[919,1819,1820],{"class":968}," body",[919,1822,1823],{"class":972}," =",[919,1825,1826],{"class":957}," await",[919,1828,1829],{"class":964}," readValidatedBody",[919,1831,969],{"class":979},[919,1833,1776],{"class":968},[919,1835,997],{"class":972},[919,1837,1702],{"class":968},[919,1839,837],{"class":972},[919,1841,1842],{"class":964},"object",[919,1844,969],{"class":979},[919,1846,1433],{"class":972},[919,1848,1849],{"class":979}," location",[919,1851,983],{"class":972},[919,1853,1722],{"class":968},[919,1855,837],{"class":972},[919,1857,1858],{"class":964},"nullable",[919,1860,1410],{"class":979},[919,1862,997],{"class":972},[919,1864,1865],{"class":979}," layout",[919,1867,983],{"class":972},[919,1869,1702],{"class":968},[919,1871,837],{"class":972},[919,1873,1874],{"class":964},"unknown",[919,1876,1877],{"class":979},"() ",[919,1879,1106],{"class":972},[919,1881,1450],{"class":979},[919,1883,837],{"class":972},[919,1885,1886],{"class":968},"parse",[919,1888,1109],{"class":979},[919,1890,1891,1893,1895,1897,1900,1902,1905,1907,1910,1912,1914,1917,1919,1921,1923,1926,1928,1930,1932,1935,1937,1940,1942],{"class":921,"line":1091},[919,1892,1817],{"class":1376},[919,1894,1865],{"class":968},[919,1896,1823],{"class":972},[919,1898,1899],{"class":964}," validatePlaneLayout",[919,1901,969],{"class":979},[919,1903,1904],{"class":968},"body",[919,1906,837],{"class":972},[919,1908,1909],{"class":968},"layout",[919,1911,997],{"class":972},[919,1913,1021],{"class":972},[919,1915,1916],{"class":979}," kinds",[919,1918,983],{"class":972},[919,1920,986],{"class":979},[919,1922,989],{"class":972},[919,1924,1925],{"class":929},"venues.bar",[919,1927,989],{"class":972},[919,1929,997],{"class":972},[919,1931,1000],{"class":972},[919,1933,1934],{"class":929},"maps.area",[919,1936,989],{"class":972},[919,1938,1939],{"class":979},"] ",[919,1941,1106],{"class":972},[919,1943,1109],{"class":979},[919,1945,1946,1949,1951,1954,1956,1958,1960,1963,1966,1968,1970,1972,1974,1977],{"class":921,"line":1097},[919,1947,1948],{"class":957},"  if",[919,1950,759],{"class":979},[919,1952,1953],{"class":972},"!",[919,1955,1909],{"class":968},[919,1957,837],{"class":972},[919,1959,1113],{"class":968},[919,1961,1962],{"class":979},") ",[919,1964,1965],{"class":957},"throw",[919,1967,1741],{"class":964},[919,1969,969],{"class":979},[919,1971,1909],{"class":968},[919,1973,837],{"class":972},[919,1975,1976],{"class":968},"issues",[919,1978,1109],{"class":979},[919,1980,1981],{"class":921,"line":1103},[919,1982,1984],{"class":1983},"sHwdD","  \u002F\u002F ... load the venue, authorize again with it (venuesAccess.permissions.manage, venue),\n",[919,1986,1988],{"class":921,"line":1987},11,[919,1989,1990],{"class":1983},"  \u002F\u002F then save body.location and layout.data on it\n",[919,1992,1994,1996],{"class":921,"line":1993},12,[919,1995,1106],{"class":972},[919,1997,1109],{"class":968},[1134,1999,2000,2012],{},[1137,2001,2002],{},[1140,2003,2004,2009],{},[1143,2005,2006,2007,1450],{},"Schema (",[745,2008,836],{},[1143,2010,2011],{},"What it accepts",[1156,2013,2014,2027,2044,2064,2077,2087,2100],{},[1140,2015,2016,2021],{},[1161,2017,2018],{},[745,2019,2020],{},"geoPointSchema",[1161,2022,2023,2026],{},[745,2024,2025],{},"{ lat, lng }"," within -90..90 and -180..180.",[1140,2028,2029,2034],{},[1161,2030,2031],{},[745,2032,2033],{},"mapLocationSchema",[1161,2035,2036,2039,2040,2043],{},[745,2037,2038],{},"{ point, radiusMeters? }"," or ",[745,2041,2042],{},"{ point, area }",": a radius up to 50 km, or an area of 3 to 500 corners. Never both.",[1140,2045,2046,2051],{},[1161,2047,2048],{},[745,2049,2050],{},"planeGeometrySchema",[1161,2052,2053,2054,828,2057,2039,2060,2063],{},"A ",[745,2055,2056],{},"Point",[745,2058,2059],{},"LineString",[745,2061,2062],{},"Polygon"," in plane units. An open polygon ring is closed.",[1140,2065,2066,2071],{},[1161,2067,2068],{},[745,2069,2070],{},"planeFeatureCollectionSchema({ kinds?, maxFeatures? })",[1161,2072,2073,2074,2076],{},"A layout. Feature ids are unique and safe, and the kinds are among ",[745,2075,1262],{},". 2000 features by default.",[1140,2078,2079,2084],{},[1161,2080,2081],{},[745,2082,2083],{},"planeLayoutSchema",[1161,2085,2086],{},"The same with no options.",[1140,2088,2089,2094],{},[1161,2090,2091],{},[745,2092,2093],{},"planeGeoreferenceSchema",[1161,2095,2096,2099],{},[745,2097,2098],{},"{ origin, rotation, metersPerUnit }",": the rotation is normalised to -180..180, the scale is 0.001 to 1000 m per unit.",[1140,2101,2102,2107],{},[1161,2103,2104],{},[745,2105,2106],{},"planePlacementSchema",[1161,2108,2053,2109,2112,2113,2117],{},[745,2110,2111],{},"PlanePlacement"," (see ",[893,2114,2116],{"href":2115},"#on-the-map","On the map","). Map tiles and a metre grid need the georeference.",[738,2119,2120,2123,2124,2127,2128,837],{},[745,2121,2122],{},"validatePlaneLayout(value, options)"," runs ",[745,2125,2126],{},"planeFeatureCollectionSchema"," and checks each feature against the registry.\nThe kind must be registered and the geometry one the kind may have. The properties are parsed with the kind's zod\nschema. It returns the cleaned layout, or the issues with paths such as ",[745,2129,2130],{},"features.3.properties.capacity",[777,2132,2134],{"id":2133},"a-location-field","A location field",[910,2136,2141],{"className":2137,"code":2138,"filename":2139,"language":2140,"meta":915,"style":915},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport type { MapLocation } from '@frigear-nu\u002Fmaps\u002Futils'\n\nconst location = ref\u003CMapLocation | null>(venue.value.location)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CUFormField name=\"location\" :label=\"t('location', 'Location')\">\n    \u003CMapLocationField v-model=\"location\" :modes=\"['point', 'radius']\" \u002F>\n  \u003C\u002FUFormField>\n\u003C\u002Ftemplate>\n","pages\u002Fadmin\u002Fvenues\u002F[id].vue","vue",[745,2142,2143,2168,2188,2192,2230,2239,2243,2252,2308,2362,2371],{"__ignoreMap":915},[919,2144,2145,2147,2150,2153,2156,2158,2161,2163,2165],{"class":921,"line":922},[919,2146,1458],{"class":972},[919,2148,2149],{"class":979},"script",[919,2151,2152],{"class":1376}," setup",[919,2154,2155],{"class":1376}," lang",[919,2157,1383],{"class":972},[919,2159,2160],{"class":972},"\"",[919,2162,950],{"class":929},[919,2164,2160],{"class":972},[919,2166,2167],{"class":972},">\n",[919,2169,2170,2172,2174,2176,2178,2180,2182,2184,2186],{"class":921,"line":976},[919,2171,1312],{"class":957},[919,2173,1343],{"class":957},[919,2175,1021],{"class":972},[919,2177,1348],{"class":968},[919,2179,1325],{"class":972},[919,2181,1328],{"class":957},[919,2183,1000],{"class":972},[919,2185,846],{"class":929},[919,2187,1336],{"class":972},[919,2189,2190],{"class":921,"line":1013},[919,2191,1369],{"emptyLinePlaceholder":1368},[919,2193,2194,2197,2200,2202,2205,2207,2209,2212,2215,2217,2220,2222,2225,2227],{"class":921,"line":1036},[919,2195,2196],{"class":1376},"const",[919,2198,2199],{"class":968}," location ",[919,2201,1383],{"class":972},[919,2203,2204],{"class":964}," ref",[919,2206,1458],{"class":972},[919,2208,762],{"class":925},[919,2210,2211],{"class":972}," |",[919,2213,2214],{"class":925}," null",[919,2216,1463],{"class":972},[919,2218,2219],{"class":968},"(venue",[919,2221,837],{"class":972},[919,2223,2224],{"class":968},"value",[919,2226,837],{"class":972},[919,2228,2229],{"class":968},"location)\n",[919,2231,2232,2235,2237],{"class":921,"line":1047},[919,2233,2234],{"class":972},"\u003C\u002F",[919,2236,2149],{"class":979},[919,2238,2167],{"class":972},[919,2240,2241],{"class":921,"line":1057},[919,2242,1369],{"emptyLinePlaceholder":1368},[919,2244,2245,2247,2250],{"class":921,"line":1074},[919,2246,1458],{"class":972},[919,2248,2249],{"class":979},"template",[919,2251,2167],{"class":972},[919,2253,2254,2257,2260,2263,2265,2267,2270,2272,2275,2278,2280,2282,2285,2287,2289,2291,2293,2295,2297,2300,2302,2304,2306],{"class":921,"line":1091},[919,2255,2256],{"class":972},"  \u003C",[919,2258,2259],{"class":979},"UFormField",[919,2261,2262],{"class":1376}," name",[919,2264,1383],{"class":972},[919,2266,2160],{"class":972},[919,2268,2269],{"class":929},"location",[919,2271,2160],{"class":972},[919,2273,2274],{"class":972}," :",[919,2276,2277],{"class":1376},"label",[919,2279,1383],{"class":972},[919,2281,2160],{"class":972},[919,2283,2284],{"class":964},"t",[919,2286,969],{"class":972},[919,2288,989],{"class":972},[919,2290,2269],{"class":929},[919,2292,989],{"class":972},[919,2294,828],{"class":972},[919,2296,989],{"class":972},[919,2298,2299],{"class":929},"Location",[919,2301,989],{"class":972},[919,2303,1450],{"class":972},[919,2305,2160],{"class":972},[919,2307,2167],{"class":972},[919,2309,2310,2313,2316,2319,2321,2323,2325,2327,2329,2332,2334,2336,2339,2341,2344,2346,2348,2350,2353,2355,2357,2359],{"class":921,"line":1097},[919,2311,2312],{"class":972},"    \u003C",[919,2314,2315],{"class":979},"MapLocationField",[919,2317,2318],{"class":1376}," v-model",[919,2320,1383],{"class":972},[919,2322,2160],{"class":972},[919,2324,2269],{"class":968},[919,2326,2160],{"class":972},[919,2328,2274],{"class":972},[919,2330,2331],{"class":1376},"modes",[919,2333,1383],{"class":972},[919,2335,2160],{"class":972},[919,2337,2338],{"class":972},"[",[919,2340,989],{"class":972},[919,2342,2343],{"class":929},"point",[919,2345,989],{"class":972},[919,2347,828],{"class":972},[919,2349,989],{"class":972},[919,2351,2352],{"class":929},"radius",[919,2354,989],{"class":972},[919,2356,1007],{"class":972},[919,2358,2160],{"class":972},[919,2360,2361],{"class":972}," \u002F>\n",[919,2363,2364,2367,2369],{"class":921,"line":1103},[919,2365,2366],{"class":972},"  \u003C\u002F",[919,2368,2259],{"class":979},[919,2370,2167],{"class":972},[919,2372,2373,2375,2377],{"class":921,"line":1987},[919,2374,2234],{"class":972},[919,2376,2249],{"class":979},[919,2378,2167],{"class":972},[1134,2380,2381,2393],{},[1137,2382,2383],{},[1140,2384,2385,2388,2390],{},[1143,2386,2387],{},"Prop",[1143,2389,1151],{},[1143,2391,2392],{},"What it does",[1156,2394,2395,2414,2428,2443,2458],{},[1140,2396,2397,2401,2406],{},[1161,2398,2399],{},[745,2400,791],{},[1161,2402,2403],{},[745,2404,2405],{},"null",[1161,2407,2408,2409,2411,2412,837],{},"The ",[745,2410,762],{},", or ",[745,2413,2405],{},[1140,2415,2416,2420,2425],{},[1161,2417,2418],{},[745,2419,2331],{},[1161,2421,2422],{},[745,2423,2424],{},"['point', 'radius', 'area']",[1161,2426,2427],{},"The kinds of location offered.",[1140,2429,2430,2435,2440],{},[1161,2431,2432],{},[745,2433,2434],{},"defaultRadius",[1161,2436,2437],{},[745,2438,2439],{},"100",[1161,2441,2442],{},"The radius a new circle starts with, in metres.",[1140,2444,2445,2450,2455],{},[1161,2446,2447],{},[745,2448,2449],{},"height",[1161,2451,2452],{},[745,2453,2454],{},"20rem",[1161,2456,2457],{},"The map's height.",[1140,2459,2460,2465,2470],{},[1161,2461,2462],{},[745,2463,2464],{},"disabled",[1161,2466,2467],{},[745,2468,2469],{},"false",[1161,2471,2472],{},"Shows the value without handles.",[738,2474,2475,2476,2478],{},"Tap the map to place the point, and drag the pin to move it. A radius is set in metres under the map. An area is drawn\ncorner by corner, and its corners can be dragged afterwards. With an area, ",[745,2477,2343],{}," is the area's centroid.",[777,2480,2482],{"id":2481},"a-plane-editor","A plane editor",[910,2484,2486],{"className":2137,"code":2485,"language":2140,"meta":915,"style":915},"\u003Cscript setup lang=\"ts\">\nimport type { PlaneFeatureCollection, PlaneUnderlay } from '@frigear-nu\u002Fmaps\u002Futils'\n\nconst layout = ref\u003CPlaneFeatureCollection>(venue.value.layout ?? { type: 'FeatureCollection', features: [] })\n\nasync function upload(file: File) {\n  const body = new FormData()\n  body.append('file', file)\n  return await $fetch\u003CPlaneUnderlay>(`\u002Fapi\u002Fadmin\u002Fvenues\u002F${venue.value.id}\u002Flayout\u002Funderlay`, { method: 'POST', body })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMapPlaneEditor v-model=\"layout\" :kinds=\"['venues.bar', 'maps.area', 'maps.label']\" :upload=\"upload\" \u002F>\n\u003C\u002Ftemplate>\n",[745,2487,2488,2508,2533,2537,2595,2599,2623,2640,2665,2736,2741,2749,2753,2762,2832],{"__ignoreMap":915},[919,2489,2490,2492,2494,2496,2498,2500,2502,2504,2506],{"class":921,"line":922},[919,2491,1458],{"class":972},[919,2493,2149],{"class":979},[919,2495,2152],{"class":1376},[919,2497,2155],{"class":1376},[919,2499,1383],{"class":972},[919,2501,2160],{"class":972},[919,2503,950],{"class":929},[919,2505,2160],{"class":972},[919,2507,2167],{"class":972},[919,2509,2510,2512,2514,2516,2518,2520,2523,2525,2527,2529,2531],{"class":921,"line":976},[919,2511,1312],{"class":957},[919,2513,1343],{"class":957},[919,2515,1021],{"class":972},[919,2517,1353],{"class":968},[919,2519,997],{"class":972},[919,2521,2522],{"class":968}," PlaneUnderlay",[919,2524,1325],{"class":972},[919,2526,1328],{"class":957},[919,2528,1000],{"class":972},[919,2530,846],{"class":929},[919,2532,1336],{"class":972},[919,2534,2535],{"class":921,"line":1013},[919,2536,1369],{"emptyLinePlaceholder":1368},[919,2538,2539,2541,2544,2546,2548,2550,2552,2554,2556,2558,2560,2562,2565,2568,2570,2572,2574,2576,2579,2581,2583,2586,2588,2591,2593],{"class":921,"line":1036},[919,2540,2196],{"class":1376},[919,2542,2543],{"class":968}," layout ",[919,2545,1383],{"class":972},[919,2547,2204],{"class":964},[919,2549,1458],{"class":972},[919,2551,771],{"class":925},[919,2553,1463],{"class":972},[919,2555,2219],{"class":968},[919,2557,837],{"class":972},[919,2559,2224],{"class":968},[919,2561,837],{"class":972},[919,2563,2564],{"class":968},"layout ",[919,2566,2567],{"class":972},"??",[919,2569,1021],{"class":972},[919,2571,1343],{"class":979},[919,2573,983],{"class":972},[919,2575,1000],{"class":972},[919,2577,2578],{"class":929},"FeatureCollection",[919,2580,989],{"class":972},[919,2582,997],{"class":972},[919,2584,2585],{"class":979}," features",[919,2587,983],{"class":972},[919,2589,2590],{"class":968}," [] ",[919,2592,1106],{"class":972},[919,2594,1109],{"class":968},[919,2596,2597],{"class":921,"line":1047},[919,2598,1369],{"emptyLinePlaceholder":1368},[919,2600,2601,2603,2606,2609,2611,2614,2616,2619,2621],{"class":921,"line":1057},[919,2602,1770],{"class":1376},[919,2604,2605],{"class":1376}," function",[919,2607,2608],{"class":964}," upload",[919,2610,969],{"class":972},[919,2612,2613],{"class":1775},"file",[919,2615,983],{"class":972},[919,2617,2618],{"class":925}," File",[919,2620,1450],{"class":972},[919,2622,1044],{"class":972},[919,2624,2625,2627,2629,2631,2634,2637],{"class":921,"line":1074},[919,2626,1817],{"class":1376},[919,2628,1820],{"class":968},[919,2630,1823],{"class":972},[919,2632,2633],{"class":972}," new",[919,2635,2636],{"class":964}," FormData",[919,2638,2639],{"class":979},"()\n",[919,2641,2642,2645,2647,2650,2652,2654,2656,2658,2660,2663],{"class":921,"line":1091},[919,2643,2644],{"class":968},"  body",[919,2646,837],{"class":972},[919,2648,2649],{"class":964},"append",[919,2651,969],{"class":979},[919,2653,989],{"class":972},[919,2655,2613],{"class":929},[919,2657,989],{"class":972},[919,2659,997],{"class":972},[919,2661,2662],{"class":968}," file",[919,2664,1109],{"class":979},[919,2666,2667,2670,2672,2675,2677,2680,2682,2684,2687,2690,2693,2696,2698,2700,2702,2705,2707,2710,2712,2714,2716,2719,2721,2723,2726,2728,2730,2732,2734],{"class":921,"line":1097},[919,2668,2669],{"class":957},"  return",[919,2671,1826],{"class":957},[919,2673,2674],{"class":964}," $fetch",[919,2676,1458],{"class":972},[919,2678,2679],{"class":925},"PlaneUnderlay",[919,2681,1463],{"class":972},[919,2683,969],{"class":979},[919,2685,2686],{"class":972},"`",[919,2688,2689],{"class":929},"\u002Fapi\u002Fadmin\u002Fvenues\u002F",[919,2691,2692],{"class":972},"${",[919,2694,2695],{"class":968},"venue",[919,2697,837],{"class":972},[919,2699,2224],{"class":968},[919,2701,837],{"class":972},[919,2703,2704],{"class":968},"id",[919,2706,1106],{"class":972},[919,2708,2709],{"class":929},"\u002Flayout\u002Funderlay",[919,2711,2686],{"class":972},[919,2713,997],{"class":972},[919,2715,1021],{"class":972},[919,2717,2718],{"class":979}," method",[919,2720,983],{"class":972},[919,2722,1000],{"class":972},[919,2724,2725],{"class":929},"POST",[919,2727,989],{"class":972},[919,2729,997],{"class":972},[919,2731,1820],{"class":968},[919,2733,1325],{"class":972},[919,2735,1109],{"class":979},[919,2737,2738],{"class":921,"line":1103},[919,2739,2740],{"class":972},"}\n",[919,2742,2743,2745,2747],{"class":921,"line":1987},[919,2744,2234],{"class":972},[919,2746,2149],{"class":979},[919,2748,2167],{"class":972},[919,2750,2751],{"class":921,"line":1993},[919,2752,1369],{"emptyLinePlaceholder":1368},[919,2754,2756,2758,2760],{"class":921,"line":2755},13,[919,2757,1458],{"class":972},[919,2759,2249],{"class":979},[919,2761,2167],{"class":972},[919,2763,2765,2767,2770,2772,2774,2776,2778,2780,2782,2784,2786,2788,2790,2792,2794,2796,2798,2800,2802,2804,2806,2808,2811,2813,2815,2817,2819,2822,2824,2826,2828,2830],{"class":921,"line":2764},14,[919,2766,2256],{"class":972},[919,2768,2769],{"class":979},"MapPlaneEditor",[919,2771,2318],{"class":1376},[919,2773,1383],{"class":972},[919,2775,2160],{"class":972},[919,2777,1909],{"class":968},[919,2779,2160],{"class":972},[919,2781,2274],{"class":972},[919,2783,1262],{"class":1376},[919,2785,1383],{"class":972},[919,2787,2160],{"class":972},[919,2789,2338],{"class":972},[919,2791,989],{"class":972},[919,2793,1925],{"class":929},[919,2795,989],{"class":972},[919,2797,828],{"class":972},[919,2799,989],{"class":972},[919,2801,1934],{"class":929},[919,2803,989],{"class":972},[919,2805,828],{"class":972},[919,2807,989],{"class":972},[919,2809,2810],{"class":929},"maps.label",[919,2812,989],{"class":972},[919,2814,1007],{"class":972},[919,2816,2160],{"class":972},[919,2818,2274],{"class":972},[919,2820,2821],{"class":1376},"upload",[919,2823,1383],{"class":972},[919,2825,2160],{"class":972},[919,2827,2821],{"class":968},[919,2829,2160],{"class":972},[919,2831,2361],{"class":972},[919,2833,2835,2837,2839],{"class":921,"line":2834},15,[919,2836,2234],{"class":972},[919,2838,2249],{"class":979},[919,2840,2167],{"class":972},[1134,2842,2843,2853],{},[1137,2844,2845],{},[1140,2846,2847,2849,2851],{},[1143,2848,2387],{},[1143,2850,1151],{},[1143,2852,2392],{},[1156,2854,2855,2868,2880,2895,2914,2928],{},[1140,2856,2857,2861,2864],{},[1161,2858,2859],{},[745,2860,791],{},[1161,2862,2863],{},"an empty layout",[1161,2865,2408,2866,837],{},[745,2867,771],{},[1140,2869,2870,2874,2877],{},[1161,2871,2872],{},[745,2873,1262],{},[1161,2875,2876],{},"every registered kind",[1161,2878,2879],{},"The feature kinds that may be drawn. The drawing tools follow their geometries.",[1140,2881,2882,2886,2889],{},[1161,2883,2884],{},[745,2885,2821],{},[1161,2887,2888],{},"none",[1161,2890,2891,2894],{},[745,2892,2893],{},"(file) => Promise\u003CPlaneUnderlay>",". Without it, the underlay cannot be changed in the editor.",[1140,2896,2897,2902,2907],{},[1161,2898,2899],{},[745,2900,2901],{},"grid",[1161,2903,2904],{},[745,2905,2906],{},"10",[1161,2908,2909,2910,2913],{},"The grid to snap to, in plane units; ",[745,2911,2912],{},"0"," turns snapping off.",[1140,2915,2916,2920,2925],{},[1161,2917,2918],{},[745,2919,2449],{},[1161,2921,2922],{},[745,2923,2924],{},"32rem",[1161,2926,2927],{},"The canvas height.",[1140,2929,2930,2934,2938],{},[1161,2931,2932],{},[745,2933,2464],{},[1161,2935,2936],{},[745,2937,2469],{},[1161,2939,2940],{},"Shows the layout read-only.",[750,2942,2943,2968,2988,3021,3052],{},[753,2944,2945,2948,2949,2952,2953,2956,2957,2960,2961,2964,2965,837],{},[756,2946,2947],{},"Feature ids."," The editor gives every new feature an id (",[745,2950,2951],{},"ftr_...",", from ",[745,2954,2955],{},"newFeatureId()","). The id never changes,\nso other records can point to a feature, such as a shift's ",[745,2958,2959],{},"featureId",". Deleting a feature asks first, because those\nrecords lose their place. It works on a plain-http origin too (a phone testing against ",[745,2962,2963],{},"http:\u002F\u002F192.168.x.x:3000","),\nwhere the browser has no ",[745,2966,2967],{},"crypto.randomUUID",[753,2969,2970,2973,2974,828,2977,2980,2981,2984,2985,837],{},[756,2971,2972],{},"Properties."," The side panel shows a form generated from the kind's zod schema, and flags what the schema refuses.\nThe form supports strings, numbers, booleans, enums, ",[745,2975,2976],{},".optional()",[745,2978,2979],{},".default()"," and translated texts\n(",[745,2982,2983],{},"translatedProperty","). Labels and help come from ",[745,2986,2987],{},".meta({ label, help })",[753,2989,2990,2993,2994,2997,2998,3000,3001,3004,3005,3008,3009,3012,3013,3016,3017,3020],{},[756,2991,2992],{},"Underlay."," One plane unit is one pixel of the image, placed at the origin. Store the image with\n",[745,2995,2996],{},"storeMapUnderlay(event, { prefix })",". It accepts a PNG, JPEG or WebP (by its bytes) up to ",[745,2999,1242],{}," and at\nmost ",[745,3002,3003],{},"MAX_UNDERLAY_DIMENSION"," (100 000) pixels each way, which a layout can store (",[745,3006,3007],{},"400 image_too_large"," above), and\nanswers ",[745,3010,3011],{},"{ pathname, contentType, width, height }",". Keep the pathname on your record and serve it from your own\nroute with ",[745,3014,3015],{},"serveMapUnderlay(event, stored, { cache })",". The ",[745,3018,3019],{},"url"," you return points at that route.",[753,3022,3023,3026,3027,3030,3031,3034,3035,3038,3039,3041,3042,828,3045,828,3048,3051],{},[756,3024,3025],{},"Underlay URL."," A layout's ",[745,3028,3029],{},"underlay.url"," must be a path on this app (",[745,3032,3033],{},"\u002Fapi\u002F...",", see ",[745,3036,3037],{},"isSameAppPath","): the schemas\nand ",[745,3040,865],{}," refuse an external URL (",[745,3043,3044],{},"https:\u002F\u002F...",[745,3046,3047],{},"\u002F\u002Fhost\u002F...",[745,3049,3050],{},"data:","), and the viewers do not load\none, so a stored layout can never show a third party's image or leak the viewers' addresses to it.",[753,3053,3054,3057,3058,3061],{},[756,3055,3056],{},"After an upload"," the plane takes the image's size as its extent (",[745,3059,3060],{},"withPlaneUnderlay","), so an older extent never\nclips the new image, and the editor fits the view to it.",[777,3063,2116],{"id":3064},"on-the-map",[738,3066,3067],{},"A layout lies on the earth in one of two ways.",[750,3069,3070,3098],{},[753,3071,3072,3075,3076,3078,3079,3081,3082,3085,3086,3089,3090,3093,3094,3097],{},[756,3073,3074],{},"A placed plane."," The layout keeps its plane units and its grid, and a ",[745,3077,2111],{}," says where it lies:\nplane ",[745,3080,1231],{}," is at ",[745,3083,3084],{},"georeference.origin",", its ",[745,3087,3088],{},"+y"," axis points ",[745,3091,3092],{},"rotation"," degrees clockwise from north, and one\nunit is ",[745,3095,3096],{},"metersPerUnit"," metres (with a floor plan image, metres per pixel). Store the placement apart from the layout,\nin a JSON column of its own, and save it with its own route: moving the plan and drawing on it never overwrite each\nother.",[753,3099,3100,824,3103,3106,3107,3110],{},[756,3101,3102],{},"A geo layout.",[745,3104,3105],{},"crs: 'geo'"," on the layout: its positions are ",[745,3108,3109],{},"[lng, lat]",", drawn directly on the map tiles. It has\nno extent, image or placement.",[910,3112,3114],{"className":948,"code":3113,"language":950,"meta":915,"style":915},"type PlanePlacement = {\n  georeference?: { origin: GeoPoint, rotation: number, metersPerUnit: number } | null\n  underlayMode?: 'none' | 'tiles' | 'image' | null \u002F\u002F one underlay at a time\n  underlayOpacity?: number | null \u002F\u002F 0.1 to 1\n  gridUnit?: 'plane' | 'metres' | null \u002F\u002F metres once placed\n  gridSize?: number | null \u002F\u002F 0.5 or 1 in metres\n}\n",[745,3115,3116,3128,3172,3209,3225,3255,3271],{"__ignoreMap":915},[919,3117,3118,3121,3124,3126],{"class":921,"line":922},[919,3119,3120],{"class":1376},"type",[919,3122,3123],{"class":925}," PlanePlacement",[919,3125,1823],{"class":972},[919,3127,1044],{"class":972},[919,3129,3130,3133,3136,3138,3141,3143,3146,3148,3151,3153,3156,3158,3161,3163,3165,3167,3169],{"class":921,"line":976},[919,3131,3132],{"class":979},"  georeference",[919,3134,3135],{"class":972},"?:",[919,3137,1021],{"class":972},[919,3139,3140],{"class":979}," origin",[919,3142,983],{"class":972},[919,3144,3145],{"class":925}," GeoPoint",[919,3147,997],{"class":972},[919,3149,3150],{"class":979}," rotation",[919,3152,983],{"class":972},[919,3154,3155],{"class":925}," number",[919,3157,997],{"class":972},[919,3159,3160],{"class":979}," metersPerUnit",[919,3162,983],{"class":972},[919,3164,3155],{"class":925},[919,3166,1325],{"class":972},[919,3168,2211],{"class":972},[919,3170,3171],{"class":925}," null\n",[919,3173,3174,3177,3179,3181,3183,3185,3187,3189,3191,3193,3195,3197,3200,3202,3204,3206],{"class":921,"line":1013},[919,3175,3176],{"class":979},"  underlayMode",[919,3178,3135],{"class":972},[919,3180,1000],{"class":972},[919,3182,2888],{"class":929},[919,3184,989],{"class":972},[919,3186,2211],{"class":972},[919,3188,1000],{"class":972},[919,3190,1286],{"class":929},[919,3192,989],{"class":972},[919,3194,2211],{"class":972},[919,3196,1000],{"class":972},[919,3198,3199],{"class":929},"image",[919,3201,989],{"class":972},[919,3203,2211],{"class":972},[919,3205,2214],{"class":925},[919,3207,3208],{"class":1983}," \u002F\u002F one underlay at a time\n",[919,3210,3211,3214,3216,3218,3220,3222],{"class":921,"line":1036},[919,3212,3213],{"class":979},"  underlayOpacity",[919,3215,3135],{"class":972},[919,3217,3155],{"class":925},[919,3219,2211],{"class":972},[919,3221,2214],{"class":925},[919,3223,3224],{"class":1983}," \u002F\u002F 0.1 to 1\n",[919,3226,3227,3230,3232,3234,3237,3239,3241,3243,3246,3248,3250,3252],{"class":921,"line":1047},[919,3228,3229],{"class":979},"  gridUnit",[919,3231,3135],{"class":972},[919,3233,1000],{"class":972},[919,3235,3236],{"class":929},"plane",[919,3238,989],{"class":972},[919,3240,2211],{"class":972},[919,3242,1000],{"class":972},[919,3244,3245],{"class":929},"metres",[919,3247,989],{"class":972},[919,3249,2211],{"class":972},[919,3251,2214],{"class":925},[919,3253,3254],{"class":1983}," \u002F\u002F metres once placed\n",[919,3256,3257,3260,3262,3264,3266,3268],{"class":921,"line":1057},[919,3258,3259],{"class":979},"  gridSize",[919,3261,3135],{"class":972},[919,3263,3155],{"class":925},[919,3265,2211],{"class":972},[919,3267,2214],{"class":925},[919,3269,3270],{"class":1983}," \u002F\u002F 0.5 or 1 in metres\n",[919,3272,3273],{"class":921,"line":1074},[919,3274,2740],{"class":972},[910,3276,3278],{"className":2137,"code":3277,"language":2140,"meta":915,"style":915},"\u003CMapPlaneEditor\n  v-model=\"layout\"\n  v-model:placement=\"placement\"\n  :location=\"venue.location\"\n  :kinds=\"['venues.bar', 'maps.area']\"\n  :upload=\"upload\"\n  allow-geo\n>\n  \u003Ctemplate #no-location>\n    \u003CUEmpty title=\"This venue has no location yet\" :actions=\"[{ label: 'Set the location', to: detailsLink }]\" \u002F>\n  \u003C\u002Ftemplate>\n\u003C\u002FMapPlaneEditor>\n",[745,3279,3280,3287,3301,3318,3337,3367,3381,3386,3390,3395,3400,3405],{"__ignoreMap":915},[919,3281,3282,3284],{"class":921,"line":922},[919,3283,1458],{"class":972},[919,3285,3286],{"class":979},"MapPlaneEditor\n",[919,3288,3289,3292,3294,3296,3298],{"class":921,"line":976},[919,3290,3291],{"class":1376},"  v-model",[919,3293,1383],{"class":972},[919,3295,2160],{"class":972},[919,3297,1909],{"class":968},[919,3299,3300],{"class":972},"\"\n",[919,3302,3303,3305,3307,3310,3312,3314,3316],{"class":921,"line":1013},[919,3304,3291],{"class":1376},[919,3306,983],{"class":972},[919,3308,3309],{"class":1376},"placement",[919,3311,1383],{"class":972},[919,3313,2160],{"class":972},[919,3315,3309],{"class":968},[919,3317,3300],{"class":972},[919,3319,3320,3323,3325,3327,3329,3331,3333,3335],{"class":921,"line":1036},[919,3321,3322],{"class":972},"  :",[919,3324,2269],{"class":1376},[919,3326,1383],{"class":972},[919,3328,2160],{"class":972},[919,3330,2695],{"class":968},[919,3332,837],{"class":972},[919,3334,2269],{"class":968},[919,3336,3300],{"class":972},[919,3338,3339,3341,3343,3345,3347,3349,3351,3353,3355,3357,3359,3361,3363,3365],{"class":921,"line":1047},[919,3340,3322],{"class":972},[919,3342,1262],{"class":1376},[919,3344,1383],{"class":972},[919,3346,2160],{"class":972},[919,3348,2338],{"class":968},[919,3350,989],{"class":972},[919,3352,1925],{"class":929},[919,3354,989],{"class":972},[919,3356,997],{"class":972},[919,3358,1000],{"class":972},[919,3360,1934],{"class":929},[919,3362,989],{"class":972},[919,3364,1007],{"class":968},[919,3366,3300],{"class":972},[919,3368,3369,3371,3373,3375,3377,3379],{"class":921,"line":1057},[919,3370,3322],{"class":972},[919,3372,2821],{"class":1376},[919,3374,1383],{"class":972},[919,3376,2160],{"class":972},[919,3378,2821],{"class":968},[919,3380,3300],{"class":972},[919,3382,3383],{"class":921,"line":1074},[919,3384,3385],{"class":1376},"  allow-geo\n",[919,3387,3388],{"class":921,"line":1091},[919,3389,2167],{"class":972},[919,3391,3392],{"class":921,"line":1097},[919,3393,3394],{"class":968},"  \u003Ctemplate #no-location>\n",[919,3396,3397],{"class":921,"line":1103},[919,3398,3399],{"class":968},"    \u003CUEmpty title=\"This venue has no location yet\" :actions=\"[{ label: 'Set the location', to: detailsLink }]\" \u002F>\n",[919,3401,3402],{"class":921,"line":1987},[919,3403,3404],{"class":968},"  \u003C\u002Ftemplate>\n",[919,3406,3407,3409,3411],{"class":921,"line":1993},[919,3408,2234],{"class":972},[919,3410,2769],{"class":979},[919,3412,2167],{"class":972},[1134,3414,3415,3425],{},[1137,3416,3417],{},[1140,3418,3419,3421,3423],{},[1143,3420,2387],{},[1143,3422,1151],{},[1143,3424,2392],{},[1156,3426,3427,3442,3456,3470],{},[1140,3428,3429,3434,3437],{},[1161,3430,3431],{},[745,3432,3433],{},"v-model:placement",[1161,3435,3436],{},"unbound",[1161,3438,2408,3439,3441],{},[745,3440,2111],{},". Bound, the panel offers Place on map, the underlay picker and the metre grid.",[1140,3443,3444,3448,3450],{},[1161,3445,3446],{},[745,3447,2269],{},[1161,3449,2888],{},[1161,3451,3452,3453,3455],{},"The site (",[745,3454,762],{},"). Every map view opens on it and shows it, dashed, while staff place or draw.",[1140,3457,3458,3463,3467],{},[1161,3459,3460],{},[745,3461,3462],{},"allow-geo",[1161,3464,3465],{},[745,3466,2469],{},[1161,3468,3469],{},"An empty layout offers \"Draw on a plane\" or \"Draw on the map\"; a placed plane can be converted to a geo layout (one way, after a confirm).",[1140,3471,3472,3478,3481],{},[1161,3473,3474,3477],{},[745,3475,3476],{},"#no-location"," slot",[1161,3479,3480],{},"an empty state",[1161,3482,3483,3484,3486],{},"Shown instead of the map when a map view has nothing to open on: no ",[745,3485,2269],{},", no placement and no drawn geo features. A map view never opens on a blank world view.",[750,3488,3489,3495,3500],{},[753,3490,3491,3494],{},[756,3492,3493],{},"Placing."," Place on map puts the plane over the tiles, centred on the location and scaled to the site's size. A\nmiddle handle moves it, a handle above it turns it, and a corner handle scales it; the floor plan image turns with\nit. The panel has the same values as numbers (latitude, longitude, turn in degrees, metres per unit) and the plan's\nsize in metres. Remove placement turns the map tiles underlay and the metre grid off; the features stay on the plane.",[753,3496,3497,3499],{},[756,3498,2992],{}," One at a time: none, the map tiles (needs the placement) or the floor plan image, with an opacity\nslider. With the tiles, the editor draws on the map and turns every position back into plane units through the\nplacement before it snaps, so the grid stays the plane's.",[753,3501,3502,3505,3506,3509],{},[756,3503,3504],{},"Metres."," Once placed, the grid can snap to 0.5 m or 1 m on the ground (",[745,3507,3508],{},"gridUnit: 'metres'","), converted to plane\nunits through the scale. A selected line shows its length, an area its width and height, in metres.",[738,3511,3512,3513,3515,3516,3518],{},"Validate a placement in its route with ",[745,3514,2106],{},". The helpers are pure (",[745,3517,846],{},"):",[1134,3520,3521,3530],{},[1137,3522,3523],{},[1140,3524,3525,3528],{},[1143,3526,3527],{},"Helper",[1143,3529,2392],{},[1156,3531,3532,3548,3564,3577,3590,3606],{},[1140,3533,3534,3542],{},[1161,3535,3536,828,3539],{},[745,3537,3538],{},"planeToGeo(position, georeference)",[745,3540,3541],{},"geoToPlane(position, georeference)",[1161,3543,3544,3545,3547],{},"A plane position as ",[745,3546,3109],{}," and back.",[1140,3549,3550,3561],{},[1161,3551,3552,828,3555,828,3558],{},[745,3553,3554],{},"geometryToGeo",[745,3556,3557],{},"geometryToPlane",[745,3559,3560],{},"layoutToGeo(layout, placement)",[1161,3562,3563],{},"The same for a geometry, and a placed plane as a geo layout.",[1140,3565,3566,3574],{},[1161,3567,3568,828,3571],{},[745,3569,3570],{},"initialGeoreference(extent, center, spanMeters)",[745,3572,3573],{},"placeGeoreference(extent, center, rotation, metersPerUnit)",[1161,3575,3576],{},"A placement centred on a point.",[1140,3578,3579,3587],{},[1161,3580,3581,828,3584],{},[745,3582,3583],{},"extentCorners(extent, georeference)",[745,3585,3586],{},"placedCenter(layout, georeference)",[1161,3588,3589],{},"Where the plane's corners and centre lie.",[1140,3591,3592,3603],{},[1161,3593,3594,828,3597,828,3600],{},[745,3595,3596],{},"underlayModeOf(layout, placement)",[745,3598,3599],{},"underlayOpacityOf(placement)",[745,3601,3602],{},"gridOf(placement, planeGrid)",[1161,3604,3605],{},"What is under the plane, how opaque, and the grid in plane units.",[1140,3607,3608,3616],{},[1161,3609,3610,828,3613],{},[745,3611,3612],{},"isPlacedLayout(layout, placement)",[745,3614,3615],{},"canvasBase(layout, placement)",[1161,3617,3618],{},"Whether a layout can be drawn on a geographic map, and whether a viewer is a plane or a map.",[777,3620,3622],{"id":3621},"feature-kinds","Feature kinds",[738,3624,3625,3626,3629,3630,828,3633,3635,3636,3638,3639,983],{},"A feature kind is what can be drawn: its geometry, its properties form, an icon and a colour. Maps registers\n",[745,3627,3628],{},"maps.marker"," (point), ",[745,3631,3632],{},"maps.line",[745,3634,1934],{}," (polygon) and ",[745,3637,2810],{}," (a text). Modules add their own from\n",[745,3640,3641],{},"setup()",[910,3643,3646],{"className":948,"code":3644,"filename":3645,"language":950,"meta":915,"style":915},"import { defineMapFeatureKind, extendMaps } from '@frigear-nu\u002Fmaps\u002Futils'\n\nextendMaps(nuxt, {\n  kinds: [defineMapFeatureKind({\n    id: 'seating.seat',\n    label: { da: 'Sæde', en: 'Seat' },\n    icon: 'i-lucide-armchair',\n    geometry: 'Point',\n    color: 'success',\n    properties: resolver.resolve('.\u002Fruntime\u002Fmaps\u002Fseat'),\n  })],\n})\n","src\u002Fmodule.ts",[745,3647,3648,3672,3676,3687,3703,3719,3756,3772,3787,3802,3830,3840],{"__ignoreMap":915},[919,3649,3650,3652,3654,3657,3659,3662,3664,3666,3668,3670],{"class":921,"line":922},[919,3651,1312],{"class":957},[919,3653,1021],{"class":972},[919,3655,3656],{"class":968}," defineMapFeatureKind",[919,3658,997],{"class":972},[919,3660,3661],{"class":968}," extendMaps",[919,3663,1325],{"class":972},[919,3665,1328],{"class":957},[919,3667,1000],{"class":972},[919,3669,846],{"class":929},[919,3671,1336],{"class":972},[919,3673,3674],{"class":921,"line":976},[919,3675,1369],{"emptyLinePlaceholder":1368},[919,3677,3678,3680,3683,3685],{"class":921,"line":1013},[919,3679,1279],{"class":964},[919,3681,3682],{"class":968},"(nuxt",[919,3684,997],{"class":972},[919,3686,1044],{"class":972},[919,3688,3689,3692,3694,3696,3699,3701],{"class":921,"line":1036},[919,3690,3691],{"class":979},"  kinds",[919,3693,983],{"class":972},[919,3695,986],{"class":968},[919,3697,3698],{"class":964},"defineMapFeatureKind",[919,3700,969],{"class":968},[919,3702,973],{"class":972},[919,3704,3705,3708,3710,3712,3715,3717],{"class":921,"line":1047},[919,3706,3707],{"class":979},"    id",[919,3709,983],{"class":972},[919,3711,1000],{"class":972},[919,3713,3714],{"class":929},"seating.seat",[919,3716,989],{"class":972},[919,3718,1010],{"class":972},[919,3720,3721,3724,3726,3728,3731,3733,3735,3738,3740,3742,3745,3747,3749,3752,3754],{"class":921,"line":1057},[919,3722,3723],{"class":979},"    label",[919,3725,983],{"class":972},[919,3727,1021],{"class":972},[919,3729,3730],{"class":979}," da",[919,3732,983],{"class":972},[919,3734,1000],{"class":972},[919,3736,3737],{"class":929},"Sæde",[919,3739,989],{"class":972},[919,3741,997],{"class":972},[919,3743,3744],{"class":979}," en",[919,3746,983],{"class":972},[919,3748,1000],{"class":972},[919,3750,3751],{"class":929},"Seat",[919,3753,989],{"class":972},[919,3755,1033],{"class":972},[919,3757,3758,3761,3763,3765,3768,3770],{"class":921,"line":1074},[919,3759,3760],{"class":979},"    icon",[919,3762,983],{"class":972},[919,3764,1000],{"class":972},[919,3766,3767],{"class":929},"i-lucide-armchair",[919,3769,989],{"class":972},[919,3771,1010],{"class":972},[919,3773,3774,3777,3779,3781,3783,3785],{"class":921,"line":1091},[919,3775,3776],{"class":979},"    geometry",[919,3778,983],{"class":972},[919,3780,1000],{"class":972},[919,3782,2056],{"class":929},[919,3784,989],{"class":972},[919,3786,1010],{"class":972},[919,3788,3789,3792,3794,3796,3798,3800],{"class":921,"line":1097},[919,3790,3791],{"class":979},"    color",[919,3793,983],{"class":972},[919,3795,1000],{"class":972},[919,3797,1113],{"class":929},[919,3799,989],{"class":972},[919,3801,1010],{"class":972},[919,3803,3804,3807,3809,3812,3814,3817,3819,3821,3824,3826,3828],{"class":921,"line":1103},[919,3805,3806],{"class":979},"    properties",[919,3808,983],{"class":972},[919,3810,3811],{"class":968}," resolver",[919,3813,837],{"class":972},[919,3815,3816],{"class":964},"resolve",[919,3818,969],{"class":968},[919,3820,989],{"class":972},[919,3822,3823],{"class":929},".\u002Fruntime\u002Fmaps\u002Fseat",[919,3825,989],{"class":972},[919,3827,1450],{"class":968},[919,3829,1010],{"class":972},[919,3831,3832,3835,3838],{"class":921,"line":1987},[919,3833,3834],{"class":972},"  }",[919,3836,3837],{"class":968},")]",[919,3839,1010],{"class":972},[919,3841,3842,3844],{"class":921,"line":1993},[919,3843,1106],{"class":972},[919,3845,1109],{"class":968},[910,3847,3850],{"className":948,"code":3848,"filename":3849,"language":950,"meta":915,"style":915},"import { z } from 'zod'\n\nexport default z.object({\n  row: z.string().max(8).meta({ label: { da: 'Række', en: 'Row' } }),\n  number: z.number().int().min(1).meta({ label: { da: 'Nummer', en: 'Number' } }),\n})\n","src\u002Fruntime\u002Fmaps\u002Fseat.ts",[745,3851,3852,3870,3874,3890,3966,4046],{"__ignoreMap":915},[919,3853,3854,3856,3858,3860,3862,3864,3866,3868],{"class":921,"line":922},[919,3855,1312],{"class":957},[919,3857,1021],{"class":972},[919,3859,1702],{"class":968},[919,3861,1325],{"class":972},[919,3863,1328],{"class":957},[919,3865,1000],{"class":972},[919,3867,1711],{"class":929},[919,3869,1336],{"class":972},[919,3871,3872],{"class":921,"line":976},[919,3873,1369],{"emptyLinePlaceholder":1368},[919,3875,3876,3878,3880,3882,3884,3886,3888],{"class":921,"line":1013},[919,3877,958],{"class":957},[919,3879,961],{"class":957},[919,3881,1702],{"class":968},[919,3883,837],{"class":972},[919,3885,1842],{"class":964},[919,3887,969],{"class":968},[919,3889,973],{"class":972},[919,3891,3892,3895,3897,3899,3901,3903,3905,3907,3910,3912,3916,3918,3920,3923,3925,3927,3930,3932,3934,3936,3938,3940,3943,3945,3947,3949,3951,3953,3956,3958,3960,3962,3964],{"class":921,"line":1036},[919,3893,3894],{"class":979},"  row",[919,3896,983],{"class":972},[919,3898,1702],{"class":968},[919,3900,837],{"class":972},[919,3902,1170],{"class":964},[919,3904,1410],{"class":968},[919,3906,837],{"class":972},[919,3908,3909],{"class":964},"max",[919,3911,969],{"class":968},[919,3913,3915],{"class":3914},"sbssI","8",[919,3917,1450],{"class":968},[919,3919,837],{"class":972},[919,3921,3922],{"class":964},"meta",[919,3924,969],{"class":968},[919,3926,1433],{"class":972},[919,3928,3929],{"class":979}," label",[919,3931,983],{"class":972},[919,3933,1021],{"class":972},[919,3935,3730],{"class":979},[919,3937,983],{"class":972},[919,3939,1000],{"class":972},[919,3941,3942],{"class":929},"Række",[919,3944,989],{"class":972},[919,3946,997],{"class":972},[919,3948,3744],{"class":979},[919,3950,983],{"class":972},[919,3952,1000],{"class":972},[919,3954,3955],{"class":929},"Row",[919,3957,989],{"class":972},[919,3959,1325],{"class":972},[919,3961,1325],{"class":972},[919,3963,1450],{"class":968},[919,3965,1010],{"class":972},[919,3967,3968,3971,3973,3975,3977,3979,3981,3983,3986,3988,3990,3993,3995,3998,4000,4002,4004,4006,4008,4010,4012,4014,4016,4018,4020,4023,4025,4027,4029,4031,4033,4036,4038,4040,4042,4044],{"class":921,"line":1047},[919,3969,3970],{"class":979},"  number",[919,3972,983],{"class":972},[919,3974,1702],{"class":968},[919,3976,837],{"class":972},[919,3978,1205],{"class":964},[919,3980,1410],{"class":968},[919,3982,837],{"class":972},[919,3984,3985],{"class":964},"int",[919,3987,1410],{"class":968},[919,3989,837],{"class":972},[919,3991,3992],{"class":964},"min",[919,3994,969],{"class":968},[919,3996,3997],{"class":3914},"1",[919,3999,1450],{"class":968},[919,4001,837],{"class":972},[919,4003,3922],{"class":964},[919,4005,969],{"class":968},[919,4007,1433],{"class":972},[919,4009,3929],{"class":979},[919,4011,983],{"class":972},[919,4013,1021],{"class":972},[919,4015,3730],{"class":979},[919,4017,983],{"class":972},[919,4019,1000],{"class":972},[919,4021,4022],{"class":929},"Nummer",[919,4024,989],{"class":972},[919,4026,997],{"class":972},[919,4028,3744],{"class":979},[919,4030,983],{"class":972},[919,4032,1000],{"class":972},[919,4034,4035],{"class":929},"Number",[919,4037,989],{"class":972},[919,4039,1325],{"class":972},[919,4041,1325],{"class":972},[919,4043,1450],{"class":968},[919,4045,1010],{"class":972},[919,4047,4048,4050],{"class":921,"line":1057},[919,4049,1106],{"class":972},[919,4051,1109],{"class":968},[750,4053,4054,4069,4085],{},[753,4055,4056,4059,4060,4062,4063,4065,4066,837],{},[756,4057,4058],{},"The properties file"," default-exports a zod object. It is bundled into the browser (the editor's form) and into\nthe server (",[745,4061,865],{},"), so it imports only ",[745,4064,1711],{}," and ",[745,4067,4068],{},"@frigear-nu\u002Fmaps\u002Fproperties",[753,4070,4071,4076,4077,4080,4081,4084],{},[756,4072,4073],{},[745,4074,4075],{},"component"," (optional) is a Vue component shown in the viewers' details of a feature of the kind, with ",[745,4078,4079],{},"feature","\n(the ",[745,4082,4083],{},"MapSelection",") as its prop.",[753,4086,4087,4090,4091,4094],{},[756,4088,4089],{},"Ids"," are prefixed with the module. A later registration with the same id replaces an earlier one, so a host can\noverride a module's kind from its ",[745,4092,4093],{},"maps.kinds"," option. An invalid registration fails the build.",[777,4096,4098],{"id":4097},"live-layers","Live layers",[738,4100,4101],{},"A live layer is drawn over a viewer from a module's own route, refreshed while the viewer is open. Nothing is stored.",[910,4103,4105],{"className":948,"code":4104,"filename":3645,"language":950,"meta":915,"style":915},"extendMaps(nuxt, {\n  layers: [defineMapLayer({\n    id: 'shifts.on-duty',\n    label: { da: 'På vagt nu', en: 'On duty now' },\n    appliesTo: 'operations.venue-layout',\n    endpoint: '\u002Fapi\u002Fshifts\u002Foperations\u002F:operationId\u002Fon-duty',\n    refreshInterval: 120,\n    permission: 'shifts:read',\n  })],\n})\n",[745,4106,4107,4117,4133,4148,4182,4198,4214,4226,4242,4250],{"__ignoreMap":915},[919,4108,4109,4111,4113,4115],{"class":921,"line":922},[919,4110,1279],{"class":964},[919,4112,3682],{"class":968},[919,4114,997],{"class":972},[919,4116,1044],{"class":972},[919,4118,4119,4122,4124,4126,4129,4131],{"class":921,"line":976},[919,4120,4121],{"class":979},"  layers",[919,4123,983],{"class":972},[919,4125,986],{"class":968},[919,4127,4128],{"class":964},"defineMapLayer",[919,4130,969],{"class":968},[919,4132,973],{"class":972},[919,4134,4135,4137,4139,4141,4144,4146],{"class":921,"line":1013},[919,4136,3707],{"class":979},[919,4138,983],{"class":972},[919,4140,1000],{"class":972},[919,4142,4143],{"class":929},"shifts.on-duty",[919,4145,989],{"class":972},[919,4147,1010],{"class":972},[919,4149,4150,4152,4154,4156,4158,4160,4162,4165,4167,4169,4171,4173,4175,4178,4180],{"class":921,"line":1036},[919,4151,3723],{"class":979},[919,4153,983],{"class":972},[919,4155,1021],{"class":972},[919,4157,3730],{"class":979},[919,4159,983],{"class":972},[919,4161,1000],{"class":972},[919,4163,4164],{"class":929},"På vagt nu",[919,4166,989],{"class":972},[919,4168,997],{"class":972},[919,4170,3744],{"class":979},[919,4172,983],{"class":972},[919,4174,1000],{"class":972},[919,4176,4177],{"class":929},"On duty now",[919,4179,989],{"class":972},[919,4181,1033],{"class":972},[919,4183,4184,4187,4189,4191,4194,4196],{"class":921,"line":1047},[919,4185,4186],{"class":979},"    appliesTo",[919,4188,983],{"class":972},[919,4190,1000],{"class":972},[919,4192,4193],{"class":929},"operations.venue-layout",[919,4195,989],{"class":972},[919,4197,1010],{"class":972},[919,4199,4200,4203,4205,4207,4210,4212],{"class":921,"line":1057},[919,4201,4202],{"class":979},"    endpoint",[919,4204,983],{"class":972},[919,4206,1000],{"class":972},[919,4208,4209],{"class":929},"\u002Fapi\u002Fshifts\u002Foperations\u002F:operationId\u002Fon-duty",[919,4211,989],{"class":972},[919,4213,1010],{"class":972},[919,4215,4216,4219,4221,4224],{"class":921,"line":1074},[919,4217,4218],{"class":979},"    refreshInterval",[919,4220,983],{"class":972},[919,4222,4223],{"class":3914}," 120",[919,4225,1010],{"class":972},[919,4227,4228,4231,4233,4235,4238,4240],{"class":921,"line":1091},[919,4229,4230],{"class":979},"    permission",[919,4232,983],{"class":972},[919,4234,1000],{"class":972},[919,4236,4237],{"class":929},"shifts:read",[919,4239,989],{"class":972},[919,4241,1010],{"class":972},[919,4243,4244,4246,4248],{"class":921,"line":1097},[919,4245,3834],{"class":972},[919,4247,3837],{"class":968},[919,4249,1010],{"class":972},[919,4251,4252,4254],{"class":921,"line":1103},[919,4253,1106],{"class":972},[919,4255,1109],{"class":968},[1134,4257,4258,4268],{},[1137,4259,4260],{},[1140,4261,4262,4265],{},[1143,4263,4264],{},"Field",[1143,4266,4267],{},"What it is",[1156,4269,4270,4281,4298,4316,4326,4336],{},[1140,4271,4272,4278],{},[1161,4273,4274,828,4276],{},[745,4275,2704],{},[745,4277,2277],{},[1161,4279,4280],{},"The layer, shown in the viewer's toggles.",[1140,4282,4283,4288],{},[1161,4284,4285],{},[745,4286,4287],{},"appliesTo",[1161,4289,4290,4291,4294,4295,4297],{},"One or more surface names. A viewer with that ",[745,4292,4293],{},"surface"," draws the layer. The module that shows the viewer names its surface (",[745,4296,4193],{},").",[1140,4299,4300,4305],{},[1161,4301,4302],{},[745,4303,4304],{},"endpoint",[1161,4306,4307,4308,4311,4312,4315],{},"The route that returns the GeoJSON, with ",[745,4309,4310],{},":params",". The viewer fills them from its ",[745,4313,4314],{},"params"," prop and skips the layer when one is missing.",[1140,4317,4318,4323],{},[1161,4319,4320],{},[745,4321,4322],{},"refreshInterval",[1161,4324,4325],{},"Seconds between fetches, at least 5.",[1140,4327,4328,4333],{},[1161,4329,4330],{},[745,4331,4332],{},"permission",[1161,4334,4335],{},"The permission the route checks. The route enforces it; the viewer hides a layer whose route answers 401 or 403.",[1140,4337,4338,4346],{},[1161,4339,4340,828,4343],{},[745,4341,4342],{},"visible",[745,4344,4345],{},"color",[1161,4347,4348,4349,4351,4352,4355,4356,4359],{},"Shown when the viewer opens (default ",[745,4350,881],{},"); the colour of its markers (default ",[745,4353,4354],{},"info","). A layer with ",[745,4357,4358],{},"visible: false"," starts hidden in the viewers and is fetched only once someone shows it.",[738,4361,4362,4363,4366,4367,4370,4371,4374,4375,4378],{},"The route returns a ",[745,4364,4365],{},"MapLiveFeatureCollection",", in the units of the surface (plane units on a layout). A feature's\n",[745,4368,4369],{},"properties.label"," (or ",[745,4372,4373],{},"name",") shows in its popup, and a numeric ",[745,4376,4377],{},"properties.count"," on its marker. Features with a\ngeometry that is not valid are dropped.",[777,4380,4382],{"id":4381},"viewers","Viewers",[910,4384,4386],{"className":2137,"code":4385,"language":2140,"meta":915,"style":915},"\u003C!-- web -->\n\u003CMapViewer :layout=\"operation.venueLayout\" surface=\"operations.venue-layout\" :params=\"{ operationId: operation.id }\" \u002F>\n\n\u003C!-- a mobile screen -->\n\u003CMapMobileViewer :layout=\"operation.venueLayout\" surface=\"operations.venue-layout\" :params=\"{ operationId: operation.id }\" \u002F>\n\n\u003C!-- the site map, with the venue layout over it -->\n\u003CMapViewer\n  :locations=\"[{ id: operation.id, location: operation.location }]\"\n  :overlays=\"[{ id: 'venue', layout, placement, label: 'Venue layout', surface: 'operations.venue-layout', params: { operationId: operation.id } }]\"\n\u002F>\n",[745,4387,4388,4393,4458,4462,4467,4526,4530,4535,4542,4587,4673],{"__ignoreMap":915},[919,4389,4390],{"class":921,"line":922},[919,4391,4392],{"class":1983},"\u003C!-- web -->\n",[919,4394,4395,4397,4400,4402,4404,4406,4408,4411,4413,4416,4418,4421,4423,4425,4427,4429,4431,4433,4435,4437,4439,4442,4444,4447,4449,4452,4454,4456],{"class":921,"line":976},[919,4396,1458],{"class":972},[919,4398,4399],{"class":979},"MapViewer",[919,4401,2274],{"class":972},[919,4403,1909],{"class":1376},[919,4405,1383],{"class":972},[919,4407,2160],{"class":972},[919,4409,4410],{"class":968},"operation",[919,4412,837],{"class":972},[919,4414,4415],{"class":968},"venueLayout",[919,4417,2160],{"class":972},[919,4419,4420],{"class":1376}," surface",[919,4422,1383],{"class":972},[919,4424,2160],{"class":972},[919,4426,4193],{"class":929},[919,4428,2160],{"class":972},[919,4430,2274],{"class":972},[919,4432,4314],{"class":1376},[919,4434,1383],{"class":972},[919,4436,2160],{"class":972},[919,4438,1433],{"class":972},[919,4440,4441],{"class":979}," operationId",[919,4443,983],{"class":972},[919,4445,4446],{"class":968}," operation",[919,4448,837],{"class":972},[919,4450,4451],{"class":968},"id ",[919,4453,1106],{"class":972},[919,4455,2160],{"class":972},[919,4457,2361],{"class":972},[919,4459,4460],{"class":921,"line":1013},[919,4461,1369],{"emptyLinePlaceholder":1368},[919,4463,4464],{"class":921,"line":1036},[919,4465,4466],{"class":1983},"\u003C!-- a mobile screen -->\n",[919,4468,4469,4471,4474,4476,4478,4480,4482,4484,4486,4488,4490,4492,4494,4496,4498,4500,4502,4504,4506,4508,4510,4512,4514,4516,4518,4520,4522,4524],{"class":921,"line":1047},[919,4470,1458],{"class":972},[919,4472,4473],{"class":979},"MapMobileViewer",[919,4475,2274],{"class":972},[919,4477,1909],{"class":1376},[919,4479,1383],{"class":972},[919,4481,2160],{"class":972},[919,4483,4410],{"class":968},[919,4485,837],{"class":972},[919,4487,4415],{"class":968},[919,4489,2160],{"class":972},[919,4491,4420],{"class":1376},[919,4493,1383],{"class":972},[919,4495,2160],{"class":972},[919,4497,4193],{"class":929},[919,4499,2160],{"class":972},[919,4501,2274],{"class":972},[919,4503,4314],{"class":1376},[919,4505,1383],{"class":972},[919,4507,2160],{"class":972},[919,4509,1433],{"class":972},[919,4511,4441],{"class":979},[919,4513,983],{"class":972},[919,4515,4446],{"class":968},[919,4517,837],{"class":972},[919,4519,4451],{"class":968},[919,4521,1106],{"class":972},[919,4523,2160],{"class":972},[919,4525,2361],{"class":972},[919,4527,4528],{"class":921,"line":1057},[919,4529,1369],{"emptyLinePlaceholder":1368},[919,4531,4532],{"class":921,"line":1074},[919,4533,4534],{"class":1983},"\u003C!-- the site map, with the venue layout over it -->\n",[919,4536,4537,4539],{"class":921,"line":1091},[919,4538,1458],{"class":972},[919,4540,4541],{"class":979},"MapViewer\n",[919,4543,4544,4546,4549,4551,4553,4555,4557,4560,4562,4564,4566,4568,4570,4572,4574,4576,4578,4581,4583,4585],{"class":921,"line":1097},[919,4545,3322],{"class":972},[919,4547,4548],{"class":1376},"locations",[919,4550,1383],{"class":972},[919,4552,2160],{"class":972},[919,4554,2338],{"class":968},[919,4556,1433],{"class":972},[919,4558,4559],{"class":979}," id",[919,4561,983],{"class":972},[919,4563,4446],{"class":968},[919,4565,837],{"class":972},[919,4567,2704],{"class":968},[919,4569,997],{"class":972},[919,4571,1849],{"class":979},[919,4573,983],{"class":972},[919,4575,4446],{"class":968},[919,4577,837],{"class":972},[919,4579,4580],{"class":968},"location ",[919,4582,1106],{"class":972},[919,4584,1007],{"class":968},[919,4586,3300],{"class":972},[919,4588,4589,4591,4594,4596,4598,4600,4602,4604,4606,4608,4610,4612,4614,4616,4618,4621,4623,4625,4627,4629,4632,4634,4636,4638,4640,4642,4644,4646,4648,4651,4653,4655,4657,4659,4661,4663,4665,4667,4669,4671],{"class":921,"line":1103},[919,4590,3322],{"class":972},[919,4592,4593],{"class":1376},"overlays",[919,4595,1383],{"class":972},[919,4597,2160],{"class":972},[919,4599,2338],{"class":968},[919,4601,1433],{"class":972},[919,4603,4559],{"class":979},[919,4605,983],{"class":972},[919,4607,1000],{"class":972},[919,4609,2695],{"class":929},[919,4611,989],{"class":972},[919,4613,997],{"class":972},[919,4615,1865],{"class":968},[919,4617,997],{"class":972},[919,4619,4620],{"class":968}," placement",[919,4622,997],{"class":972},[919,4624,3929],{"class":979},[919,4626,983],{"class":972},[919,4628,1000],{"class":972},[919,4630,4631],{"class":929},"Venue layout",[919,4633,989],{"class":972},[919,4635,997],{"class":972},[919,4637,4420],{"class":979},[919,4639,983],{"class":972},[919,4641,1000],{"class":972},[919,4643,4193],{"class":929},[919,4645,989],{"class":972},[919,4647,997],{"class":972},[919,4649,4650],{"class":979}," params",[919,4652,983],{"class":972},[919,4654,1021],{"class":972},[919,4656,4441],{"class":979},[919,4658,983],{"class":972},[919,4660,4446],{"class":968},[919,4662,837],{"class":972},[919,4664,4451],{"class":968},[919,4666,1106],{"class":972},[919,4668,1325],{"class":972},[919,4670,1007],{"class":968},[919,4672,3300],{"class":972},[919,4674,4675],{"class":921,"line":1987},[919,4676,4677],{"class":968},"\u002F>\n",[1134,4679,4680,4688],{},[1137,4681,4682],{},[1140,4683,4684,4686],{},[1143,4685,2387],{},[1143,4687,2392],{},[1156,4689,4690,4703,4719,4731,4744,4758,4768],{},[1140,4691,4692,4696],{},[1161,4693,4694],{},[745,4695,1909],{},[1161,4697,4698,4699,4702],{},"A layout to show: a plane, or a ",[745,4700,4701],{},"geo"," layout on the map.",[1140,4704,4705,4709],{},[1161,4706,4707],{},[745,4708,3309],{},[1161,4710,4711,4712,4714,4715,4718],{},"The plane layout's ",[745,4713,2111],{},": its underlay and opacity, and with ",[745,4716,4717],{},"underlayMode: 'tiles'"," the plane is shown on the map tiles.",[1140,4720,4721,4725],{},[1161,4722,4723],{},[745,4724,4548],{},[1161,4726,4727,4728,837],{},"Geographic locations to show on a map: ",[745,4729,4730],{},"{ id, location, label?, color? }[]",[1140,4732,4733,4737],{},[1161,4734,4735],{},[745,4736,4593],{},[1161,4738,4739,4740,4743],{},"Layouts drawn over a geographic map: ",[745,4741,4742],{},"{ id, layout, placement?, label?, opacity?, image?, surface?, params? }[]",". A placed plane is drawn through its placement (with its floor plan image when its underlay is the image), a geo layout as it is, and a plane without a placement is skipped. Each gets a toggle.",[1140,4745,4746,4755],{},[1161,4747,4748,828,4750,828,4752],{},[745,4749,4293],{},[745,4751,4314],{},[745,4753,4754],{},"liveLayers",[1161,4756,4757],{},"The live layers to draw: those of the surface, with these endpoint params, narrowed to these ids.",[1140,4759,4760,4765],{},[1161,4761,4762],{},[745,4763,4764],{},"focus",[1161,4766,4767],{},"A feature or location id to focus when the map opens.",[1140,4769,4770,4774],{},[1161,4771,4772],{},[745,4773,2449],{},[1161,4775,4776,4777,4779],{},"The map's height. ",[745,4778,817],{}," fills the page without it.",[738,4781,4782,4783,4785,4786,4789,4790,4792,4793,4795,4796,4798],{},"The map refits when what it shows moves elsewhere (another layout's extent, other locations, overlays), and switches\nbetween a plane and a geographic map when ",[745,4784,1909],{}," or its placement changes that (",[745,4787,4788],{},"canvasBase","). Without a ",[745,4791,4293],{},"\nof its own, a geographic viewer draws the live layers of the first overlay with a ",[745,4794,4293],{},", placed through that\noverlay's placement: the site map shows who is on duty on the venue layout to readers the layer's route allows. A live layer's answers for older ",[745,4797,4314],{}," are dropped once the\nparams change, so a slow answer never replaces the current one.",[738,4800,4801,4802,4805,4806,759,4808,4811,4812,4814,4815,4817,4818,4820,4821,4823],{},"Both emit ",[745,4803,4804],{},"select"," with a ",[745,4807,4083],{},[745,4809,4810],{},"{ source, id, label, kind?, layer?, overlay?, properties }",") or ",[745,4813,2405],{},". ",[745,4816,811],{},"\nshows the selection under the map, with toggles for the live layers. ",[745,4819,817],{}," follows the\n",[893,4822,438],{"href":439}," screens. The map fills the space the page gives it, the layer and recentre buttons\nfloat over it as large touch targets, and the selection opens in a bottom sheet above the tab bar. Leaflet loads in the\nbrowser only; the server renders the frame and a skeleton.",[777,4825,842],{"id":4826},"geometry-helpers",[738,4828,4829,4830,4832],{},"From ",[745,4831,846],{},", pure and usable on the server, in the app and in tests:",[1134,4834,4835,4843],{},[1137,4836,4837],{},[1140,4838,4839,4841],{},[1143,4840,3527],{},[1143,4842,2392],{},[1156,4844,4845,4858,4868,4881,4900,4910,4923,4933,4943,4957],{},[1140,4846,4847,4852],{},[1161,4848,4849],{},[745,4850,4851],{},"haversineMeters(a, b)",[1161,4853,4854,4855,4857],{},"The great-circle distance between two ",[745,4856,827],{},"s.",[1140,4859,4860,4865],{},[1161,4861,4862],{},[745,4863,4864],{},"isWithinRadius(point, center, meters)",[1161,4866,4867],{},"Whether a point is within a radius.",[1140,4869,4870,4878],{},[1161,4871,4872,828,4875],{},[745,4873,4874],{},"isInsideArea(point, corners)",[745,4876,4877],{},"isInLocation(point, location, tolerance?)",[1161,4879,4880],{},"Whether a point is in an area, or in a location of any kind.",[1140,4882,4883,4894],{},[1161,4884,4885,828,4888,828,4891],{},[745,4886,4887],{},"areaCentroid(corners)",[745,4889,4890],{},"geoBounds(points)",[745,4892,4893],{},"locationBounds(location)",[1161,4895,4896,4897,837],{},"The centroid of an area, and bounds as ",[745,4898,4899],{},"[[south, west], [north, east]]",[1140,4901,4902,4907],{},[1161,4903,4904],{},[745,4905,4906],{},"geometryAnchor(geometry)",[1161,4908,4909],{},"The point to draw a plane feature at: a point, a line's middle, a polygon's centroid.",[1140,4911,4912,4920],{},[1161,4913,4914,828,4917],{},[745,4915,4916],{},"geometryBounds(geometries)",[745,4918,4919],{},"planeExtentOf(layout)",[1161,4921,4922],{},"Bounds in plane units, and a layout's extent.",[1140,4924,4925,4930],{},[1161,4926,4927],{},[745,4928,4929],{},"withPlaneUnderlay(layout, underlay)",[1161,4931,4932],{},"The layout with a new underlay, its extent set to the image's size.",[1140,4934,4935,4940],{},[1161,4936,4937],{},[745,4938,4939],{},"isSameAppPath(url)",[1161,4941,4942],{},"Whether a URL is a path on this app, the only underlay URL a layout may hold.",[1140,4944,4945,4950],{},[1161,4946,4947],{},[745,4948,4949],{},"newFeatureId(prefix?)",[1161,4951,4952,4953,4956],{},"A new feature id (",[745,4954,4955],{},"ftr_"," and 20 hex digits).",[1140,4958,4959,4967],{},[1161,4960,4961,828,4964],{},[745,4962,4963],{},"validateGeometry(value, allowed?)",[745,4965,4966],{},"snapGeometry(geometry, size)",[1161,4968,4969],{},"Checks and snaps a plane geometry.",[777,4971,493],{"id":4972},"translations",[738,4974,4975,4976,4979,4980,4982],{},"Override any string in your app's ",[745,4977,4978],{},"i18n\u002Flocales\u002F\u003Ccode>.json",", under the ",[745,4981,1131],{}," key. Maps ships Danish and English.",[777,4984,4986],{"id":4985},"next-steps","Next steps",[750,4988,4989,4994],{},[753,4990,4991,4993],{},[893,4992,524],{"href":525}," – the location and venue layout of an operation, edited with these\ncomponents.",[753,4995,4996,4998],{},[893,4997,532],{"href":533}," – the on-duty live layer and shift locations on the venue layout.",[5000,5001,5002],"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 .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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 .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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":915,"searchDepth":976,"depth":976,"links":5004},[5005,5006,5011,5012,5013,5014,5015,5016,5017,5018,5019,5020,5021],{"id":779,"depth":976,"text":780},{"id":899,"depth":976,"text":900,"children":5007},[5008,5009],{"id":907,"depth":1013,"text":908},{"id":941,"depth":1013,"text":5010},"Add it to nuxt.config.ts",{"id":1124,"depth":976,"text":1125},{"id":1297,"depth":976,"text":1298},{"id":2133,"depth":976,"text":2134},{"id":2481,"depth":976,"text":2482},{"id":3064,"depth":976,"text":2116},{"id":3621,"depth":976,"text":3622},{"id":4097,"depth":976,"text":4098},{"id":4381,"depth":976,"text":4382},{"id":4826,"depth":976,"text":842},{"id":4972,"depth":976,"text":493},{"id":4985,"depth":976,"text":4986},"A building block for modules that need a place or a layout, such as a location picker, a plane layout editor, web and mobile viewers with live layers, and the schemas and helpers to store the values.","md",null,{},{"title":470,"description":5022},"aTZqH5LasX4qwkBB_5i1RQ9g9rg76XYVJJM8PgnyD-g",[5029,5031],{"title":466,"path":467,"stem":468,"description":5030,"children":-1},"Ship the whole Nuxt app, server modules included, inside the desktop app. It runs offline on a sqlite database in the user's app-data folder.",{"title":177,"path":480,"stem":481,"description":5032,"children":-1},"The shared helpers every Frigear module is built on, so modules register pages, routes and tables the same way.",1796157345662]