[{"data":1,"prerenderedAt":5335},["ShallowReactive",2],{"navigation_docs":3,"-modules-communication-campaigns":732,"-modules-communication-campaigns-surround":5330},[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":389,"body":734,"description":5324,"extension":4238,"links":5325,"meta":5326,"navigation":5327,"path":390,"seo":5328,"stem":391,"__hash__":5329},"docs\u002F3.modules\u002F6.communication\u002F6.campaigns.md",{"type":735,"value":736,"toc":5293},"minimark",[737,741,754,765,770,933,937,985,989,1274,1286,1290,1296,1686,1690,1695,1790,1793,1797,1878,1881,1888,1937,1991,1995,2004,2006,2024,2123,2290,2293,2314,2376,2386,2389,2406,2410,2417,3177,3335,3339,3349,3688,3691,3740,3757,3760,3821,3824,3827,3840,3844,3910,3913,3919,3975,4063,4066,4070,4167,4225,4231,4234,4251,4266,4270,4279,4858,4864,4867,4873,5237,5240,5250,5254,5289],[738,739,740],"p",{},"Campaigns gives your app lists that people sign up to with an email address, a phone number or both: the readers of your news,\nthe volunteers of an event, the members of a club. They do not need an account. A new subscriber confirms from a link in an email or SMS (double opt-in),\nand the subscription stores the proof of their consent. Every message carries a signed link to unsubscribe again.\nSigned-in users manage their subscriptions on their account page, and staff manage the lists in the admin area. A list\ncan also be offered on the registration form, or take every new account on its own.",[738,742,743,744,748,749,753],{},"Staff send ",[745,746,747],"strong",{},"campaigns",": to the subscribers of one or more lists (email and SMS), or to users picked by role, team,\noperation or by name (email, SMS and push). Campaigns go out in batches from a scheduled\ntask, now or at a set time. Links in them are counted per recipient through\n",[750,751,752],"a",{"href":386},"Short Links",", opens optionally, and every email carries one-click unsubscribe\nheaders.",[738,755,756,757,761,762,764],{},"The package is ",[758,759,760],"code",{},"@frigear-nu\u002Fcampaigns",". Every message goes through ",[750,763,356],{"href":357},", on the\nemail, SMS and push drivers your app sets. Campaigns ships no SMS provider of its own.",[766,767,769],"h2",{"id":768},"what-you-get","What you get",[771,772,773,788,806,825,838,878,893,905,917,923],"ul",{},[774,775,776,779,780,783,784,787],"li",{},[745,777,778],{},"Signup:"," the global ",[758,781,782],{},"\u003CListSignup list=\"…\">"," component, also usable as ",[758,785,786],{},"::list-signup{list=\"…\"}"," in\nNuxt Content, and a plain HTML form for other sites, shown on each list's staff page.",[774,789,790,793,794,797,798,800,801,805],{},[745,791,792],{},"Registration form:"," the lists offered at sign-up as unticked boxes, in Auth's ",[758,795,796],{},"auth.register"," widget area (with\n",[750,799,434],{"href":435},"). See ",[750,802,804],{"href":803},"#lists-and-accounts","Lists and accounts",".",[774,807,808,811],{},[745,809,810],{},"Public pages:",[771,812,813,819],{},[774,814,815,818],{},[758,816,817],{},"\u002Fsubscriptions\u002Fconfirm",", where the link in the confirmation message leads. It confirms on a button, never when the\npage opens, so link scanners and mail previews confirm nothing. After a plain HTML form signup it says \"check your\ninbox\".",[774,820,821,824],{},[758,822,823],{},"\u002Fsubscriptions\u002Funsubscribe",", where the unsubscribe link leads. It also acts on a button only.",[774,826,827,830,831,834,835,837],{},[745,828,829],{},"Account page:"," ",[758,832,833],{},"\u002Faccount\u002Fsubscriptions",", the signed-in user's subscriptions, with an item in the account menu when\n",[750,836,430],{"href":431}," is installed.",[774,839,840,843,844,846,847],{},[745,841,842],{},"Admin area"," (needs ",[750,845,225],{"href":427},"):\n",[771,848,849,863,869,875],{},[774,850,851,854,855,858,859,805],{},[758,852,853],{},"\u002Fadmin\u002Fcampaigns",", the campaigns, and ",[758,856,857],{},"\u002Fadmin\u002Fcampaigns\u002F:id",", one campaign. See ",[750,860,862],{"href":861},"#staff-screens","Staff screens",[774,864,865,868],{},[758,866,867],{},"\u002Fadmin\u002Fcampaigns\u002Flists",", the lists with their subscriber counts.",[774,870,871,874],{},[758,872,873],{},"\u002Fadmin\u002Fcampaigns\u002Flists\u002F:id",", one list: its settings (with the sign-up mode and, with Forms, the form that signs\npeople up), its subscribers, \"Add all current accounts\" on a list that adds new accounts, and the signup code to\ncopy.",[774,876,877],{},"A \"Campaigns\" item in the Manage group of the admin sidebar, when Menu is installed. Tabs under the heading switch\nbetween campaigns and lists.",[774,879,880,830,883,886,887,890,891,837],{},[745,881,882],{},"Email templates",[758,884,885],{},"campaigns-confirm"," and ",[758,888,889],{},"campaigns-message",", when\n",[750,892,360],{"href":361},[774,894,895,830,898,901,902,904],{},[745,896,897],{},"Notification topic",[758,899,900],{},"campaigns.message"," on the account's notifications page (with\n",[750,903,229],{"href":230},"): email and push on, SMS off until the user turns it on.",[774,906,907,830,909,912,913,916],{},[745,908,581],{},[758,910,911],{},"campaigns:deliver"," (every minute) and ",[758,914,915],{},"campaigns:retention"," (nightly), also on Cloudflare cron triggers.",[774,918,919,922],{},[745,920,921],{},"Campaign API"," for staff: drafts, a preview of who they reach, send, schedule, cancel, stats and deliveries.",[774,924,925,928,929,932],{},[745,926,927],{},"Managed campaigns",": other modules (an event, an operation, a team) own messages to their people, timed from their\ndates or sent when something happens, from a Messages tab on their page (see ",[750,930,927],{"href":931},"#managed-campaigns",").",[934,935],"module-runtime",{":client":936,":server":936},"true",[938,939,940,956],"note",{},[738,941,942,945,946,830,949,952,953],{},[745,943,944],{},"Installed for you:"," Auth, Users, Notify, Short Links, UI and Module Kit.\n",[745,947,948],{},"You add:",[750,950,951],{"href":91},"NuxtHub"," with a database and KV (the signup's rate limit).\n",[745,954,955],{},"Optional:",[771,957,958,961,964,967,970,976],{},[774,959,960],{},"Admin and Menu: the staff pages and the menu items.",[774,962,963],{},"Email Templates: the confirmation email from its template.",[774,965,966],{},"Forms: the captcha of the signup, and signing people up from a form's submissions.",[774,968,969],{},"Widget: the lists offered on the registration form.",[774,971,972,973,975],{},"Preferences: users' choices for ",[758,974,900],{},", and turning it off from a message's unsubscribe link.",[774,977,978,980,981,932],{},[750,979,393],{"href":394},": the number a campaign's texts go out from (see ",[750,982,984],{"href":983},"#from-number","From number",[766,986,988],{"id":987},"quick-setup","Quick setup",[990,991,992,997,1022,1029,1158,1165,1182,1186,1193,1211,1215,1221],"steps",{},[993,994,996],"h3",{"id":995},"install-campaigns","Install Campaigns",[998,999,1004],"pre",{"className":1000,"code":1001,"language":1002,"meta":1003,"style":1003},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @frigear-nu\u002Fcampaigns\n","bash","",[758,1005,1006],{"__ignoreMap":1003},[1007,1008,1011,1015,1019],"span",{"class":1009,"line":1010},"line",1,[1007,1012,1014],{"class":1013},"sBMFI","pnpm",[1007,1016,1018],{"class":1017},"sfazB"," add",[1007,1020,1021],{"class":1017}," @frigear-nu\u002Fcampaigns\n",[993,1023,1025,1026],{"id":1024},"add-it-to-nuxtconfigts","Add it to ",[758,1027,1028],{},"nuxt.config.ts",[998,1030,1034],{"className":1031,"code":1032,"filename":1028,"language":1033,"meta":1003,"style":1003},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@frigear-nu\u002Fusers', '@frigear-nu\u002Fadmin', '@frigear-nu\u002Fcampaigns'],\n  hub: { db: 'sqlite', kv: true },\n})\n","ts",[758,1035,1036,1057,1112,1149],{"__ignoreMap":1003},[1007,1037,1038,1042,1045,1049,1053],{"class":1009,"line":1010},[1007,1039,1041],{"class":1040},"s7zQu","export",[1007,1043,1044],{"class":1040}," default",[1007,1046,1048],{"class":1047},"s2Zo4"," defineNuxtConfig",[1007,1050,1052],{"class":1051},"sTEyZ","(",[1007,1054,1056],{"class":1055},"sMK4o","{\n",[1007,1058,1060,1064,1067,1070,1073,1076,1078,1081,1084,1087,1089,1091,1093,1096,1098,1100,1102,1104,1106,1109],{"class":1009,"line":1059},2,[1007,1061,1063],{"class":1062},"swJcz","  modules",[1007,1065,1066],{"class":1055},":",[1007,1068,1069],{"class":1051}," [",[1007,1071,1072],{"class":1055},"'",[1007,1074,1075],{"class":1017},"@nuxthub\u002Fcore",[1007,1077,1072],{"class":1055},[1007,1079,1080],{"class":1055},",",[1007,1082,1083],{"class":1055}," '",[1007,1085,1086],{"class":1017},"@frigear-nu\u002Fusers",[1007,1088,1072],{"class":1055},[1007,1090,1080],{"class":1055},[1007,1092,1083],{"class":1055},[1007,1094,1095],{"class":1017},"@frigear-nu\u002Fadmin",[1007,1097,1072],{"class":1055},[1007,1099,1080],{"class":1055},[1007,1101,1083],{"class":1055},[1007,1103,760],{"class":1017},[1007,1105,1072],{"class":1055},[1007,1107,1108],{"class":1051},"]",[1007,1110,1111],{"class":1055},",\n",[1007,1113,1115,1118,1120,1123,1126,1128,1130,1133,1135,1137,1140,1142,1146],{"class":1009,"line":1114},3,[1007,1116,1117],{"class":1062},"  hub",[1007,1119,1066],{"class":1055},[1007,1121,1122],{"class":1055}," {",[1007,1124,1125],{"class":1062}," db",[1007,1127,1066],{"class":1055},[1007,1129,1083],{"class":1055},[1007,1131,1132],{"class":1017},"sqlite",[1007,1134,1072],{"class":1055},[1007,1136,1080],{"class":1055},[1007,1138,1139],{"class":1062}," kv",[1007,1141,1066],{"class":1055},[1007,1143,1145],{"class":1144},"sfNiH"," true",[1007,1147,1148],{"class":1055}," },\n",[1007,1150,1152,1155],{"class":1009,"line":1151},4,[1007,1153,1154],{"class":1055},"}",[1007,1156,1157],{"class":1051},")\n",[738,1159,1160,1161,1164],{},"Unsubscribe links are signed with a key derived from Nuxt's ",[758,1162,1163],{},"appSecret",". Set it in production, as your sessions need\nit too:",[998,1166,1169],{"className":1000,"code":1167,"filename":1168,"language":1002,"meta":1003,"style":1003},"NUXT_APP_SECRET=a-long-random-string-of-at-least-32-characters\n",".env",[758,1170,1171],{"__ignoreMap":1003},[1007,1172,1173,1176,1179],{"class":1009,"line":1010},[1007,1174,1175],{"class":1051},"NUXT_APP_SECRET",[1007,1177,1178],{"class":1055},"=",[1007,1180,1181],{"class":1017},"a-long-random-string-of-at-least-32-characters\n",[993,1183,1185],{"id":1184},"generate-and-commit-a-migration","Generate and commit a migration",[738,1187,1188,1189,1192],{},"Campaigns adds seven tables (and Short Links two). Generate a ",[750,1190,1191],{"href":498},"migration"," and commit it.",[998,1194,1196],{"className":1000,"code":1195,"language":1002,"meta":1003,"style":1003},"npx nuxt db generate\n",[758,1197,1198],{"__ignoreMap":1003},[1007,1199,1200,1203,1206,1208],{"class":1009,"line":1010},[1007,1201,1202],{"class":1013},"npx",[1007,1204,1205],{"class":1017}," nuxt",[1007,1207,1125],{"class":1017},[1007,1209,1210],{"class":1017}," generate\n",[993,1212,1214],{"id":1213},"create-a-list-and-put-its-signup-on-a-page","Create a list and put its signup on a page",[738,1216,1217,1218,1220],{},"Open ",[758,1219,867],{}," as an admin and create a list. Then add its signup to a page:",[998,1222,1227],{"className":1223,"code":1224,"filename":1225,"language":1226,"meta":1003,"style":1003},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ctemplate>\n  \u003CListSignup list=\"news\" \u002F>\n\u003C\u002Ftemplate>\n","app\u002Fpages\u002Fnews.vue","vue",[758,1228,1229,1240,1265],{"__ignoreMap":1003},[1007,1230,1231,1234,1237],{"class":1009,"line":1010},[1007,1232,1233],{"class":1055},"\u003C",[1007,1235,1236],{"class":1062},"template",[1007,1238,1239],{"class":1055},">\n",[1007,1241,1242,1245,1248,1252,1254,1257,1260,1262],{"class":1009,"line":1059},[1007,1243,1244],{"class":1055},"  \u003C",[1007,1246,1247],{"class":1062},"ListSignup",[1007,1249,1251],{"class":1250},"spNyl"," list",[1007,1253,1178],{"class":1055},[1007,1255,1256],{"class":1055},"\"",[1007,1258,1259],{"class":1017},"news",[1007,1261,1256],{"class":1055},[1007,1263,1264],{"class":1055}," \u002F>\n",[1007,1266,1267,1270,1272],{"class":1009,"line":1114},[1007,1268,1269],{"class":1055},"\u003C\u002F",[1007,1271,1236],{"class":1062},[1007,1273,1239],{"class":1055},[1275,1276,1279,1282,1283,1285],"callout",{"color":1277,"icon":1278},"success","i-lucide-check",[745,1280,1281],{},"What you should see:"," a signup sends a confirmation email. Its link opens ",[758,1284,817],{},", and after the\nclick the subscriber shows up as subscribed on the list's staff page.",[766,1287,1289],{"id":1288},"options","Options",[738,1291,1292,1293,1295],{},"Options go under the ",[758,1294,747],{}," key.",[1297,1298,1299,1318],"table",{},[1300,1301,1302],"thead",{},[1303,1304,1305,1309,1312,1315],"tr",{},[1306,1307,1308],"th",{},"Option",[1306,1310,1311],{},"Type",[1306,1313,1314],{},"Default",[1306,1316,1317],{},"Purpose",[1319,1320,1321,1346,1365,1384,1403,1427,1450,1480,1502,1528,1554,1573,1591,1609,1627,1648,1666],"tbody",{},[1303,1322,1323,1329,1334,1339],{},[1324,1325,1326],"td",{},[758,1327,1328],{},"rateLimit",[1324,1330,1331],{},[758,1332,1333],{},"number",[1324,1335,1336],{},[758,1337,1338],{},"10",[1324,1340,1341,1342,1345],{},"Signups per IP address and list in the window. ",[758,1343,1344],{},"0"," turns the limit off.",[1303,1347,1348,1353,1357,1362],{},[1324,1349,1350],{},[758,1351,1352],{},"rateLimitWindowSeconds",[1324,1354,1355],{},[758,1356,1333],{},[1324,1358,1359],{},[758,1360,1361],{},"600",[1324,1363,1364],{},"The window of the rate limit.",[1303,1366,1367,1372,1376,1381],{},[1324,1368,1369],{},[758,1370,1371],{},"confirmTtlHours",[1324,1373,1374],{},[758,1375,1333],{},[1324,1377,1378],{},[758,1379,1380],{},"72",[1324,1382,1383],{},"How long a confirmation link works.",[1303,1385,1386,1391,1395,1400],{},[1324,1387,1388],{},[758,1389,1390],{},"resendAfterSeconds",[1324,1392,1393],{},[758,1394,1333],{},[1324,1396,1397],{},[758,1398,1399],{},"300",[1324,1401,1402],{},"A new signup for an address that is still waiting to confirm sends the confirmation again only after this pause.",[1303,1404,1405,1410,1415,1420],{},[1324,1406,1407],{},[758,1408,1409],{},"corsOrigins",[1324,1411,1412],{},[758,1413,1414],{},"string[]",[1324,1416,1417],{},[758,1418,1419],{},"[]",[1324,1421,1422,1423,1426],{},"Other sites allowed to post to the subscribe route from the browser. A plain HTML form needs none. Env ",[758,1424,1425],{},"NUXT_CAMPAIGNS_CORS_ORIGINS"," (a JSON array).",[1303,1428,1429,1434,1439,1444],{},[1324,1430,1431],{},[758,1432,1433],{},"captcha",[1324,1435,1436],{},[758,1437,1438],{},"false | 'turnstile' | 'recaptcha' | 'hcaptcha'",[1324,1440,1441],{},[758,1442,1443],{},"false",[1324,1445,1446,1447,1449],{},"A captcha the subscribe route checks. It needs ",[750,1448,324],{"href":325},", whose site and secret keys it uses.",[1303,1451,1452,1457,1462,1467],{},[1324,1453,1454],{},[758,1455,1456],{},"signingKey",[1324,1458,1459],{},[758,1460,1461],{},"string",[1324,1463,1464,1465],{},"from ",[758,1466,1163],{},[1324,1468,1469,1470,1473,1474,1476,1477,805],{},"The key unsubscribe links, delivery tokens and IP hashes are signed with. Env ",[758,1471,1472],{},"NUXT_CAMPAIGNS_SIGNING_KEY",". Without it and without ",[758,1475,1163],{},", signups answer 501 ",[758,1478,1479],{},"not_configured",[1303,1481,1482,1487,1491,1496],{},[1324,1483,1484],{},[758,1485,1486],{},"batchSize",[1324,1488,1489],{},[758,1490,1333],{},[1324,1492,1493],{},[758,1494,1495],{},"200",[1324,1497,1498,1499,805],{},"Messages the deliver task sends per run. Env ",[758,1500,1501],{},"NUXT_CAMPAIGNS_BATCH_SIZE",[1303,1503,1504,1509,1514,1519],{},[1324,1505,1506],{},[758,1507,1508],{},"deliverCron",[1324,1510,1511],{},[758,1512,1513],{},"string | false",[1324,1515,1516],{},[758,1517,1518],{},"* * * * *",[1324,1520,1521,1522,1524,1525,1527],{},"When ",[758,1523,911],{}," runs. ",[758,1526,1443],{}," registers the task without a schedule (run it yourself).",[1303,1529,1530,1535,1540,1545],{},[1324,1531,1532],{},[758,1533,1534],{},"retentionDays",[1324,1536,1537],{},[758,1538,1539],{},"number | false",[1324,1541,1542],{},[758,1543,1544],{},"180",[1324,1546,1547,1548,1550,1551,805],{},"Days the per-recipient rows of a finished campaign are kept; its counts stay. ",[758,1549,1443],{}," keeps them and schedules no retention task. Env ",[758,1552,1553],{},"NUXT_CAMPAIGNS_RETENTION_DAYS",[1303,1555,1556,1561,1566,1570],{},[1324,1557,1558],{},[758,1559,1560],{},"settings.pages.confirm",[1324,1562,1563],{},[758,1564,1565],{},"string | boolean",[1324,1567,1568],{},[758,1569,817],{},[1324,1571,1572],{},"The confirm page. If you turn it off, serve your own page at the same path: confirmation links point there.",[1303,1574,1575,1580,1584,1588],{},[1324,1576,1577],{},[758,1578,1579],{},"settings.pages.unsubscribe",[1324,1581,1582],{},[758,1583,1565],{},[1324,1585,1586],{},[758,1587,823],{},[1324,1589,1590],{},"The unsubscribe page.",[1303,1592,1593,1598,1602,1606],{},[1324,1594,1595],{},[758,1596,1597],{},"settings.pages.account",[1324,1599,1600],{},[758,1601,1565],{},[1324,1603,1604],{},[758,1605,833],{},[1324,1607,1608],{},"The signed-in user's subscriptions.",[1303,1610,1611,1616,1620,1624],{},[1324,1612,1613],{},[758,1614,1615],{},"settings.pages.adminLists",[1324,1617,1618],{},[758,1619,1565],{},[1324,1621,1622],{},[758,1623,867],{},[1324,1625,1626],{},"The staff page of the lists (with Admin).",[1303,1628,1629,1634,1638,1642],{},[1324,1630,1631],{},[758,1632,1633],{},"settings.pages.adminList",[1324,1635,1636],{},[758,1637,1565],{},[1324,1639,1640],{},[758,1641,873],{},[1324,1643,1644,1645,805],{},"One list's staff page. It must contain ",[758,1646,1647],{},":id",[1303,1649,1650,1655,1659,1663],{},[1324,1651,1652],{},[758,1653,1654],{},"settings.pages.adminCampaigns",[1324,1656,1657],{},[758,1658,1565],{},[1324,1660,1661],{},[758,1662,853],{},[1324,1664,1665],{},"The staff list of campaigns (with Admin).",[1303,1667,1668,1673,1677,1681],{},[1324,1669,1670],{},[758,1671,1672],{},"settings.pages.adminCampaign",[1324,1674,1675],{},[758,1676,1565],{},[1324,1678,1679],{},[758,1680,857],{},[1324,1682,1683,1684,805],{},"One campaign's staff page. It must contain ",[758,1685,1647],{},[766,1687,1689],{"id":1688},"permissions","Permissions",[738,1691,1692,1693,805],{},"Campaigns registers these permissions with ",[750,1694,207],{"href":208},[1297,1696,1697,1710],{},[1300,1698,1699],{},[1303,1700,1701,1704,1707],{},[1306,1702,1703],{},"Name",[1306,1705,1706],{},"Who holds it",[1306,1708,1709],{},"What it covers",[1319,1711,1712,1727,1741,1755,1773],{},[1303,1713,1714,1719,1724],{},[1324,1715,1716],{},[758,1717,1718],{},"campaigns:manage",[1324,1720,1721],{},[758,1722,1723],{},"admin",[1324,1725,1726],{},"Lists and their subscribers without addresses; campaign drafts, previews and stats.",[1303,1728,1729,1734,1738],{},[1324,1730,1731],{},[758,1732,1733],{},"campaigns:send",[1324,1735,1736],{},[758,1737,1723],{},[1324,1739,1740],{},"Sending, scheduling and cancelling campaigns.",[1303,1742,1743,1748,1752],{},[1324,1744,1745],{},[758,1746,1747],{},"campaigns:send-important",[1324,1749,1750],{},[758,1751,1723],{},[1324,1753,1754],{},"Creating and sending an important message, which reaches users on channels they turned off.",[1303,1756,1757,1762,1767],{},[1324,1758,1759],{},[758,1760,1761],{},"campaigns:pii",[1324,1763,1764,1766],{},[758,1765,1723],{}," (sensitive)",[1324,1768,1769,1770,805],{},"Subscribers' email addresses and phone numbers, searching by them, and a campaign's deliveries. Never covered by ",[758,1771,1772],{},"campaigns:*",[1303,1774,1775,1780,1783],{},[1324,1776,1777],{},[758,1778,1779],{},"campaigns:subscriptions",[1324,1781,1782],{},"Every signed-in user (implicit)",[1324,1784,1785,1786,1789],{},"The user's own subscriptions. Also a token scope, through the ",[758,1787,1788],{},"subscriptions"," scope.",[738,1791,1792],{},"The signup, confirm, unsubscribe and open-pixel routes are anonymous. The rate limit, the optional captcha and the tokens in the\nmessages guard them.",[766,1794,1796],{"id":1795},"how-signing-up-works","How signing up works",[771,1798,1799,1809,1815,1829,1852,1862,1868],{},[774,1800,1801,1804,1805,1808],{},[745,1802,1803],{},"One answer for every address."," The subscribe route answers ",[758,1806,1807],{},"{ confirm }"," whether the address was known or not,\nsubscribed or not, so it never tells anyone who is on a list. A subscriber who signs up again gets no email.",[774,1810,1811,1814],{},[745,1812,1813],{},"Contacts."," A contact is one email address and\u002For one phone number, unique each. An anonymous signup never changes\nan existing contact. When a signed-in user's email address is verified, the contact with that address is linked to\nthem.",[774,1816,1817,1820,1821,1824,1825,1828],{},[745,1818,1819],{},"Double opt-in."," With the list's \"Ask new subscribers to confirm\" on (the default), a new subscription is\n",[758,1822,1823],{},"pending"," until the link in the confirmation email or SMS is followed and confirmed. Without it, it is ",[758,1826,1827],{},"active"," at\nonce. A signed-in user who turns on a list from the account page with a verified address is active at once.",[774,1830,1831,1834,1835,1838,1839,1838,1842,1838,1844,1847,1848,1851],{},[745,1832,1833],{},"Consent proof."," Each subscription stores where the consent came from (",[758,1836,1837],{},"form",", ",[758,1840,1841],{},"api",[758,1843,1723],{},[758,1845,1846],{},"forms"," or\n",[758,1849,1850],{},"account","), the version of the consent text the person agreed to, when they asked, when they confirmed and a keyed\nhash of their IP address. Changing a list's consent text starts a new version.",[774,1853,1854,1857,1858,1861],{},[745,1855,1856],{},"Unsubscribe links"," are ",[758,1859,1860],{},"\u003Csubscription id>.\u003Csignature>",", an HMAC-SHA-256 under the signing key. Nothing is stored\nper link, so every message to a subscriber can carry one. Unsubscribing clears a confirmation that is still waiting.",[774,1863,1864,1867],{},[745,1865,1866],{},"The account page"," turns the email channel on or off. An SMS subscription can be turned off there; signing up for\nSMS goes through the signup, which confirms the phone number.",[774,1869,1870,1873,1874,1877],{},[745,1871,1872],{},"A honeypot."," The signup sends a hidden ",[758,1875,1876],{},"website"," field. When it is filled in, the route answers as usual and\nstores nothing.",[766,1879,804],{"id":1880},"lists-and-accounts",[738,1882,1883,1884,1887],{},"Each list has a sign-up mode, \"New accounts\" on its staff page (",[758,1885,1886],{},"signupMode","):",[1297,1889,1890,1900],{},[1300,1891,1892],{},[1303,1893,1894,1897],{},[1306,1895,1896],{},"Mode",[1306,1898,1899],{},"What happens when someone creates an account",[1319,1901,1902,1914,1926],{},[1303,1903,1904,1911],{},[1324,1905,1906,1907,1910],{},"Off (",[758,1908,1909],{},"off",", the default)",[1324,1912,1913],{},"Nothing.",[1303,1915,1916,1923],{},[1324,1917,1918,1919,1922],{},"Offer at sign-up (",[758,1920,1921],{},"offer",")",[1324,1924,1925],{},"A public list shows on the registration form as an unticked box with its consent text. Only people who tick it are added.",[1303,1927,1928,1934],{},[1324,1929,1930,1931,1922],{},"Add new accounts automatically (",[758,1932,1933],{},"auto",[1324,1935,1936],{},"Every new account is added without being asked. Only for lists that are not marketing, such as practical updates for members: staff answer for having a reason to send them.",[771,1938,1939,1959,1968,1974,1980],{},[774,1940,1941,1944,1945,1948,1949,1951,1952,1954,1955,1958],{},[745,1942,1943],{},"How."," Auth fires ",[758,1946,1947],{},"auth:user:created"," for every new account (registration form, sign-in link, OAuth, frigear.nu,\npasskey, or staff creating it). Campaigns then adds the account's email address to every ",[758,1950,1933],{}," list, and to the\n",[758,1953,1921],{}," lists ticked on the registration form. The form's widget sends the ticked ids as\n",[758,1956,1957],{},"extras.campaigns.listIds","; ids of lists that are not offered are ignored, and a failure never stops the sign-up.",[774,1960,1961,1964,1965,1967],{},[745,1962,1963],{},"Consent."," The subscription's source is ",[758,1966,1850],{},", with the list's current consent version. With the list's double\nopt-in and an address that is not verified yet, the subscription waits for the confirmation email like any signup;\notherwise it is active at once.",[774,1969,1970,1973],{},[745,1971,1972],{},"Email only."," Accounts are added on the email channel, with the address they signed up with.",[774,1975,1976,1979],{},[745,1977,1978],{},"Unsubscribing"," works the same as for anyone, and someone who unsubscribed from a list is never added to it again.",[774,1981,1982,1985,1986,1988,1989,805],{},[745,1983,1984],{},"Add all current accounts."," An ",[758,1987,1933],{}," list's staff page adds every existing account that is not on the list yet, after\na confirm with how many that is. Nobody who unsubscribed before is added back, and on a list with double opt-in only\naccounts with a verified address are added: nobody gets a confirmation email from it. The subscriptions are active, with\nthe source ",[758,1990,1723],{},[766,1992,1994],{"id":1993},"signups-from-a-form","Signups from a form",[738,1996,1997,1998,2000,2001,2003],{},"With ",[750,1999,324],{"href":325}," installed, a list's staff page can pick a form and which of its fields hold the\nconsent checkbox, the email address, the phone number and the name. A submission of that form with the consent ticked\nsigns the person up the way the signup does: consent source ",[758,2002,1846],{},", the confirmation email or SMS when the list asks for\nit, and nothing said about whether the address was known. Without a ticked consent, or without a valid email address or\ninternational phone number, a submission signs nobody up.",[766,2005,389],{"id":747},[738,2007,2008,2009,2012,2013,2016,2017,2012,2020,2023],{},"A campaign goes ",[745,2010,2011],{},"to lists"," (",[758,2014,2015],{},"kind: 'lists'",") or ",[745,2018,2019],{},"to people",[758,2021,2022],{},"kind: 'people'","). Staff write it as a draft,\ncheck who it reaches with the preview, then send it now or schedule it.",[1297,2025,2026,2044],{},[1300,2027,2028],{},[1303,2029,2030,2032,2038],{},[1306,2031],{},[1306,2033,2034,2035,1922],{},"To lists (",[758,2036,2037],{},"lists",[1306,2039,2040,2041,1922],{},"To people (",[758,2042,2043],{},"people",[1319,2045,2046,2067,2089,2110],{},[1303,2047,2048,2051,2057],{},[1324,2049,2050],{},"Audience",[1324,2052,2053,2056],{},[758,2054,2055],{},"listIds",": the active subscribers of these lists, each contact once per channel",[1324,2058,2059,2062,2063,2066],{},[758,2060,2061],{},"grants"," and\u002For ",[758,2064,2065],{},"userIds",": the members of each grant (role, team, operation) and these users, each once",[1303,2068,2069,2072,2080],{},[1324,2070,2071],{},"Channels",[1324,2073,2074,1838,2077],{},[758,2075,2076],{},"email",[758,2078,2079],{},"sms",[1324,2081,2082,1838,2084,1838,2086],{},[758,2083,2076],{},[758,2085,2079],{},[758,2087,2088],{},"push",[1303,2090,2091,2094,2100],{},[1324,2092,2093],{},"Who decides",[1324,2095,2096,2097,2099],{},"The subscription: only ",[758,2098,1827],{}," ones get it, checked again right before each send",[1324,2101,2102,2103,2105,2106,2109],{},"The user's choices for ",[758,2104,900],{},"; an ",[758,2107,2108],{},"important"," campaign ignores them",[1303,2111,2112,2115,2118],{},[1324,2113,2114],{},"Unsubscribe",[1324,2116,2117],{},"From every list of the campaign, on that channel",[1324,2119,2120,2121],{},"Turns the channel off for ",[758,2122,900],{},[771,2124,2125,2151,2176,2200,2232,2245,2258,2279],{},[774,2126,2127,2129,2130,1838,2133,1111,2136,2139,2140,2143,2144,2146,2147,2150],{},[745,2128,291],{}," is per channel and per language: ",[758,2131,2132],{},"email: { subject, body }",[758,2134,2135],{},"sms: { body, from }",[758,2137,2138],{},"push: { title, body, url }",". ",[758,2141,2142],{},"from"," is only used with ",[750,2145,393],{"href":983},".\nThe email body is markdown (bold, italics, links, paragraphs), rendered and escaped on the server. Each recipient gets\ntheir own language (the contact's or user's), then the campaign's ",[758,2148,2149],{},"locale",", then English.",[774,2152,2153,2156,2157,2160,2161,2164,2165,2168,2169,2172,2173,2175],{},[745,2154,2155],{},"The audience of a campaign to people"," is resolved when it is sent or scheduled (a ",[750,2158,2159],{"href":931},"managed"," one's when it starts). ",[758,2162,2163],{},"public"," and\n",[758,2166,2167],{},"signed-in"," grants are refused, and an audience that names nobody is 400 ",[758,2170,2171],{},"audience_not_resolved",". The lists of a\ncampaign to lists are read when it goes out; sending one now to lists nobody is on is 400 ",[758,2174,2171],{}," too.",[774,2177,2178,2181,2182,2185,2186,2188,2189,2192,2193,2195,2196,2199],{},[745,2179,2180],{},"Delivery."," Sending makes the campaign ",[758,2183,2184],{},"scheduled","; the ",[758,2187,911],{}," task starts it (",[758,2190,2191],{},"sending","), adds one\ndelivery row per recipient and channel in pages (resumable), and sends ",[758,2194,1486],{}," of them per run. A run claims rows\nwith an update guarded by their status, so two runs never send the same row. A claim older than ten minutes is tried\nagain, up to three times. \"Send now\" also starts one run right after the answer. When every row is done the campaign\nis ",[758,2197,2198],{},"sent"," and its counts are kept on it. Addresses are never copied into the rows: they are read when each message\ngoes out.",[774,2201,2202,2205,2206,2209,2210,2213,2214,2217,2218,1838,2221,2224,2225,886,2228,2231],{},[745,2203,2204],{},"Links"," with ",[758,2207,2208],{},"trackClicks"," (on by default): each distinct ",[758,2211,2212],{},"http(s)"," link becomes a short link owned by the campaign,\nand each recipient's message points at ",[758,2215,2216],{},"\u002Fl\u002F\u003Ccode>\u002F\u003Cdelivery token>",". A click redirects to the link and counts on the\ndelivery (",[758,2219,2220],{},"clickedAt",[758,2222,2223],{},"clicks",") and per link. Anchors, paths, ",[758,2226,2227],{},"mailto:",[758,2229,2230],{},"tel:"," links stay as written.",[774,2233,2234,2205,2237,2240,2241,2244],{},[745,2235,2236],{},"Opens",[758,2238,2239],{},"trackOpens"," (off by default): the email carries a 1x1 image from ",[758,2242,2243],{},"\u002Fapi\u002Fcampaigns\u002Fo\u002F\u003Ctoken>","; the first\nload marks the delivery opened. Mail apps that load images on their own count as an open too.",[774,2246,2247,2250,2251,886,2254,2257],{},[745,2248,2249],{},"Unsubscribe."," The delivery token is the delivery id signed like a subscription token. Every email has\n",[758,2252,2253],{},"List-Unsubscribe: \u003C…\u002Fapi\u002Fcampaigns\u002Funsubscribe\u002F\u003Ctoken>>",[758,2255,2256],{},"List-Unsubscribe-Post: List-Unsubscribe=One-Click",", so\nmail apps show their own unsubscribe button, and a footer with the unsubscribe page and the subscriptions (or\nnotification settings) page. An SMS ends with the unsubscribe page.",[774,2259,2260,2263,2264,2267,2268,2271,2272,2275,2276,805],{},[745,2261,2262],{},"Skipped"," rows say why: ",[758,2265,2266],{},"disabled"," (the user turned the channel off), ",[758,2269,2270],{},"unavailable"," (no address, phone or device),\n",[758,2273,2274],{},"unsubscribed"," (the subscriber left before their turn) or ",[758,2277,2278],{},"cancelled",[774,2280,2281,830,2284,2286,2287,2289],{},[745,2282,2283],{},"Retention.",[758,2285,915],{}," deletes the delivery and click rows of campaigns finished more than\n",[758,2288,1534],{}," ago; the counts per channel stay on the campaign. Clicks per link are counted from those rows, so\nthey go with them.",[993,2291,984],{"id":2292},"from-number",[738,2294,1997,2295,2297,2298,2301,2302,2305,2306,2309,2310,2313],{},[750,2296,393],{"href":394}," installed, the editor's SMS section has a ",[745,2299,2300],{},"From"," select: \"Automatic\", then the\nnumbers SMS can send from now (",[758,2303,2304],{},"GET \u002Fapi\u002Fadmin\u002Fsms\u002Fsend-numbers",", which needs ",[758,2307,2308],{},"sms:send-numbers","; staff without it see\nno select, and the campaign keeps its number). The choice is stored as ",[758,2311,2312],{},"content.sms.from"," (a number id), and each text\ngoes to Notify's SMS driver with this meta:",[1297,2315,2316,2326],{},[1300,2317,2318],{},[1303,2319,2320,2323],{},[1306,2321,2322],{},"Meta",[1306,2324,2325],{},"Value",[1319,2327,2328,2339,2351,2364],{},[1303,2329,2330,2334],{},[1324,2331,2332],{},[758,2333,2142],{},[1324,2335,2336,2338],{},[758,2337,2312],{},"; left out for automatic.",[1303,2340,2341,2346],{},[1324,2342,2343],{},[758,2344,2345],{},"source",[1324,2347,2348,2350],{},[758,2349,747],{},", shown as \"Sent by\" in SMS's message log.",[1303,2352,2353,2358],{},[1324,2354,2355],{},[758,2356,2357],{},"ref",[1324,2359,2360,2361,932],{},"The delivery id (",[758,2362,2363],{},"cmd_…",[1303,2365,2366,2371],{},[1324,2367,2368],{},[758,2369,2370],{},"topic",[1324,2372,2373,2375],{},[758,2374,900],{},", on a campaign to people.",[738,2377,2378,2379,2382,2383,805],{},"A message to people that follows the users' choices goes out through ",[758,2380,2381],{},"notifyUser"," with the same meta. SMS sends from that number and moves on\nto another when it cannot send (a number that is gone or turned off is skipped).\nWithout SMS there is no select and the meta stays ",[758,2384,2385],{},"{ campaigns: { campaignId, deliveryId } }",[766,2387,927],{"id":2388},"managed-campaigns",[738,2390,2391,2392,2395,2396,2398,2399,1838,2402,2405],{},"A module can ",[745,2393,2394],{},"own"," campaigns: an event, an operation or a team messages its own people from a \"Messages\" tab on its\nstaff page, without importing campaigns. Its messages go to people through their relationship with it (holding a\nticket, being on the team), and they turn them off per owner type (\"Event messages\"), not per list. A managed campaign\nis a ",[758,2397,2043],{}," campaign with an owner (",[758,2400,2401],{},"ownerType",[758,2403,2404],{},"ownerId","), a notify topic of its own and a trigger. It is edited\nonly through its owner; the campaigns admin lists it read-only, with a \"Managed by\" badge linking to the owner.",[993,2407,2409],{"id":2408},"declare-an-owner","Declare an owner",[738,2411,2412,2413,2416],{},"At build time, push a definition in the ",[758,2414,2415],{},"campaigns:owners"," Nuxt hook. Campaigns calls it once every module is set up,\nso the owner module hooks it whether or not campaigns is installed, and a host can add its own presets to it.",[998,2418,2421],{"className":1031,"code":2419,"filename":2420,"language":1033,"meta":1003,"style":1003},"nuxt.hook('campaigns:owners', (owners) => {\n  owners.push({\n    type: 'event',\n    label: { en: 'Event', da: 'Arrangement' },\n    \u002F\u002F Registered with notify: people turn these messages off per channel on their notifications page.\n    topic: { key: 'events.message', label: { en: 'Event messages', da: 'Beskeder om arrangementer' } },\n    \u002F\u002F Manages the event's messages; checked with the record `campaigns:owner:resolve` gives.\n    permission: 'events:manage',\n    \u002F\u002F The Messages tab goes on this `WidgetTabs` area; the page passes the record under `contextKey`.\n    tabArea: 'admin.events',\n    contextKey: 'event',\n    anchors: [{ key: 'startsAt', label: 'Starts' }],\n    triggers: [{ key: 'ticket.paid', label: 'Ticket paid' }],\n    \u002F\u002F `{id}` stands for the owner's id.\n    audiences: [{ key: 'holders', label: 'Ticket holders', grants: [{ kind: 'event', eventId: '{id}', status: 'paid' }] }],\n    variables: [\n      { key: 'name', label: 'Name' },\n      { key: 'startsAt', label: 'Starts', type: 'date' },\n      { key: 'url', label: 'Page', type: 'url' },\n    ],\n    presets: [{\n      key: 'reminder',\n      label: 'Reminder 1 day before',\n      name: 'Reminder',\n      audience: 'holders',\n      trigger: { type: 'relative', anchor: 'startsAt', offsetMinutes: -1440 },\n      content: { email: { subject: 'Tomorrow: {{event.name}}', body: 'See you at {{event.startsAt}}.' } },\n    }],\n  })\n})\n","module.ts",[758,2422,2423,2457,2470,2486,2523,2530,2590,2596,2613,2619,2636,2652,2695,2737,2743,2840,2851,2882,2925,2968,2976,2988,3005,3022,3039,3055,3105,3152,3162,3170],{"__ignoreMap":1003},[1007,2424,2425,2428,2430,2433,2435,2437,2439,2441,2443,2445,2449,2451,2454],{"class":1009,"line":1010},[1007,2426,2427],{"class":1051},"nuxt",[1007,2429,805],{"class":1055},[1007,2431,2432],{"class":1047},"hook",[1007,2434,1052],{"class":1051},[1007,2436,1072],{"class":1055},[1007,2438,2415],{"class":1017},[1007,2440,1072],{"class":1055},[1007,2442,1080],{"class":1055},[1007,2444,2012],{"class":1055},[1007,2446,2448],{"class":2447},"sHdIc","owners",[1007,2450,1922],{"class":1055},[1007,2452,2453],{"class":1250}," =>",[1007,2455,2456],{"class":1055}," {\n",[1007,2458,2459,2462,2464,2466,2468],{"class":1009,"line":1059},[1007,2460,2461],{"class":1051},"  owners",[1007,2463,805],{"class":1055},[1007,2465,2088],{"class":1047},[1007,2467,1052],{"class":1062},[1007,2469,1056],{"class":1055},[1007,2471,2472,2475,2477,2479,2482,2484],{"class":1009,"line":1114},[1007,2473,2474],{"class":1062},"    type",[1007,2476,1066],{"class":1055},[1007,2478,1083],{"class":1055},[1007,2480,2481],{"class":1017},"event",[1007,2483,1072],{"class":1055},[1007,2485,1111],{"class":1055},[1007,2487,2488,2491,2493,2495,2498,2500,2502,2505,2507,2509,2512,2514,2516,2519,2521],{"class":1009,"line":1151},[1007,2489,2490],{"class":1062},"    label",[1007,2492,1066],{"class":1055},[1007,2494,1122],{"class":1055},[1007,2496,2497],{"class":1062}," en",[1007,2499,1066],{"class":1055},[1007,2501,1083],{"class":1055},[1007,2503,2504],{"class":1017},"Event",[1007,2506,1072],{"class":1055},[1007,2508,1080],{"class":1055},[1007,2510,2511],{"class":1062}," da",[1007,2513,1066],{"class":1055},[1007,2515,1083],{"class":1055},[1007,2517,2518],{"class":1017},"Arrangement",[1007,2520,1072],{"class":1055},[1007,2522,1148],{"class":1055},[1007,2524,2526],{"class":1009,"line":2525},5,[1007,2527,2529],{"class":2528},"sHwdD","    \u002F\u002F Registered with notify: people turn these messages off per channel on their notifications page.\n",[1007,2531,2533,2536,2538,2540,2543,2545,2547,2550,2552,2554,2557,2559,2561,2563,2565,2567,2570,2572,2574,2576,2578,2580,2583,2585,2588],{"class":1009,"line":2532},6,[1007,2534,2535],{"class":1062},"    topic",[1007,2537,1066],{"class":1055},[1007,2539,1122],{"class":1055},[1007,2541,2542],{"class":1062}," key",[1007,2544,1066],{"class":1055},[1007,2546,1083],{"class":1055},[1007,2548,2549],{"class":1017},"events.message",[1007,2551,1072],{"class":1055},[1007,2553,1080],{"class":1055},[1007,2555,2556],{"class":1062}," label",[1007,2558,1066],{"class":1055},[1007,2560,1122],{"class":1055},[1007,2562,2497],{"class":1062},[1007,2564,1066],{"class":1055},[1007,2566,1083],{"class":1055},[1007,2568,2569],{"class":1017},"Event messages",[1007,2571,1072],{"class":1055},[1007,2573,1080],{"class":1055},[1007,2575,2511],{"class":1062},[1007,2577,1066],{"class":1055},[1007,2579,1083],{"class":1055},[1007,2581,2582],{"class":1017},"Beskeder om arrangementer",[1007,2584,1072],{"class":1055},[1007,2586,2587],{"class":1055}," }",[1007,2589,1148],{"class":1055},[1007,2591,2593],{"class":1009,"line":2592},7,[1007,2594,2595],{"class":2528},"    \u002F\u002F Manages the event's messages; checked with the record `campaigns:owner:resolve` gives.\n",[1007,2597,2599,2602,2604,2606,2609,2611],{"class":1009,"line":2598},8,[1007,2600,2601],{"class":1062},"    permission",[1007,2603,1066],{"class":1055},[1007,2605,1083],{"class":1055},[1007,2607,2608],{"class":1017},"events:manage",[1007,2610,1072],{"class":1055},[1007,2612,1111],{"class":1055},[1007,2614,2616],{"class":1009,"line":2615},9,[1007,2617,2618],{"class":2528},"    \u002F\u002F The Messages tab goes on this `WidgetTabs` area; the page passes the record under `contextKey`.\n",[1007,2620,2622,2625,2627,2629,2632,2634],{"class":1009,"line":2621},10,[1007,2623,2624],{"class":1062},"    tabArea",[1007,2626,1066],{"class":1055},[1007,2628,1083],{"class":1055},[1007,2630,2631],{"class":1017},"admin.events",[1007,2633,1072],{"class":1055},[1007,2635,1111],{"class":1055},[1007,2637,2639,2642,2644,2646,2648,2650],{"class":1009,"line":2638},11,[1007,2640,2641],{"class":1062},"    contextKey",[1007,2643,1066],{"class":1055},[1007,2645,1083],{"class":1055},[1007,2647,2481],{"class":1017},[1007,2649,1072],{"class":1055},[1007,2651,1111],{"class":1055},[1007,2653,2655,2658,2660,2662,2665,2667,2669,2671,2674,2676,2678,2680,2682,2684,2687,2689,2691,2693],{"class":1009,"line":2654},12,[1007,2656,2657],{"class":1062},"    anchors",[1007,2659,1066],{"class":1055},[1007,2661,1069],{"class":1062},[1007,2663,2664],{"class":1055},"{",[1007,2666,2542],{"class":1062},[1007,2668,1066],{"class":1055},[1007,2670,1083],{"class":1055},[1007,2672,2673],{"class":1017},"startsAt",[1007,2675,1072],{"class":1055},[1007,2677,1080],{"class":1055},[1007,2679,2556],{"class":1062},[1007,2681,1066],{"class":1055},[1007,2683,1083],{"class":1055},[1007,2685,2686],{"class":1017},"Starts",[1007,2688,1072],{"class":1055},[1007,2690,2587],{"class":1055},[1007,2692,1108],{"class":1062},[1007,2694,1111],{"class":1055},[1007,2696,2698,2701,2703,2705,2707,2709,2711,2713,2716,2718,2720,2722,2724,2726,2729,2731,2733,2735],{"class":1009,"line":2697},13,[1007,2699,2700],{"class":1062},"    triggers",[1007,2702,1066],{"class":1055},[1007,2704,1069],{"class":1062},[1007,2706,2664],{"class":1055},[1007,2708,2542],{"class":1062},[1007,2710,1066],{"class":1055},[1007,2712,1083],{"class":1055},[1007,2714,2715],{"class":1017},"ticket.paid",[1007,2717,1072],{"class":1055},[1007,2719,1080],{"class":1055},[1007,2721,2556],{"class":1062},[1007,2723,1066],{"class":1055},[1007,2725,1083],{"class":1055},[1007,2727,2728],{"class":1017},"Ticket paid",[1007,2730,1072],{"class":1055},[1007,2732,2587],{"class":1055},[1007,2734,1108],{"class":1062},[1007,2736,1111],{"class":1055},[1007,2738,2740],{"class":1009,"line":2739},14,[1007,2741,2742],{"class":2528},"    \u002F\u002F `{id}` stands for the owner's id.\n",[1007,2744,2746,2749,2751,2753,2755,2757,2759,2761,2764,2766,2768,2770,2772,2774,2777,2779,2781,2784,2786,2788,2790,2793,2795,2797,2799,2801,2803,2806,2808,2810,2813,2815,2817,2820,2822,2824,2827,2829,2831,2834,2836,2838],{"class":1009,"line":2745},15,[1007,2747,2748],{"class":1062},"    audiences",[1007,2750,1066],{"class":1055},[1007,2752,1069],{"class":1062},[1007,2754,2664],{"class":1055},[1007,2756,2542],{"class":1062},[1007,2758,1066],{"class":1055},[1007,2760,1083],{"class":1055},[1007,2762,2763],{"class":1017},"holders",[1007,2765,1072],{"class":1055},[1007,2767,1080],{"class":1055},[1007,2769,2556],{"class":1062},[1007,2771,1066],{"class":1055},[1007,2773,1083],{"class":1055},[1007,2775,2776],{"class":1017},"Ticket holders",[1007,2778,1072],{"class":1055},[1007,2780,1080],{"class":1055},[1007,2782,2783],{"class":1062}," grants",[1007,2785,1066],{"class":1055},[1007,2787,1069],{"class":1062},[1007,2789,2664],{"class":1055},[1007,2791,2792],{"class":1062}," kind",[1007,2794,1066],{"class":1055},[1007,2796,1083],{"class":1055},[1007,2798,2481],{"class":1017},[1007,2800,1072],{"class":1055},[1007,2802,1080],{"class":1055},[1007,2804,2805],{"class":1062}," eventId",[1007,2807,1066],{"class":1055},[1007,2809,1083],{"class":1055},[1007,2811,2812],{"class":1017},"{id}",[1007,2814,1072],{"class":1055},[1007,2816,1080],{"class":1055},[1007,2818,2819],{"class":1062}," status",[1007,2821,1066],{"class":1055},[1007,2823,1083],{"class":1055},[1007,2825,2826],{"class":1017},"paid",[1007,2828,1072],{"class":1055},[1007,2830,2587],{"class":1055},[1007,2832,2833],{"class":1062},"] ",[1007,2835,1154],{"class":1055},[1007,2837,1108],{"class":1062},[1007,2839,1111],{"class":1055},[1007,2841,2843,2846,2848],{"class":1009,"line":2842},16,[1007,2844,2845],{"class":1062},"    variables",[1007,2847,1066],{"class":1055},[1007,2849,2850],{"class":1062}," [\n",[1007,2852,2854,2857,2859,2861,2863,2866,2868,2870,2872,2874,2876,2878,2880],{"class":1009,"line":2853},17,[1007,2855,2856],{"class":1055},"      {",[1007,2858,2542],{"class":1062},[1007,2860,1066],{"class":1055},[1007,2862,1083],{"class":1055},[1007,2864,2865],{"class":1017},"name",[1007,2867,1072],{"class":1055},[1007,2869,1080],{"class":1055},[1007,2871,2556],{"class":1062},[1007,2873,1066],{"class":1055},[1007,2875,1083],{"class":1055},[1007,2877,1703],{"class":1017},[1007,2879,1072],{"class":1055},[1007,2881,1148],{"class":1055},[1007,2883,2885,2887,2889,2891,2893,2895,2897,2899,2901,2903,2905,2907,2909,2911,2914,2916,2918,2921,2923],{"class":1009,"line":2884},18,[1007,2886,2856],{"class":1055},[1007,2888,2542],{"class":1062},[1007,2890,1066],{"class":1055},[1007,2892,1083],{"class":1055},[1007,2894,2673],{"class":1017},[1007,2896,1072],{"class":1055},[1007,2898,1080],{"class":1055},[1007,2900,2556],{"class":1062},[1007,2902,1066],{"class":1055},[1007,2904,1083],{"class":1055},[1007,2906,2686],{"class":1017},[1007,2908,1072],{"class":1055},[1007,2910,1080],{"class":1055},[1007,2912,2913],{"class":1062}," type",[1007,2915,1066],{"class":1055},[1007,2917,1083],{"class":1055},[1007,2919,2920],{"class":1017},"date",[1007,2922,1072],{"class":1055},[1007,2924,1148],{"class":1055},[1007,2926,2928,2930,2932,2934,2936,2939,2941,2943,2945,2947,2949,2952,2954,2956,2958,2960,2962,2964,2966],{"class":1009,"line":2927},19,[1007,2929,2856],{"class":1055},[1007,2931,2542],{"class":1062},[1007,2933,1066],{"class":1055},[1007,2935,1083],{"class":1055},[1007,2937,2938],{"class":1017},"url",[1007,2940,1072],{"class":1055},[1007,2942,1080],{"class":1055},[1007,2944,2556],{"class":1062},[1007,2946,1066],{"class":1055},[1007,2948,1083],{"class":1055},[1007,2950,2951],{"class":1017},"Page",[1007,2953,1072],{"class":1055},[1007,2955,1080],{"class":1055},[1007,2957,2913],{"class":1062},[1007,2959,1066],{"class":1055},[1007,2961,1083],{"class":1055},[1007,2963,2938],{"class":1017},[1007,2965,1072],{"class":1055},[1007,2967,1148],{"class":1055},[1007,2969,2971,2974],{"class":1009,"line":2970},20,[1007,2972,2973],{"class":1062},"    ]",[1007,2975,1111],{"class":1055},[1007,2977,2979,2982,2984,2986],{"class":1009,"line":2978},21,[1007,2980,2981],{"class":1062},"    presets",[1007,2983,1066],{"class":1055},[1007,2985,1069],{"class":1062},[1007,2987,1056],{"class":1055},[1007,2989,2991,2994,2996,2998,3001,3003],{"class":1009,"line":2990},22,[1007,2992,2993],{"class":1062},"      key",[1007,2995,1066],{"class":1055},[1007,2997,1083],{"class":1055},[1007,2999,3000],{"class":1017},"reminder",[1007,3002,1072],{"class":1055},[1007,3004,1111],{"class":1055},[1007,3006,3008,3011,3013,3015,3018,3020],{"class":1009,"line":3007},23,[1007,3009,3010],{"class":1062},"      label",[1007,3012,1066],{"class":1055},[1007,3014,1083],{"class":1055},[1007,3016,3017],{"class":1017},"Reminder 1 day before",[1007,3019,1072],{"class":1055},[1007,3021,1111],{"class":1055},[1007,3023,3025,3028,3030,3032,3035,3037],{"class":1009,"line":3024},24,[1007,3026,3027],{"class":1062},"      name",[1007,3029,1066],{"class":1055},[1007,3031,1083],{"class":1055},[1007,3033,3034],{"class":1017},"Reminder",[1007,3036,1072],{"class":1055},[1007,3038,1111],{"class":1055},[1007,3040,3042,3045,3047,3049,3051,3053],{"class":1009,"line":3041},25,[1007,3043,3044],{"class":1062},"      audience",[1007,3046,1066],{"class":1055},[1007,3048,1083],{"class":1055},[1007,3050,2763],{"class":1017},[1007,3052,1072],{"class":1055},[1007,3054,1111],{"class":1055},[1007,3056,3058,3061,3063,3065,3067,3069,3071,3074,3076,3078,3081,3083,3085,3087,3089,3091,3094,3096,3099,3103],{"class":1009,"line":3057},26,[1007,3059,3060],{"class":1062},"      trigger",[1007,3062,1066],{"class":1055},[1007,3064,1122],{"class":1055},[1007,3066,2913],{"class":1062},[1007,3068,1066],{"class":1055},[1007,3070,1083],{"class":1055},[1007,3072,3073],{"class":1017},"relative",[1007,3075,1072],{"class":1055},[1007,3077,1080],{"class":1055},[1007,3079,3080],{"class":1062}," anchor",[1007,3082,1066],{"class":1055},[1007,3084,1083],{"class":1055},[1007,3086,2673],{"class":1017},[1007,3088,1072],{"class":1055},[1007,3090,1080],{"class":1055},[1007,3092,3093],{"class":1062}," offsetMinutes",[1007,3095,1066],{"class":1055},[1007,3097,3098],{"class":1055}," -",[1007,3100,3102],{"class":3101},"sbssI","1440",[1007,3104,1148],{"class":1055},[1007,3106,3108,3111,3113,3115,3118,3120,3122,3125,3127,3129,3132,3134,3136,3139,3141,3143,3146,3148,3150],{"class":1009,"line":3107},27,[1007,3109,3110],{"class":1062},"      content",[1007,3112,1066],{"class":1055},[1007,3114,1122],{"class":1055},[1007,3116,3117],{"class":1062}," email",[1007,3119,1066],{"class":1055},[1007,3121,1122],{"class":1055},[1007,3123,3124],{"class":1062}," subject",[1007,3126,1066],{"class":1055},[1007,3128,1083],{"class":1055},[1007,3130,3131],{"class":1017},"Tomorrow: {{event.name}}",[1007,3133,1072],{"class":1055},[1007,3135,1080],{"class":1055},[1007,3137,3138],{"class":1062}," body",[1007,3140,1066],{"class":1055},[1007,3142,1083],{"class":1055},[1007,3144,3145],{"class":1017},"See you at {{event.startsAt}}.",[1007,3147,1072],{"class":1055},[1007,3149,2587],{"class":1055},[1007,3151,1148],{"class":1055},[1007,3153,3155,3158,3160],{"class":1009,"line":3154},28,[1007,3156,3157],{"class":1055},"    }",[1007,3159,1108],{"class":1062},[1007,3161,1111],{"class":1055},[1007,3163,3165,3168],{"class":1009,"line":3164},29,[1007,3166,3167],{"class":1055},"  }",[1007,3169,1157],{"class":1062},[1007,3171,3173,3175],{"class":1009,"line":3172},30,[1007,3174,1154],{"class":1055},[1007,3176,1157],{"class":1051},[1297,3178,3179,3189],{},[1300,3180,3181],{},[1303,3182,3183,3186],{},[1306,3184,3185],{},"Field",[1306,3187,3188],{},"What it is",[1319,3190,3191,3208,3230,3240,3264,3274,3284,3298,3325],{},[1303,3192,3193,3198],{},[1324,3194,3195],{},[758,3196,3197],{},"type",[1324,3199,3200,3201,3204,3205,805],{},"Stored on the campaigns and used in variables (",[758,3202,3203],{},"{{event.name}}","). Lower case letters, digits and ",[758,3206,3207],{},"-",[1303,3209,3210,3214],{},[1324,3211,3212],{},[758,3213,2370],{},[1324,3215,3216,3217,1838,3220,1838,3223,1838,3226,3229],{},"The notify topic its messages follow (",[758,3218,3219],{},"key",[758,3221,3222],{},"label",[758,3224,3225],{},"description",[758,3227,3228],{},"defaults",": email and push on, SMS off unless set). Unsubscribing from one of its messages turns that channel off for this topic only.",[1303,3231,3232,3237],{},[1324,3233,3234],{},[758,3235,3236],{},"permission",[1324,3238,3239],{},"Who manages the owner's messages. They need no campaigns permission.",[1303,3241,3242,3253],{},[1324,3243,3244,1838,3247,1838,3250],{},[758,3245,3246],{},"tabArea",[758,3248,3249],{},"contextKey",[758,3251,3252],{},"tabOrder",[1324,3254,3255,3256,3259,3260,3263],{},"Where the Messages tab goes (with Widget and Admin installed), and the ",[758,3257,3258],{},"context"," key holding the record whose ",[758,3261,3262],{},"id"," is the owner id.",[1303,3265,3266,3271],{},[1324,3267,3268],{},[758,3269,3270],{},"anchors",[1324,3272,3273],{},"Dates a message can be timed from.",[1303,3275,3276,3281],{},[1324,3277,3278],{},[758,3279,3280],{},"triggers",[1324,3282,3283],{},"Happenings that send a message to the people they happen to.",[1303,3285,3286,3291],{},[1324,3287,3288],{},[758,3289,3290],{},"audiences",[1324,3292,3293,3294,3297],{},"Grant lists (",[758,3295,3296],{},"@frigear-nu\u002Fauth",") the messages can go to. Staff pick one by key; they never edit the grants.",[1303,3299,3300,3305],{},[1324,3301,3302],{},[758,3303,3304],{},"variables",[1324,3306,3307,3308,3311,3312,1838,3315,3317,3318,3320,3321,3324],{},"Values for ",[758,3309,3310],{},"{{\u003Ctype>.\u003Ckey>}}",": ",[758,3313,3314],{},"text",[758,3316,2920],{}," (written in each recipient's language) or ",[758,3319,2938],{}," (tracked like any link). ",[758,3322,3323],{},"{{recipient.name}}"," is always there.",[1303,3326,3327,3332],{},[1324,3328,3329],{},[758,3330,3331],{},"presets",[1324,3333,3334],{},"Ready-made messages the \"Add message\" menu offers.",[993,3336,3338],{"id":3337},"answer-for-your-records","Answer for your records",[738,3340,3341,3342,3345,3346,805],{},"At run time, answer the ",[758,3343,3344],{},"campaigns:owner:resolve"," Nitro hook for your type. Campaigns calls it to name the owner, to\ntime relative messages, to fill the variables and to check its permission with ",[758,3347,3348],{},"record",[998,3350,3353],{"className":1031,"code":3351,"filename":3352,"language":1033,"meta":1003,"style":1003},"export default defineNitroPlugin((nitro) => {\n  nitro.hooks.hook('campaigns:owner:resolve', async (ctx) => {\n    if (ctx.type !== 'event') return\n    const event = await findEvent(ctx.id)\n    if (!event) return\n    ctx.owner = {\n      name: event.name,\n      url: `\u002Fadmin\u002Fevents\u002F${event.id}`,\n      anchors: { startsAt: event.startsAt },\n      variables: { name: event.name, startsAt: event.startsAt, url: eventPublicUrl(event) },\n      \u002F\u002F `false` holds its relative messages (an unpublished event).\n      live: event.status === 'published',\n      timeZone: 'Europe\u002FCopenhagen',\n      record: event,\n    }\n  })\n})\n","server\u002Fplugins\u002Fcampaigns-owner.ts",[758,3354,3355,3377,3415,3443,3470,3485,3499,3513,3540,3562,3613,3618,3644,3660,3671,3676,3682],{"__ignoreMap":1003},[1007,3356,3357,3359,3361,3364,3366,3368,3371,3373,3375],{"class":1009,"line":1010},[1007,3358,1041],{"class":1040},[1007,3360,1044],{"class":1040},[1007,3362,3363],{"class":1047}," defineNitroPlugin",[1007,3365,1052],{"class":1051},[1007,3367,1052],{"class":1055},[1007,3369,3370],{"class":2447},"nitro",[1007,3372,1922],{"class":1055},[1007,3374,2453],{"class":1250},[1007,3376,2456],{"class":1055},[1007,3378,3379,3382,3384,3387,3389,3391,3393,3395,3397,3399,3401,3404,3406,3409,3411,3413],{"class":1009,"line":1059},[1007,3380,3381],{"class":1051},"  nitro",[1007,3383,805],{"class":1055},[1007,3385,3386],{"class":1051},"hooks",[1007,3388,805],{"class":1055},[1007,3390,2432],{"class":1047},[1007,3392,1052],{"class":1062},[1007,3394,1072],{"class":1055},[1007,3396,3344],{"class":1017},[1007,3398,1072],{"class":1055},[1007,3400,1080],{"class":1055},[1007,3402,3403],{"class":1250}," async",[1007,3405,2012],{"class":1055},[1007,3407,3408],{"class":2447},"ctx",[1007,3410,1922],{"class":1055},[1007,3412,2453],{"class":1250},[1007,3414,2456],{"class":1055},[1007,3416,3417,3420,3422,3424,3426,3428,3431,3433,3435,3437,3440],{"class":1009,"line":1114},[1007,3418,3419],{"class":1040},"    if",[1007,3421,2012],{"class":1062},[1007,3423,3408],{"class":1051},[1007,3425,805],{"class":1055},[1007,3427,3197],{"class":1051},[1007,3429,3430],{"class":1055}," !==",[1007,3432,1083],{"class":1055},[1007,3434,2481],{"class":1017},[1007,3436,1072],{"class":1055},[1007,3438,3439],{"class":1062},") ",[1007,3441,3442],{"class":1040},"return\n",[1007,3444,3445,3448,3451,3454,3457,3460,3462,3464,3466,3468],{"class":1009,"line":1151},[1007,3446,3447],{"class":1250},"    const",[1007,3449,3450],{"class":1051}," event",[1007,3452,3453],{"class":1055}," =",[1007,3455,3456],{"class":1040}," await",[1007,3458,3459],{"class":1047}," findEvent",[1007,3461,1052],{"class":1062},[1007,3463,3408],{"class":1051},[1007,3465,805],{"class":1055},[1007,3467,3262],{"class":1051},[1007,3469,1157],{"class":1062},[1007,3471,3472,3474,3476,3479,3481,3483],{"class":1009,"line":2525},[1007,3473,3419],{"class":1040},[1007,3475,2012],{"class":1062},[1007,3477,3478],{"class":1055},"!",[1007,3480,2481],{"class":1051},[1007,3482,3439],{"class":1062},[1007,3484,3442],{"class":1040},[1007,3486,3487,3490,3492,3495,3497],{"class":1009,"line":2532},[1007,3488,3489],{"class":1051},"    ctx",[1007,3491,805],{"class":1055},[1007,3493,3494],{"class":1051},"owner",[1007,3496,3453],{"class":1055},[1007,3498,2456],{"class":1055},[1007,3500,3501,3503,3505,3507,3509,3511],{"class":1009,"line":2592},[1007,3502,3027],{"class":1062},[1007,3504,1066],{"class":1055},[1007,3506,3450],{"class":1051},[1007,3508,805],{"class":1055},[1007,3510,2865],{"class":1051},[1007,3512,1111],{"class":1055},[1007,3514,3515,3518,3520,3523,3526,3529,3531,3533,3535,3538],{"class":1009,"line":2598},[1007,3516,3517],{"class":1062},"      url",[1007,3519,1066],{"class":1055},[1007,3521,3522],{"class":1055}," `",[1007,3524,3525],{"class":1017},"\u002Fadmin\u002Fevents\u002F",[1007,3527,3528],{"class":1055},"${",[1007,3530,2481],{"class":1051},[1007,3532,805],{"class":1055},[1007,3534,3262],{"class":1051},[1007,3536,3537],{"class":1055},"}`",[1007,3539,1111],{"class":1055},[1007,3541,3542,3545,3547,3549,3552,3554,3556,3558,3560],{"class":1009,"line":2615},[1007,3543,3544],{"class":1062},"      anchors",[1007,3546,1066],{"class":1055},[1007,3548,1122],{"class":1055},[1007,3550,3551],{"class":1062}," startsAt",[1007,3553,1066],{"class":1055},[1007,3555,3450],{"class":1051},[1007,3557,805],{"class":1055},[1007,3559,2673],{"class":1051},[1007,3561,1148],{"class":1055},[1007,3563,3564,3567,3569,3571,3574,3576,3578,3580,3582,3584,3586,3588,3590,3592,3594,3596,3599,3601,3604,3606,3608,3610],{"class":1009,"line":2621},[1007,3565,3566],{"class":1062},"      variables",[1007,3568,1066],{"class":1055},[1007,3570,1122],{"class":1055},[1007,3572,3573],{"class":1062}," name",[1007,3575,1066],{"class":1055},[1007,3577,3450],{"class":1051},[1007,3579,805],{"class":1055},[1007,3581,2865],{"class":1051},[1007,3583,1080],{"class":1055},[1007,3585,3551],{"class":1062},[1007,3587,1066],{"class":1055},[1007,3589,3450],{"class":1051},[1007,3591,805],{"class":1055},[1007,3593,2673],{"class":1051},[1007,3595,1080],{"class":1055},[1007,3597,3598],{"class":1062}," url",[1007,3600,1066],{"class":1055},[1007,3602,3603],{"class":1047}," eventPublicUrl",[1007,3605,1052],{"class":1062},[1007,3607,2481],{"class":1051},[1007,3609,3439],{"class":1062},[1007,3611,3612],{"class":1055},"},\n",[1007,3614,3615],{"class":1009,"line":2638},[1007,3616,3617],{"class":2528},"      \u002F\u002F `false` holds its relative messages (an unpublished event).\n",[1007,3619,3620,3623,3625,3627,3629,3632,3635,3637,3640,3642],{"class":1009,"line":2654},[1007,3621,3622],{"class":1062},"      live",[1007,3624,1066],{"class":1055},[1007,3626,3450],{"class":1051},[1007,3628,805],{"class":1055},[1007,3630,3631],{"class":1051},"status",[1007,3633,3634],{"class":1055}," ===",[1007,3636,1083],{"class":1055},[1007,3638,3639],{"class":1017},"published",[1007,3641,1072],{"class":1055},[1007,3643,1111],{"class":1055},[1007,3645,3646,3649,3651,3653,3656,3658],{"class":1009,"line":2697},[1007,3647,3648],{"class":1062},"      timeZone",[1007,3650,1066],{"class":1055},[1007,3652,1083],{"class":1055},[1007,3654,3655],{"class":1017},"Europe\u002FCopenhagen",[1007,3657,1072],{"class":1055},[1007,3659,1111],{"class":1055},[1007,3661,3662,3665,3667,3669],{"class":1009,"line":2739},[1007,3663,3664],{"class":1062},"      record",[1007,3666,1066],{"class":1055},[1007,3668,3450],{"class":1051},[1007,3670,1111],{"class":1055},[1007,3672,3673],{"class":1009,"line":2745},[1007,3674,3675],{"class":1055},"    }\n",[1007,3677,3678,3680],{"class":1009,"line":2842},[1007,3679,3167],{"class":1055},[1007,3681,1157],{"class":1062},[1007,3683,3684,3686],{"class":1009,"line":2853},[1007,3685,1154],{"class":1055},[1007,3687,1157],{"class":1051},[738,3689,3690],{},"Then tell campaigns what happens to your records, from your own hooks:",[1297,3692,3693,3703],{},[1300,3694,3695],{},[1303,3696,3697,3700],{},[1306,3698,3699],{},"Call",[1306,3701,3702],{},"When",[1319,3704,3705,3715,3725],{},[1303,3706,3707,3712],{},[1324,3708,3709],{},[758,3710,3711],{},"campaignsOwnerChanged(type, id)",[1324,3713,3714],{},"The record changed (a date, whether it is live). Its relative messages that have not gone out are timed again.",[1303,3716,3717,3722],{},[1324,3718,3719],{},[758,3720,3721],{},"campaignsOwnerRemoved(type, id)",[1324,3723,3724],{},"The record is deleted or archived. Waiting messages are cancelled, armed ones paused.",[1303,3726,3727,3732],{},[1324,3728,3729],{},[758,3730,3731],{},"campaignsTrigger(type, id, key, { userIds })",[1324,3733,3734,3736,3737,3739],{},[758,3735,3219],{}," happened to these users (a ticket was paid). Each armed message on ",[758,3738,3219],{}," goes to each of them once.",[738,3741,3742,3743,3745,3746,3748,3749,3752,3753,3756],{},"Grant kinds used in ",[758,3744,3290],{}," are resolved by the ",[758,3747,911],{}," task, outside a request: their ",[758,3750,3751],{},"members"," get\na system event (",[758,3754,3755],{},"grantsSystemEvent()"," of auth), so they must not read the session or headers.",[993,3758,3759],{"id":3280},"Triggers",[1297,3761,3762,3772],{},[1300,3763,3764],{},[1303,3765,3766,3769],{},[1306,3767,3768],{},"Trigger",[1306,3770,3771],{},"What happens",[1319,3773,3774,3784,3805],{},[1303,3775,3776,3781],{},[1324,3777,3778],{},[758,3779,3780],{},"{ type: 'manual' }",[1324,3782,3783],{},"Sent now or at a date, like any campaign.",[1303,3785,3786,3791],{},[1324,3787,3788],{},[758,3789,3790],{},"{ type: 'relative', anchor, offsetMinutes, ifLate }",[1324,3792,3793,3794,3796,3797,3800,3801,3804],{},"Turned on, it is ",[758,3795,2184],{}," at the anchor plus the offset (negative is before) and follows the date when the owner changes. A time already passed holds it (",[758,3798,3799],{},"held",") instead of sending it late, unless ",[758,3802,3803],{},"ifLate: 'send'","; so does an owner that is not live. Staff send a held message now, or cancel it.",[1303,3806,3807,3812],{},[1324,3808,3809],{},[758,3810,3811],{},"{ type: 'event', key }",[1324,3813,3793,3814,3816,3817,3820],{},[758,3815,1827],{}," (armed): each ",[758,3818,3819],{},"campaignsTrigger"," adds a delivery per channel for the people named, and the unique key per campaign, channel and user sends it to each person once. It can be paused and resumed, and it collects its stats on one row.",[738,3822,3823],{},"The audience of a managed message is read when it starts, not when it is turned on: people who joined since get it.\nBefore a relative message starts, campaigns asks the owner once more, so a moved date or an owner gone off-line holds\nit, and a deleted owner cancels it.",[993,3825,3826],{"id":3304},"Variables",[738,3828,3829,3830,3832,3833,3835,3836,3839],{},"Texts can use the owner's variables and ",[758,3831,3323],{},". In the email body, text values are inserted after the\nmarkdown is rendered and HTML-escaped, so a name never becomes a link or markup; ",[758,3834,2938],{}," values are inserted as written,\nso they become links and are tracked. A variable the owner does not have is a ",[758,3837,3838],{},"400 validation_failed"," on save and send.",[993,3841,3843],{"id":3842},"access","Access",[738,3845,3846,3847,3849,3850,3852,3853,1838,3856,1838,3859,1838,3862,1838,3865,1838,3868,1838,3871,1838,3874,1838,3877,3880,3881,1847,3883,3885,3886,3888,3889,3891,3892,3895,3896,3898,3899,2164,3902,3905,3906,3909],{},"The owner's routes check its ",[758,3848,3236],{}," before anything is loaded, then with the owner's ",[758,3851,3348],{},". The campaign routes\n(",[758,3854,3855],{},"GET",[758,3857,3858],{},"preview",[758,3860,3861],{},"stats",[758,3863,3864],{},"send",[758,3866,3867],{},"schedule",[758,3869,3870],{},"cancel",[758,3872,3873],{},"activate",[758,3875,3876],{},"pause",[758,3878,3879],{},"resume",") take ",[758,3882,1718],{},[758,3884,1733],{}," as before, or, for a managed campaign, its owner's permission. An ",[758,3887,2108],{}," message still needs\n",[758,3890,1747],{},", and who it went to (",[758,3893,3894],{},"deliveries",") still needs ",[758,3897,1761],{},". The general ",[758,3900,3901],{},"PATCH",[758,3903,3904],{},"DELETE"," answer ",[758,3907,3908],{},"409 campaign_managed"," for a managed campaign.",[766,3911,862],{"id":3912},"staff-screens",[738,3914,3915,3916,3918],{},"The campaign pages need ",[750,3917,225],{"href":427},". They sit under one \"Campaigns\" item of the admin sidebar,\nwith tabs to the lists.",[771,3920,3921,3928,3934,3944,3954],{},[774,3922,3923,3927],{},[745,3924,3925],{},[758,3926,853],{}," lists the campaigns, newest first, with their status, kind, channels, audience, when they\nwent (or go) out and how many were sent, opened and clicked. Past eight campaigns a toolbar searches by name and\nfilters by status and kind. Each row has a menu: Open, Edit campaign, Duplicate, Cancel campaign and Delete campaign,\nas far as the campaign's status and your permissions allow.",[774,3929,3930,3933],{},[745,3931,3932],{},"Create campaign"," opens a form: the kind (to lists or to people, fixed once created), the channels, the audience\n(lists to send to, or people and groups such as roles, teams and operations), the texts per channel and\nlanguage, and whether to count clicks (on by default) and opens (off by default). A draft may be unfinished; the\ntexts of one channel go together.",[774,3935,3936,3940,3941,3943],{},[745,3937,3938],{},[758,3939,857],{}," shows one campaign: what keeps a draft from being sent, a summary, the audience with how\nmany it reaches now per channel, the content per channel and language (the email rendered as recipients read it,\nwithout its footer), and once it goes out the results: counts, skipped rows by reason, clicks per link and, with\n",[758,3942,1761],{},", the recipients.",[774,3945,3946,3949,3950,3953],{},[745,3947,3948],{},"Send campaign"," first counts who it reaches and asks you to confirm with those numbers. ",[745,3951,3952],{},"Schedule campaign"," asks\nfor a date and time in your own time zone. A scheduled or sending campaign can be cancelled.",[774,3955,3956,3959,3960,3962,3963,3967,3968,3971,3972,3974],{},[745,3957,3958],{},"Messages tab"," on an owner's page (",[758,3961,3246],{}," of its ",[750,3964,3966],{"href":3965},"#declare-an-owner","definition","), for holders of the owner's\npermission: its messages in Upcoming (drafts, dated and relative ones, held ones flagged), Automatic (on a happening)\nand Sent, each with its trigger, audience, status and sent count. ",[745,3969,3970],{},"Add message"," starts a blank draft or one of the\nowner's presets; the form picks one of its audiences, when it goes out (by hand, before or after one of its dates, or\nwhen something happens), the texts with the owner's variables, and tracking. A row's menu turns a message on, sends\na held one now, pauses, resumes, cancels or deletes it. In ",[758,3973,853],{}," a managed campaign is read-only, with a\n\"Managed by\" badge linking to its owner, and an owner filter.",[1297,3976,3977,3990],{},[1300,3978,3979],{},[1303,3980,3981,3984,3987],{},[1306,3982,3983],{},"Action",[1306,3985,3986],{},"Needs",[1306,3988,3989],{},"Only when",[1319,3991,3992,4003,4015,4027,4039,4051],{},[1303,3993,3994,3997,4001],{},[1324,3995,3996],{},"See campaigns, their audience, content and results",[1324,3998,3999],{},[758,4000,1718],{},[1324,4002],{},[1303,4004,4005,4008,4012],{},[1324,4006,4007],{},"Create, edit, duplicate and delete",[1324,4009,4010],{},[758,4011,1718],{},[1324,4013,4014],{},"Edit and delete: a draft",[1303,4016,4017,4020,4024],{},[1324,4018,4019],{},"Send now, schedule",[1324,4021,4022],{},[758,4023,1733],{},[1324,4025,4026],{},"A draft with nothing missing",[1303,4028,4029,4032,4036],{},[1324,4030,4031],{},"Cancel",[1324,4033,4034],{},[758,4035,1733],{},[1324,4037,4038],{},"Scheduled or sending",[1303,4040,4041,4044,4049],{},[1324,4042,4043],{},"Make a campaign to people important, or edit, send or duplicate an important one",[1324,4045,4046,4048],{},[758,4047,1747],{}," as well",[1324,4050],{},[1303,4052,4053,4056,4060],{},[1324,4054,4055],{},"See the recipients of each delivery",[1324,4057,4058],{},[758,4059,1761],{},[1324,4061,4062],{},"Once it went out",[738,4064,4065],{},"The pages hide what you may not do; the routes check again.",[766,4067,4069],{"id":4068},"the-signup-component","The signup component",[998,4071,4073],{"className":1223,"code":4072,"language":1226,"meta":1003,"style":1003},"\u003CListSignup list=\"news\" \u002F>\n\u003CListSignup list=\"news\" title=\"Get our news\" description=\"Once a month, no more.\" \u002F>\n\u003CListSignup list=\"news\" :title=\"false\" \u002F>\n",[758,4074,4075,4093,4135],{"__ignoreMap":1003},[1007,4076,4077,4079,4081,4083,4085,4087,4089,4091],{"class":1009,"line":1010},[1007,4078,1233],{"class":1055},[1007,4080,1247],{"class":1062},[1007,4082,1251],{"class":1250},[1007,4084,1178],{"class":1055},[1007,4086,1256],{"class":1055},[1007,4088,1259],{"class":1017},[1007,4090,1256],{"class":1055},[1007,4092,1264],{"class":1055},[1007,4094,4095,4097,4099,4101,4103,4105,4107,4109,4112,4114,4116,4119,4121,4124,4126,4128,4131,4133],{"class":1009,"line":1059},[1007,4096,1233],{"class":1055},[1007,4098,1247],{"class":1062},[1007,4100,1251],{"class":1250},[1007,4102,1178],{"class":1055},[1007,4104,1256],{"class":1055},[1007,4106,1259],{"class":1017},[1007,4108,1256],{"class":1055},[1007,4110,4111],{"class":1250}," title",[1007,4113,1178],{"class":1055},[1007,4115,1256],{"class":1055},[1007,4117,4118],{"class":1017},"Get our news",[1007,4120,1256],{"class":1055},[1007,4122,4123],{"class":1250}," description",[1007,4125,1178],{"class":1055},[1007,4127,1256],{"class":1055},[1007,4129,4130],{"class":1017},"Once a month, no more.",[1007,4132,1256],{"class":1055},[1007,4134,1264],{"class":1055},[1007,4136,4137,4139,4141,4143,4145,4147,4149,4151,4154,4157,4159,4161,4163,4165],{"class":1009,"line":1114},[1007,4138,1233],{"class":1055},[1007,4140,1247],{"class":1062},[1007,4142,1251],{"class":1250},[1007,4144,1178],{"class":1055},[1007,4146,1256],{"class":1055},[1007,4148,1259],{"class":1017},[1007,4150,1256],{"class":1055},[1007,4152,4153],{"class":1055}," :",[1007,4155,4156],{"class":1250},"title",[1007,4158,1178],{"class":1055},[1007,4160,1256],{"class":1055},[1007,4162,1443],{"class":1144},[1007,4164,1256],{"class":1055},[1007,4166,1264],{"class":1055},[1297,4168,4169,4180],{},[1300,4170,4171],{},[1303,4172,4173,4176,4178],{},[1306,4174,4175],{},"Prop",[1306,4177,1311],{},[1306,4179,1317],{},[1319,4181,4182,4196,4212],{},[1303,4183,4184,4189,4193],{},[1324,4185,4186],{},[758,4187,4188],{},"list",[1324,4190,4191],{},[758,4192,1461],{},[1324,4194,4195],{},"The list's URL name. Required.",[1303,4197,4198,4202,4206],{},[1324,4199,4200],{},[758,4201,4156],{},[1324,4203,4204],{},[758,4205,1513],{},[1324,4207,4208,4209,4211],{},"Replaces the list's name as the heading; ",[758,4210,1443],{}," shows none.",[1303,4213,4214,4218,4222],{},[1324,4215,4216],{},[758,4217,3225],{},[1324,4219,4220],{},[758,4221,1461],{},[1324,4223,4224],{},"Replaces the list's description.",[738,4226,4227,4228,4230],{},"It asks for a name, an email address and a phone number (the channels the list has), shows the consent text next\nto the checkbox and posts in the visitor's locale, which the confirmation message uses. With the ",[758,4229,1433],{}," option it\nshows the captcha widget of Forms.",[738,4232,4233],{},"In a Nuxt Content page:",[998,4235,4239],{"className":4236,"code":4237,"language":4238,"meta":1003,"style":1003},"language-md shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","::list-signup{list=\"news\"}\n::\n","md",[758,4240,4241,4246],{"__ignoreMap":1003},[1007,4242,4243],{"class":1009,"line":1010},[1007,4244,4245],{"class":1051},"::list-signup{list=\"news\"}\n",[1007,4247,4248],{"class":1009,"line":1059},[1007,4249,4250],{"class":1051},"::\n",[738,4252,4253,4256,4257,4260,4261,4263,4264,805],{},[745,4254,4255],{},"Another site."," Each list's staff page has a plain HTML ",[758,4258,4259],{},"\u003Cform>"," to paste into a site that cannot run the\ncomponent. It posts to the subscribe route, which redirects the visitor to ",[758,4262,817],{}," to check their inbox.\nA site that posts with JavaScript instead needs its origin in ",[758,4265,1409],{},[766,4267,4269],{"id":4268},"routes","Routes",[738,4271,4272,4273,2012,4276,932],{},"Path builders come from ",[758,4274,4275],{},"@frigear-nu\u002Fcampaigns\u002Fapi",[758,4277,4278],{},"campaignsApi",[1297,4280,4281,4294],{},[1300,4282,4283],{},[1303,4284,4285,4288,4291],{},[1306,4286,4287],{},"Route",[1306,4289,4290],{},"Who",[1306,4292,4293],{},"What",[1319,4295,4296,4309,4339,4359,4380,4395,4410,4430,4450,4468,4488,4526,4540,4571,4596,4613,4640,4657,4674,4715,4734,4763,4786,4817,4833],{},[1303,4297,4298,4303,4306],{},[1324,4299,4300],{},[758,4301,4302],{},"GET \u002Fapi\u002Fcampaigns\u002Flists\u002F:slug",[1324,4304,4305],{},"Anyone",[1324,4307,4308],{},"A public list as the signup shows it. A list that is not public is a 404.",[1303,4310,4311,4316,4319],{},[1324,4312,4313],{},[758,4314,4315],{},"POST \u002Fapi\u002Fcampaigns\u002Flists\u002F:slug\u002Fsubscribe",[1324,4317,4318],{},"Anyone (rate limited)",[1324,4320,4321,4324,4325,4327,4328,4331,4332,4335,4336,805],{},[758,4322,4323],{},"{ email?, phone?, name?, locale?, channels?, consent, captcha? }",", as JSON or a plain form. Answers ",[758,4326,1807],{},"; a plain form post gets a 303 to the confirm page. 429 ",[758,4329,4330],{},"rate_limited",", 400 ",[758,4333,4334],{},"captcha_required"," \u002F ",[758,4337,4338],{},"captcha_failed",[1303,4340,4341,4346,4349],{},[1324,4342,4343],{},[758,4344,4345],{},"POST \u002Fapi\u002Fcampaigns\u002Fconfirm\u002F:token",[1324,4347,4348],{},"The token",[1324,4350,4351,4352,4355,4356,805],{},"Confirms the subscription. 400 ",[758,4353,4354],{},"invalid_token"," (unknown or used), 410 ",[758,4357,4358],{},"token_expired",[1303,4360,4361,4366,4368],{},[1324,4362,4363],{},[758,4364,4365],{},"POST \u002Fapi\u002Fcampaigns\u002Funsubscribe\u002F:token",[1324,4367,4348],{},[1324,4369,4370,4371,4373,4374,4377,4378,805],{},"Unsubscribes what the token names: a subscription, or a campaign message's lists (answers like a subscription) or the channel of its topic, ",[758,4372,900],{}," or a managed message's owner topic (answers ",[758,4375,4376],{},"{ topic, channel, status }","). The RFC 8058 one-click target: the body is not read. 400 ",[758,4379,4354],{},[1303,4381,4382,4387,4389],{},[1324,4383,4384],{},[758,4385,4386],{},"GET \u002Fapi\u002Fcampaigns\u002Fo\u002F:token",[1324,4388,4348],{},[1324,4390,4391,4392,4394],{},"The 1x1 GIF of a campaign email; marks it opened with ",[758,4393,2239],{},". The same image for any token.",[1303,4396,4397,4402,4404],{},[1324,4398,4399],{},[758,4400,4401],{},"GET \u002Fapi\u002Fcampaigns\u002Fsignup\u002Flists",[1324,4403,4305],{},[1324,4405,4406,4407,805],{},"The lists the registration form offers: ",[758,4408,4409],{},"[{ id, slug, name, description, consentText }]",[1303,4411,4412,4419,4423],{},[1324,4413,4414,1838,4416],{},[758,4415,3855],{},[758,4417,4418],{},"PATCH \u002Fapi\u002Fcampaigns\u002Fme\u002Fsubscriptions",[1324,4420,4421],{},[758,4422,1779],{},[1324,4424,4425,4426,4429],{},"The user's subscriptions; ",[758,4427,4428],{},"PATCH { lists: { [listId]: { email?, sms? } } }"," turns channels on (email only) or off.",[1303,4431,4432,4439,4443],{},[1324,4433,4434,1838,4436],{},[758,4435,3855],{},[758,4437,4438],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002Flists",[1324,4440,4441],{},[758,4442,1718],{},[1324,4444,4445,4446,4449],{},"Every list with its counts; creates one. 409 ",[758,4447,4448],{},"conflict"," for a URL name in use.",[1303,4451,4452,4461,4465],{},[1324,4453,4454,1838,4456,1838,4458],{},[758,4455,3855],{},[758,4457,3901],{},[758,4459,4460],{},"DELETE \u002Fapi\u002Fadmin\u002Fcampaigns\u002Flists\u002F:id",[1324,4462,4463],{},[758,4464,1718],{},[1324,4466,4467],{},"One list. Deleting it deletes its subscriptions.",[1303,4469,4470,4475,4479],{},[1324,4471,4472],{},[758,4473,4474],{},"GET \u002Fapi\u002Fadmin\u002Fcampaigns\u002Flists\u002F:id\u002Fsubscribers",[1324,4476,4477],{},[758,4478,1718],{},[1324,4480,4481,4482,4485,4486,805],{},"Paginated subscriptions, ",[758,4483,4484],{},"?status&channel&q&sort&order",". Addresses with ",[758,4487,1761],{},[1303,4489,4490,4497,4501],{},[1324,4491,4492,1838,4494],{},[758,4493,3855],{},[758,4495,4496],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002Flists\u002F:id\u002Faccounts",[1324,4498,4499],{},[758,4500,1718],{},[1324,4502,4503,4504,4506,4507,4509,4510,4513,4514,4517,4518,4521,4522,4525],{},"\"Add all current accounts\" of an ",[758,4505,1933],{}," list: ",[758,4508,3855],{}," answers ",[758,4511,4512],{},"{ accounts }"," (how many it would add), ",[758,4515,4516],{},"POST"," adds them and answers ",[758,4519,4520],{},"{ added }",". 409 ",[758,4523,4524],{},"signup_mode"," for another list.",[1303,4527,4528,4533,4537],{},[1324,4529,4530],{},[758,4531,4532],{},"GET \u002Fapi\u002Fadmin\u002Fcampaigns\u002Fforms",[1324,4534,4535],{},[758,4536,1718],{},[1324,4538,4539],{},"With Forms: the forms that are not archived, with the fields a list can map.",[1303,4541,4542,4549,4553],{},[1324,4543,4544,1838,4546],{},[758,4545,3855],{},[758,4547,4548],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns",[1324,4550,4551],{},[758,4552,1718],{},[1324,4554,4555,4556,2012,4559,3311,4561,1838,4563,4565,4566,4568,4569,805],{},"Paginated campaigns, ",[758,4557,4558],{},"?status&kind&owner&q&sort&order",[758,4560,3494],{},[758,4562,2159],{},[758,4564,2394],{}," or an owner type); creates a draft. An ",[758,4567,2108],{}," one needs ",[758,4570,1747],{},[1303,4572,4573,4582,4586],{},[1324,4574,4575,1838,4577,1838,4579],{},[758,4576,3855],{},[758,4578,3901],{},[758,4580,4581],{},"DELETE \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id",[1324,4583,4584],{},[758,4585,1718],{},[1324,4587,4588,4589,4592,4593,805],{},"One campaign. Only a draft changes or is deleted: 409 ",[758,4590,4591],{},"not_draft","; a managed one only through its owner: 409 ",[758,4594,4595],{},"campaign_managed",[1303,4597,4598,4603,4607],{},[1324,4599,4600],{},[758,4601,4602],{},"GET \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Fpreview",[1324,4604,4605],{},[758,4606,1718],{},[1324,4608,4609,4612],{},[758,4610,4611],{},"{ recipients, channels }",": who it reaches now, per channel. For a campaign to people, the most it can reach.",[1303,4614,4615,4620,4624],{},[1324,4616,4617],{},[758,4618,4619],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Fsend",[1324,4621,4622],{},[758,4623,1733],{},[1324,4625,4626,4627,4630,4631,4633,4634,4633,4636,4639],{},"Sends a draft (or a held managed message) now. 400 ",[758,4628,4629],{},"validation_failed"," (not ready) or ",[758,4632,2171],{},", 409 ",[758,4635,4591],{},[758,4637,4638],{},"trigger_not_manual"," for a managed draft that goes out on its own.",[1303,4641,4642,4647,4651],{},[1324,4643,4644],{},[758,4645,4646],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Fschedule",[1324,4648,4649],{},[758,4650,1733],{},[1324,4652,4653,4656],{},[758,4654,4655],{},"{ scheduledAt }"," in the future.",[1303,4658,4659,4664,4668],{},[1324,4660,4661],{},[758,4662,4663],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Fcancel",[1324,4665,4666],{},[758,4667,1733],{},[1324,4669,4670,4671,805],{},"Stops a scheduled or sending campaign; unsent rows are skipped. 409 ",[758,4672,4673],{},"not_cancellable",[1303,4675,4676,4681,4685],{},[1324,4677,4678],{},[758,4679,4680],{},"GET \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Fstats",[1324,4682,4683],{},[758,4684,1718],{},[1324,4686,4687,4688,1838,4691,1838,4694,1838,4696,1838,4699,1838,4702,1838,4705,1838,4708,4710,4711,4714],{},"Counts per channel (",[758,4689,4690],{},"total",[758,4692,4693],{},"queued",[758,4695,2198],{},[758,4697,4698],{},"skipped",[758,4700,4701],{},"failed",[758,4703,4704],{},"opened",[758,4706,4707],{},"clicked",[758,4709,2223],{},"), ",[758,4712,4713],{},"skipReasons"," (skipped rows by reason, while the rows are kept) and clicks per link.",[1303,4716,4717,4722,4728],{},[1324,4718,4719],{},[758,4720,4721],{},"GET \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Fdeliveries",[1324,4723,4724,886,4726],{},[758,4725,1718],{},[758,4727,1761],{},[1324,4729,4730,4731,805],{},"Paginated deliveries with their recipient, ",[758,4732,4733],{},"?status&channel&sort&order",[1303,4735,4736,4741,4746],{},[1324,4737,4738],{},[758,4739,4740],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Factivate",[1324,4742,4743,4745],{},[758,4744,1733],{}," or the owner's permission",[1324,4747,4748,4749,4751,4752,4754,4755,4757,4758,1838,4761,805],{},"Turns on a managed draft by its trigger: ",[758,4750,2184],{}," or ",[758,4753,3799],{}," (relative), ",[758,4756,1827],{}," (on a happening). 409 ",[758,4759,4760],{},"trigger_manual",[758,4762,4591],{},[1303,4764,4765,4773,4777],{},[1324,4766,4767,1838,4770],{},[758,4768,4769],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002F:id\u002Fpause",[758,4771,4772],{},"...\u002Fresume",[1324,4774,4775,4745],{},[758,4776,1733],{},[1324,4778,4779,4780,1838,4783,805],{},"Pauses or resumes an armed message. 409 ",[758,4781,4782],{},"not_active",[758,4784,4785],{},"not_paused",[1303,4787,4788,4795,4798],{},[1324,4789,4790,1838,4792],{},[758,4791,3855],{},[758,4793,4794],{},"POST \u002Fapi\u002Fadmin\u002Fcampaigns\u002Fowners\u002F:type\u002F:id\u002Fcampaigns",[1324,4796,4797],{},"The owner's permission",[1324,4799,4800,4803,4804,1838,4807,4809,4810,1838,4813,4816],{},[758,4801,4802],{},"{ owner, campaigns }",": the owner (name, staff URL, ",[758,4805,4806],{},"live",[758,4808,3270],{},") and its messages; creates a draft ",[758,4811,4812],{},"{ name, audience, trigger, channels, content, ... }",[758,4814,4815],{},"audience"," being the key of one of its audiences.",[1303,4818,4819,4826,4828],{},[1324,4820,4821,1838,4823],{},[758,4822,3901],{},[758,4824,4825],{},"DELETE \u002Fapi\u002Fadmin\u002Fcampaigns\u002Fowners\u002F:type\u002F:id\u002Fcampaigns\u002F:campaignId",[1324,4827,4797],{},[1324,4829,4830,4831,805],{},"One draft message of the owner. 409 ",[758,4832,4591],{},[1303,4834,4835,4840,4844],{},[1324,4836,4837],{},[758,4838,4839],{},"GET \u002Fapi\u002Fadmin\u002Fcampaigns\u002Fusers",[1324,4841,4842],{},[758,4843,1718],{},[1324,4845,4846,4847,4850,4851,4854,4855,4857],{},"People for the form of a campaign to people: ",[758,4848,4849],{},"?q="," searches names (at most 20), ",[758,4852,4853],{},"?ids=1,2"," names the people a draft lists. With ",[758,4856,1761],{}," the search matches emails too and the answer carries them.",[738,4859,4860,4861,4863],{},"Sending and scheduling an important message needs ",[758,4862,1747],{}," as well.",[766,4865,40],{"id":4866},"database",[738,4868,4869,4870,4872],{},"Tables the module adds. Generate and commit a ",[750,4871,1191],{"href":498}," after installing.",[1297,4874,4875,4885],{},[1300,4876,4877],{},[1303,4878,4879,4882],{},[1306,4880,4881],{},"Table",[1306,4883,4884],{},"What it holds",[1319,4886,4887,4938,4966,5021,5121,5154,5218],{},[1303,4888,4889,4894],{},[1324,4890,4891],{},[758,4892,4893],{},"campaign_lists",[1324,4895,4896,2012,4898,4710,4901,4904,4905,1838,4907,1838,4909,1838,4912,1838,4915,1838,4917,2012,4919,1838,4921,1838,4923,4710,4925,1838,4928,1838,4931,886,4934,4937],{},[758,4897,3262],{},[758,4899,4900],{},"cml_",[758,4902,4903],{},"slug"," (unique), ",[758,4906,2865],{},[758,4908,3225],{},[758,4910,4911],{},"channels",[758,4913,4914],{},"doubleOptIn",[758,4916,2163],{},[758,4918,1886],{},[758,4920,1909],{},[758,4922,1921],{},[758,4924,1933],{},[758,4926,4927],{},"consentText",[758,4929,4930],{},"consentVersion",[758,4932,4933],{},"formId",[758,4935,4936],{},"formFields"," (a forms form that signs people up).",[1303,4939,4940,4945],{},[1324,4941,4942],{},[758,4943,4944],{},"campaign_contacts",[1324,4946,4947,2012,4949,4710,4952,4954,4955,4958,4959,1838,4962,1838,4964,805],{},[758,4948,3262],{},[758,4950,4951],{},"cmc_",[758,4953,2076],{}," (lower-cased, unique), ",[758,4956,4957],{},"phone"," (E.164, unique), ",[758,4960,4961],{},"userId",[758,4963,2865],{},[758,4965,2149],{},[1303,4967,4968,4973],{},[1324,4969,4970],{},[758,4971,4972],{},"campaign_subscriptions",[1324,4974,4975,2012,4977,4710,4980,1838,4983,1838,4986,4989,4990,2012,4992,1838,4994,1838,4996,4710,4998,5001,5002,1838,5005,1838,5007,1838,5009,1838,5012,1838,5015,1838,5018,805],{},[758,4976,3262],{},[758,4978,4979],{},"cms_",[758,4981,4982],{},"listId",[758,4984,4985],{},"contactId",[758,4987,4988],{},"channel"," (unique together), ",[758,4991,3631],{},[758,4993,1823],{},[758,4995,1827],{},[758,4997,2274],{},[758,4999,5000],{},"confirmTokenHash"," (SHA-256 of the confirmation token), ",[758,5003,5004],{},"confirmExpiresAt",[758,5006,2345],{},[758,5008,4930],{},[758,5010,5011],{},"requestedAt",[758,5013,5014],{},"confirmedAt",[758,5016,5017],{},"ipHash",[758,5019,5020],{},"unsubscribedAt",[1303,5022,5023,5027],{},[1324,5024,5025],{},[758,5026,747],{},[1324,5028,5029,2012,5031,4710,5034,1838,5037,1838,5039,1838,5041,1838,5043,1838,5046,1838,5048,1838,5050,1838,5052,1838,5054,2012,5056,1838,5059,1838,5061,1838,5063,1838,5065,1838,5068,1838,5070,1838,5072,4710,5074,886,5076,5078,5079,5081,5082,1838,5085,1838,5088,1838,5091,886,5094,5097,5098,1838,5101,1838,5104,5107,5108,5111,5112,1838,5115,1838,5118,805],{},[758,5030,3262],{},[758,5032,5033],{},"cmp_",[758,5035,5036],{},"kind",[758,5038,2865],{},[758,5040,4911],{},[758,5042,4815],{},[758,5044,5045],{},"content",[758,5047,2149],{},[758,5049,2208],{},[758,5051,2239],{},[758,5053,2108],{},[758,5055,3631],{},[758,5057,5058],{},"draft",[758,5060,2184],{},[758,5062,3799],{},[758,5064,1827],{},[758,5066,5067],{},"paused",[758,5069,2191],{},[758,5071,2198],{},[758,5073,2278],{},[758,5075,2401],{},[758,5077,2404],{}," (a managed campaign's owner), ",[758,5080,2370],{}," (the notify topic of a message to people), ",[758,5083,5084],{},"trigger",[758,5086,5087],{},"scheduledAt",[758,5089,5090],{},"startedAt",[758,5092,5093],{},"materializedAt",[758,5095,5096],{},"materializeCursor"," (delivery rows added so far), ",[758,5099,5100],{},"finishedAt",[758,5102,5103],{},"cancelledAt",[758,5105,5106],{},"recipientUserIds"," (a message's resolved audience), ",[758,5109,5110],{},"origin"," (the site links point at), ",[758,5113,5114],{},"createdBy",[758,5116,5117],{},"sentBy",[758,5119,5120],{},"counts",[1303,5122,5123,5128],{},[1324,5124,5125],{},[758,5126,5127],{},"campaign_links",[1324,5129,5130,2012,5132,4710,5135,1838,5138,5141,5142,5145,5146,5148,5149,1838,5151,805],{},[758,5131,3262],{},[758,5133,5134],{},"cmk_",[758,5136,5137],{},"campaignId",[758,5139,5140],{},"shortLinkId"," (a ",[758,5143,5144],{},"short_links"," row owned by ",[758,5147,747],{}," and the campaign), ",[758,5150,2938],{},[758,5152,5153],{},"position",[1303,5155,5156,5161],{},[1324,5157,5158],{},[758,5159,5160],{},"campaign_deliveries",[1324,5162,5163,2012,5165,4710,5168,1838,5170,1838,5172,4751,5174,5176,5177,4710,5180,2012,5182,1838,5184,1838,5186,1838,5188,1838,5190,4710,5192,1838,5195,1838,5198,1838,5201,1838,5204,1838,5207,1838,5210,1838,5212,1838,5214,5217],{},[758,5164,3262],{},[758,5166,5167],{},"cmd_",[758,5169,5137],{},[758,5171,4988],{},[758,5173,4961],{},[758,5175,4985],{}," (+ ",[758,5178,5179],{},"subscriptionId",[758,5181,3631],{},[758,5183,4693],{},[758,5185,2191],{},[758,5187,2198],{},[758,5189,4698],{},[758,5191,4701],{},[758,5193,5194],{},"skipReason",[758,5196,5197],{},"attempts",[758,5199,5200],{},"claimId",[758,5202,5203],{},"claimedAt",[758,5205,5206],{},"sentAt",[758,5208,5209],{},"openedAt",[758,5211,2220],{},[758,5213,2223],{},[758,5215,5216],{},"error",". No address.",[1303,5219,5220,5225],{},[1324,5221,5222],{},[758,5223,5224],{},"campaign_clicks",[1324,5226,5227,1838,5230,1838,5233,5236],{},[758,5228,5229],{},"deliveryId",[758,5231,5232],{},"linkId",[758,5234,5235],{},"at",": one row per counted click, for clicks per link.",[766,5238,493],{"id":5239},"translations",[738,5241,5242,5243,5246,5247,5249],{},"Override any string in your app's ",[758,5244,5245],{},"i18n\u002Flocales\u002F\u003Ccode>.json",", under the ",[758,5248,747],{}," key. Campaigns ships Danish and\nEnglish, and so do the confirmation email and SMS and the footers of campaign messages.",[766,5251,5253],{"id":5252},"next-steps","Next steps",[771,5255,5256,5261,5271,5276,5281],{},[774,5257,5258,5260],{},[750,5259,356],{"href":357}," – the email and SMS drivers the messages go out through.",[774,5262,5263,5265,5266,886,5268,5270],{},[750,5264,360],{"href":361}," – override the ",[758,5267,885],{},[758,5269,889],{}," emails.",[774,5272,5273,5275],{},[750,5274,752],{"href":386}," – the links in campaign messages.",[774,5277,5278,5280],{},[750,5279,324],{"href":325}," – the captcha keys the signup uses, and forms that sign people up.",[774,5282,5283,5286,5287,805],{},[750,5284,172],{"href":5285},"\u002Fmodules\u002Fidentity\u002Fauth\u002Freference#widget-areas-of-the-sign-in-pages"," – the registration form's widget area and ",[758,5288,1947],{},[5290,5291,5292],"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":1003,"searchDepth":1059,"depth":1059,"links":5294},[5295,5296,5303,5304,5305,5306,5307,5308,5311,5318,5319,5320,5321,5322,5323],{"id":768,"depth":1059,"text":769},{"id":987,"depth":1059,"text":988,"children":5297},[5298,5299,5301,5302],{"id":995,"depth":1114,"text":996},{"id":1024,"depth":1114,"text":5300},"Add it to nuxt.config.ts",{"id":1184,"depth":1114,"text":1185},{"id":1213,"depth":1114,"text":1214},{"id":1288,"depth":1059,"text":1289},{"id":1688,"depth":1059,"text":1689},{"id":1795,"depth":1059,"text":1796},{"id":1880,"depth":1059,"text":804},{"id":1993,"depth":1059,"text":1994},{"id":747,"depth":1059,"text":389,"children":5309},[5310],{"id":2292,"depth":1114,"text":984},{"id":2388,"depth":1059,"text":927,"children":5312},[5313,5314,5315,5316,5317],{"id":2408,"depth":1114,"text":2409},{"id":3337,"depth":1114,"text":3338},{"id":3280,"depth":1114,"text":3759},{"id":3304,"depth":1114,"text":3826},{"id":3842,"depth":1114,"text":3843},{"id":3912,"depth":1059,"text":862},{"id":4068,"depth":1059,"text":4069},{"id":4268,"depth":1059,"text":4269},{"id":4866,"depth":1059,"text":40},{"id":5239,"depth":1059,"text":493},{"id":5252,"depth":1059,"text":5253},"Lists people sign up to, also without an account, and campaigns to their subscribers and to users by email, SMS and push, with link and open tracking and one-click unsubscribe.",null,{},true,{"title":389,"description":5324},"iF2dyaYYXeZbrmZdh6Owei6W9AULYyx3MXhKSz7aqSk",[5331,5333],{"title":385,"path":386,"stem":387,"description":5332,"children":-1},"Short, trackable links for emails and SMS that any module can make, with click counts and a hook that tells the owner who clicked.",{"title":393,"path":394,"stem":395,"description":5334,"children":-1},"Send and receive text messages through Twilio, shared phones or your own provider, with routing, failover and a message log.",1796157344887]