[{"data":1,"prerenderedAt":4231},["ShallowReactive",2],{"navigation":3,"\u002Fextending-the-cwa\u002Fadmin-pages":630,"\u002Fextending-the-cwa\u002Fadmin-pages-surround":4226},[4,24,67,93,240,541,559],{"title":5,"path":6,"stem":7,"children":8,"collapsed":23},"Getting Started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Introduction",{"title":12,"path":13,"stem":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":16,"path":17,"stem":18},"Key Ideas","\u002Fgetting-started\u002Fkey-ideas","1.getting-started\u002F3.key-ideas",{"title":20,"path":21,"stem":22},"Releases","\u002Fgetting-started\u002Freleases","1.getting-started\u002F4.releases",true,{"title":25,"path":26,"stem":27,"children":28,"collapsed":23},"Core Concepts","\u002Fcore-concepts","2.core-concepts\u002F0.index",[29,31,35,39,43,47,51,55,59,63],{"title":30,"path":26,"stem":27},"Overview",{"title":32,"path":33,"stem":34},"How It All Works","\u002Fcore-concepts\u002Farchitecture","2.core-concepts\u002F1.architecture",{"title":36,"path":37,"stem":38},"The Data Model","\u002Fcore-concepts\u002Fthe-data-model","2.core-concepts\u002F2.the-data-model",{"title":40,"path":41,"stem":42},"Layouts & Pages","\u002Fcore-concepts\u002Flayouts-and-pages","2.core-concepts\u002F3.layouts-and-pages",{"title":44,"path":45,"stem":46},"Dynamic Pages","\u002Fcore-concepts\u002Fdynamic-pages","2.core-concepts\u002F4.dynamic-pages",{"title":48,"path":49,"stem":50},"Components","\u002Fcore-concepts\u002Fcomponents","2.core-concepts\u002F5.components",{"title":52,"path":53,"stem":54},"Draft & Publish Workflow","\u002Fcore-concepts\u002Fdraft-and-publish","2.core-concepts\u002F6.draft-and-publish",{"title":56,"path":57,"stem":58},"The Admin Panel","\u002Fcore-concepts\u002Fadmin-panel","2.core-concepts\u002F7.admin-panel",{"title":60,"path":61,"stem":62},"Caching","\u002Fcore-concepts\u002Fcaching","2.core-concepts\u002F8.caching",{"title":64,"path":65,"stem":66},"Glossary","\u002Fcore-concepts\u002Fglossary","2.core-concepts\u002F9.glossary",{"title":68,"path":69,"stem":70,"children":71,"collapsed":23},"Guides","\u002Fguides","3.guides\u002F0.index",[72,73,77,81,85,89],{"title":30,"path":69,"stem":70},{"title":74,"path":75,"stem":76},"Your First Layout","\u002Fguides\u002Fyour-first-layout","3.guides\u002F1.your-first-layout",{"title":78,"path":79,"stem":80},"Your First Page Template","\u002Fguides\u002Fyour-first-page-template","3.guides\u002F2.your-first-page-template",{"title":82,"path":83,"stem":84},"Your First Component","\u002Fguides\u002Fyour-first-component","3.guides\u002F3.your-first-component",{"title":86,"path":87,"stem":88},"Alternative UI Variants","\u002Fguides\u002Falternative-ui-variants","3.guides\u002F4.alternative-ui-variants",{"title":90,"path":91,"stem":92},"Your First Dynamic Page","\u002Fguides\u002Fyour-first-dynamic-page","3.guides\u002F5.your-first-dynamic-page",{"title":94,"path":95,"stem":96,"children":97,"collapsed":23},"API Bundle (Back-End)","\u002Fapi","4.api\u002F0.index",[98,99,103,107,133,179,183,187,216,220,224,228,232,236],{"title":30,"path":95,"stem":96},{"title":100,"path":101,"stem":102},"Bundle Setup","\u002Fapi\u002Fbundle-setup","4.api\u002F02.bundle-setup",{"title":104,"path":105,"stem":106},"Configuration Reference","\u002Fapi\u002Fconfiguration","4.api\u002F03.configuration",{"title":108,"path":109,"stem":110,"children":111,"page":132},"Users","\u002Fapi\u002Fusers","4.api\u002F04.users",[112,116,120,124,128],{"title":113,"path":114,"stem":115},"Authentication","\u002Fapi\u002Fusers\u002Fauthentication","4.api\u002F04.users\u002F1.authentication",{"title":117,"path":118,"stem":119},"User Emails","\u002Fapi\u002Fusers\u002Fuser-emails","4.api\u002F04.users\u002F2.user-emails",{"title":121,"path":122,"stem":123},"Access Control","\u002Fapi\u002Fusers\u002Faccess-control","4.api\u002F04.users\u002F3.access-control",{"title":125,"path":126,"stem":127},"Sites with Non-Admin Users","\u002Fapi\u002Fusers\u002Fnon-admin-users","4.api\u002F04.users\u002F4.non-admin-users",{"title":129,"path":130,"stem":131},"Admin Roles","\u002Fapi\u002Fusers\u002Fadmin-roles","4.api\u002F04.users\u002F5.admin-roles",false,{"title":48,"path":134,"stem":135,"children":136,"page":132},"\u002Fapi\u002Fcomponents","4.api\u002F05.components",[137,141,162,175],{"title":138,"path":139,"stem":140},"Creating Components","\u002Fapi\u002Fcomponents\u002Fcreating-components","4.api\u002F05.components\u002F1.creating-components",{"title":142,"path":143,"stem":144,"children":145,"page":132},"Annotations","\u002Fapi\u002Fcomponents\u002Fannotations","4.api\u002F05.components\u002F2.annotations",[146,150,154,158],{"title":147,"path":148,"stem":149},"Publishable","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fpublishable","4.api\u002F05.components\u002F2.annotations\u002F1.publishable",{"title":151,"path":152,"stem":153},"Uploadable","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fuploadable","4.api\u002F05.components\u002F2.annotations\u002F2.uploadable",{"title":155,"path":156,"stem":157},"Timestamped","\u002Fapi\u002Fcomponents\u002Fannotations\u002Ftimestamped","4.api\u002F05.components\u002F2.annotations\u002F3.timestamped",{"title":159,"path":160,"stem":161},"Explicit Allow Only","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fexplicit-allow-only","4.api\u002F05.components\u002F2.annotations\u002F4.explicit-allow-only",{"title":163,"path":164,"stem":165,"children":166,"page":132},"Built Ins","\u002Fapi\u002Fcomponents\u002Fbuilt-ins","4.api\u002F05.components\u002F3.built-ins",[167,171],{"title":168,"path":169,"stem":170},"Collection Component","\u002Fapi\u002Fcomponents\u002Fbuilt-ins\u002Fcollection-component","4.api\u002F05.components\u002F3.built-ins\u002F1.collection-component",{"title":172,"path":173,"stem":174},"Form Component","\u002Fapi\u002Fcomponents\u002Fbuilt-ins\u002Fform-component","4.api\u002F05.components\u002F3.built-ins\u002F2.form-component",{"title":176,"path":177,"stem":178},"Groups & Positions","\u002Fapi\u002Fcomponents\u002Fcomponent-groups","4.api\u002F05.components\u002F4.component-groups",{"title":180,"path":181,"stem":182},"Page Data & Nested Pages","\u002Fapi\u002Fdynamic-pages","4.api\u002F06.dynamic-pages",{"title":184,"path":185,"stem":186},"Routes","\u002Fapi\u002Froutes","4.api\u002F07.routes",{"title":188,"path":189,"stem":190,"children":191,"page":132},"Data Fixtures","\u002Fapi\u002Fdata-fixtures","4.api\u002F08.data-fixtures",[192,196,200,204,208,212],{"title":193,"path":194,"stem":195},"Getting Started with Fixtures","\u002Fapi\u002Fdata-fixtures\u002Fgetting-started","4.api\u002F08.data-fixtures\u002F1.getting-started",{"title":197,"path":198,"stem":199},"Writing a Scaffold","\u002Fapi\u002Fdata-fixtures\u002Fwriting-a-scaffold","4.api\u002F08.data-fixtures\u002F2.writing-a-scaffold",{"title":201,"path":202,"stem":203},"Builder Reference","\u002Fapi\u002Fdata-fixtures\u002Fbuilder-reference","4.api\u002F08.data-fixtures\u002F3.builder-reference",{"title":205,"path":206,"stem":207},"Seeding Content","\u002Fapi\u002Fdata-fixtures\u002Fseeding-content","4.api\u002F08.data-fixtures\u002F4.seeding-content",{"title":209,"path":210,"stem":211},"Appending & Multiple Scaffolds","\u002Fapi\u002Fdata-fixtures\u002Fappending","4.api\u002F08.data-fixtures\u002F5.appending",{"title":213,"path":214,"stem":215},"Generating Fixtures","\u002Fapi\u002Fdata-fixtures\u002Fgenerating-fixtures","4.api\u002F08.data-fixtures\u002F6.generating-fixtures",{"title":217,"path":218,"stem":219},"Real-Time (Mercure)","\u002Fapi\u002Freal-time","4.api\u002F09.real-time",{"title":221,"path":222,"stem":223},"Versions & Conflicts","\u002Fapi\u002Fversions-and-conflicts","4.api\u002F09.versions-and-conflicts",{"title":225,"path":226,"stem":227},"HTTP Caching","\u002Fapi\u002Fhttp-caching","4.api\u002F10.http-caching",{"title":229,"path":230,"stem":231},"Orphaned Data","\u002Fapi\u002Forphaned-data","4.api\u002F11.orphaned-data",{"title":233,"path":234,"stem":235},"Console Commands","\u002Fapi\u002Fconsole-commands","4.api\u002F12.console-commands",{"title":237,"path":238,"stem":239},"Debugging & Errors","\u002Fapi\u002Fdebugging","4.api\u002F13.debugging",{"title":241,"path":242,"stem":243,"children":244,"collapsed":23},"Nuxt Module (Front-End)","\u002Fnuxt-module","5.nuxt-module\u002F0.index",[245,246,250,263,287,316,337,468,502,505,533,537],{"title":30,"path":242,"stem":243},{"title":247,"path":248,"stem":249},"Module Setup","\u002Fnuxt-module\u002Fmodule-setup","5.nuxt-module\u002F01.module-setup",{"title":251,"path":252,"stem":253,"children":254,"page":132},"Configuration","\u002Fnuxt-module\u002Fconfiguration","5.nuxt-module\u002F02.configuration",[255,259],{"title":256,"path":257,"stem":258},"Nuxt Config","\u002Fnuxt-module\u002Fconfiguration\u002Fnuxt-config","5.nuxt-module\u002F02.configuration\u002F1.nuxt-config",{"title":260,"path":261,"stem":262},"Site Config & SEO","\u002Fnuxt-module\u002Fconfiguration\u002Fsite-config-and-seo","5.nuxt-module\u002F02.configuration\u002F2.site-config-and-seo",{"title":264,"path":265,"stem":266,"children":267,"page":132},"Building Your Ui","\u002Fnuxt-module\u002Fbuilding-your-ui","5.nuxt-module\u002F03.building-your-ui",[268,272,276,279,283],{"title":269,"path":270,"stem":271},"Layouts","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-layouts","5.nuxt-module\u002F03.building-your-ui\u002F1.creating-layouts",{"title":273,"path":274,"stem":275},"Page Templates","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-page-templates","5.nuxt-module\u002F03.building-your-ui\u002F2.creating-page-templates",{"title":48,"path":277,"stem":278},"\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-components","5.nuxt-module\u002F03.building-your-ui\u002F3.creating-components",{"title":280,"path":281,"stem":282},"CLI Generator","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcwa-cli","5.nuxt-module\u002F03.building-your-ui\u002F4.cwa-cli",{"title":284,"path":285,"stem":286},"Categorise and Restrict","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcategorise-and-restrict","5.nuxt-module\u002F03.building-your-ui\u002F5.categorise-and-restrict",{"title":288,"path":289,"stem":290,"children":291,"page":132},"Component Helpers","\u002Fnuxt-module\u002Fcomponent-helpers","5.nuxt-module\u002F04.component-helpers",[292,296,300,304,308,312],{"title":293,"path":294,"stem":295},"Images & Media","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fimages-and-uploads","5.nuxt-module\u002F04.component-helpers\u002F1.images-and-uploads",{"title":297,"path":298,"stem":299},"Collections & Pagination","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fcollections-and-pagination","5.nuxt-module\u002F04.component-helpers\u002F2.collections-and-pagination",{"title":301,"path":302,"stem":303},"HTML Content","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fhtml-content","5.nuxt-module\u002F04.component-helpers\u002F3.html-content",{"title":305,"path":306,"stem":307},"Rich-Text Editor","\u002Fnuxt-module\u002Fcomponent-helpers\u002Frich-text-editor","5.nuxt-module\u002F04.component-helpers\u002F4.rich-text-editor",{"title":309,"path":310,"stem":311},"Real-Time Updates","\u002Fnuxt-module\u002Fcomponent-helpers\u002Freal-time-updates","5.nuxt-module\u002F04.component-helpers\u002F5.real-time-updates",{"title":313,"path":314,"stem":315},"Forms","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fforms","5.nuxt-module\u002F04.component-helpers\u002F6.forms",{"title":317,"path":318,"stem":319,"children":320,"page":132},"Cwa Components","\u002Fnuxt-module\u002Fcwa-components","5.nuxt-module\u002F05.cwa-components",[321,325,329,333],{"title":322,"path":323,"stem":324},"\u003CCwaComponentGroup \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-component-group","5.nuxt-module\u002F05.cwa-components\u002F1.cwa-component-group",{"title":326,"path":327,"stem":328},"\u003CCwaPage \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-page","5.nuxt-module\u002F05.cwa-components\u002F2.cwa-page",{"title":330,"path":331,"stem":332},"\u003CCwaLink \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-link","5.nuxt-module\u002F05.cwa-components\u002F3.cwa-link",{"title":334,"path":335,"stem":336},"\u003CCwaDefaultLayout \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-default-layout","5.nuxt-module\u002F05.cwa-components\u002F5.cwa-default-layout",{"title":338,"path":339,"stem":340,"children":341,"page":132},"Composables","\u002Fnuxt-module\u002Fcomposables","5.nuxt-module\u002F06.composables",[342,345,353,378,398,423,443],{"title":30,"path":343,"stem":344},"\u002Fnuxt-module\u002Fcomposables\u002Foverview","5.nuxt-module\u002F06.composables\u002F0.overview",{"title":346,"path":347,"stem":348,"children":349,"page":132},"Layout","\u002Fnuxt-module\u002Fcomposables\u002Flayout","5.nuxt-module\u002F06.composables\u002F1.layout",[350],{"title":346,"path":351,"stem":352},"\u002Fnuxt-module\u002Fcomposables\u002Flayout\u002Fuse-cwa-layout","5.nuxt-module\u002F06.composables\u002F1.layout\u002F1.use-cwa-layout",{"title":354,"path":355,"stem":356,"children":357,"page":132},"Component","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent","5.nuxt-module\u002F06.composables\u002F2.component",[358,362,366,370,374],{"title":359,"path":360,"stem":361},"Component (recommended)","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-component","5.nuxt-module\u002F06.composables\u002F2.component\u002F1.use-cwa-component",{"title":363,"path":364,"stem":365},"Resource","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-resource","5.nuxt-module\u002F06.composables\u002F2.component\u002F2.use-cwa-resource",{"title":367,"path":368,"stem":369},"File Field","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-file-field","5.nuxt-module\u002F06.composables\u002F2.component\u002F3.use-cwa-file-field",{"title":371,"path":372,"stem":373},"Collection Pagination","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-collection-pagination","5.nuxt-module\u002F06.composables\u002F2.component\u002F4.use-cwa-collection-pagination",{"title":375,"path":376,"stem":377},"Collection Resource (deprecated)","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-collection-resource","5.nuxt-module\u002F06.composables\u002F2.component\u002F9.use-cwa-collection-resource",{"title":379,"path":380,"stem":381,"children":382,"page":132},"Form","\u002Fnuxt-module\u002Fcomposables\u002Fform","5.nuxt-module\u002F06.composables\u002F3.form",[383,386,390,394],{"title":379,"path":384,"stem":385},"\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form","5.nuxt-module\u002F06.composables\u002F3.form\u002F1.use-cwa-form",{"title":387,"path":388,"stem":389},"Form Input","\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form-input","5.nuxt-module\u002F06.composables\u002F3.form\u002F2.use-cwa-form-input",{"title":391,"path":392,"stem":393},"Form Repeated","\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form-repeated","5.nuxt-module\u002F06.composables\u002F3.form\u002F3.use-cwa-form-repeated",{"title":395,"path":396,"stem":397},"Form Collection","\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form-collection","5.nuxt-module\u002F06.composables\u002F3.form\u002F4.use-cwa-form-collection",{"title":399,"path":400,"stem":401,"children":402,"page":132},"Admin Manager","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager","5.nuxt-module\u002F06.composables\u002F4.admin-manager",[403,407,411,415,419],{"title":404,"path":405,"stem":406},"Manager Tab","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-manager-tab","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F1.use-cwa-resource-manager-tab",{"title":408,"path":409,"stem":410},"Resource Model","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-model","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F2.use-cwa-resource-model",{"title":412,"path":413,"stem":414},"Resource Upload","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-upload","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F3.use-cwa-resource-upload",{"title":416,"path":417,"stem":418},"Remote Changes","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fon-remote-change","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F4.on-remote-change",{"title":420,"path":421,"stem":422},"Real-Time Events","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-realtime","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F5.use-cwa-realtime",{"title":424,"path":425,"stem":426,"children":427,"page":132},"Utilities","\u002Fnuxt-module\u002Fcomposables\u002Futilities","5.nuxt-module\u002F06.composables\u002F5.utilities",[428,432,436,440],{"title":429,"path":430,"stem":431},"Resource Endpoint","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-cwa-resource-endpoint","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F1.use-cwa-resource-endpoint",{"title":433,"path":434,"stem":435},"Query Model","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-query-bound-model","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F2.use-query-bound-model",{"title":437,"path":438,"stem":439},"Resource Route","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-cwa-resource-route","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F3.use-cwa-resource-route",{"title":301,"path":441,"stem":442},"\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-html-content","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F4.use-html-content",{"title":444,"path":445,"stem":446,"children":447,"page":132},"Auth","\u002Fnuxt-module\u002Fcomposables\u002Fauth","5.nuxt-module\u002F06.composables\u002F6.auth",[448,452,456,460,464],{"title":449,"path":450,"stem":451},"Login","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-login","5.nuxt-module\u002F06.composables\u002F6.auth\u002F1.use-login",{"title":453,"path":454,"stem":455},"Forgot Password","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-forgot-password","5.nuxt-module\u002F06.composables\u002F6.auth\u002F2.use-forgot-password",{"title":457,"path":458,"stem":459},"Reset Password","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-reset-password","5.nuxt-module\u002F06.composables\u002F6.auth\u002F3.use-reset-password",{"title":461,"path":462,"stem":463},"Verify Email","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-verify-email","5.nuxt-module\u002F06.composables\u002F6.auth\u002F4.use-verify-email",{"title":465,"path":466,"stem":467},"Resend Verify Email","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-resend-verify-email","5.nuxt-module\u002F06.composables\u002F6.auth\u002F5.use-resend-verify-email",{"title":469,"path":470,"stem":471,"children":472,"page":132},"Cwa Api","\u002Fnuxt-module\u002Fcwa-api","5.nuxt-module\u002F07.cwa-api",[473,476,480,484,487,490,494,498],{"title":30,"path":474,"stem":475},"\u002Fnuxt-module\u002Fcwa-api\u002Foverview","5.nuxt-module\u002F07.cwa-api\u002F1.overview",{"title":477,"path":478,"stem":479},"Resources","\u002Fnuxt-module\u002Fcwa-api\u002Fresources","5.nuxt-module\u002F07.cwa-api\u002F2.resources",{"title":481,"path":482,"stem":483},"Resources Manager","\u002Fnuxt-module\u002Fcwa-api\u002Fresources-manager","5.nuxt-module\u002F07.cwa-api\u002F3.resources-manager",{"title":444,"path":485,"stem":486},"\u002Fnuxt-module\u002Fcwa-api\u002Fauth","5.nuxt-module\u002F07.cwa-api\u002F4.auth",{"title":313,"path":488,"stem":489},"\u002Fnuxt-module\u002Fcwa-api\u002Fforms","5.nuxt-module\u002F07.cwa-api\u002F5.forms",{"title":491,"path":492,"stem":493},"Admin","\u002Fnuxt-module\u002Fcwa-api\u002Fadmin","5.nuxt-module\u002F07.cwa-api\u002F6.admin",{"title":495,"path":496,"stem":497},"Site Config","\u002Fnuxt-module\u002Fcwa-api\u002Fsite-config","5.nuxt-module\u002F07.cwa-api\u002F7.site-config",{"title":499,"path":500,"stem":501},"Orphaned Resources","\u002Fnuxt-module\u002Fcwa-api\u002Forphaned-resources","5.nuxt-module\u002F07.cwa-api\u002F8.orphaned-resources",{"title":113,"path":503,"stem":504},"\u002Fnuxt-module\u002Fauthentication","5.nuxt-module\u002F08.authentication",{"title":506,"path":507,"stem":508,"children":509,"page":132},"Cwa Layer","\u002Fnuxt-module\u002Fcwa-layer","5.nuxt-module\u002F9.cwa-layer",[510,513,517,521,525,529],{"title":30,"path":511,"stem":512},"\u002Fnuxt-module\u002Fcwa-layer\u002Foverview","5.nuxt-module\u002F9.cwa-layer\u002F1.overview",{"title":514,"path":515,"stem":516},"Auth Pages","\u002Fnuxt-module\u002Fcwa-layer\u002Fauth-pages","5.nuxt-module\u002F9.cwa-layer\u002F2.auth-pages",{"title":518,"path":519,"stem":520},"Admin Panel","\u002Fnuxt-module\u002Fcwa-layer\u002Fadmin-panel","5.nuxt-module\u002F9.cwa-layer\u002F3.admin-panel",{"title":522,"path":523,"stem":524},"Styling","\u002Fnuxt-module\u002Fcwa-layer\u002Fstyling","5.nuxt-module\u002F9.cwa-layer\u002F4.styling",{"title":526,"path":527,"stem":528},"Date Pickers","\u002Fnuxt-module\u002Fcwa-layer\u002Fdate-pickers","5.nuxt-module\u002F9.cwa-layer\u002F5.date-pickers",{"title":530,"path":531,"stem":532},"Maintenance","\u002Fnuxt-module\u002Fcwa-layer\u002Fmaintenance","5.nuxt-module\u002F9.cwa-layer\u002F6.maintenance",{"title":534,"path":535,"stem":536},"PWA & Offline","\u002Fnuxt-module\u002Fpwa","5.nuxt-module\u002F91.pwa",{"title":538,"path":539,"stem":540},"Page Caching","\u002Fnuxt-module\u002Fpage-caching","5.nuxt-module\u002F92.page-caching",{"title":542,"path":543,"stem":544,"children":545,"collapsed":23},"Extending the CWA","\u002Fextending-the-cwa","55.extending-the-cwa\u002F0.index",[546,547,551,555],{"title":30,"path":543,"stem":544},{"title":548,"path":549,"stem":550},"Registering an Extension","\u002Fextending-the-cwa\u002Fregistering-an-extension","55.extending-the-cwa\u002F1.registering-an-extension",{"title":552,"path":553,"stem":554},"Admin Pages","\u002Fextending-the-cwa\u002Fadmin-pages","55.extending-the-cwa\u002F2.admin-pages",{"title":556,"path":557,"stem":558},"Sign-In and Sign-Out Events","\u002Fextending-the-cwa\u002Fauth-events","55.extending-the-cwa\u002F3.auth-events",{"title":560,"path":561,"stem":562,"children":563,"collapsed":23},"Deployment & Operations","\u002Fdeployment","6.deployment\u002F0.index",[564,566,570,574,578,582,586,590,594,598,602,606,610,614,618,622,626],{"title":565,"path":561,"stem":562},"Deploying a CWA Site",{"title":567,"path":568,"stem":569},"Docker","\u002Fdeployment\u002Fdocker","6.deployment\u002F1.docker",{"title":571,"path":572,"stem":573},"Deploy to One Server","\u002Fdeployment\u002Fone-server","6.deployment\u002F1.one-server",{"title":575,"path":576,"stem":577},"Kubernetes & Helm","\u002Fdeployment\u002Fkubernetes","6.deployment\u002F2.kubernetes",{"title":579,"path":580,"stem":581},"Moving From One Server to Kubernetes","\u002Fdeployment\u002Fmoving-to-kubernetes","6.deployment\u002F2.moving-to-kubernetes",{"title":583,"path":584,"stem":585},"Scaled Mode","\u002Fdeployment\u002Fscaled-mode","6.deployment\u002F2.scaled-mode",{"title":587,"path":588,"stem":589},"CI\u002FCD","\u002Fdeployment\u002Fci-cd","6.deployment\u002F3.ci-cd",{"title":591,"path":592,"stem":593},"Migrations and Backups","\u002Fdeployment\u002Fmigrations-and-backups","6.deployment\u002F3.migrations-and-backups",{"title":595,"path":596,"stem":597},"CI\u002FCD Variables","\u002Fdeployment\u002Fvariables","6.deployment\u002F4.variables",{"title":599,"path":600,"stem":601},"Cloudflare","\u002Fdeployment\u002Fcloudflare","6.deployment\u002F5.cloudflare",{"title":603,"path":604,"stem":605},"Origin Protection","\u002Fdeployment\u002Forigin-protection","6.deployment\u002F5.origin-protection",{"title":607,"path":608,"stem":609},"Load Testing","\u002Fdeployment\u002Fload-testing","6.deployment\u002F6.load-testing",{"title":611,"path":612,"stem":613},"Performance Audit","\u002Fdeployment\u002Fperformance-audit","6.deployment\u002F6.performance-audit",{"title":615,"path":616,"stem":617},"Reading Lighthouse Scores","\u002Fdeployment\u002Freading-lighthouse-scores","6.deployment\u002F6.reading-lighthouse-scores",{"title":619,"path":620,"stem":621},"Browser Tests","\u002Fdeployment\u002Fbrowser-tests","6.deployment\u002F7.browser-tests",{"title":623,"path":624,"stem":625},"Faster Functional Tests","\u002Fdeployment\u002Ffaster-functional-tests","6.deployment\u002F7.faster-functional-tests",{"title":627,"path":628,"stem":629},"Troubleshooting","\u002Fdeployment\u002Ftroubleshooting","6.deployment\u002F7.troubleshooting",{"id":631,"title":552,"badge":632,"body":633,"description":4221,"extension":4222,"links":632,"meta":4223,"navigation":23,"path":553,"seo":4224,"stem":554,"__hash__":4225},"docs\u002F55.extending-the-cwa\u002F2.admin-pages.md",null,{"type":634,"value":635,"toc":4207},"minimark",[636,645,650,657,892,1011,1035,1077,1083,1088,1098,1119,1130,1136,1153,1157,1163,1827,1847,1966,1980,2042,2045,2063,2439,2443,2510,2516,2526,2529,2547,3782,3795,3800,3803,3874,3904,3908,3915,4001,4023,4033,4037,4040,4062,4099,4169,4179,4198,4203],[637,638,639,640,644],"p",{},"An extension can add pages to the admin, such as a list of orders with a dialog for each one. They sit under ",[641,642,643],"code",{},"\u002F_cwa"," beside the built-in pages, in the same layout, behind the same sign-in check. This page adds an orders list and an order dialog, built from the parts the built-in lists use.",[646,647,649],"h2",{"id":648},"registering-an-admin-page","Registering an Admin Page",[637,651,652,653,656],{},"Each entry in ",[641,654,655],{},"adminPages"," is one page:",[658,659,664],"pre",{"className":660,"code":661,"language":662,"meta":663,"style":663},"language-ts shiki shiki-themes github-light github-dark material-theme-palenight has-focused","\u002F\u002F cwa-shop\u002Fmodule.ts, in register({ … })\nadminPages: [\n  {\n    path: 'shop-orders', \u002F\u002F [!code focus]\n    file: resolve('.\u002Fadmin\u002Forders.vue'), \u002F\u002F [!code focus]\n    item: resolve('.\u002Fadmin\u002Forder.vue'), \u002F\u002F [!code focus]\n    menu: { label: 'Orders' }, \u002F\u002F [!code focus]\n  },\n  { path: 'shop-reports', file: resolve('.\u002Fadmin\u002Freports.vue'), role: 'ROLE_SHOP_ACCOUNTS', menu: { label: 'Reports' } },\n],\n","ts","",[641,665,666,675,689,695,720,748,772,799,805,883],{"__ignoreMap":663},[667,668,671],"span",{"class":669,"line":670},"line",1,[667,672,674],{"class":673},"sTBSN","\u002F\u002F cwa-shop\u002Fmodule.ts, in register({ … })\n",[667,676,678,681,685],{"class":669,"line":677},2,[667,679,655],{"class":680},"sRCss",[667,682,684],{"class":683},"sOvfz",":",[667,686,688],{"class":687},"sPB8G"," [\n",[667,690,692],{"class":669,"line":691},3,[667,693,694],{"class":683},"  {\n",[667,696,700,704,706,710,714,717],{"class":697,"line":699},[669,698],"focused",4,[667,701,703],{"class":702},"sDHlG","    path",[667,705,684],{"class":683},[667,707,709],{"class":708},"seSrl"," '",[667,711,713],{"class":712},"sLL54","shop-orders",[667,715,716],{"class":708},"'",[667,718,719],{"class":683},",",[667,721,724,727,729,733,736,738,741,743,746],{"class":722,"line":723},[669,698],5,[667,725,726],{"class":702},"    file",[667,728,684],{"class":683},[667,730,732],{"class":731},"sKpYG"," resolve",[667,734,735],{"class":687},"(",[667,737,716],{"class":708},[667,739,740],{"class":712},".\u002Fadmin\u002Forders.vue",[667,742,716],{"class":708},[667,744,745],{"class":687},")",[667,747,719],{"class":683},[667,749,752,755,757,759,761,763,766,768,770],{"class":750,"line":751},[669,698],6,[667,753,754],{"class":702},"    item",[667,756,684],{"class":683},[667,758,732],{"class":731},[667,760,735],{"class":687},[667,762,716],{"class":708},[667,764,765],{"class":712},".\u002Fadmin\u002Forder.vue",[667,767,716],{"class":708},[667,769,745],{"class":687},[667,771,719],{"class":683},[667,773,776,779,781,784,787,789,791,794,796],{"class":774,"line":775},[669,698],7,[667,777,778],{"class":702},"    menu",[667,780,684],{"class":683},[667,782,783],{"class":683}," {",[667,785,786],{"class":702}," label",[667,788,684],{"class":683},[667,790,709],{"class":708},[667,792,793],{"class":712},"Orders",[667,795,716],{"class":708},[667,797,798],{"class":683}," },",[667,800,802],{"class":669,"line":801},8,[667,803,804],{"class":683},"  },\n",[667,806,808,811,814,816,818,821,823,825,828,830,832,834,836,839,841,843,845,848,850,852,855,857,859,862,864,866,868,870,872,875,877,880],{"class":669,"line":807},9,[667,809,810],{"class":683},"  {",[667,812,813],{"class":702}," path",[667,815,684],{"class":683},[667,817,709],{"class":708},[667,819,820],{"class":712},"shop-reports",[667,822,716],{"class":708},[667,824,719],{"class":683},[667,826,827],{"class":702}," file",[667,829,684],{"class":683},[667,831,732],{"class":731},[667,833,735],{"class":687},[667,835,716],{"class":708},[667,837,838],{"class":712},".\u002Fadmin\u002Freports.vue",[667,840,716],{"class":708},[667,842,745],{"class":687},[667,844,719],{"class":683},[667,846,847],{"class":702}," role",[667,849,684],{"class":683},[667,851,709],{"class":708},[667,853,854],{"class":712},"ROLE_SHOP_ACCOUNTS",[667,856,716],{"class":708},[667,858,719],{"class":683},[667,860,861],{"class":702}," menu",[667,863,684],{"class":683},[667,865,783],{"class":683},[667,867,786],{"class":702},[667,869,684],{"class":683},[667,871,709],{"class":708},[667,873,874],{"class":712},"Reports",[667,876,716],{"class":708},[667,878,879],{"class":683}," }",[667,881,882],{"class":683}," },\n",[667,884,886,889],{"class":669,"line":885},10,[667,887,888],{"class":687},"]",[667,890,891],{"class":683},",\n",[893,894,895,911],"table",{},[896,897,898],"thead",{},[899,900,901,905,908],"tr",{},[902,903,904],"th",{},"Option",[902,906,907],{},"Required",[902,909,910],{},"What it does",[912,913,914,938,950,972,992],"tbody",{},[899,915,916,922,925],{},[917,918,919],"td",{},[641,920,921],{},"path",[917,923,924],{},"Yes",[917,926,927,928,930,931,933,934,937],{},"The path under ",[641,929,643],{},": ",[641,932,713],{}," is ",[641,935,936],{},"\u002F_cwa\u002Fshop-orders",". It can have more than one segment",[899,939,940,945,947],{},[917,941,942],{},[641,943,944],{},"file",[917,946,924],{},[917,948,949],{},"An absolute path to the page's Vue file",[899,951,952,957,960],{},[917,953,954],{},[641,955,956],{},"item",[917,958,959],{},"No",[917,961,962,963,966,967],{},"An absolute path to a dialog for one item, opened over the list at ",[641,964,965],{},"\u002F_cwa\u002F\u003Cpath>\u002F\u003Ciri>",". See ",[968,969,971],"a",{"href":970},"#the-item-dialog","The Item Dialog",[899,973,974,979,981],{},[917,975,976],{},[641,977,978],{},"role",[917,980,959],{},[917,982,983,984,987,988,991],{},"The role a user needs to open the page. Default ",[641,985,986],{},"ROLE_ADMIN",", which a content admin with only ",[641,989,990],{},"ROLE_CMS_ADMIN"," doesn't have",[899,993,994,999,1001],{},[917,995,996],{},[641,997,998],{},"menu",[917,1000,959],{},[917,1002,1003,1006,1007],{},[641,1004,1005],{},"{ label }"," adds the page to the admin menu, under ",[1008,1009,1010],"strong",{},"Extensions",[637,1012,1013,1014,1017,1018,1021,1022,930,1025,933,1027,1030,1031,1034],{},"Each page's route is named ",[641,1015,1016],{},"_cwa-"," followed by its path with ",[641,1019,1020],{},"\u002F"," turned into ",[641,1023,1024],{},"-",[641,1026,713],{},[641,1028,1029],{},"_cwa-shop-orders",", and its item dialog is ",[641,1032,1033],{},"_cwa-shop-orders-iri",".",[1036,1037,1040],"callout",{"icon":1038,"color":1039},"i-heroicons-exclamation-triangle","warning",[637,1041,1042,1045,1046,1049,1050,1049,1053,1049,1056,1049,1059,1049,1062,1065,1066,1069,1070,1073,1074,1076],{},[1008,1043,1044],{},"An admin path can't start with a built-in admin page's name."," ",[641,1047,1048],{},"users",", ",[641,1051,1052],{},"pages",[641,1054,1055],{},"layouts",[641,1057,1058],{},"routes",[641,1060,1061],{},"data",[641,1063,1064],{},"settings"," and ",[641,1067,1068],{},"orphaned"," are taken, so ",[641,1071,1072],{},"\u002F_cwa\u002Fusers\u002Fshop"," fails the build. Starting the path with the extension's own name, as ",[641,1075,713],{}," does, keeps clear of them and of other extensions.",[637,1078,1079,1080,1082],{},"Like every page under ",[641,1081,643],{},", an extension's admin pages render only in the browser.",[1084,1085,1087],"h3",{"id":1086},"who-can-open-it","Who Can Open It",[637,1089,1090,1091,1094,1095,1097],{},"A signed-out visitor is sent to ",[641,1092,1093],{},"\u002Flogin"," and back after signing in. A signed-in user without the page's role is sent to ",[641,1096,1020],{},". The menu entry is shown only to users with the role.",[637,1099,1100,1102,1103,1106,1107,1110,1111,1114,1115,1034],{},[641,1101,978],{}," must start with ",[641,1104,1105],{},"ROLE_"," and can't be ",[641,1108,1109],{},"ROLE_USER",", which every signed-in user has. A role the user reaches through the role hierarchy counts, because ",[641,1112,1113],{},"\u002Fme"," lists every role a user reaches. See ",[968,1116,1118],{"href":1117},"\u002Fapi\u002Fusers\u002Fadmin-roles#the-role-hierarchy","Admin Roles › The Role Hierarchy",[637,1120,1121,1122,1124,1125,1129],{},"A role other than ",[641,1123,986],{}," appears in the admin's user dialog as a toggle, named after the menu labels of the pages that need it, so a user admin can grant it (see ",[968,1126,1128],{"href":1127},"\u002Fnuxt-module\u002Fcwa-layer\u002Fadmin-panel#admin-routes","CWA Layer › Admin Panel › Admin Routes",").",[1036,1131,1133],{"icon":1132},"i-heroicons-shield-check",[637,1134,1135],{},"The role only decides who sees the page. The API decides what they can read and change, so secure the extension's resources in its Symfony bundle too.",[1036,1137,1139],{"icon":1138},"i-heroicons-photo",[637,1140,1141,1144,1145,1147,1148,1065,1150,1152],{},[1008,1142,1143],{},"Image placeholder:"," the admin menu with the ",[1008,1146,1010],{}," heading and its ",[1008,1149,793],{},[1008,1151,874],{}," entries.",[646,1154,1156],{"id":1155},"the-list-page","The List Page",[637,1158,1159,1162],{},[641,1160,1161],{},"\u003CCwaAdminList>"," is the built-in lists' page: a heading, the search and sort row, the list with its loading, empty and error states, pages of 20, and the outlet the item dialog opens in. You give it the endpoint and render each row:",[658,1164,1168],{"className":1165,"code":1166,"language":1167,"meta":663,"style":663},"language-vue shiki shiki-themes github-light github-dark material-theme-palenight has-focused","\u003C!-- cwa-shop\u002Fadmin\u002Forders.vue -->\n\u003Ctemplate>\n  \u003CCwaAdminList\n    title=\"Orders\"\n    fetch-url=\"\u002Fshop\u002Forders\"\n    noun=\"orders\"\n    :columns=\"columns\"\n    :order-options=\"orderOptions\"\n    search-label=\"Search orders\"\n  >\n    \u003Ctemplate #item=\"{ data, link }\"> \u003C!-- [!code focus] -->\n      \u003CCwaAdminListRow :to=\"link\" :title=\"data.number\" :sub=\"data.customerEmail\"> \u003C!-- [!code focus] -->\n        \u003CCwaAdminListCell>\n          \u003CCwaUiBadge :tone=\"data.state === 'paid' ? 'success' : 'neutral'\">\n            {{ data.state }}\n          \u003C\u002FCwaUiBadge>\n        \u003C\u002FCwaAdminListCell>\n        \u003CCwaAdminListCell align=\"end\">\n          {{ data.total }}\n        \u003C\u002FCwaAdminListCell>\n      \u003C\u002FCwaAdminListRow>\n    \u003C\u002Ftemplate>\n  \u003C\u002FCwaAdminList>\n\u003C\u002Ftemplate>\n\n\u003Cscript setup lang=\"ts\">\nconst columns = [\n  { label: 'Order' },\n  { label: 'State', width: '8rem' },\n  { label: 'Total', width: '7rem', align: 'end' as const },\n]\nconst orderOptions = [\n  { label: 'Newest first', value: { createdAt: 'desc' } },\n  { label: 'Highest total', value: { total: 'desc' } },\n]\n\n\u003C\u002Fscript>\n","vue",[641,1169,1170,1175,1187,1195,1212,1226,1240,1256,1272,1286,1291,1328,1391,1402,1460,1466,1476,1486,1508,1514,1523,1533,1543,1554,1564,1570,1594,1610,1628,1660,1710,1716,1728,1769,1808,1813,1818],{"__ignoreMap":663},[667,1171,1172],{"class":669,"line":670},[667,1173,1174],{"class":673},"\u003C!-- cwa-shop\u002Fadmin\u002Forders.vue -->\n",[667,1176,1177,1180,1184],{"class":669,"line":677},[667,1178,1179],{"class":683},"\u003C",[667,1181,1183],{"class":1182},"s-h7I","template",[667,1185,1186],{"class":683},">\n",[667,1188,1189,1192],{"class":669,"line":691},[667,1190,1191],{"class":683},"  \u003C",[667,1193,1194],{"class":1182},"CwaAdminList\n",[667,1196,1197,1201,1204,1207,1209],{"class":669,"line":699},[667,1198,1200],{"class":1199},"sGtlX","    title",[667,1202,1203],{"class":683},"=",[667,1205,1206],{"class":708},"\"",[667,1208,793],{"class":712},[667,1210,1211],{"class":708},"\"\n",[667,1213,1214,1217,1219,1221,1224],{"class":669,"line":723},[667,1215,1216],{"class":1199},"    fetch-url",[667,1218,1203],{"class":683},[667,1220,1206],{"class":708},[667,1222,1223],{"class":712},"\u002Fshop\u002Forders",[667,1225,1211],{"class":708},[667,1227,1228,1231,1233,1235,1238],{"class":669,"line":751},[667,1229,1230],{"class":1199},"    noun",[667,1232,1203],{"class":683},[667,1234,1206],{"class":708},[667,1236,1237],{"class":712},"orders",[667,1239,1211],{"class":708},[667,1241,1242,1245,1248,1250,1252,1254],{"class":669,"line":775},[667,1243,1244],{"class":683},"    :",[667,1246,1247],{"class":1199},"columns",[667,1249,1203],{"class":683},[667,1251,1206],{"class":708},[667,1253,1247],{"class":687},[667,1255,1211],{"class":708},[667,1257,1258,1260,1263,1265,1267,1270],{"class":669,"line":801},[667,1259,1244],{"class":683},[667,1261,1262],{"class":1199},"order-options",[667,1264,1203],{"class":683},[667,1266,1206],{"class":708},[667,1268,1269],{"class":687},"orderOptions",[667,1271,1211],{"class":708},[667,1273,1274,1277,1279,1281,1284],{"class":669,"line":807},[667,1275,1276],{"class":1199},"    search-label",[667,1278,1203],{"class":683},[667,1280,1206],{"class":708},[667,1282,1283],{"class":712},"Search orders",[667,1285,1211],{"class":708},[667,1287,1288],{"class":669,"line":885},[667,1289,1290],{"class":683},"  >\n",[667,1292,1295,1298,1300,1303,1305,1307,1309,1312,1315,1317,1320,1323,1325],{"class":1293,"line":1294},[669,698],11,[667,1296,1297],{"class":683},"    \u003C",[667,1299,1183],{"class":1182},[667,1301,1302],{"class":683}," #",[667,1304,956],{"class":1199},[667,1306,1203],{"class":683},[667,1308,1206],{"class":708},[667,1310,1311],{"class":683},"{",[667,1313,1314],{"class":687}," data",[667,1316,719],{"class":683},[667,1318,1319],{"class":687}," link ",[667,1321,1322],{"class":683},"}",[667,1324,1206],{"class":708},[667,1326,1327],{"class":683},">",[667,1329,1332,1335,1338,1341,1344,1346,1348,1351,1353,1355,1358,1360,1362,1364,1366,1369,1371,1373,1376,1378,1380,1382,1384,1387,1389],{"class":1330,"line":1331},[669,698],12,[667,1333,1334],{"class":683},"      \u003C",[667,1336,1337],{"class":1182},"CwaAdminListRow",[667,1339,1340],{"class":683}," :",[667,1342,1343],{"class":1199},"to",[667,1345,1203],{"class":683},[667,1347,1206],{"class":708},[667,1349,1350],{"class":687},"link",[667,1352,1206],{"class":708},[667,1354,1340],{"class":683},[667,1356,1357],{"class":1199},"title",[667,1359,1203],{"class":683},[667,1361,1206],{"class":708},[667,1363,1061],{"class":687},[667,1365,1034],{"class":683},[667,1367,1368],{"class":687},"number",[667,1370,1206],{"class":708},[667,1372,1340],{"class":683},[667,1374,1375],{"class":1199},"sub",[667,1377,1203],{"class":683},[667,1379,1206],{"class":708},[667,1381,1061],{"class":687},[667,1383,1034],{"class":683},[667,1385,1386],{"class":687},"customerEmail",[667,1388,1206],{"class":708},[667,1390,1327],{"class":683},[667,1392,1394,1397,1400],{"class":669,"line":1393},13,[667,1395,1396],{"class":683},"        \u003C",[667,1398,1399],{"class":1182},"CwaAdminListCell",[667,1401,1186],{"class":683},[667,1403,1405,1408,1411,1413,1416,1418,1420,1422,1424,1427,1431,1433,1436,1438,1441,1443,1446,1448,1450,1452,1455,1458],{"class":669,"line":1404},14,[667,1406,1407],{"class":683},"          \u003C",[667,1409,1410],{"class":1182},"CwaUiBadge",[667,1412,1340],{"class":683},[667,1414,1415],{"class":1199},"tone",[667,1417,1203],{"class":683},[667,1419,1206],{"class":708},[667,1421,1061],{"class":687},[667,1423,1034],{"class":683},[667,1425,1426],{"class":687},"state",[667,1428,1430],{"class":1429},"sVlFx"," ===",[667,1432,709],{"class":708},[667,1434,1435],{"class":712},"paid",[667,1437,716],{"class":708},[667,1439,1440],{"class":1429}," ?",[667,1442,709],{"class":708},[667,1444,1445],{"class":712},"success",[667,1447,716],{"class":708},[667,1449,1340],{"class":1429},[667,1451,709],{"class":708},[667,1453,1454],{"class":712},"neutral",[667,1456,1457],{"class":708},"'\"",[667,1459,1186],{"class":683},[667,1461,1463],{"class":669,"line":1462},15,[667,1464,1465],{"class":687},"            {{ data.state }}\n",[667,1467,1469,1472,1474],{"class":669,"line":1468},16,[667,1470,1471],{"class":683},"          \u003C\u002F",[667,1473,1410],{"class":1182},[667,1475,1186],{"class":683},[667,1477,1479,1482,1484],{"class":669,"line":1478},17,[667,1480,1481],{"class":683},"        \u003C\u002F",[667,1483,1399],{"class":1182},[667,1485,1186],{"class":683},[667,1487,1489,1491,1493,1497,1499,1501,1504,1506],{"class":669,"line":1488},18,[667,1490,1396],{"class":683},[667,1492,1399],{"class":1182},[667,1494,1496],{"class":1495},"s01iV"," align",[667,1498,1203],{"class":683},[667,1500,1206],{"class":708},[667,1502,1503],{"class":712},"end",[667,1505,1206],{"class":708},[667,1507,1186],{"class":683},[667,1509,1511],{"class":669,"line":1510},19,[667,1512,1513],{"class":687},"          {{ data.total }}\n",[667,1515,1517,1519,1521],{"class":669,"line":1516},20,[667,1518,1481],{"class":683},[667,1520,1399],{"class":1182},[667,1522,1186],{"class":683},[667,1524,1526,1529,1531],{"class":669,"line":1525},21,[667,1527,1528],{"class":683},"      \u003C\u002F",[667,1530,1337],{"class":1182},[667,1532,1186],{"class":683},[667,1534,1536,1539,1541],{"class":669,"line":1535},22,[667,1537,1538],{"class":683},"    \u003C\u002F",[667,1540,1183],{"class":1182},[667,1542,1186],{"class":683},[667,1544,1546,1549,1552],{"class":669,"line":1545},23,[667,1547,1548],{"class":683},"  \u003C\u002F",[667,1550,1551],{"class":1182},"CwaAdminList",[667,1553,1186],{"class":683},[667,1555,1557,1560,1562],{"class":669,"line":1556},24,[667,1558,1559],{"class":683},"\u003C\u002F",[667,1561,1183],{"class":1182},[667,1563,1186],{"class":683},[667,1565,1567],{"class":669,"line":1566},25,[667,1568,1569],{"emptyLinePlaceholder":23},"\n",[667,1571,1573,1575,1578,1581,1584,1586,1588,1590,1592],{"class":669,"line":1572},26,[667,1574,1179],{"class":683},[667,1576,1577],{"class":1182},"script",[667,1579,1580],{"class":1199}," setup",[667,1582,1583],{"class":1199}," lang",[667,1585,1203],{"class":683},[667,1587,1206],{"class":708},[667,1589,662],{"class":712},[667,1591,1206],{"class":708},[667,1593,1186],{"class":683},[667,1595,1597,1601,1605,1608],{"class":669,"line":1596},27,[667,1598,1600],{"class":1599},"swB56","const",[667,1602,1604],{"class":1603},"sc2zw"," columns",[667,1606,1607],{"class":1429}," =",[667,1609,688],{"class":687},[667,1611,1613,1615,1617,1619,1621,1624,1626],{"class":669,"line":1612},28,[667,1614,810],{"class":683},[667,1616,786],{"class":702},[667,1618,684],{"class":683},[667,1620,709],{"class":708},[667,1622,1623],{"class":712},"Order",[667,1625,716],{"class":708},[667,1627,882],{"class":683},[667,1629,1631,1633,1635,1637,1639,1642,1644,1646,1649,1651,1653,1656,1658],{"class":669,"line":1630},29,[667,1632,810],{"class":683},[667,1634,786],{"class":702},[667,1636,684],{"class":683},[667,1638,709],{"class":708},[667,1640,1641],{"class":712},"State",[667,1643,716],{"class":708},[667,1645,719],{"class":683},[667,1647,1648],{"class":702}," width",[667,1650,684],{"class":683},[667,1652,709],{"class":708},[667,1654,1655],{"class":712},"8rem",[667,1657,716],{"class":708},[667,1659,882],{"class":683},[667,1661,1663,1665,1667,1669,1671,1674,1676,1678,1680,1682,1684,1687,1689,1691,1693,1695,1697,1699,1701,1705,1708],{"class":669,"line":1662},30,[667,1664,810],{"class":683},[667,1666,786],{"class":702},[667,1668,684],{"class":683},[667,1670,709],{"class":708},[667,1672,1673],{"class":712},"Total",[667,1675,716],{"class":708},[667,1677,719],{"class":683},[667,1679,1648],{"class":702},[667,1681,684],{"class":683},[667,1683,709],{"class":708},[667,1685,1686],{"class":712},"7rem",[667,1688,716],{"class":708},[667,1690,719],{"class":683},[667,1692,1496],{"class":702},[667,1694,684],{"class":683},[667,1696,709],{"class":708},[667,1698,1503],{"class":712},[667,1700,716],{"class":708},[667,1702,1704],{"class":1703},"sm4w6"," as",[667,1706,1707],{"class":1599}," const",[667,1709,882],{"class":683},[667,1711,1713],{"class":669,"line":1712},31,[667,1714,1715],{"class":687},"]\n",[667,1717,1719,1721,1724,1726],{"class":669,"line":1718},32,[667,1720,1600],{"class":1599},[667,1722,1723],{"class":1603}," orderOptions",[667,1725,1607],{"class":1429},[667,1727,688],{"class":687},[667,1729,1731,1733,1735,1737,1739,1742,1744,1746,1749,1751,1753,1756,1758,1760,1763,1765,1767],{"class":669,"line":1730},33,[667,1732,810],{"class":683},[667,1734,786],{"class":702},[667,1736,684],{"class":683},[667,1738,709],{"class":708},[667,1740,1741],{"class":712},"Newest first",[667,1743,716],{"class":708},[667,1745,719],{"class":683},[667,1747,1748],{"class":702}," value",[667,1750,684],{"class":683},[667,1752,783],{"class":683},[667,1754,1755],{"class":702}," createdAt",[667,1757,684],{"class":683},[667,1759,709],{"class":708},[667,1761,1762],{"class":712},"desc",[667,1764,716],{"class":708},[667,1766,879],{"class":683},[667,1768,882],{"class":683},[667,1770,1772,1774,1776,1778,1780,1783,1785,1787,1789,1791,1793,1796,1798,1800,1802,1804,1806],{"class":669,"line":1771},34,[667,1773,810],{"class":683},[667,1775,786],{"class":702},[667,1777,684],{"class":683},[667,1779,709],{"class":708},[667,1781,1782],{"class":712},"Highest total",[667,1784,716],{"class":708},[667,1786,719],{"class":683},[667,1788,1748],{"class":702},[667,1790,684],{"class":683},[667,1792,783],{"class":683},[667,1794,1795],{"class":702}," total",[667,1797,684],{"class":683},[667,1799,709],{"class":708},[667,1801,1762],{"class":712},[667,1803,716],{"class":708},[667,1805,879],{"class":683},[667,1807,882],{"class":683},[667,1809,1811],{"class":669,"line":1810},35,[667,1812,1715],{"class":687},[667,1814,1816],{"class":669,"line":1815},36,[667,1817,1569],{"emptyLinePlaceholder":23},[667,1819,1821,1823,1825],{"class":669,"line":1820},37,[667,1822,1559],{"class":683},[667,1824,1577],{"class":1182},[667,1826,1186],{"class":683},[637,1828,1829,1830,1832,1833,1835,1836,1839,1840,1842,1843,1846],{},"The extension names the routes for you: the list page is ",[641,1831,1016],{}," plus its path (",[641,1834,1029],{},"), and its item dialog is that name plus ",[641,1837,1838],{},"-iri",". The list builds each row's ",[641,1841,1350],{}," from them, and gives the item dialog its route key, so an extension's admin pages need no ",[641,1844,1845],{},"definePageMeta"," for routing.",[893,1848,1849,1860],{},[896,1850,1851],{},[899,1852,1853,1856,1858],{},[902,1854,1855],{},"Prop",[902,1857,907],{},[902,1859,910],{},[912,1861,1862,1873,1885,1897,1916,1935,1950],{},[899,1863,1864,1868,1870],{},[917,1865,1866],{},[641,1867,1357],{},[917,1869,924],{},[917,1871,1872],{},"The page heading and the browser tab's title",[899,1874,1875,1880,1882],{},[917,1876,1877],{},[641,1878,1879],{},"fetch-url",[917,1881,924],{},[917,1883,1884],{},"The collection endpoint to list",[899,1886,1887,1892,1894],{},[917,1888,1889],{},[641,1890,1891],{},"noun",[917,1893,924],{},[917,1895,1896],{},"The plural used in the count and the empty and error messages, such as \"No orders match these filters.\"",[899,1898,1899,1903,1905],{},[917,1900,1901],{},[641,1902,1247],{},[917,1904,924],{},[917,1906,1907,1908,1911,1912,1915],{},"One ",[641,1909,1910],{},"{ label, width?, align?, labelHidden? }"," per column. The first takes the remaining width; ",[641,1913,1914],{},"align: 'end'"," lines up numbers on the right",[899,1917,1918,1922,1924],{},[917,1919,1920],{},[641,1921,1262],{},[917,1923,924],{},[917,1925,1926,1927,1930,1931,1934],{},"The sort choices. Each ",[641,1928,1929],{},"value"," is sent as ",[641,1932,1933],{},"order[\u003Cfield>]=\u003Cdirection>","; the first is the default",[899,1936,1937,1942,1944],{},[917,1938,1939],{},[641,1940,1941],{},"search-label",[917,1943,924],{},[917,1945,1946,1947],{},"The search field's label. What's typed is sent as ",[641,1948,1949],{},"search=",[899,1951,1952,1957,1959],{},[917,1953,1954],{},[641,1955,1956],{},"create-noun",[917,1958,959],{},[917,1960,1961,1962,1965],{},"Adds a create button (and one on the empty list) that opens the item dialog at ",[641,1963,1964],{},"add",". Leave it out for records that aren't created in the admin, such as orders",[637,1967,1968,1969,1971,1972,1975,1976,1979],{},"The list sends the page's query to ",[641,1970,1879],{},", so the API's collection needs filters for ",[641,1973,1974],{},"search",", the ",[641,1977,1978],{},"order"," fields and anything else you add. The slots are:",[893,1981,1982,1992],{},[896,1983,1984],{},[899,1985,1986,1989],{},[902,1987,1988],{},"Slot",[902,1990,1991],{},"What goes in it",[912,1993,1994,2012,2022,2032],{},[899,1995,1996,2000],{},[917,1997,1998],{},[641,1999,956],{},[917,2001,2002,2003,2005,2006,1065,2009,2011],{},"One row, given ",[641,2004,1061],{}," (the resource), ",[641,2007,2008],{},"rawData",[641,2010,1350],{}," (the item dialog's route)",[899,2013,2014,2019],{},[917,2015,2016],{},[641,2017,2018],{},"filters",[917,2020,2021],{},"More filters beside the search, bound to the page's query",[899,2023,2024,2029],{},[917,2025,2026],{},[641,2027,2028],{},"notice",[917,2030,2031],{},"A notice above the list",[899,2033,2034,2039],{},[917,2035,2036],{},[641,2037,2038],{},"empty",[917,2040,2041],{},"What an empty list shows, in place of the create button",[1084,2043,2044],{"id":2018},"Filters",[637,2046,2047,2048,2053,2054,1049,2057,1065,2060,2062],{},"A filter is a field bound to the page's query with ",[968,2049,2050],{"href":434},[641,2051,2052],{},"useQueryBoundModel",". Every query parameter except ",[641,2055,2056],{},"page",[641,2058,2059],{},"perPage",[641,2061,1978],{}," is sent to the API and counts as a filter, so the list offers to clear it when nothing matches:",[658,2064,2067],{"className":2065,"code":2066,"language":1167,"meta":663,"style":663},"language-vue shiki shiki-themes github-light github-dark material-theme-palenight","\u003Ctemplate #filters>\n  \u003CCwaUiMultiSelect\n    v-model=\"states\"\n    label=\"State\"\n    label-hidden\n    placeholder=\"Any state\"\n    search-placeholder=\"Search states\"\n    :options=\"stateOptions\"\n  \u002F>\n\u003C\u002Ftemplate>\n\n\u003Cscript setup lang=\"ts\">\nconst stateOptions = ['awaiting_payment', 'paid', 'cancelled', 'refunded'].map(state => ({ label: state, value: state }))\nconst { model: stateModel } = useQueryBoundModel('state[]', { defaultValue: [] })\nconst states = computed({\n  get: () => (stateModel.value ?? []) as string[],\n  set: (value: string[]) => { stateModel.value = value },\n})\n\u003C\u002Fscript>\n",[641,2068,2069,2081,2088,2102,2115,2120,2134,2148,2164,2169,2177,2181,2201,2287,2335,2352,2390,2425,2431],{"__ignoreMap":663},[667,2070,2071,2073,2075,2077,2079],{"class":669,"line":670},[667,2072,1179],{"class":683},[667,2074,1183],{"class":1182},[667,2076,1302],{"class":683},[667,2078,2018],{"class":1199},[667,2080,1186],{"class":683},[667,2082,2083,2085],{"class":669,"line":677},[667,2084,1191],{"class":683},[667,2086,2087],{"class":1182},"CwaUiMultiSelect\n",[667,2089,2090,2093,2095,2097,2100],{"class":669,"line":691},[667,2091,2092],{"class":1199},"    v-model",[667,2094,1203],{"class":683},[667,2096,1206],{"class":708},[667,2098,2099],{"class":687},"states",[667,2101,1211],{"class":708},[667,2103,2104,2107,2109,2111,2113],{"class":669,"line":699},[667,2105,2106],{"class":1199},"    label",[667,2108,1203],{"class":683},[667,2110,1206],{"class":708},[667,2112,1641],{"class":712},[667,2114,1211],{"class":708},[667,2116,2117],{"class":669,"line":723},[667,2118,2119],{"class":1199},"    label-hidden\n",[667,2121,2122,2125,2127,2129,2132],{"class":669,"line":751},[667,2123,2124],{"class":1199},"    placeholder",[667,2126,1203],{"class":683},[667,2128,1206],{"class":708},[667,2130,2131],{"class":712},"Any state",[667,2133,1211],{"class":708},[667,2135,2136,2139,2141,2143,2146],{"class":669,"line":775},[667,2137,2138],{"class":1199},"    search-placeholder",[667,2140,1203],{"class":683},[667,2142,1206],{"class":708},[667,2144,2145],{"class":712},"Search states",[667,2147,1211],{"class":708},[667,2149,2150,2152,2155,2157,2159,2162],{"class":669,"line":801},[667,2151,1244],{"class":683},[667,2153,2154],{"class":1199},"options",[667,2156,1203],{"class":683},[667,2158,1206],{"class":708},[667,2160,2161],{"class":687},"stateOptions",[667,2163,1211],{"class":708},[667,2165,2166],{"class":669,"line":807},[667,2167,2168],{"class":683},"  \u002F>\n",[667,2170,2171,2173,2175],{"class":669,"line":885},[667,2172,1559],{"class":683},[667,2174,1183],{"class":1182},[667,2176,1186],{"class":683},[667,2178,2179],{"class":669,"line":1294},[667,2180,1569],{"emptyLinePlaceholder":23},[667,2182,2183,2185,2187,2189,2191,2193,2195,2197,2199],{"class":669,"line":1331},[667,2184,1179],{"class":683},[667,2186,1577],{"class":1182},[667,2188,1580],{"class":1199},[667,2190,1583],{"class":1199},[667,2192,1203],{"class":683},[667,2194,1206],{"class":708},[667,2196,662],{"class":712},[667,2198,1206],{"class":708},[667,2200,1186],{"class":683},[667,2202,2203,2205,2208,2210,2213,2215,2218,2220,2222,2224,2226,2228,2230,2232,2235,2237,2239,2241,2244,2246,2248,2250,2253,2255,2258,2261,2264,2266,2268,2270,2273,2275,2277,2279,2282,2284],{"class":669,"line":1393},[667,2204,1600],{"class":1599},[667,2206,2207],{"class":1603}," stateOptions",[667,2209,1607],{"class":1429},[667,2211,2212],{"class":687}," [",[667,2214,716],{"class":708},[667,2216,2217],{"class":712},"awaiting_payment",[667,2219,716],{"class":708},[667,2221,719],{"class":683},[667,2223,709],{"class":708},[667,2225,1435],{"class":712},[667,2227,716],{"class":708},[667,2229,719],{"class":683},[667,2231,709],{"class":708},[667,2233,2234],{"class":712},"cancelled",[667,2236,716],{"class":708},[667,2238,719],{"class":683},[667,2240,709],{"class":708},[667,2242,2243],{"class":712},"refunded",[667,2245,716],{"class":708},[667,2247,888],{"class":687},[667,2249,1034],{"class":683},[667,2251,2252],{"class":731},"map",[667,2254,735],{"class":687},[667,2256,1426],{"class":2257},"sNTR6",[667,2259,2260],{"class":1599}," =>",[667,2262,2263],{"class":687}," (",[667,2265,1311],{"class":683},[667,2267,786],{"class":702},[667,2269,684],{"class":683},[667,2271,2272],{"class":687}," state",[667,2274,719],{"class":683},[667,2276,1748],{"class":702},[667,2278,684],{"class":683},[667,2280,2281],{"class":687}," state ",[667,2283,1322],{"class":683},[667,2285,2286],{"class":687},"))\n",[667,2288,2289,2291,2293,2297,2299,2302,2304,2306,2309,2311,2313,2316,2318,2320,2322,2325,2327,2330,2332],{"class":669,"line":1404},[667,2290,1600],{"class":1599},[667,2292,783],{"class":683},[667,2294,2296],{"class":2295},"ssFBz"," model",[667,2298,684],{"class":683},[667,2300,2301],{"class":1603}," stateModel",[667,2303,879],{"class":683},[667,2305,1607],{"class":1429},[667,2307,2308],{"class":731}," useQueryBoundModel",[667,2310,735],{"class":687},[667,2312,716],{"class":708},[667,2314,2315],{"class":712},"state[]",[667,2317,716],{"class":708},[667,2319,719],{"class":683},[667,2321,783],{"class":683},[667,2323,2324],{"class":702}," defaultValue",[667,2326,684],{"class":683},[667,2328,2329],{"class":687}," [] ",[667,2331,1322],{"class":683},[667,2333,2334],{"class":687},")\n",[667,2336,2337,2339,2342,2344,2347,2349],{"class":669,"line":1462},[667,2338,1600],{"class":1599},[667,2340,2341],{"class":1603}," states",[667,2343,1607],{"class":1429},[667,2345,2346],{"class":731}," computed",[667,2348,735],{"class":687},[667,2350,2351],{"class":683},"{\n",[667,2353,2354,2357,2359,2362,2364,2367,2369,2372,2375,2378,2381,2385,2388],{"class":669,"line":1468},[667,2355,2356],{"class":731},"  get",[667,2358,684],{"class":683},[667,2360,2361],{"class":683}," ()",[667,2363,2260],{"class":1599},[667,2365,2366],{"class":687}," (stateModel",[667,2368,1034],{"class":683},[667,2370,2371],{"class":687},"value ",[667,2373,2374],{"class":1429},"??",[667,2376,2377],{"class":687}," []) ",[667,2379,2380],{"class":1703},"as",[667,2382,2384],{"class":2383},"sbW4m"," string",[667,2386,2387],{"class":687},"[]",[667,2389,891],{"class":683},[667,2391,2392,2395,2397,2399,2401,2403,2405,2407,2409,2411,2413,2415,2417,2419,2421,2423],{"class":669,"line":1478},[667,2393,2394],{"class":731},"  set",[667,2396,684],{"class":683},[667,2398,2263],{"class":683},[667,2400,1929],{"class":2257},[667,2402,684],{"class":1429},[667,2404,2384],{"class":2383},[667,2406,2387],{"class":687},[667,2408,745],{"class":683},[667,2410,2260],{"class":1599},[667,2412,783],{"class":683},[667,2414,2301],{"class":687},[667,2416,1034],{"class":683},[667,2418,1929],{"class":687},[667,2420,1607],{"class":1429},[667,2422,1748],{"class":687},[667,2424,882],{"class":683},[667,2426,2427,2429],{"class":669,"line":1488},[667,2428,1322],{"class":683},[667,2430,2334],{"class":687},[667,2432,2433,2435,2437],{"class":669,"line":1510},[667,2434,1559],{"class":683},[667,2436,1577],{"class":1182},[667,2438,1186],{"class":683},[1084,2440,2442],{"id":2441},"rows","Rows",[893,2444,2445,2454],{},[896,2446,2447],{},[899,2448,2449,2451],{},[902,2450,354],{},[902,2452,2453],{},"Props",[912,2455,2456,2497],{},[899,2457,2458,2463],{},[917,2459,2460],{},[641,2461,2462],{},"\u003CCwaAdminListRow>",[917,2464,2465,2467,2468,2470,2471,2473,2474,2476,2477,2480,2481,2484,2485,2488,2489,2492,2493,2496],{},[641,2466,1357],{}," (required), ",[641,2469,1343],{}," (the row's link, usually ",[641,2472,1350],{},"), ",[641,2475,1375],{}," (a second line), ",[641,2478,2479],{},"dim",". With ",[641,2482,2483],{},"actions",", it shows an edit button, and a view button when ",[641,2486,2487],{},"view"," is set; ",[641,2490,2491],{},"name"," labels them. The default slot holds its ",[641,2494,2495],{},"\u003CCwaAdminListCell>","s",[899,2498,2499,2503],{},[917,2500,2501],{},[641,2502,2495],{},[917,2504,2505,2506,2509],{},"One cell after the title. ",[641,2507,2508],{},"align=\"end\""," for numbers",[637,2511,2512,2513,2515],{},"The row's title takes the first column, so give ",[641,2514,1247],{}," one entry more than the row has cells.",[1036,2517,2518],{"icon":1138},[637,2519,2520,2522,2523,2525],{},[1008,2521,1143],{}," the orders list with its search, a ",[1008,2524,1641],{}," filter, the sort menu and rows showing an order number, the customer's email, a state badge and a total.",[646,2527,971],{"id":2528},"the-item-dialog",[637,2530,2531,2532,2534,2535,2538,2539,2542,2543,2546],{},"The ",[641,2533,956],{}," file opens over the list when a row is clicked, at ",[641,2536,2537],{},"\u002F_cwa\u002Fshop-orders\u002F\u003Ciri>",". ",[641,2540,2541],{},"useCwaAdminItem"," loads the resource from the route, as the built-in dialogs do, and ",[641,2544,2545],{},"\u003CCwaUiDialog>"," lays it out:",[658,2548,2550],{"className":1165,"code":2549,"language":1167,"meta":663,"style":663},"\u003C!-- cwa-shop\u002Fadmin\u002Forder.vue -->\n\u003Ctemplate>\n  \u003CCwaUiDialog\n    v-if=\"localResourceData || isLoading || loadFailed\"\n    placement=\"right\"\n    :title=\"localResourceData?.number ?? 'Order'\"\n    :tabs=\"tabs\"\n    :loading=\"isLoading\"\n    :load-failed=\"loadFailed\"\n    noun=\"order\"\n    @close=\"$emit('close')\"\n    @retry=\"loadResource()\"\n  >\n    \u003Ctemplate #details>\n      \u003CCwaUiFormSection title=\"Order\">\n        \u003CCwaUiDetailList :items=\"summary\" \u002F>\n      \u003C\u002FCwaUiFormSection>\n      \u003CCwaUiFormSection title=\"Lines\">\n        \u003CCwaUiDataTable label=\"Order lines\" :columns=\"lineColumns\" :rows=\"localResourceData?.lines ?? []\" \u002F>\n      \u003C\u002FCwaUiFormSection>\n      \u003CCwaUiFormSection v-if=\"localResourceData?.state === 'paid'\" title=\"Refund\">\n        \u003CCwaUiButton label=\"Refund\" tone=\"danger\" :loading=\"actionRunning\" @click=\"refund\" \u002F>\n      \u003C\u002FCwaUiFormSection>\n    \u003C\u002Ftemplate>\n    \u003Ctemplate #info>\n      \u003CCwaAdminResourceId :iri=\"localResourceData?.['@id']\" \u002F>\n    \u003C\u002Ftemplate>\n  \u003C\u002FCwaUiDialog>\n\u003C\u002Ftemplate>\n\n\u003Cscript setup lang=\"ts\">\nconst emit = defineEmits\u003C{ close: [], reload: [] }>()\n\nconst { localResourceData, isLoading, loadFailed, loadResource, runAction, actionRunning } = useCwaAdminItem({ \u002F\u002F [!code focus]\n  createEndpoint: '\u002Fshop\u002Forders', \u002F\u002F [!code focus]\n  emit, \u002F\u002F [!code focus]\n  resourceType: 'Order', \u002F\u002F [!code focus]\n  defaultResource: () => ({}), \u002F\u002F [!code focus]\n}) \u002F\u002F [!code focus]\n\nconst tabs = [{ key: 'details', label: 'Details' }, { key: 'info', label: 'Info' }]\nconst lineColumns = [\n  { key: 'title', label: 'Item' },\n  { key: 'quantity', label: 'Qty', align: 'end' as const },\n  { key: 'total', label: 'Total', align: 'end' as const },\n]\nconst summary = computed(() => [\n  { label: 'State', value: localResourceData.value?.state },\n  { label: 'Email', value: localResourceData.value?.customerEmail },\n  { label: 'Total', value: localResourceData.value?.total },\n])\n\nfunction refund() {\n  const iri = localResourceData.value?.['@id']\n  return iri && runAction({\n    endpoint: `${iri}\u002Frefund`,\n    confirm: { title: 'Refund this order?', go: 'Refund', tone: 'danger' },\n    success: 'Order refunded',\n  })\n}\n\u003C\u002Fscript>\n",[641,2551,2552,2557,2565,2572,2597,2611,2638,2653,2669,2685,2697,2724,2743,2747,2760,2780,2804,2812,2831,2886,2894,2934,2993,3001,3009,3022,3056,3064,3073,3081,3085,3105,3142,3146,3190,3206,3214,3230,3252,3261,3266,3335,3347,3377,3424,3470,3475,3495,3530,3565,3599,3605,3610,3624,3654,3671,3694,3742,3759,3767,3773],{"__ignoreMap":663},[667,2553,2554],{"class":669,"line":670},[667,2555,2556],{"class":673},"\u003C!-- cwa-shop\u002Fadmin\u002Forder.vue -->\n",[667,2558,2559,2561,2563],{"class":669,"line":677},[667,2560,1179],{"class":683},[667,2562,1183],{"class":1182},[667,2564,1186],{"class":683},[667,2566,2567,2569],{"class":669,"line":691},[667,2568,1191],{"class":683},[667,2570,2571],{"class":1182},"CwaUiDialog\n",[667,2573,2574,2577,2579,2581,2584,2587,2590,2592,2595],{"class":669,"line":699},[667,2575,2576],{"class":1703},"    v-if",[667,2578,1203],{"class":683},[667,2580,1206],{"class":708},[667,2582,2583],{"class":687},"localResourceData",[667,2585,2586],{"class":1429}," ||",[667,2588,2589],{"class":687}," isLoading",[667,2591,2586],{"class":1429},[667,2593,2594],{"class":687}," loadFailed",[667,2596,1211],{"class":708},[667,2598,2599,2602,2604,2606,2609],{"class":669,"line":723},[667,2600,2601],{"class":1199},"    placement",[667,2603,1203],{"class":683},[667,2605,1206],{"class":708},[667,2607,2608],{"class":712},"right",[667,2610,1211],{"class":708},[667,2612,2613,2615,2617,2619,2621,2623,2626,2628,2631,2633,2635],{"class":669,"line":751},[667,2614,1244],{"class":683},[667,2616,1357],{"class":1199},[667,2618,1203],{"class":683},[667,2620,1206],{"class":708},[667,2622,2583],{"class":687},[667,2624,2625],{"class":683},"?.",[667,2627,1368],{"class":687},[667,2629,2630],{"class":1429}," ??",[667,2632,709],{"class":708},[667,2634,1623],{"class":712},[667,2636,2637],{"class":708},"'\"\n",[667,2639,2640,2642,2645,2647,2649,2651],{"class":669,"line":775},[667,2641,1244],{"class":683},[667,2643,2644],{"class":1199},"tabs",[667,2646,1203],{"class":683},[667,2648,1206],{"class":708},[667,2650,2644],{"class":687},[667,2652,1211],{"class":708},[667,2654,2655,2657,2660,2662,2664,2667],{"class":669,"line":801},[667,2656,1244],{"class":683},[667,2658,2659],{"class":1199},"loading",[667,2661,1203],{"class":683},[667,2663,1206],{"class":708},[667,2665,2666],{"class":687},"isLoading",[667,2668,1211],{"class":708},[667,2670,2671,2673,2676,2678,2680,2683],{"class":669,"line":807},[667,2672,1244],{"class":683},[667,2674,2675],{"class":1199},"load-failed",[667,2677,1203],{"class":683},[667,2679,1206],{"class":708},[667,2681,2682],{"class":687},"loadFailed",[667,2684,1211],{"class":708},[667,2686,2687,2689,2691,2693,2695],{"class":669,"line":885},[667,2688,1230],{"class":1199},[667,2690,1203],{"class":683},[667,2692,1206],{"class":708},[667,2694,1978],{"class":712},[667,2696,1211],{"class":708},[667,2698,2699,2702,2705,2707,2709,2712,2714,2716,2718,2720,2722],{"class":669,"line":1294},[667,2700,2701],{"class":683},"    @",[667,2703,2704],{"class":1199},"close",[667,2706,1203],{"class":683},[667,2708,1206],{"class":708},[667,2710,2711],{"class":731},"$emit",[667,2713,735],{"class":683},[667,2715,716],{"class":708},[667,2717,2704],{"class":712},[667,2719,716],{"class":708},[667,2721,745],{"class":683},[667,2723,1211],{"class":708},[667,2725,2726,2728,2731,2733,2735,2738,2741],{"class":669,"line":1331},[667,2727,2701],{"class":683},[667,2729,2730],{"class":1199},"retry",[667,2732,1203],{"class":683},[667,2734,1206],{"class":708},[667,2736,2737],{"class":731},"loadResource",[667,2739,2740],{"class":683},"()",[667,2742,1211],{"class":708},[667,2744,2745],{"class":669,"line":1393},[667,2746,1290],{"class":683},[667,2748,2749,2751,2753,2755,2758],{"class":669,"line":1404},[667,2750,1297],{"class":683},[667,2752,1183],{"class":1182},[667,2754,1302],{"class":683},[667,2756,2757],{"class":1199},"details",[667,2759,1186],{"class":683},[667,2761,2762,2764,2767,2770,2772,2774,2776,2778],{"class":669,"line":1462},[667,2763,1334],{"class":683},[667,2765,2766],{"class":1182},"CwaUiFormSection",[667,2768,2769],{"class":1199}," title",[667,2771,1203],{"class":683},[667,2773,1206],{"class":708},[667,2775,1623],{"class":712},[667,2777,1206],{"class":708},[667,2779,1186],{"class":683},[667,2781,2782,2784,2787,2789,2792,2794,2796,2799,2801],{"class":669,"line":1468},[667,2783,1396],{"class":683},[667,2785,2786],{"class":1182},"CwaUiDetailList",[667,2788,1340],{"class":683},[667,2790,2791],{"class":1199},"items",[667,2793,1203],{"class":683},[667,2795,1206],{"class":708},[667,2797,2798],{"class":687},"summary",[667,2800,1206],{"class":708},[667,2802,2803],{"class":683}," \u002F>\n",[667,2805,2806,2808,2810],{"class":669,"line":1478},[667,2807,1528],{"class":683},[667,2809,2766],{"class":1182},[667,2811,1186],{"class":683},[667,2813,2814,2816,2818,2820,2822,2824,2827,2829],{"class":669,"line":1488},[667,2815,1334],{"class":683},[667,2817,2766],{"class":1182},[667,2819,2769],{"class":1199},[667,2821,1203],{"class":683},[667,2823,1206],{"class":708},[667,2825,2826],{"class":712},"Lines",[667,2828,1206],{"class":708},[667,2830,1186],{"class":683},[667,2832,2833,2835,2838,2840,2842,2844,2847,2849,2851,2853,2855,2857,2860,2862,2864,2866,2868,2870,2872,2874,2877,2879,2882,2884],{"class":669,"line":1510},[667,2834,1396],{"class":683},[667,2836,2837],{"class":1182},"CwaUiDataTable",[667,2839,786],{"class":1199},[667,2841,1203],{"class":683},[667,2843,1206],{"class":708},[667,2845,2846],{"class":712},"Order lines",[667,2848,1206],{"class":708},[667,2850,1340],{"class":683},[667,2852,1247],{"class":1199},[667,2854,1203],{"class":683},[667,2856,1206],{"class":708},[667,2858,2859],{"class":687},"lineColumns",[667,2861,1206],{"class":708},[667,2863,1340],{"class":683},[667,2865,2441],{"class":1199},[667,2867,1203],{"class":683},[667,2869,1206],{"class":708},[667,2871,2583],{"class":687},[667,2873,2625],{"class":683},[667,2875,2876],{"class":687},"lines",[667,2878,2630],{"class":1429},[667,2880,2881],{"class":683}," []",[667,2883,1206],{"class":708},[667,2885,2803],{"class":683},[667,2887,2888,2890,2892],{"class":669,"line":1516},[667,2889,1528],{"class":683},[667,2891,2766],{"class":1182},[667,2893,1186],{"class":683},[667,2895,2896,2898,2900,2903,2905,2907,2909,2911,2913,2915,2917,2919,2921,2923,2925,2927,2930,2932],{"class":669,"line":1525},[667,2897,1334],{"class":683},[667,2899,2766],{"class":1182},[667,2901,2902],{"class":1703}," v-if",[667,2904,1203],{"class":683},[667,2906,1206],{"class":708},[667,2908,2583],{"class":687},[667,2910,2625],{"class":683},[667,2912,1426],{"class":687},[667,2914,1430],{"class":1429},[667,2916,709],{"class":708},[667,2918,1435],{"class":712},[667,2920,1457],{"class":708},[667,2922,2769],{"class":1199},[667,2924,1203],{"class":683},[667,2926,1206],{"class":708},[667,2928,2929],{"class":712},"Refund",[667,2931,1206],{"class":708},[667,2933,1186],{"class":683},[667,2935,2936,2938,2941,2943,2945,2947,2949,2951,2954,2956,2958,2961,2963,2965,2967,2969,2971,2974,2976,2979,2982,2984,2986,2989,2991],{"class":669,"line":1535},[667,2937,1396],{"class":683},[667,2939,2940],{"class":1182},"CwaUiButton",[667,2942,786],{"class":1199},[667,2944,1203],{"class":683},[667,2946,1206],{"class":708},[667,2948,2929],{"class":712},[667,2950,1206],{"class":708},[667,2952,2953],{"class":1199}," tone",[667,2955,1203],{"class":683},[667,2957,1206],{"class":708},[667,2959,2960],{"class":712},"danger",[667,2962,1206],{"class":708},[667,2964,1340],{"class":683},[667,2966,2659],{"class":1199},[667,2968,1203],{"class":683},[667,2970,1206],{"class":708},[667,2972,2973],{"class":687},"actionRunning",[667,2975,1206],{"class":708},[667,2977,2978],{"class":683}," @",[667,2980,2981],{"class":1199},"click",[667,2983,1203],{"class":683},[667,2985,1206],{"class":708},[667,2987,2988],{"class":687},"refund",[667,2990,1206],{"class":708},[667,2992,2803],{"class":683},[667,2994,2995,2997,2999],{"class":669,"line":1545},[667,2996,1528],{"class":683},[667,2998,2766],{"class":1182},[667,3000,1186],{"class":683},[667,3002,3003,3005,3007],{"class":669,"line":1556},[667,3004,1538],{"class":683},[667,3006,1183],{"class":1182},[667,3008,1186],{"class":683},[667,3010,3011,3013,3015,3017,3020],{"class":669,"line":1566},[667,3012,1297],{"class":683},[667,3014,1183],{"class":1182},[667,3016,1302],{"class":683},[667,3018,3019],{"class":1199},"info",[667,3021,1186],{"class":683},[667,3023,3024,3026,3029,3031,3034,3036,3038,3040,3043,3045,3048,3050,3052,3054],{"class":669,"line":1572},[667,3025,1334],{"class":683},[667,3027,3028],{"class":1182},"CwaAdminResourceId",[667,3030,1340],{"class":683},[667,3032,3033],{"class":1199},"iri",[667,3035,1203],{"class":683},[667,3037,1206],{"class":708},[667,3039,2583],{"class":687},[667,3041,3042],{"class":683},"?.[",[667,3044,716],{"class":708},[667,3046,3047],{"class":712},"@id",[667,3049,716],{"class":708},[667,3051,888],{"class":683},[667,3053,1206],{"class":708},[667,3055,2803],{"class":683},[667,3057,3058,3060,3062],{"class":669,"line":1596},[667,3059,1538],{"class":683},[667,3061,1183],{"class":1182},[667,3063,1186],{"class":683},[667,3065,3066,3068,3071],{"class":669,"line":1612},[667,3067,1548],{"class":683},[667,3069,3070],{"class":1182},"CwaUiDialog",[667,3072,1186],{"class":683},[667,3074,3075,3077,3079],{"class":669,"line":1630},[667,3076,1559],{"class":683},[667,3078,1183],{"class":1182},[667,3080,1186],{"class":683},[667,3082,3083],{"class":669,"line":1662},[667,3084,1569],{"emptyLinePlaceholder":23},[667,3086,3087,3089,3091,3093,3095,3097,3099,3101,3103],{"class":669,"line":1712},[667,3088,1179],{"class":683},[667,3090,1577],{"class":1182},[667,3092,1580],{"class":1199},[667,3094,1583],{"class":1199},[667,3096,1203],{"class":683},[667,3098,1206],{"class":708},[667,3100,662],{"class":712},[667,3102,1206],{"class":708},[667,3104,1186],{"class":683},[667,3106,3107,3109,3112,3114,3117,3120,3123,3125,3127,3129,3132,3134,3136,3139],{"class":669,"line":1718},[667,3108,1600],{"class":1599},[667,3110,3111],{"class":1603}," emit",[667,3113,1607],{"class":1429},[667,3115,3116],{"class":731}," defineEmits",[667,3118,3119],{"class":683},"\u003C{",[667,3121,3122],{"class":2295}," close",[667,3124,684],{"class":1429},[667,3126,2881],{"class":687},[667,3128,719],{"class":683},[667,3130,3131],{"class":2295}," reload",[667,3133,684],{"class":1429},[667,3135,2329],{"class":687},[667,3137,3138],{"class":683},"}>",[667,3140,3141],{"class":687},"()\n",[667,3143,3144],{"class":669,"line":1730},[667,3145,1569],{"emptyLinePlaceholder":23},[667,3147,3149,3151,3153,3156,3158,3160,3162,3164,3166,3169,3171,3174,3176,3179,3181,3183,3186,3188],{"class":3148,"line":1771},[669,698],[667,3150,1600],{"class":1599},[667,3152,783],{"class":683},[667,3154,3155],{"class":1603}," localResourceData",[667,3157,719],{"class":683},[667,3159,2589],{"class":1603},[667,3161,719],{"class":683},[667,3163,2594],{"class":1603},[667,3165,719],{"class":683},[667,3167,3168],{"class":1603}," loadResource",[667,3170,719],{"class":683},[667,3172,3173],{"class":1603}," runAction",[667,3175,719],{"class":683},[667,3177,3178],{"class":1603}," actionRunning",[667,3180,879],{"class":683},[667,3182,1607],{"class":1429},[667,3184,3185],{"class":731}," useCwaAdminItem",[667,3187,735],{"class":687},[667,3189,1311],{"class":683},[667,3191,3193,3196,3198,3200,3202,3204],{"class":3192,"line":1810},[669,698],[667,3194,3195],{"class":702},"  createEndpoint",[667,3197,684],{"class":683},[667,3199,709],{"class":708},[667,3201,1223],{"class":712},[667,3203,716],{"class":708},[667,3205,719],{"class":683},[667,3207,3209,3212],{"class":3208,"line":1815},[669,698],[667,3210,3211],{"class":687},"  emit",[667,3213,719],{"class":683},[667,3215,3217,3220,3222,3224,3226,3228],{"class":3216,"line":1820},[669,698],[667,3218,3219],{"class":702},"  resourceType",[667,3221,684],{"class":683},[667,3223,709],{"class":708},[667,3225,1623],{"class":712},[667,3227,716],{"class":708},[667,3229,719],{"class":683},[667,3231,3234,3237,3239,3241,3243,3245,3248,3250],{"class":3232,"line":3233},[669,698],38,[667,3235,3236],{"class":731},"  defaultResource",[667,3238,684],{"class":683},[667,3240,2361],{"class":683},[667,3242,2260],{"class":1599},[667,3244,2263],{"class":687},[667,3246,3247],{"class":683},"{}",[667,3249,745],{"class":687},[667,3251,719],{"class":683},[667,3253,3256,3258],{"class":3254,"line":3255},[669,698],39,[667,3257,1322],{"class":683},[667,3259,3260],{"class":687},") ",[667,3262,3264],{"class":669,"line":3263},40,[667,3265,1569],{"emptyLinePlaceholder":23},[667,3267,3269,3271,3274,3276,3278,3280,3283,3285,3287,3289,3291,3293,3295,3297,3299,3302,3304,3306,3308,3310,3312,3314,3316,3318,3320,3322,3324,3326,3329,3331,3333],{"class":669,"line":3268},41,[667,3270,1600],{"class":1599},[667,3272,3273],{"class":1603}," tabs",[667,3275,1607],{"class":1429},[667,3277,2212],{"class":687},[667,3279,1311],{"class":683},[667,3281,3282],{"class":702}," key",[667,3284,684],{"class":683},[667,3286,709],{"class":708},[667,3288,2757],{"class":712},[667,3290,716],{"class":708},[667,3292,719],{"class":683},[667,3294,786],{"class":702},[667,3296,684],{"class":683},[667,3298,709],{"class":708},[667,3300,3301],{"class":712},"Details",[667,3303,716],{"class":708},[667,3305,798],{"class":683},[667,3307,783],{"class":683},[667,3309,3282],{"class":702},[667,3311,684],{"class":683},[667,3313,709],{"class":708},[667,3315,3019],{"class":712},[667,3317,716],{"class":708},[667,3319,719],{"class":683},[667,3321,786],{"class":702},[667,3323,684],{"class":683},[667,3325,709],{"class":708},[667,3327,3328],{"class":712},"Info",[667,3330,716],{"class":708},[667,3332,879],{"class":683},[667,3334,1715],{"class":687},[667,3336,3338,3340,3343,3345],{"class":669,"line":3337},42,[667,3339,1600],{"class":1599},[667,3341,3342],{"class":1603}," lineColumns",[667,3344,1607],{"class":1429},[667,3346,688],{"class":687},[667,3348,3350,3352,3354,3356,3358,3360,3362,3364,3366,3368,3370,3373,3375],{"class":669,"line":3349},43,[667,3351,810],{"class":683},[667,3353,3282],{"class":702},[667,3355,684],{"class":683},[667,3357,709],{"class":708},[667,3359,1357],{"class":712},[667,3361,716],{"class":708},[667,3363,719],{"class":683},[667,3365,786],{"class":702},[667,3367,684],{"class":683},[667,3369,709],{"class":708},[667,3371,3372],{"class":712},"Item",[667,3374,716],{"class":708},[667,3376,882],{"class":683},[667,3378,3380,3382,3384,3386,3388,3391,3393,3395,3397,3399,3401,3404,3406,3408,3410,3412,3414,3416,3418,3420,3422],{"class":669,"line":3379},44,[667,3381,810],{"class":683},[667,3383,3282],{"class":702},[667,3385,684],{"class":683},[667,3387,709],{"class":708},[667,3389,3390],{"class":712},"quantity",[667,3392,716],{"class":708},[667,3394,719],{"class":683},[667,3396,786],{"class":702},[667,3398,684],{"class":683},[667,3400,709],{"class":708},[667,3402,3403],{"class":712},"Qty",[667,3405,716],{"class":708},[667,3407,719],{"class":683},[667,3409,1496],{"class":702},[667,3411,684],{"class":683},[667,3413,709],{"class":708},[667,3415,1503],{"class":712},[667,3417,716],{"class":708},[667,3419,1704],{"class":1703},[667,3421,1707],{"class":1599},[667,3423,882],{"class":683},[667,3425,3427,3429,3431,3433,3435,3438,3440,3442,3444,3446,3448,3450,3452,3454,3456,3458,3460,3462,3464,3466,3468],{"class":669,"line":3426},45,[667,3428,810],{"class":683},[667,3430,3282],{"class":702},[667,3432,684],{"class":683},[667,3434,709],{"class":708},[667,3436,3437],{"class":712},"total",[667,3439,716],{"class":708},[667,3441,719],{"class":683},[667,3443,786],{"class":702},[667,3445,684],{"class":683},[667,3447,709],{"class":708},[667,3449,1673],{"class":712},[667,3451,716],{"class":708},[667,3453,719],{"class":683},[667,3455,1496],{"class":702},[667,3457,684],{"class":683},[667,3459,709],{"class":708},[667,3461,1503],{"class":712},[667,3463,716],{"class":708},[667,3465,1704],{"class":1703},[667,3467,1707],{"class":1599},[667,3469,882],{"class":683},[667,3471,3473],{"class":669,"line":3472},46,[667,3474,1715],{"class":687},[667,3476,3478,3480,3483,3485,3487,3489,3491,3493],{"class":669,"line":3477},47,[667,3479,1600],{"class":1599},[667,3481,3482],{"class":1603}," summary",[667,3484,1607],{"class":1429},[667,3486,2346],{"class":731},[667,3488,735],{"class":687},[667,3490,2740],{"class":683},[667,3492,2260],{"class":1599},[667,3494,688],{"class":687},[667,3496,3498,3500,3502,3504,3506,3508,3510,3512,3514,3516,3518,3520,3522,3524,3527],{"class":669,"line":3497},48,[667,3499,810],{"class":683},[667,3501,786],{"class":702},[667,3503,684],{"class":683},[667,3505,709],{"class":708},[667,3507,1641],{"class":712},[667,3509,716],{"class":708},[667,3511,719],{"class":683},[667,3513,1748],{"class":702},[667,3515,684],{"class":683},[667,3517,3155],{"class":687},[667,3519,1034],{"class":683},[667,3521,1929],{"class":687},[667,3523,2625],{"class":683},[667,3525,3526],{"class":687},"state ",[667,3528,3529],{"class":683},"},\n",[667,3531,3533,3535,3537,3539,3541,3544,3546,3548,3550,3552,3554,3556,3558,3560,3563],{"class":669,"line":3532},49,[667,3534,810],{"class":683},[667,3536,786],{"class":702},[667,3538,684],{"class":683},[667,3540,709],{"class":708},[667,3542,3543],{"class":712},"Email",[667,3545,716],{"class":708},[667,3547,719],{"class":683},[667,3549,1748],{"class":702},[667,3551,684],{"class":683},[667,3553,3155],{"class":687},[667,3555,1034],{"class":683},[667,3557,1929],{"class":687},[667,3559,2625],{"class":683},[667,3561,3562],{"class":687},"customerEmail ",[667,3564,3529],{"class":683},[667,3566,3568,3570,3572,3574,3576,3578,3580,3582,3584,3586,3588,3590,3592,3594,3597],{"class":669,"line":3567},50,[667,3569,810],{"class":683},[667,3571,786],{"class":702},[667,3573,684],{"class":683},[667,3575,709],{"class":708},[667,3577,1673],{"class":712},[667,3579,716],{"class":708},[667,3581,719],{"class":683},[667,3583,1748],{"class":702},[667,3585,684],{"class":683},[667,3587,3155],{"class":687},[667,3589,1034],{"class":683},[667,3591,1929],{"class":687},[667,3593,2625],{"class":683},[667,3595,3596],{"class":687},"total ",[667,3598,3529],{"class":683},[667,3600,3602],{"class":669,"line":3601},51,[667,3603,3604],{"class":687},"])\n",[667,3606,3608],{"class":669,"line":3607},52,[667,3609,1569],{"emptyLinePlaceholder":23},[667,3611,3613,3616,3619,3621],{"class":669,"line":3612},53,[667,3614,3615],{"class":1599},"function",[667,3617,3618],{"class":731}," refund",[667,3620,2740],{"class":683},[667,3622,3623],{"class":683}," {\n",[667,3625,3627,3630,3633,3635,3637,3639,3641,3643,3646,3648,3650,3652],{"class":669,"line":3626},54,[667,3628,3629],{"class":1599},"  const",[667,3631,3632],{"class":1603}," iri",[667,3634,1607],{"class":1429},[667,3636,3155],{"class":687},[667,3638,1034],{"class":683},[667,3640,1929],{"class":687},[667,3642,2625],{"class":683},[667,3644,3645],{"class":702},"[",[667,3647,716],{"class":708},[667,3649,3047],{"class":712},[667,3651,716],{"class":708},[667,3653,1715],{"class":702},[667,3655,3657,3660,3662,3665,3667,3669],{"class":669,"line":3656},55,[667,3658,3659],{"class":1703},"  return",[667,3661,3632],{"class":687},[667,3663,3664],{"class":1429}," &&",[667,3666,3173],{"class":731},[667,3668,735],{"class":702},[667,3670,2351],{"class":683},[667,3672,3674,3677,3679,3682,3684,3686,3689,3692],{"class":669,"line":3673},56,[667,3675,3676],{"class":702},"    endpoint",[667,3678,684],{"class":683},[667,3680,3681],{"class":708}," `${",[667,3683,3033],{"class":687},[667,3685,1322],{"class":708},[667,3687,3688],{"class":712},"\u002Frefund",[667,3690,3691],{"class":708},"`",[667,3693,891],{"class":683},[667,3695,3697,3700,3702,3704,3706,3708,3710,3713,3715,3717,3720,3722,3724,3726,3728,3730,3732,3734,3736,3738,3740],{"class":669,"line":3696},57,[667,3698,3699],{"class":702},"    confirm",[667,3701,684],{"class":683},[667,3703,783],{"class":683},[667,3705,2769],{"class":702},[667,3707,684],{"class":683},[667,3709,709],{"class":708},[667,3711,3712],{"class":712},"Refund this order?",[667,3714,716],{"class":708},[667,3716,719],{"class":683},[667,3718,3719],{"class":702}," go",[667,3721,684],{"class":683},[667,3723,709],{"class":708},[667,3725,2929],{"class":712},[667,3727,716],{"class":708},[667,3729,719],{"class":683},[667,3731,2953],{"class":702},[667,3733,684],{"class":683},[667,3735,709],{"class":708},[667,3737,2960],{"class":712},[667,3739,716],{"class":708},[667,3741,882],{"class":683},[667,3743,3745,3748,3750,3752,3755,3757],{"class":669,"line":3744},58,[667,3746,3747],{"class":702},"    success",[667,3749,684],{"class":683},[667,3751,709],{"class":708},[667,3753,3754],{"class":712},"Order refunded",[667,3756,716],{"class":708},[667,3758,891],{"class":683},[667,3760,3762,3765],{"class":669,"line":3761},59,[667,3763,3764],{"class":683},"  }",[667,3766,2334],{"class":702},[667,3768,3770],{"class":669,"line":3769},60,[667,3771,3772],{"class":683},"}\n",[667,3774,3776,3778,3780],{"class":669,"line":3775},61,[667,3777,1559],{"class":683},[667,3779,1577],{"class":1182},[667,3781,1186],{"class":683},[637,3783,3784,3785,3787,3788,3791,3792,3794],{},"The dialog emits ",[641,3786,2704],{}," to go back to the list and ",[641,3789,3790],{},"reload"," to refresh it. Each entry in ",[641,3793,2644],{}," names a slot.",[1084,3796,3798],{"id":3797},"usecwaadminitem",[641,3799,2541],{},[637,3801,3802],{},"It takes the options of the built-in dialogs' item composable:",[893,3804,3805,3815],{},[896,3806,3807],{},[899,3808,3809,3811,3813],{},[902,3810,904],{},[902,3812,907],{},[902,3814,910],{},[912,3816,3817,3831,3850,3862],{},[899,3818,3819,3824,3826],{},[917,3820,3821],{},[641,3822,3823],{},"createEndpoint",[917,3825,924],{},[917,3827,3828,3829],{},"Where a new item is posted, when the dialog is opened at ",[641,3830,1964],{},[899,3832,3833,3838,3840],{},[917,3834,3835],{},[641,3836,3837],{},"emit",[917,3839,924],{},[917,3841,3842,3843,3845,3846,1065,3848],{},"The dialog's ",[641,3844,3837],{},", with ",[641,3847,2704],{},[641,3849,3790],{},[899,3851,3852,3857,3859],{},[917,3853,3854],{},[641,3855,3856],{},"defaultResource",[917,3858,924],{},[917,3860,3861],{},"The fields a new item starts with",[899,3863,3864,3869,3871],{},[917,3865,3866],{},[641,3867,3868],{},"resourceType",[917,3870,959],{},[917,3872,3873],{},"The resource's type",[637,3875,3876,3877,3879,3880,3883,3884,1049,3886,1049,3888,3891,3892,1065,3895,3898,3899,1065,3902,1034],{},"It returns the loaded resource and its state: ",[641,3878,2583],{}," (the dialog's copy), ",[641,3881,3882],{},"resource"," (the stored one), ",[641,3885,2666],{},[641,3887,2682],{},[641,3889,3890],{},"loadResource()"," to load it again, ",[641,3893,3894],{},"saveResource()",[641,3896,3897],{},"deleteResource()"," for an editable item, plus ",[641,3900,3901],{},"runAction",[641,3903,2973],{},[1084,3905,3907],{"id":3906},"running-an-action","Running an Action",[637,3909,3910,3911,3914],{},"An action is a request that does something to the item, such as a refund. ",[641,3912,3913],{},"runAction()"," sends it, and only then reloads the item and the list:",[893,3916,3917,3926],{},[896,3918,3919],{},[899,3920,3921,3924],{},[902,3922,3923],{},"Field",[902,3925,910],{},[912,3927,3928,3938,3954,3964,3992],{},[899,3929,3930,3935],{},[917,3931,3932],{},[641,3933,3934],{},"endpoint",[917,3936,3937],{},"Where the request goes",[899,3939,3940,3945],{},[917,3941,3942],{},[641,3943,3944],{},"method",[917,3946,3947,3950,3951],{},[641,3948,3949],{},"POST"," (default) or ",[641,3952,3953],{},"PATCH",[899,3955,3956,3961],{},[917,3957,3958],{},[641,3959,3960],{},"body",[917,3962,3963],{},"The request body, if any",[899,3965,3966,3971],{},[917,3967,3968],{},[641,3969,3970],{},"confirm",[917,3972,3973,3974,1049,3976,3979,3980,2263,3982,3984,3985,3988,3989],{},"Ask first, with the admin's confirm dialog: ",[641,3975,1357],{},[641,3977,3978],{},"go"," (the button), ",[641,3981,1415],{},[641,3983,2960],{}," or ",[641,3986,3987],{},"accent","), and optionally ",[641,3990,3991],{},"description",[899,3993,3994,3998],{},[917,3995,3996],{},[641,3997,1445],{},[917,3999,4000],{},"A notice shown when the request succeeds",[637,4002,4003,4004,4007,4008,4011,4012,4015,4016,933,4018,4020,4021,1034],{},"It returns ",[641,4005,4006],{},"true"," when the request succeeded (an empty ",[641,4009,4010],{},"204"," counts), and ",[641,4013,4014],{},"false"," when the admin cancelled the confirm or the request failed. A failure shows no success notice and reloads nothing; the API's error appears as an error notice in the admin header, which stays until it's dismissed. The header shows only for content and user admins, so a user whose only admin role is the extension's own sees no notice. ",[641,4017,2973],{},[641,4019,4006],{}," while an action runs, and a second action started meanwhile is ignored, so bind it to the button's ",[641,4022,2659],{},[1036,4024,4025],{"icon":1138},[637,4026,4027,4029,4030,4032],{},[1008,4028,1143],{}," the order dialog open on the right of the list, showing the order's details, its lines table and the ",[1008,4031,2929],{}," button, with the confirm dialog asking \"Refund this order?\".",[646,4034,4036],{"id":4035},"read-only-details-and-tables","Read-Only Details and Tables",[637,4038,4039],{},"Two kit components show data an admin reads but doesn't edit:",[637,4041,4042,4045,4046,4048,4049,4052,4053,4055,4056,1065,4058,4061],{},[641,4043,4044],{},"\u003CCwaUiDetailList>"," shows labelled values, in two columns where there's room. ",[641,4047,2791],{}," is a list of ",[641,4050,4051],{},"{ label, value }","; an empty value shows a dash, read as \"Not set\". The ",[641,4054,1929],{}," slot, given ",[641,4057,956],{},[641,4059,4060],{},"index",", formats a value.",[637,4063,4064,4067,4068,4048,4070,1049,4073,4075,4076,4079,4080,4083,4084,4086,4087,4055,4090,1049,4093,1065,4096,4098],{},[641,4065,4066],{},"\u003CCwaUiDataTable>"," shows rows of data. ",[641,4069,1247],{},[641,4071,4072],{},"{ key, label, align? }",[641,4074,2441],{}," a list of objects read by each column's ",[641,4077,4078],{},"key",", and ",[641,4081,4082],{},"label"," names the table for screen readers. ",[641,4085,2038],{}," is what it says with no rows (default \"None\"). A wide table scrolls sideways inside the dialog. The ",[641,4088,4089],{},"cell",[641,4091,4092],{},"row",[641,4094,4095],{},"column",[641,4097,1929],{},", formats a cell:",[658,4100,4102],{"className":2065,"code":4101,"language":1167,"meta":663,"style":663},"\u003CCwaUiDataTable label=\"Order lines\" :columns=\"lineColumns\" :rows=\"lines\">\n  \u003Ctemplate #cell=\"{ column, value }\">\n    {{ column.key === 'total' ? formatMoney(value) : value }}\n  \u003C\u002Ftemplate>\n\u003C\u002FCwaUiDataTable>\n",[641,4103,4104,4146,4151,4156,4161],{"__ignoreMap":663},[667,4105,4106,4108,4110,4112,4114,4116,4118,4120,4122,4124,4126,4128,4130,4132,4134,4136,4138,4140,4142,4144],{"class":669,"line":670},[667,4107,1179],{"class":683},[667,4109,2837],{"class":1182},[667,4111,786],{"class":1199},[667,4113,1203],{"class":683},[667,4115,1206],{"class":708},[667,4117,2846],{"class":712},[667,4119,1206],{"class":708},[667,4121,1340],{"class":683},[667,4123,1247],{"class":1199},[667,4125,1203],{"class":683},[667,4127,1206],{"class":708},[667,4129,2859],{"class":687},[667,4131,1206],{"class":708},[667,4133,1340],{"class":683},[667,4135,2441],{"class":1199},[667,4137,1203],{"class":683},[667,4139,1206],{"class":708},[667,4141,2876],{"class":687},[667,4143,1206],{"class":708},[667,4145,1186],{"class":683},[667,4147,4148],{"class":669,"line":677},[667,4149,4150],{"class":687},"  \u003Ctemplate #cell=\"{ column, value }\">\n",[667,4152,4153],{"class":669,"line":691},[667,4154,4155],{"class":687},"    {{ column.key === 'total' ? formatMoney(value) : value }}\n",[667,4157,4158],{"class":669,"line":699},[667,4159,4160],{"class":687},"  \u003C\u002Ftemplate>\n",[667,4162,4163,4165,4167],{"class":669,"line":723},[667,4164,1559],{"class":683},[667,4166,2837],{"class":1182},[667,4168,1186],{"class":683},[637,4170,4171,4174,4175,4178],{},[641,4172,4173],{},"\u003CCwaAdminResourceId :iri>"," shows a resource's ID with a ",[1008,4176,4177],{},"Copy ID"," button, as on the built-in Info tabs.",[637,4180,4181,4182,1049,4184,1049,4187,1049,4190,4193,4194,1034],{},"The other kit components (",[641,4183,2545],{},[641,4185,4186],{},"\u003CCwaUiFormSection>",[641,4188,4189],{},"\u003CCwaUiButton>",[641,4191,4192],{},"\u003CCwaUiBadge>"," and the fields) are listed in ",[968,4195,4197],{"href":4196},"\u002Fnuxt-module\u002Fcwa-layer\u002Foverview#reusable-ui-components","The CWA Layer › Reusable UI Components",[637,4199,4200,4201,1034],{},"Next: ",[968,4202,556],{"href":557},[4204,4205,4206],"style",{},"html pre.shiki code .sTBSN, html code.shiki .sTBSN{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sRCss, html code.shiki .sRCss{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#FFCB6B}html pre.shiki code .sOvfz, html code.shiki .sOvfz{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#89DDFF}html pre.shiki code .sPB8G, html code.shiki .sPB8G{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#BABED8}html pre.shiki code .sDHlG, html code.shiki .sDHlG{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#F07178}html pre.shiki code .seSrl, html code.shiki .seSrl{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#89DDFF}html pre.shiki code .sLL54, html code.shiki .sLL54{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#C3E88D}html pre.shiki code .sKpYG, html code.shiki .sKpYG{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#82AAFF}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 .s-h7I, html code.shiki .s-h7I{--shiki-light:#22863A;--shiki-default:#85E89D;--shiki-dark:#F07178}html pre.shiki code .sGtlX, html code.shiki .sGtlX{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#C792EA}html pre.shiki code .sVlFx, html code.shiki .sVlFx{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#89DDFF}html pre.shiki code .s01iV, html code.shiki .s01iV{--shiki-light:#B31D28;--shiki-light-font-style:italic;--shiki-default:#FDAEB7;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:inherit}html pre.shiki code .swB56, html code.shiki .swB56{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#C792EA}html pre.shiki code .sc2zw, html code.shiki .sc2zw{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#BABED8}html pre.shiki code .sm4w6, html code.shiki .sm4w6{--shiki-light:#D73A49;--shiki-light-font-style:inherit;--shiki-default:#F97583;--shiki-default-font-style:inherit;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sNTR6, html code.shiki .sNTR6{--shiki-light:#E36209;--shiki-light-font-style:inherit;--shiki-default:#FFAB70;--shiki-default-font-style:inherit;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .ssFBz, html code.shiki .ssFBz{--shiki-light:#E36209;--shiki-default:#FFAB70;--shiki-dark:#F07178}html pre.shiki code .sbW4m, html code.shiki .sbW4m{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#FFCB6B}",{"title":663,"searchDepth":677,"depth":677,"links":4208},[4209,4212,4216,4220],{"id":648,"depth":677,"text":649,"children":4210},[4211],{"id":1086,"depth":691,"text":1087},{"id":1155,"depth":677,"text":1156,"children":4213},[4214,4215],{"id":2018,"depth":691,"text":2044},{"id":2441,"depth":691,"text":2442},{"id":2528,"depth":677,"text":971,"children":4217},[4218,4219],{"id":3797,"depth":691,"text":2541},{"id":3906,"depth":691,"text":3907},{"id":4035,"depth":677,"text":4036},"Adding an extension's pages under \u002F_cwa with a role and a menu entry, and building a list and an item dialog from the admin's own parts.","md",{},{"title":552,"description":4221},"_SEDkLdizAHTZjkED2xVgpP4P2gBYfdKdOSEz4qSEp0",[4227,4229],{"title":548,"path":549,"stem":550,"description":4228,"children":-1},"The cwa:extend hook, the extension's prefix and cwa\u002F folder, how a site replaces an extension's file, page cache rules, and the build errors.",{"title":556,"path":557,"stem":558,"description":4230,"children":-1},"The cwa:auth:signed-in and cwa:auth:signed-out hooks, when each one is called, and what happens when a handler throws.",1795626704098]