[{"data":1,"prerenderedAt":9797,"buildId":9798},["ShallowReactive",2],{"-en-docs-api-api-plugin-description":3,"component-example-apiAuthProtectedExample":16,"component-example-apiAuthProtectedExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":20,"component-example-apiAuthSessionExample":588,"component-example-apiAuthSessionExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":592,"component-example-apiAuthTokenInjectionExample":1856,"component-example-apiAuthTokenInjectionExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":1860,"component-example-apiAuthUnauthorizedExample":2470,"component-example-apiAuthUnauthorizedExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":2474,"component-example-apiEndpointsExample":2779,"component-example-apiEndpointsExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":2783,"component-example-apiEndpointsImperativeExample":3843,"component-example-apiEndpointsImperativeExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":3847,"component-example-apiEndpointsRuntimeExample":4516,"component-example-apiEndpointsRuntimeExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":4520,"component-example-apiToastExample":4825,"component-example-apiToastExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":4829,"component-example-apiUnwrapExample":6107,"component-example-apiUnwrapExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":6111,"docs--en-docs-api-api-plugin":6937,"docs-navigation-en":9583,"mdc-d0lvp9-key":9778,"surround--en-docs-api-api-plugin":9794},{"data":4,"body":5},{},{"type":6,"children":7},"root",[8],{"type":9,"tag":10,"props":11,"children":12},"element","p",{},[13],{"type":14,"value":15},"text","The enhanced $fetch instance created by the api.factory plugin, supporting auth injection, data unwrapping, business code checking and multi-endpoint switching.",{"code":17,"filePath":18,"pascalName":19},"\u003Cscript setup lang=\"ts\">\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst display = computed(() => {\n  if (protectedRes.error.value) {\n    return {\n      statusCode: protectedRes.error.value.statusCode,\n      message: protectedRes.error.value.message\n    }\n  }\n  return protectedRes.data.value\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-shield-check\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected\n    \u003C\u002FUButton>\n    \u003Cp class=\"text-xs text-muted\">\n      未登录时拦截器返回 401；已登录则携带 Authorization 头\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthProtectedExample.vue","ApiAuthProtectedExample",{"data":21,"body":23,"toc":586},{"title":22,"description":22},"",{"type":6,"children":24},[25,580],{"type":9,"tag":26,"props":27,"children":31},"pre",{"className":28,"code":29,"language":30,"meta":22,"style":22},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst display = computed(() => {\n  if (protectedRes.error.value) {\n    return {\n      statusCode: protectedRes.error.value.statusCode,\n      message: protectedRes.error.value.message\n    }\n  }\n  return protectedRes.data.value\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-shield-check\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected\n    \u003C\u002FUButton>\n    \u003Cp class=\"text-xs text-muted\">\n      未登录时拦截器返回 401；已登录则携带 Authorization 头\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n","vue",[32],{"type":9,"tag":33,"props":34,"children":35},"code",{"__ignoreMap":22},[36,81,132,142,179,193,206,215,224,233,242,256,265,282,290,307,339,429,438,455,484,493,509,547,564],{"type":9,"tag":37,"props":38,"children":41},"span",{"class":39,"line":40},"line",1,[42,48,54,60,65,70,76],{"type":9,"tag":37,"props":43,"children":45},{"style":44},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[46],{"type":14,"value":47},"\u003C",{"type":9,"tag":37,"props":49,"children":51},{"style":50},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[52],{"type":14,"value":53},"script",{"type":9,"tag":37,"props":55,"children":57},{"style":56},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[58],{"type":14,"value":59}," setup",{"type":9,"tag":37,"props":61,"children":62},{"style":56},[63],{"type":14,"value":64}," lang",{"type":9,"tag":37,"props":66,"children":67},{"style":44},[68],{"type":14,"value":69},"=",{"type":9,"tag":37,"props":71,"children":73},{"style":72},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[74],{"type":14,"value":75},"\"ts\"",{"type":9,"tag":37,"props":77,"children":78},{"style":44},[79],{"type":14,"value":80},">\n",{"type":9,"tag":37,"props":82,"children":84},{"class":39,"line":83},2,[85,91,97,102,107,112,117,122,127],{"type":9,"tag":37,"props":86,"children":88},{"style":87},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583",[89],{"type":14,"value":90},"const",{"type":9,"tag":37,"props":92,"children":94},{"style":93},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[95],{"type":14,"value":96}," protectedRes",{"type":9,"tag":37,"props":98,"children":99},{"style":87},[100],{"type":14,"value":101}," =",{"type":9,"tag":37,"props":103,"children":104},{"style":56},[105],{"type":14,"value":106}," useApiFetch",{"type":9,"tag":37,"props":108,"children":109},{"style":44},[110],{"type":14,"value":111},"(",{"type":9,"tag":37,"props":113,"children":114},{"style":72},[115],{"type":14,"value":116},"'\u002Fdemo\u002Fprotected'",{"type":9,"tag":37,"props":118,"children":119},{"style":44},[120],{"type":14,"value":121},", { immediate: ",{"type":9,"tag":37,"props":123,"children":124},{"style":93},[125],{"type":14,"value":126},"false",{"type":9,"tag":37,"props":128,"children":129},{"style":44},[130],{"type":14,"value":131}," })\n",{"type":9,"tag":37,"props":133,"children":135},{"class":39,"line":134},3,[136],{"type":9,"tag":37,"props":137,"children":139},{"emptyLinePlaceholder":138},true,[140],{"type":14,"value":141},"\n",{"type":9,"tag":37,"props":143,"children":145},{"class":39,"line":144},4,[146,150,155,159,164,169,174],{"type":9,"tag":37,"props":147,"children":148},{"style":87},[149],{"type":14,"value":90},{"type":9,"tag":37,"props":151,"children":152},{"style":93},[153],{"type":14,"value":154}," display",{"type":9,"tag":37,"props":156,"children":157},{"style":87},[158],{"type":14,"value":101},{"type":9,"tag":37,"props":160,"children":161},{"style":56},[162],{"type":14,"value":163}," computed",{"type":9,"tag":37,"props":165,"children":166},{"style":44},[167],{"type":14,"value":168},"(() ",{"type":9,"tag":37,"props":170,"children":171},{"style":87},[172],{"type":14,"value":173},"=>",{"type":9,"tag":37,"props":175,"children":176},{"style":44},[177],{"type":14,"value":178}," {\n",{"type":9,"tag":37,"props":180,"children":182},{"class":39,"line":181},5,[183,188],{"type":9,"tag":37,"props":184,"children":185},{"style":87},[186],{"type":14,"value":187},"  if",{"type":9,"tag":37,"props":189,"children":190},{"style":44},[191],{"type":14,"value":192}," (protectedRes.error.value) {\n",{"type":9,"tag":37,"props":194,"children":196},{"class":39,"line":195},6,[197,202],{"type":9,"tag":37,"props":198,"children":199},{"style":87},[200],{"type":14,"value":201},"    return",{"type":9,"tag":37,"props":203,"children":204},{"style":44},[205],{"type":14,"value":178},{"type":9,"tag":37,"props":207,"children":209},{"class":39,"line":208},7,[210],{"type":9,"tag":37,"props":211,"children":212},{"style":44},[213],{"type":14,"value":214},"      statusCode: protectedRes.error.value.statusCode,\n",{"type":9,"tag":37,"props":216,"children":218},{"class":39,"line":217},8,[219],{"type":9,"tag":37,"props":220,"children":221},{"style":44},[222],{"type":14,"value":223},"      message: protectedRes.error.value.message\n",{"type":9,"tag":37,"props":225,"children":227},{"class":39,"line":226},9,[228],{"type":9,"tag":37,"props":229,"children":230},{"style":44},[231],{"type":14,"value":232},"    }\n",{"type":9,"tag":37,"props":234,"children":236},{"class":39,"line":235},10,[237],{"type":9,"tag":37,"props":238,"children":239},{"style":44},[240],{"type":14,"value":241},"  }\n",{"type":9,"tag":37,"props":243,"children":245},{"class":39,"line":244},11,[246,251],{"type":9,"tag":37,"props":247,"children":248},{"style":87},[249],{"type":14,"value":250},"  return",{"type":9,"tag":37,"props":252,"children":253},{"style":44},[254],{"type":14,"value":255}," protectedRes.data.value\n",{"type":9,"tag":37,"props":257,"children":259},{"class":39,"line":258},12,[260],{"type":9,"tag":37,"props":261,"children":262},{"style":44},[263],{"type":14,"value":264},"})\n",{"type":9,"tag":37,"props":266,"children":268},{"class":39,"line":267},13,[269,274,278],{"type":9,"tag":37,"props":270,"children":271},{"style":44},[272],{"type":14,"value":273},"\u003C\u002F",{"type":9,"tag":37,"props":275,"children":276},{"style":50},[277],{"type":14,"value":53},{"type":9,"tag":37,"props":279,"children":280},{"style":44},[281],{"type":14,"value":80},{"type":9,"tag":37,"props":283,"children":285},{"class":39,"line":284},14,[286],{"type":9,"tag":37,"props":287,"children":288},{"emptyLinePlaceholder":138},[289],{"type":14,"value":141},{"type":9,"tag":37,"props":291,"children":293},{"class":39,"line":292},15,[294,298,303],{"type":9,"tag":37,"props":295,"children":296},{"style":44},[297],{"type":14,"value":47},{"type":9,"tag":37,"props":299,"children":300},{"style":50},[301],{"type":14,"value":302},"template",{"type":9,"tag":37,"props":304,"children":305},{"style":44},[306],{"type":14,"value":80},{"type":9,"tag":37,"props":308,"children":310},{"class":39,"line":309},16,[311,316,321,326,330,335],{"type":9,"tag":37,"props":312,"children":313},{"style":44},[314],{"type":14,"value":315},"  \u003C",{"type":9,"tag":37,"props":317,"children":318},{"style":50},[319],{"type":14,"value":320},"div",{"type":9,"tag":37,"props":322,"children":323},{"style":56},[324],{"type":14,"value":325}," class",{"type":9,"tag":37,"props":327,"children":328},{"style":44},[329],{"type":14,"value":69},{"type":9,"tag":37,"props":331,"children":332},{"style":72},[333],{"type":14,"value":334},"\"flex flex-col gap-3\"",{"type":9,"tag":37,"props":336,"children":337},{"style":44},[338],{"type":14,"value":80},{"type":9,"tag":37,"props":340,"children":342},{"class":39,"line":341},17,[343,348,353,358,362,367,372,376,387,392,397,401,406,411,416,421,425],{"type":9,"tag":37,"props":344,"children":345},{"style":44},[346],{"type":14,"value":347},"    \u003C",{"type":9,"tag":37,"props":349,"children":350},{"style":50},[351],{"type":14,"value":352},"UButton",{"type":9,"tag":37,"props":354,"children":355},{"style":56},[356],{"type":14,"value":357}," size",{"type":9,"tag":37,"props":359,"children":360},{"style":44},[361],{"type":14,"value":69},{"type":9,"tag":37,"props":363,"children":364},{"style":72},[365],{"type":14,"value":366},"\"sm\"",{"type":9,"tag":37,"props":368,"children":369},{"style":56},[370],{"type":14,"value":371}," icon",{"type":9,"tag":37,"props":373,"children":374},{"style":44},[375],{"type":14,"value":69},{"type":9,"tag":37,"props":377,"children":378},{"style":72},[379,385],{"type":9,"tag":380,"props":381,"children":384},"i",{"class":382,"style":383},"shiki-icon-highlight","--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fshield-check.svg?color=%23000)",[],{"type":14,"value":386},"\"i-lucide-shield-check\"",{"type":9,"tag":37,"props":388,"children":389},{"style":44},[390],{"type":14,"value":391}," @",{"type":9,"tag":37,"props":393,"children":394},{"style":56},[395],{"type":14,"value":396},"click",{"type":9,"tag":37,"props":398,"children":399},{"style":44},[400],{"type":14,"value":69},{"type":9,"tag":37,"props":402,"children":403},{"style":72},[404],{"type":14,"value":405},"\"",{"type":9,"tag":37,"props":407,"children":408},{"style":44},[409],{"type":14,"value":410},"protectedRes.",{"type":9,"tag":37,"props":412,"children":413},{"style":56},[414],{"type":14,"value":415},"execute",{"type":9,"tag":37,"props":417,"children":418},{"style":44},[419],{"type":14,"value":420},"()",{"type":9,"tag":37,"props":422,"children":423},{"style":72},[424],{"type":14,"value":405},{"type":9,"tag":37,"props":426,"children":427},{"style":44},[428],{"type":14,"value":80},{"type":9,"tag":37,"props":430,"children":432},{"class":39,"line":431},18,[433],{"type":9,"tag":37,"props":434,"children":435},{"style":44},[436],{"type":14,"value":437},"      请求 \u002Fdemo\u002Fprotected\n",{"type":9,"tag":37,"props":439,"children":441},{"class":39,"line":440},19,[442,447,451],{"type":9,"tag":37,"props":443,"children":444},{"style":44},[445],{"type":14,"value":446},"    \u003C\u002F",{"type":9,"tag":37,"props":448,"children":449},{"style":50},[450],{"type":14,"value":352},{"type":9,"tag":37,"props":452,"children":453},{"style":44},[454],{"type":14,"value":80},{"type":9,"tag":37,"props":456,"children":458},{"class":39,"line":457},20,[459,463,467,471,475,480],{"type":9,"tag":37,"props":460,"children":461},{"style":44},[462],{"type":14,"value":347},{"type":9,"tag":37,"props":464,"children":465},{"style":50},[466],{"type":14,"value":10},{"type":9,"tag":37,"props":468,"children":469},{"style":56},[470],{"type":14,"value":325},{"type":9,"tag":37,"props":472,"children":473},{"style":44},[474],{"type":14,"value":69},{"type":9,"tag":37,"props":476,"children":477},{"style":72},[478],{"type":14,"value":479},"\"text-xs text-muted\"",{"type":9,"tag":37,"props":481,"children":482},{"style":44},[483],{"type":14,"value":80},{"type":9,"tag":37,"props":485,"children":487},{"class":39,"line":486},21,[488],{"type":9,"tag":37,"props":489,"children":490},{"style":44},[491],{"type":14,"value":492},"      未登录时拦截器返回 401；已登录则携带 Authorization 头\n",{"type":9,"tag":37,"props":494,"children":496},{"class":39,"line":495},22,[497,501,505],{"type":9,"tag":37,"props":498,"children":499},{"style":44},[500],{"type":14,"value":446},{"type":9,"tag":37,"props":502,"children":503},{"style":50},[504],{"type":14,"value":10},{"type":9,"tag":37,"props":506,"children":507},{"style":44},[508],{"type":14,"value":80},{"type":9,"tag":37,"props":510,"children":512},{"class":39,"line":511},23,[513,517,521,525,529,534,539,543],{"type":9,"tag":37,"props":514,"children":515},{"style":44},[516],{"type":14,"value":347},{"type":9,"tag":37,"props":518,"children":519},{"style":50},[520],{"type":14,"value":26},{"type":9,"tag":37,"props":522,"children":523},{"style":56},[524],{"type":14,"value":325},{"type":9,"tag":37,"props":526,"children":527},{"style":44},[528],{"type":14,"value":69},{"type":9,"tag":37,"props":530,"children":531},{"style":72},[532],{"type":14,"value":533},"\"text-xs p-3 rounded bg-elevated overflow-auto\"",{"type":9,"tag":37,"props":535,"children":536},{"style":44},[537],{"type":14,"value":538},">{{ display }}\u003C\u002F",{"type":9,"tag":37,"props":540,"children":541},{"style":50},[542],{"type":14,"value":26},{"type":9,"tag":37,"props":544,"children":545},{"style":44},[546],{"type":14,"value":80},{"type":9,"tag":37,"props":548,"children":550},{"class":39,"line":549},24,[551,556,560],{"type":9,"tag":37,"props":552,"children":553},{"style":44},[554],{"type":14,"value":555},"  \u003C\u002F",{"type":9,"tag":37,"props":557,"children":558},{"style":50},[559],{"type":14,"value":320},{"type":9,"tag":37,"props":561,"children":562},{"style":44},[563],{"type":14,"value":80},{"type":9,"tag":37,"props":565,"children":567},{"class":39,"line":566},25,[568,572,576],{"type":9,"tag":37,"props":569,"children":570},{"style":44},[571],{"type":14,"value":273},{"type":9,"tag":37,"props":573,"children":574},{"style":50},[575],{"type":14,"value":302},{"type":9,"tag":37,"props":577,"children":578},{"style":44},[579],{"type":14,"value":80},{"type":9,"tag":581,"props":582,"children":583},"style",{},[584],{"type":14,"value":585},"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);}",{"title":22,"searchDepth":83,"depth":83,"links":587},[],{"code":589,"filePath":590,"pascalName":591},"\u003Cscript setup lang=\"ts\">\nconst { session, loggedIn, fetch: refreshSession } = useUserSession()\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst loginPending = ref(false)\nconst logoutPending = ref(false)\n\nasync function login() {\n  loginPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogin', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    loginPending.value = false\n  }\n}\n\nasync function logout() {\n  logoutPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogout', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    logoutPending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"loggedIn ? 'success' : 'neutral'\" variant=\"subtle\">\n        {{ loggedIn ? '已登录' : '未登录' }}\n      \u003C\u002FUBadge>\n      \u003CUButton\n        v-if=\"!loggedIn\"\n        size=\"sm\"\n        :loading=\"loginPending\"\n        icon=\"i-lucide-log-in\"\n        @click=\"login\"\n      >\n        登录（写入 session.token）\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-else\n        size=\"sm\"\n        color=\"error\"\n        variant=\"outline\"\n        :loading=\"logoutPending\"\n        icon=\"i-lucide-log-out\"\n        @click=\"logout\"\n      >\n        登出（清除 session）\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      sessionTokenPath: {{ publicConfig.auth?.sessionTokenPath }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ session }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthSessionExample.vue","ApiAuthSessionExample",{"data":593,"body":594,"toc":1854},{"title":22,"description":22},{"type":6,"children":595},[596,1850],{"type":9,"tag":597,"props":598,"children":599},"code-collapse",{},[600],{"type":9,"tag":26,"props":601,"children":603},{"className":28,"code":602,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst { session, loggedIn, fetch: refreshSession } = useUserSession()\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst loginPending = ref(false)\nconst logoutPending = ref(false)\n\nasync function login() {\n  loginPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogin', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    loginPending.value = false\n  }\n}\n\nasync function logout() {\n  logoutPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogout', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    logoutPending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"loggedIn ? 'success' : 'neutral'\" variant=\"subtle\">\n        {{ loggedIn ? '已登录' : '未登录' }}\n      \u003C\u002FUBadge>\n      \u003CUButton\n        v-if=\"!loggedIn\"\n        size=\"sm\"\n        :loading=\"loginPending\"\n        icon=\"i-lucide-log-in\"\n        @click=\"login\"\n      >\n        登录（写入 session.token）\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-else\n        size=\"sm\"\n        color=\"error\"\n        variant=\"outline\"\n        :loading=\"logoutPending\"\n        icon=\"i-lucide-log-out\"\n        @click=\"logout\"\n      >\n        登出（清除 session）\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      sessionTokenPath: {{ publicConfig.auth?.sessionTokenPath }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ session }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[604],{"type":9,"tag":33,"props":605,"children":606},{"__ignoreMap":22},[607,638,704,737,763,770,804,836,843,866,883,895,931,947,954,966,983,990,998,1005,1025,1041,1052,1084,1099,1106,1118,1135,1143,1151,1167,1175,1191,1219,1248,1322,1331,1348,1361,1392,1410,1441,1463,1493,1502,1511,1527,1539,1548,1564,1582,1600,1629,1650,1679,1687,1696,1712,1728,1756,1765,1781,1818,1834],{"type":9,"tag":37,"props":608,"children":609},{"class":39,"line":40},[610,614,618,622,626,630,634],{"type":9,"tag":37,"props":611,"children":612},{"style":44},[613],{"type":14,"value":47},{"type":9,"tag":37,"props":615,"children":616},{"style":50},[617],{"type":14,"value":53},{"type":9,"tag":37,"props":619,"children":620},{"style":56},[621],{"type":14,"value":59},{"type":9,"tag":37,"props":623,"children":624},{"style":56},[625],{"type":14,"value":64},{"type":9,"tag":37,"props":627,"children":628},{"style":44},[629],{"type":14,"value":69},{"type":9,"tag":37,"props":631,"children":632},{"style":72},[633],{"type":14,"value":75},{"type":9,"tag":37,"props":635,"children":636},{"style":44},[637],{"type":14,"value":80},{"type":9,"tag":37,"props":639,"children":640},{"class":39,"line":83},[641,645,650,655,660,665,669,675,680,685,690,694,699],{"type":9,"tag":37,"props":642,"children":643},{"style":87},[644],{"type":14,"value":90},{"type":9,"tag":37,"props":646,"children":647},{"style":44},[648],{"type":14,"value":649}," { ",{"type":9,"tag":37,"props":651,"children":652},{"style":93},[653],{"type":14,"value":654},"session",{"type":9,"tag":37,"props":656,"children":657},{"style":44},[658],{"type":14,"value":659},", ",{"type":9,"tag":37,"props":661,"children":662},{"style":93},[663],{"type":14,"value":664},"loggedIn",{"type":9,"tag":37,"props":666,"children":667},{"style":44},[668],{"type":14,"value":659},{"type":9,"tag":37,"props":670,"children":672},{"style":671},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70",[673],{"type":14,"value":674},"fetch",{"type":9,"tag":37,"props":676,"children":677},{"style":44},[678],{"type":14,"value":679},": ",{"type":9,"tag":37,"props":681,"children":682},{"style":93},[683],{"type":14,"value":684},"refreshSession",{"type":9,"tag":37,"props":686,"children":687},{"style":44},[688],{"type":14,"value":689}," } ",{"type":9,"tag":37,"props":691,"children":692},{"style":87},[693],{"type":14,"value":69},{"type":9,"tag":37,"props":695,"children":696},{"style":56},[697],{"type":14,"value":698}," useUserSession",{"type":9,"tag":37,"props":700,"children":701},{"style":44},[702],{"type":14,"value":703},"()\n",{"type":9,"tag":37,"props":705,"children":706},{"class":39,"line":134},[707,711,715,720,724,728,733],{"type":9,"tag":37,"props":708,"children":709},{"style":87},[710],{"type":14,"value":90},{"type":9,"tag":37,"props":712,"children":713},{"style":44},[714],{"type":14,"value":649},{"type":9,"tag":37,"props":716,"children":717},{"style":93},[718],{"type":14,"value":719},"$api",{"type":9,"tag":37,"props":721,"children":722},{"style":44},[723],{"type":14,"value":689},{"type":9,"tag":37,"props":725,"children":726},{"style":87},[727],{"type":14,"value":69},{"type":9,"tag":37,"props":729,"children":730},{"style":56},[731],{"type":14,"value":732}," useNuxtApp",{"type":9,"tag":37,"props":734,"children":735},{"style":44},[736],{"type":14,"value":703},{"type":9,"tag":37,"props":738,"children":739},{"class":39,"line":144},[740,744,749,753,758],{"type":9,"tag":37,"props":741,"children":742},{"style":87},[743],{"type":14,"value":90},{"type":9,"tag":37,"props":745,"children":746},{"style":93},[747],{"type":14,"value":748}," publicConfig",{"type":9,"tag":37,"props":750,"children":751},{"style":87},[752],{"type":14,"value":101},{"type":9,"tag":37,"props":754,"children":755},{"style":56},[756],{"type":14,"value":757}," useRuntimeConfig",{"type":9,"tag":37,"props":759,"children":760},{"style":44},[761],{"type":14,"value":762},"().public.movkApi\n",{"type":9,"tag":37,"props":764,"children":765},{"class":39,"line":181},[766],{"type":9,"tag":37,"props":767,"children":768},{"emptyLinePlaceholder":138},[769],{"type":14,"value":141},{"type":9,"tag":37,"props":771,"children":772},{"class":39,"line":195},[773,777,782,786,791,795,799],{"type":9,"tag":37,"props":774,"children":775},{"style":87},[776],{"type":14,"value":90},{"type":9,"tag":37,"props":778,"children":779},{"style":93},[780],{"type":14,"value":781}," loginPending",{"type":9,"tag":37,"props":783,"children":784},{"style":87},[785],{"type":14,"value":101},{"type":9,"tag":37,"props":787,"children":788},{"style":56},[789],{"type":14,"value":790}," ref",{"type":9,"tag":37,"props":792,"children":793},{"style":44},[794],{"type":14,"value":111},{"type":9,"tag":37,"props":796,"children":797},{"style":93},[798],{"type":14,"value":126},{"type":9,"tag":37,"props":800,"children":801},{"style":44},[802],{"type":14,"value":803},")\n",{"type":9,"tag":37,"props":805,"children":806},{"class":39,"line":208},[807,811,816,820,824,828,832],{"type":9,"tag":37,"props":808,"children":809},{"style":87},[810],{"type":14,"value":90},{"type":9,"tag":37,"props":812,"children":813},{"style":93},[814],{"type":14,"value":815}," logoutPending",{"type":9,"tag":37,"props":817,"children":818},{"style":87},[819],{"type":14,"value":101},{"type":9,"tag":37,"props":821,"children":822},{"style":56},[823],{"type":14,"value":790},{"type":9,"tag":37,"props":825,"children":826},{"style":44},[827],{"type":14,"value":111},{"type":9,"tag":37,"props":829,"children":830},{"style":93},[831],{"type":14,"value":126},{"type":9,"tag":37,"props":833,"children":834},{"style":44},[835],{"type":14,"value":803},{"type":9,"tag":37,"props":837,"children":838},{"class":39,"line":217},[839],{"type":9,"tag":37,"props":840,"children":841},{"emptyLinePlaceholder":138},[842],{"type":14,"value":141},{"type":9,"tag":37,"props":844,"children":845},{"class":39,"line":226},[846,851,856,861],{"type":9,"tag":37,"props":847,"children":848},{"style":87},[849],{"type":14,"value":850},"async",{"type":9,"tag":37,"props":852,"children":853},{"style":87},[854],{"type":14,"value":855}," function",{"type":9,"tag":37,"props":857,"children":858},{"style":56},[859],{"type":14,"value":860}," login",{"type":9,"tag":37,"props":862,"children":863},{"style":44},[864],{"type":14,"value":865},"() {\n",{"type":9,"tag":37,"props":867,"children":868},{"class":39,"line":235},[869,874,878],{"type":9,"tag":37,"props":870,"children":871},{"style":44},[872],{"type":14,"value":873},"  loginPending.value ",{"type":9,"tag":37,"props":875,"children":876},{"style":87},[877],{"type":14,"value":69},{"type":9,"tag":37,"props":879,"children":880},{"style":93},[881],{"type":14,"value":882}," true\n",{"type":9,"tag":37,"props":884,"children":885},{"class":39,"line":244},[886,891],{"type":9,"tag":37,"props":887,"children":888},{"style":87},[889],{"type":14,"value":890},"  try",{"type":9,"tag":37,"props":892,"children":893},{"style":44},[894],{"type":14,"value":178},{"type":9,"tag":37,"props":896,"children":897},{"class":39,"line":258},[898,903,908,912,917,922,927],{"type":9,"tag":37,"props":899,"children":900},{"style":87},[901],{"type":14,"value":902},"    await",{"type":9,"tag":37,"props":904,"children":905},{"style":56},[906],{"type":14,"value":907}," $api",{"type":9,"tag":37,"props":909,"children":910},{"style":44},[911],{"type":14,"value":111},{"type":9,"tag":37,"props":913,"children":914},{"style":72},[915],{"type":14,"value":916},"'\u002Fdemo\u002Flogin'",{"type":9,"tag":37,"props":918,"children":919},{"style":44},[920],{"type":14,"value":921},", { method: ",{"type":9,"tag":37,"props":923,"children":924},{"style":72},[925],{"type":14,"value":926},"'POST'",{"type":9,"tag":37,"props":928,"children":929},{"style":44},[930],{"type":14,"value":131},{"type":9,"tag":37,"props":932,"children":933},{"class":39,"line":267},[934,938,943],{"type":9,"tag":37,"props":935,"children":936},{"style":87},[937],{"type":14,"value":902},{"type":9,"tag":37,"props":939,"children":940},{"style":56},[941],{"type":14,"value":942}," refreshSession",{"type":9,"tag":37,"props":944,"children":945},{"style":44},[946],{"type":14,"value":703},{"type":9,"tag":37,"props":948,"children":949},{"class":39,"line":284},[950],{"type":9,"tag":37,"props":951,"children":952},{"style":44},[953],{"type":14,"value":241},{"type":9,"tag":37,"props":955,"children":956},{"class":39,"line":292},[957,962],{"type":9,"tag":37,"props":958,"children":959},{"style":87},[960],{"type":14,"value":961},"  finally",{"type":9,"tag":37,"props":963,"children":964},{"style":44},[965],{"type":14,"value":178},{"type":9,"tag":37,"props":967,"children":968},{"class":39,"line":309},[969,974,978],{"type":9,"tag":37,"props":970,"children":971},{"style":44},[972],{"type":14,"value":973},"    loginPending.value ",{"type":9,"tag":37,"props":975,"children":976},{"style":87},[977],{"type":14,"value":69},{"type":9,"tag":37,"props":979,"children":980},{"style":93},[981],{"type":14,"value":982}," false\n",{"type":9,"tag":37,"props":984,"children":985},{"class":39,"line":341},[986],{"type":9,"tag":37,"props":987,"children":988},{"style":44},[989],{"type":14,"value":241},{"type":9,"tag":37,"props":991,"children":992},{"class":39,"line":431},[993],{"type":9,"tag":37,"props":994,"children":995},{"style":44},[996],{"type":14,"value":997},"}\n",{"type":9,"tag":37,"props":999,"children":1000},{"class":39,"line":440},[1001],{"type":9,"tag":37,"props":1002,"children":1003},{"emptyLinePlaceholder":138},[1004],{"type":14,"value":141},{"type":9,"tag":37,"props":1006,"children":1007},{"class":39,"line":457},[1008,1012,1016,1021],{"type":9,"tag":37,"props":1009,"children":1010},{"style":87},[1011],{"type":14,"value":850},{"type":9,"tag":37,"props":1013,"children":1014},{"style":87},[1015],{"type":14,"value":855},{"type":9,"tag":37,"props":1017,"children":1018},{"style":56},[1019],{"type":14,"value":1020}," logout",{"type":9,"tag":37,"props":1022,"children":1023},{"style":44},[1024],{"type":14,"value":865},{"type":9,"tag":37,"props":1026,"children":1027},{"class":39,"line":486},[1028,1033,1037],{"type":9,"tag":37,"props":1029,"children":1030},{"style":44},[1031],{"type":14,"value":1032},"  logoutPending.value ",{"type":9,"tag":37,"props":1034,"children":1035},{"style":87},[1036],{"type":14,"value":69},{"type":9,"tag":37,"props":1038,"children":1039},{"style":93},[1040],{"type":14,"value":882},{"type":9,"tag":37,"props":1042,"children":1043},{"class":39,"line":495},[1044,1048],{"type":9,"tag":37,"props":1045,"children":1046},{"style":87},[1047],{"type":14,"value":890},{"type":9,"tag":37,"props":1049,"children":1050},{"style":44},[1051],{"type":14,"value":178},{"type":9,"tag":37,"props":1053,"children":1054},{"class":39,"line":511},[1055,1059,1063,1067,1072,1076,1080],{"type":9,"tag":37,"props":1056,"children":1057},{"style":87},[1058],{"type":14,"value":902},{"type":9,"tag":37,"props":1060,"children":1061},{"style":56},[1062],{"type":14,"value":907},{"type":9,"tag":37,"props":1064,"children":1065},{"style":44},[1066],{"type":14,"value":111},{"type":9,"tag":37,"props":1068,"children":1069},{"style":72},[1070],{"type":14,"value":1071},"'\u002Fdemo\u002Flogout'",{"type":9,"tag":37,"props":1073,"children":1074},{"style":44},[1075],{"type":14,"value":921},{"type":9,"tag":37,"props":1077,"children":1078},{"style":72},[1079],{"type":14,"value":926},{"type":9,"tag":37,"props":1081,"children":1082},{"style":44},[1083],{"type":14,"value":131},{"type":9,"tag":37,"props":1085,"children":1086},{"class":39,"line":549},[1087,1091,1095],{"type":9,"tag":37,"props":1088,"children":1089},{"style":87},[1090],{"type":14,"value":902},{"type":9,"tag":37,"props":1092,"children":1093},{"style":56},[1094],{"type":14,"value":942},{"type":9,"tag":37,"props":1096,"children":1097},{"style":44},[1098],{"type":14,"value":703},{"type":9,"tag":37,"props":1100,"children":1101},{"class":39,"line":566},[1102],{"type":9,"tag":37,"props":1103,"children":1104},{"style":44},[1105],{"type":14,"value":241},{"type":9,"tag":37,"props":1107,"children":1109},{"class":39,"line":1108},26,[1110,1114],{"type":9,"tag":37,"props":1111,"children":1112},{"style":87},[1113],{"type":14,"value":961},{"type":9,"tag":37,"props":1115,"children":1116},{"style":44},[1117],{"type":14,"value":178},{"type":9,"tag":37,"props":1119,"children":1121},{"class":39,"line":1120},27,[1122,1127,1131],{"type":9,"tag":37,"props":1123,"children":1124},{"style":44},[1125],{"type":14,"value":1126},"    logoutPending.value ",{"type":9,"tag":37,"props":1128,"children":1129},{"style":87},[1130],{"type":14,"value":69},{"type":9,"tag":37,"props":1132,"children":1133},{"style":93},[1134],{"type":14,"value":982},{"type":9,"tag":37,"props":1136,"children":1138},{"class":39,"line":1137},28,[1139],{"type":9,"tag":37,"props":1140,"children":1141},{"style":44},[1142],{"type":14,"value":241},{"type":9,"tag":37,"props":1144,"children":1146},{"class":39,"line":1145},29,[1147],{"type":9,"tag":37,"props":1148,"children":1149},{"style":44},[1150],{"type":14,"value":997},{"type":9,"tag":37,"props":1152,"children":1154},{"class":39,"line":1153},30,[1155,1159,1163],{"type":9,"tag":37,"props":1156,"children":1157},{"style":44},[1158],{"type":14,"value":273},{"type":9,"tag":37,"props":1160,"children":1161},{"style":50},[1162],{"type":14,"value":53},{"type":9,"tag":37,"props":1164,"children":1165},{"style":44},[1166],{"type":14,"value":80},{"type":9,"tag":37,"props":1168,"children":1170},{"class":39,"line":1169},31,[1171],{"type":9,"tag":37,"props":1172,"children":1173},{"emptyLinePlaceholder":138},[1174],{"type":14,"value":141},{"type":9,"tag":37,"props":1176,"children":1178},{"class":39,"line":1177},32,[1179,1183,1187],{"type":9,"tag":37,"props":1180,"children":1181},{"style":44},[1182],{"type":14,"value":47},{"type":9,"tag":37,"props":1184,"children":1185},{"style":50},[1186],{"type":14,"value":302},{"type":9,"tag":37,"props":1188,"children":1189},{"style":44},[1190],{"type":14,"value":80},{"type":9,"tag":37,"props":1192,"children":1194},{"class":39,"line":1193},33,[1195,1199,1203,1207,1211,1215],{"type":9,"tag":37,"props":1196,"children":1197},{"style":44},[1198],{"type":14,"value":315},{"type":9,"tag":37,"props":1200,"children":1201},{"style":50},[1202],{"type":14,"value":320},{"type":9,"tag":37,"props":1204,"children":1205},{"style":56},[1206],{"type":14,"value":325},{"type":9,"tag":37,"props":1208,"children":1209},{"style":44},[1210],{"type":14,"value":69},{"type":9,"tag":37,"props":1212,"children":1213},{"style":72},[1214],{"type":14,"value":334},{"type":9,"tag":37,"props":1216,"children":1217},{"style":44},[1218],{"type":14,"value":80},{"type":9,"tag":37,"props":1220,"children":1222},{"class":39,"line":1221},34,[1223,1227,1231,1235,1239,1244],{"type":9,"tag":37,"props":1224,"children":1225},{"style":44},[1226],{"type":14,"value":347},{"type":9,"tag":37,"props":1228,"children":1229},{"style":50},[1230],{"type":14,"value":320},{"type":9,"tag":37,"props":1232,"children":1233},{"style":56},[1234],{"type":14,"value":325},{"type":9,"tag":37,"props":1236,"children":1237},{"style":44},[1238],{"type":14,"value":69},{"type":9,"tag":37,"props":1240,"children":1241},{"style":72},[1242],{"type":14,"value":1243},"\"flex items-center gap-2 flex-wrap\"",{"type":9,"tag":37,"props":1245,"children":1246},{"style":44},[1247],{"type":14,"value":80},{"type":9,"tag":37,"props":1249,"children":1251},{"class":39,"line":1250},35,[1252,1257,1262,1267,1272,1276,1280,1285,1290,1295,1299,1304,1309,1313,1318],{"type":9,"tag":37,"props":1253,"children":1254},{"style":44},[1255],{"type":14,"value":1256},"      \u003C",{"type":9,"tag":37,"props":1258,"children":1259},{"style":50},[1260],{"type":14,"value":1261},"UBadge",{"type":9,"tag":37,"props":1263,"children":1264},{"style":44},[1265],{"type":14,"value":1266}," :",{"type":9,"tag":37,"props":1268,"children":1269},{"style":56},[1270],{"type":14,"value":1271},"color",{"type":9,"tag":37,"props":1273,"children":1274},{"style":44},[1275],{"type":14,"value":69},{"type":9,"tag":37,"props":1277,"children":1278},{"style":72},[1279],{"type":14,"value":405},{"type":9,"tag":37,"props":1281,"children":1282},{"style":44},[1283],{"type":14,"value":1284},"loggedIn ",{"type":9,"tag":37,"props":1286,"children":1287},{"style":87},[1288],{"type":14,"value":1289},"?",{"type":9,"tag":37,"props":1291,"children":1292},{"style":72},[1293],{"type":14,"value":1294}," 'success'",{"type":9,"tag":37,"props":1296,"children":1297},{"style":87},[1298],{"type":14,"value":1266},{"type":9,"tag":37,"props":1300,"children":1301},{"style":72},[1302],{"type":14,"value":1303}," 'neutral'\"",{"type":9,"tag":37,"props":1305,"children":1306},{"style":56},[1307],{"type":14,"value":1308}," variant",{"type":9,"tag":37,"props":1310,"children":1311},{"style":44},[1312],{"type":14,"value":69},{"type":9,"tag":37,"props":1314,"children":1315},{"style":72},[1316],{"type":14,"value":1317},"\"subtle\"",{"type":9,"tag":37,"props":1319,"children":1320},{"style":44},[1321],{"type":14,"value":80},{"type":9,"tag":37,"props":1323,"children":1325},{"class":39,"line":1324},36,[1326],{"type":9,"tag":37,"props":1327,"children":1328},{"style":44},[1329],{"type":14,"value":1330},"        {{ loggedIn ? '已登录' : '未登录' }}\n",{"type":9,"tag":37,"props":1332,"children":1334},{"class":39,"line":1333},37,[1335,1340,1344],{"type":9,"tag":37,"props":1336,"children":1337},{"style":44},[1338],{"type":14,"value":1339},"      \u003C\u002F",{"type":9,"tag":37,"props":1341,"children":1342},{"style":50},[1343],{"type":14,"value":1261},{"type":9,"tag":37,"props":1345,"children":1346},{"style":44},[1347],{"type":14,"value":80},{"type":9,"tag":37,"props":1349,"children":1351},{"class":39,"line":1350},38,[1352,1356],{"type":9,"tag":37,"props":1353,"children":1354},{"style":44},[1355],{"type":14,"value":1256},{"type":9,"tag":37,"props":1357,"children":1358},{"style":50},[1359],{"type":14,"value":1360},"UButton\n",{"type":9,"tag":37,"props":1362,"children":1364},{"class":39,"line":1363},39,[1365,1370,1374,1378,1383,1387],{"type":9,"tag":37,"props":1366,"children":1367},{"style":87},[1368],{"type":14,"value":1369},"        v-if",{"type":9,"tag":37,"props":1371,"children":1372},{"style":44},[1373],{"type":14,"value":69},{"type":9,"tag":37,"props":1375,"children":1376},{"style":72},[1377],{"type":14,"value":405},{"type":9,"tag":37,"props":1379,"children":1380},{"style":87},[1381],{"type":14,"value":1382},"!",{"type":9,"tag":37,"props":1384,"children":1385},{"style":44},[1386],{"type":14,"value":664},{"type":9,"tag":37,"props":1388,"children":1389},{"style":72},[1390],{"type":14,"value":1391},"\"\n",{"type":9,"tag":37,"props":1393,"children":1395},{"class":39,"line":1394},40,[1396,1401,1405],{"type":9,"tag":37,"props":1397,"children":1398},{"style":56},[1399],{"type":14,"value":1400},"        size",{"type":9,"tag":37,"props":1402,"children":1403},{"style":44},[1404],{"type":14,"value":69},{"type":9,"tag":37,"props":1406,"children":1407},{"style":72},[1408],{"type":14,"value":1409},"\"sm\"\n",{"type":9,"tag":37,"props":1411,"children":1413},{"class":39,"line":1412},41,[1414,1419,1424,1428,1432,1437],{"type":9,"tag":37,"props":1415,"children":1416},{"style":44},[1417],{"type":14,"value":1418},"        :",{"type":9,"tag":37,"props":1420,"children":1421},{"style":56},[1422],{"type":14,"value":1423},"loading",{"type":9,"tag":37,"props":1425,"children":1426},{"style":44},[1427],{"type":14,"value":69},{"type":9,"tag":37,"props":1429,"children":1430},{"style":72},[1431],{"type":14,"value":405},{"type":9,"tag":37,"props":1433,"children":1434},{"style":44},[1435],{"type":14,"value":1436},"loginPending",{"type":9,"tag":37,"props":1438,"children":1439},{"style":72},[1440],{"type":14,"value":1391},{"type":9,"tag":37,"props":1442,"children":1444},{"class":39,"line":1443},42,[1445,1450,1454],{"type":9,"tag":37,"props":1446,"children":1447},{"style":56},[1448],{"type":14,"value":1449},"        icon",{"type":9,"tag":37,"props":1451,"children":1452},{"style":44},[1453],{"type":14,"value":69},{"type":9,"tag":37,"props":1455,"children":1456},{"style":72},[1457,1461],{"type":9,"tag":380,"props":1458,"children":1460},{"class":382,"style":1459},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Flog-in.svg?color=%23000)",[],{"type":14,"value":1462},"\"i-lucide-log-in\"\n",{"type":9,"tag":37,"props":1464,"children":1466},{"class":39,"line":1465},43,[1467,1472,1476,1480,1484,1489],{"type":9,"tag":37,"props":1468,"children":1469},{"style":44},[1470],{"type":14,"value":1471},"        @",{"type":9,"tag":37,"props":1473,"children":1474},{"style":56},[1475],{"type":14,"value":396},{"type":9,"tag":37,"props":1477,"children":1478},{"style":44},[1479],{"type":14,"value":69},{"type":9,"tag":37,"props":1481,"children":1482},{"style":72},[1483],{"type":14,"value":405},{"type":9,"tag":37,"props":1485,"children":1486},{"style":44},[1487],{"type":14,"value":1488},"login",{"type":9,"tag":37,"props":1490,"children":1491},{"style":72},[1492],{"type":14,"value":1391},{"type":9,"tag":37,"props":1494,"children":1496},{"class":39,"line":1495},44,[1497],{"type":9,"tag":37,"props":1498,"children":1499},{"style":44},[1500],{"type":14,"value":1501},"      >\n",{"type":9,"tag":37,"props":1503,"children":1505},{"class":39,"line":1504},45,[1506],{"type":9,"tag":37,"props":1507,"children":1508},{"style":44},[1509],{"type":14,"value":1510},"        登录（写入 session.token）\n",{"type":9,"tag":37,"props":1512,"children":1514},{"class":39,"line":1513},46,[1515,1519,1523],{"type":9,"tag":37,"props":1516,"children":1517},{"style":44},[1518],{"type":14,"value":1339},{"type":9,"tag":37,"props":1520,"children":1521},{"style":50},[1522],{"type":14,"value":352},{"type":9,"tag":37,"props":1524,"children":1525},{"style":44},[1526],{"type":14,"value":80},{"type":9,"tag":37,"props":1528,"children":1530},{"class":39,"line":1529},47,[1531,1535],{"type":9,"tag":37,"props":1532,"children":1533},{"style":44},[1534],{"type":14,"value":1256},{"type":9,"tag":37,"props":1536,"children":1537},{"style":50},[1538],{"type":14,"value":1360},{"type":9,"tag":37,"props":1540,"children":1542},{"class":39,"line":1541},48,[1543],{"type":9,"tag":37,"props":1544,"children":1545},{"style":87},[1546],{"type":14,"value":1547},"        v-else\n",{"type":9,"tag":37,"props":1549,"children":1551},{"class":39,"line":1550},49,[1552,1556,1560],{"type":9,"tag":37,"props":1553,"children":1554},{"style":56},[1555],{"type":14,"value":1400},{"type":9,"tag":37,"props":1557,"children":1558},{"style":44},[1559],{"type":14,"value":69},{"type":9,"tag":37,"props":1561,"children":1562},{"style":72},[1563],{"type":14,"value":1409},{"type":9,"tag":37,"props":1565,"children":1567},{"class":39,"line":1566},50,[1568,1573,1577],{"type":9,"tag":37,"props":1569,"children":1570},{"style":56},[1571],{"type":14,"value":1572},"        color",{"type":9,"tag":37,"props":1574,"children":1575},{"style":44},[1576],{"type":14,"value":69},{"type":9,"tag":37,"props":1578,"children":1579},{"style":72},[1580],{"type":14,"value":1581},"\"error\"\n",{"type":9,"tag":37,"props":1583,"children":1585},{"class":39,"line":1584},51,[1586,1591,1595],{"type":9,"tag":37,"props":1587,"children":1588},{"style":56},[1589],{"type":14,"value":1590},"        variant",{"type":9,"tag":37,"props":1592,"children":1593},{"style":44},[1594],{"type":14,"value":69},{"type":9,"tag":37,"props":1596,"children":1597},{"style":72},[1598],{"type":14,"value":1599},"\"outline\"\n",{"type":9,"tag":37,"props":1601,"children":1603},{"class":39,"line":1602},52,[1604,1608,1612,1616,1620,1625],{"type":9,"tag":37,"props":1605,"children":1606},{"style":44},[1607],{"type":14,"value":1418},{"type":9,"tag":37,"props":1609,"children":1610},{"style":56},[1611],{"type":14,"value":1423},{"type":9,"tag":37,"props":1613,"children":1614},{"style":44},[1615],{"type":14,"value":69},{"type":9,"tag":37,"props":1617,"children":1618},{"style":72},[1619],{"type":14,"value":405},{"type":9,"tag":37,"props":1621,"children":1622},{"style":44},[1623],{"type":14,"value":1624},"logoutPending",{"type":9,"tag":37,"props":1626,"children":1627},{"style":72},[1628],{"type":14,"value":1391},{"type":9,"tag":37,"props":1630,"children":1632},{"class":39,"line":1631},53,[1633,1637,1641],{"type":9,"tag":37,"props":1634,"children":1635},{"style":56},[1636],{"type":14,"value":1449},{"type":9,"tag":37,"props":1638,"children":1639},{"style":44},[1640],{"type":14,"value":69},{"type":9,"tag":37,"props":1642,"children":1643},{"style":72},[1644,1648],{"type":9,"tag":380,"props":1645,"children":1647},{"class":382,"style":1646},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Flog-out.svg?color=%23000)",[],{"type":14,"value":1649},"\"i-lucide-log-out\"\n",{"type":9,"tag":37,"props":1651,"children":1653},{"class":39,"line":1652},54,[1654,1658,1662,1666,1670,1675],{"type":9,"tag":37,"props":1655,"children":1656},{"style":44},[1657],{"type":14,"value":1471},{"type":9,"tag":37,"props":1659,"children":1660},{"style":56},[1661],{"type":14,"value":396},{"type":9,"tag":37,"props":1663,"children":1664},{"style":44},[1665],{"type":14,"value":69},{"type":9,"tag":37,"props":1667,"children":1668},{"style":72},[1669],{"type":14,"value":405},{"type":9,"tag":37,"props":1671,"children":1672},{"style":44},[1673],{"type":14,"value":1674},"logout",{"type":9,"tag":37,"props":1676,"children":1677},{"style":72},[1678],{"type":14,"value":1391},{"type":9,"tag":37,"props":1680,"children":1682},{"class":39,"line":1681},55,[1683],{"type":9,"tag":37,"props":1684,"children":1685},{"style":44},[1686],{"type":14,"value":1501},{"type":9,"tag":37,"props":1688,"children":1690},{"class":39,"line":1689},56,[1691],{"type":9,"tag":37,"props":1692,"children":1693},{"style":44},[1694],{"type":14,"value":1695},"        登出（清除 session）\n",{"type":9,"tag":37,"props":1697,"children":1699},{"class":39,"line":1698},57,[1700,1704,1708],{"type":9,"tag":37,"props":1701,"children":1702},{"style":44},[1703],{"type":14,"value":1339},{"type":9,"tag":37,"props":1705,"children":1706},{"style":50},[1707],{"type":14,"value":352},{"type":9,"tag":37,"props":1709,"children":1710},{"style":44},[1711],{"type":14,"value":80},{"type":9,"tag":37,"props":1713,"children":1715},{"class":39,"line":1714},58,[1716,1720,1724],{"type":9,"tag":37,"props":1717,"children":1718},{"style":44},[1719],{"type":14,"value":446},{"type":9,"tag":37,"props":1721,"children":1722},{"style":50},[1723],{"type":14,"value":320},{"type":9,"tag":37,"props":1725,"children":1726},{"style":44},[1727],{"type":14,"value":80},{"type":9,"tag":37,"props":1729,"children":1731},{"class":39,"line":1730},59,[1732,1736,1740,1744,1748,1752],{"type":9,"tag":37,"props":1733,"children":1734},{"style":44},[1735],{"type":14,"value":347},{"type":9,"tag":37,"props":1737,"children":1738},{"style":50},[1739],{"type":14,"value":10},{"type":9,"tag":37,"props":1741,"children":1742},{"style":56},[1743],{"type":14,"value":325},{"type":9,"tag":37,"props":1745,"children":1746},{"style":44},[1747],{"type":14,"value":69},{"type":9,"tag":37,"props":1749,"children":1750},{"style":72},[1751],{"type":14,"value":479},{"type":9,"tag":37,"props":1753,"children":1754},{"style":44},[1755],{"type":14,"value":80},{"type":9,"tag":37,"props":1757,"children":1759},{"class":39,"line":1758},60,[1760],{"type":9,"tag":37,"props":1761,"children":1762},{"style":44},[1763],{"type":14,"value":1764},"      sessionTokenPath: {{ publicConfig.auth?.sessionTokenPath }}\n",{"type":9,"tag":37,"props":1766,"children":1768},{"class":39,"line":1767},61,[1769,1773,1777],{"type":9,"tag":37,"props":1770,"children":1771},{"style":44},[1772],{"type":14,"value":446},{"type":9,"tag":37,"props":1774,"children":1775},{"style":50},[1776],{"type":14,"value":10},{"type":9,"tag":37,"props":1778,"children":1779},{"style":44},[1780],{"type":14,"value":80},{"type":9,"tag":37,"props":1782,"children":1784},{"class":39,"line":1783},62,[1785,1789,1793,1797,1801,1805,1810,1814],{"type":9,"tag":37,"props":1786,"children":1787},{"style":44},[1788],{"type":14,"value":347},{"type":9,"tag":37,"props":1790,"children":1791},{"style":50},[1792],{"type":14,"value":26},{"type":9,"tag":37,"props":1794,"children":1795},{"style":56},[1796],{"type":14,"value":325},{"type":9,"tag":37,"props":1798,"children":1799},{"style":44},[1800],{"type":14,"value":69},{"type":9,"tag":37,"props":1802,"children":1803},{"style":72},[1804],{"type":14,"value":533},{"type":9,"tag":37,"props":1806,"children":1807},{"style":44},[1808],{"type":14,"value":1809},">{{ session }}\u003C\u002F",{"type":9,"tag":37,"props":1811,"children":1812},{"style":50},[1813],{"type":14,"value":26},{"type":9,"tag":37,"props":1815,"children":1816},{"style":44},[1817],{"type":14,"value":80},{"type":9,"tag":37,"props":1819,"children":1821},{"class":39,"line":1820},63,[1822,1826,1830],{"type":9,"tag":37,"props":1823,"children":1824},{"style":44},[1825],{"type":14,"value":555},{"type":9,"tag":37,"props":1827,"children":1828},{"style":50},[1829],{"type":14,"value":320},{"type":9,"tag":37,"props":1831,"children":1832},{"style":44},[1833],{"type":14,"value":80},{"type":9,"tag":37,"props":1835,"children":1837},{"class":39,"line":1836},64,[1838,1842,1846],{"type":9,"tag":37,"props":1839,"children":1840},{"style":44},[1841],{"type":14,"value":273},{"type":9,"tag":37,"props":1843,"children":1844},{"style":50},[1845],{"type":14,"value":302},{"type":9,"tag":37,"props":1847,"children":1848},{"style":44},[1849],{"type":14,"value":80},{"type":9,"tag":581,"props":1851,"children":1852},{},[1853],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":1855},[],{"code":1857,"filePath":1858,"pascalName":1859},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst echoed = computed(() => {\n  const data = protectedRes.data.value\n  return data && typeof data === 'object'\n    ? (data as { authHeader?: string }).authHeader\n    : null\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected 查看注入\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ {\n      headerName: publicConfig.auth?.headerName ?? 'Authorization',\n      tokenType: publicConfig.auth?.tokenType ?? 'Bearer',\n      echoed\n    } }}\u003C\u002Fpre>\n    \u003Cp class=\"text-xs text-muted\">\n      登录后再次请求，\u003Ccode>echoed\u003C\u002Fcode> 字段会展示拦截器实际注入的 Authorization 头。\n    \u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthTokenInjectionExample.vue","ApiAuthTokenInjectionExample",{"data":1861,"body":1862,"toc":2468},{"title":22,"description":22},{"type":6,"children":1863},[1864,2464],{"type":9,"tag":26,"props":1865,"children":1867},{"className":28,"code":1866,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst echoed = computed(() => {\n  const data = protectedRes.data.value\n  return data && typeof data === 'object'\n    ? (data as { authHeader?: string }).authHeader\n    : null\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected 查看注入\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ {\n      headerName: publicConfig.auth?.headerName ?? 'Authorization',\n      tokenType: publicConfig.auth?.tokenType ?? 'Bearer',\n      echoed\n    } }}\u003C\u002Fpre>\n    \u003Cp class=\"text-xs text-muted\">\n      登录后再次请求，\u003Ccode>echoed\u003C\u002Fcode> 字段会展示拦截器实际注入的 Authorization 头。\n    \u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[1868],{"type":9,"tag":33,"props":1869,"children":1870},{"__ignoreMap":22},[1871,1902,1925,1964,1971,2003,2024,2060,2102,2115,2122,2137,2144,2159,2186,2275,2283,2298,2326,2334,2342,2350,2366,2393,2419,2434,2449],{"type":9,"tag":37,"props":1872,"children":1873},{"class":39,"line":40},[1874,1878,1882,1886,1890,1894,1898],{"type":9,"tag":37,"props":1875,"children":1876},{"style":44},[1877],{"type":14,"value":47},{"type":9,"tag":37,"props":1879,"children":1880},{"style":50},[1881],{"type":14,"value":53},{"type":9,"tag":37,"props":1883,"children":1884},{"style":56},[1885],{"type":14,"value":59},{"type":9,"tag":37,"props":1887,"children":1888},{"style":56},[1889],{"type":14,"value":64},{"type":9,"tag":37,"props":1891,"children":1892},{"style":44},[1893],{"type":14,"value":69},{"type":9,"tag":37,"props":1895,"children":1896},{"style":72},[1897],{"type":14,"value":75},{"type":9,"tag":37,"props":1899,"children":1900},{"style":44},[1901],{"type":14,"value":80},{"type":9,"tag":37,"props":1903,"children":1904},{"class":39,"line":83},[1905,1909,1913,1917,1921],{"type":9,"tag":37,"props":1906,"children":1907},{"style":87},[1908],{"type":14,"value":90},{"type":9,"tag":37,"props":1910,"children":1911},{"style":93},[1912],{"type":14,"value":748},{"type":9,"tag":37,"props":1914,"children":1915},{"style":87},[1916],{"type":14,"value":101},{"type":9,"tag":37,"props":1918,"children":1919},{"style":56},[1920],{"type":14,"value":757},{"type":9,"tag":37,"props":1922,"children":1923},{"style":44},[1924],{"type":14,"value":762},{"type":9,"tag":37,"props":1926,"children":1927},{"class":39,"line":134},[1928,1932,1936,1940,1944,1948,1952,1956,1960],{"type":9,"tag":37,"props":1929,"children":1930},{"style":87},[1931],{"type":14,"value":90},{"type":9,"tag":37,"props":1933,"children":1934},{"style":93},[1935],{"type":14,"value":96},{"type":9,"tag":37,"props":1937,"children":1938},{"style":87},[1939],{"type":14,"value":101},{"type":9,"tag":37,"props":1941,"children":1942},{"style":56},[1943],{"type":14,"value":106},{"type":9,"tag":37,"props":1945,"children":1946},{"style":44},[1947],{"type":14,"value":111},{"type":9,"tag":37,"props":1949,"children":1950},{"style":72},[1951],{"type":14,"value":116},{"type":9,"tag":37,"props":1953,"children":1954},{"style":44},[1955],{"type":14,"value":121},{"type":9,"tag":37,"props":1957,"children":1958},{"style":93},[1959],{"type":14,"value":126},{"type":9,"tag":37,"props":1961,"children":1962},{"style":44},[1963],{"type":14,"value":131},{"type":9,"tag":37,"props":1965,"children":1966},{"class":39,"line":144},[1967],{"type":9,"tag":37,"props":1968,"children":1969},{"emptyLinePlaceholder":138},[1970],{"type":14,"value":141},{"type":9,"tag":37,"props":1972,"children":1973},{"class":39,"line":181},[1974,1978,1983,1987,1991,1995,1999],{"type":9,"tag":37,"props":1975,"children":1976},{"style":87},[1977],{"type":14,"value":90},{"type":9,"tag":37,"props":1979,"children":1980},{"style":93},[1981],{"type":14,"value":1982}," echoed",{"type":9,"tag":37,"props":1984,"children":1985},{"style":87},[1986],{"type":14,"value":101},{"type":9,"tag":37,"props":1988,"children":1989},{"style":56},[1990],{"type":14,"value":163},{"type":9,"tag":37,"props":1992,"children":1993},{"style":44},[1994],{"type":14,"value":168},{"type":9,"tag":37,"props":1996,"children":1997},{"style":87},[1998],{"type":14,"value":173},{"type":9,"tag":37,"props":2000,"children":2001},{"style":44},[2002],{"type":14,"value":178},{"type":9,"tag":37,"props":2004,"children":2005},{"class":39,"line":195},[2006,2011,2016,2020],{"type":9,"tag":37,"props":2007,"children":2008},{"style":87},[2009],{"type":14,"value":2010},"  const",{"type":9,"tag":37,"props":2012,"children":2013},{"style":93},[2014],{"type":14,"value":2015}," data",{"type":9,"tag":37,"props":2017,"children":2018},{"style":87},[2019],{"type":14,"value":101},{"type":9,"tag":37,"props":2021,"children":2022},{"style":44},[2023],{"type":14,"value":255},{"type":9,"tag":37,"props":2025,"children":2026},{"class":39,"line":208},[2027,2031,2036,2041,2046,2050,2055],{"type":9,"tag":37,"props":2028,"children":2029},{"style":87},[2030],{"type":14,"value":250},{"type":9,"tag":37,"props":2032,"children":2033},{"style":44},[2034],{"type":14,"value":2035}," data ",{"type":9,"tag":37,"props":2037,"children":2038},{"style":87},[2039],{"type":14,"value":2040},"&&",{"type":9,"tag":37,"props":2042,"children":2043},{"style":87},[2044],{"type":14,"value":2045}," typeof",{"type":9,"tag":37,"props":2047,"children":2048},{"style":44},[2049],{"type":14,"value":2035},{"type":9,"tag":37,"props":2051,"children":2052},{"style":87},[2053],{"type":14,"value":2054},"===",{"type":9,"tag":37,"props":2056,"children":2057},{"style":72},[2058],{"type":14,"value":2059}," 'object'\n",{"type":9,"tag":37,"props":2061,"children":2062},{"class":39,"line":217},[2063,2068,2073,2078,2082,2087,2092,2097],{"type":9,"tag":37,"props":2064,"children":2065},{"style":87},[2066],{"type":14,"value":2067},"    ?",{"type":9,"tag":37,"props":2069,"children":2070},{"style":44},[2071],{"type":14,"value":2072}," (data ",{"type":9,"tag":37,"props":2074,"children":2075},{"style":87},[2076],{"type":14,"value":2077},"as",{"type":9,"tag":37,"props":2079,"children":2080},{"style":44},[2081],{"type":14,"value":649},{"type":9,"tag":37,"props":2083,"children":2084},{"style":671},[2085],{"type":14,"value":2086},"authHeader",{"type":9,"tag":37,"props":2088,"children":2089},{"style":87},[2090],{"type":14,"value":2091},"?:",{"type":9,"tag":37,"props":2093,"children":2094},{"style":93},[2095],{"type":14,"value":2096}," string",{"type":9,"tag":37,"props":2098,"children":2099},{"style":44},[2100],{"type":14,"value":2101}," }).authHeader\n",{"type":9,"tag":37,"props":2103,"children":2104},{"class":39,"line":226},[2105,2110],{"type":9,"tag":37,"props":2106,"children":2107},{"style":87},[2108],{"type":14,"value":2109},"    :",{"type":9,"tag":37,"props":2111,"children":2112},{"style":93},[2113],{"type":14,"value":2114}," null\n",{"type":9,"tag":37,"props":2116,"children":2117},{"class":39,"line":235},[2118],{"type":9,"tag":37,"props":2119,"children":2120},{"style":44},[2121],{"type":14,"value":264},{"type":9,"tag":37,"props":2123,"children":2124},{"class":39,"line":244},[2125,2129,2133],{"type":9,"tag":37,"props":2126,"children":2127},{"style":44},[2128],{"type":14,"value":273},{"type":9,"tag":37,"props":2130,"children":2131},{"style":50},[2132],{"type":14,"value":53},{"type":9,"tag":37,"props":2134,"children":2135},{"style":44},[2136],{"type":14,"value":80},{"type":9,"tag":37,"props":2138,"children":2139},{"class":39,"line":258},[2140],{"type":9,"tag":37,"props":2141,"children":2142},{"emptyLinePlaceholder":138},[2143],{"type":14,"value":141},{"type":9,"tag":37,"props":2145,"children":2146},{"class":39,"line":267},[2147,2151,2155],{"type":9,"tag":37,"props":2148,"children":2149},{"style":44},[2150],{"type":14,"value":47},{"type":9,"tag":37,"props":2152,"children":2153},{"style":50},[2154],{"type":14,"value":302},{"type":9,"tag":37,"props":2156,"children":2157},{"style":44},[2158],{"type":14,"value":80},{"type":9,"tag":37,"props":2160,"children":2161},{"class":39,"line":284},[2162,2166,2170,2174,2178,2182],{"type":9,"tag":37,"props":2163,"children":2164},{"style":44},[2165],{"type":14,"value":315},{"type":9,"tag":37,"props":2167,"children":2168},{"style":50},[2169],{"type":14,"value":320},{"type":9,"tag":37,"props":2171,"children":2172},{"style":56},[2173],{"type":14,"value":325},{"type":9,"tag":37,"props":2175,"children":2176},{"style":44},[2177],{"type":14,"value":69},{"type":9,"tag":37,"props":2179,"children":2180},{"style":72},[2181],{"type":14,"value":334},{"type":9,"tag":37,"props":2183,"children":2184},{"style":44},[2185],{"type":14,"value":80},{"type":9,"tag":37,"props":2187,"children":2188},{"class":39,"line":292},[2189,2193,2197,2201,2205,2209,2213,2217,2222,2226,2230,2239,2243,2247,2251,2255,2259,2263,2267,2271],{"type":9,"tag":37,"props":2190,"children":2191},{"style":44},[2192],{"type":14,"value":347},{"type":9,"tag":37,"props":2194,"children":2195},{"style":50},[2196],{"type":14,"value":352},{"type":9,"tag":37,"props":2198,"children":2199},{"style":56},[2200],{"type":14,"value":357},{"type":9,"tag":37,"props":2202,"children":2203},{"style":44},[2204],{"type":14,"value":69},{"type":9,"tag":37,"props":2206,"children":2207},{"style":72},[2208],{"type":14,"value":366},{"type":9,"tag":37,"props":2210,"children":2211},{"style":56},[2212],{"type":14,"value":1308},{"type":9,"tag":37,"props":2214,"children":2215},{"style":44},[2216],{"type":14,"value":69},{"type":9,"tag":37,"props":2218,"children":2219},{"style":72},[2220],{"type":14,"value":2221},"\"outline\"",{"type":9,"tag":37,"props":2223,"children":2224},{"style":56},[2225],{"type":14,"value":371},{"type":9,"tag":37,"props":2227,"children":2228},{"style":44},[2229],{"type":14,"value":69},{"type":9,"tag":37,"props":2231,"children":2232},{"style":72},[2233,2237],{"type":9,"tag":380,"props":2234,"children":2236},{"class":382,"style":2235},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fsend.svg?color=%23000)",[],{"type":14,"value":2238},"\"i-lucide-send\"",{"type":9,"tag":37,"props":2240,"children":2241},{"style":44},[2242],{"type":14,"value":391},{"type":9,"tag":37,"props":2244,"children":2245},{"style":56},[2246],{"type":14,"value":396},{"type":9,"tag":37,"props":2248,"children":2249},{"style":44},[2250],{"type":14,"value":69},{"type":9,"tag":37,"props":2252,"children":2253},{"style":72},[2254],{"type":14,"value":405},{"type":9,"tag":37,"props":2256,"children":2257},{"style":44},[2258],{"type":14,"value":410},{"type":9,"tag":37,"props":2260,"children":2261},{"style":56},[2262],{"type":14,"value":415},{"type":9,"tag":37,"props":2264,"children":2265},{"style":44},[2266],{"type":14,"value":420},{"type":9,"tag":37,"props":2268,"children":2269},{"style":72},[2270],{"type":14,"value":405},{"type":9,"tag":37,"props":2272,"children":2273},{"style":44},[2274],{"type":14,"value":80},{"type":9,"tag":37,"props":2276,"children":2277},{"class":39,"line":309},[2278],{"type":9,"tag":37,"props":2279,"children":2280},{"style":44},[2281],{"type":14,"value":2282},"      请求 \u002Fdemo\u002Fprotected 查看注入\n",{"type":9,"tag":37,"props":2284,"children":2285},{"class":39,"line":341},[2286,2290,2294],{"type":9,"tag":37,"props":2287,"children":2288},{"style":44},[2289],{"type":14,"value":446},{"type":9,"tag":37,"props":2291,"children":2292},{"style":50},[2293],{"type":14,"value":352},{"type":9,"tag":37,"props":2295,"children":2296},{"style":44},[2297],{"type":14,"value":80},{"type":9,"tag":37,"props":2299,"children":2300},{"class":39,"line":431},[2301,2305,2309,2313,2317,2321],{"type":9,"tag":37,"props":2302,"children":2303},{"style":44},[2304],{"type":14,"value":347},{"type":9,"tag":37,"props":2306,"children":2307},{"style":50},[2308],{"type":14,"value":26},{"type":9,"tag":37,"props":2310,"children":2311},{"style":56},[2312],{"type":14,"value":325},{"type":9,"tag":37,"props":2314,"children":2315},{"style":44},[2316],{"type":14,"value":69},{"type":9,"tag":37,"props":2318,"children":2319},{"style":72},[2320],{"type":14,"value":533},{"type":9,"tag":37,"props":2322,"children":2323},{"style":44},[2324],{"type":14,"value":2325},">{{ {\n",{"type":9,"tag":37,"props":2327,"children":2328},{"class":39,"line":440},[2329],{"type":9,"tag":37,"props":2330,"children":2331},{"style":44},[2332],{"type":14,"value":2333},"      headerName: publicConfig.auth?.headerName ?? 'Authorization',\n",{"type":9,"tag":37,"props":2335,"children":2336},{"class":39,"line":457},[2337],{"type":9,"tag":37,"props":2338,"children":2339},{"style":44},[2340],{"type":14,"value":2341},"      tokenType: publicConfig.auth?.tokenType ?? 'Bearer',\n",{"type":9,"tag":37,"props":2343,"children":2344},{"class":39,"line":486},[2345],{"type":9,"tag":37,"props":2346,"children":2347},{"style":44},[2348],{"type":14,"value":2349},"      echoed\n",{"type":9,"tag":37,"props":2351,"children":2352},{"class":39,"line":495},[2353,2358,2362],{"type":9,"tag":37,"props":2354,"children":2355},{"style":44},[2356],{"type":14,"value":2357},"    } }}\u003C\u002F",{"type":9,"tag":37,"props":2359,"children":2360},{"style":50},[2361],{"type":14,"value":26},{"type":9,"tag":37,"props":2363,"children":2364},{"style":44},[2365],{"type":14,"value":80},{"type":9,"tag":37,"props":2367,"children":2368},{"class":39,"line":511},[2369,2373,2377,2381,2385,2389],{"type":9,"tag":37,"props":2370,"children":2371},{"style":44},[2372],{"type":14,"value":347},{"type":9,"tag":37,"props":2374,"children":2375},{"style":50},[2376],{"type":14,"value":10},{"type":9,"tag":37,"props":2378,"children":2379},{"style":56},[2380],{"type":14,"value":325},{"type":9,"tag":37,"props":2382,"children":2383},{"style":44},[2384],{"type":14,"value":69},{"type":9,"tag":37,"props":2386,"children":2387},{"style":72},[2388],{"type":14,"value":479},{"type":9,"tag":37,"props":2390,"children":2391},{"style":44},[2392],{"type":14,"value":80},{"type":9,"tag":37,"props":2394,"children":2395},{"class":39,"line":549},[2396,2401,2405,2410,2414],{"type":9,"tag":37,"props":2397,"children":2398},{"style":44},[2399],{"type":14,"value":2400},"      登录后再次请求，\u003C",{"type":9,"tag":37,"props":2402,"children":2403},{"style":50},[2404],{"type":14,"value":33},{"type":9,"tag":37,"props":2406,"children":2407},{"style":44},[2408],{"type":14,"value":2409},">echoed\u003C\u002F",{"type":9,"tag":37,"props":2411,"children":2412},{"style":50},[2413],{"type":14,"value":33},{"type":9,"tag":37,"props":2415,"children":2416},{"style":44},[2417],{"type":14,"value":2418},"> 字段会展示拦截器实际注入的 Authorization 头。\n",{"type":9,"tag":37,"props":2420,"children":2421},{"class":39,"line":566},[2422,2426,2430],{"type":9,"tag":37,"props":2423,"children":2424},{"style":44},[2425],{"type":14,"value":446},{"type":9,"tag":37,"props":2427,"children":2428},{"style":50},[2429],{"type":14,"value":10},{"type":9,"tag":37,"props":2431,"children":2432},{"style":44},[2433],{"type":14,"value":80},{"type":9,"tag":37,"props":2435,"children":2436},{"class":39,"line":1108},[2437,2441,2445],{"type":9,"tag":37,"props":2438,"children":2439},{"style":44},[2440],{"type":14,"value":555},{"type":9,"tag":37,"props":2442,"children":2443},{"style":50},[2444],{"type":14,"value":320},{"type":9,"tag":37,"props":2446,"children":2447},{"style":44},[2448],{"type":14,"value":80},{"type":9,"tag":37,"props":2450,"children":2451},{"class":39,"line":1120},[2452,2456,2460],{"type":9,"tag":37,"props":2453,"children":2454},{"style":44},[2455],{"type":14,"value":273},{"type":9,"tag":37,"props":2457,"children":2458},{"style":50},[2459],{"type":14,"value":302},{"type":9,"tag":37,"props":2461,"children":2462},{"style":44},[2463],{"type":14,"value":80},{"type":9,"tag":581,"props":2465,"children":2466},{},[2467],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":2469},[],{"code":2471,"filePath":2472,"pascalName":2473},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      \u003Ccode>auth.unauthorized\u003C\u002Fcode> 控制 401 时的行为；docs 站点关闭重定向便于演示，生产建议启用 \u003Ccode>redirect: true\u003C\u002Fcode> + \u003Ccode>loginPath\u003C\u002Fcode>。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ publicConfig.auth?.unauthorized }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthUnauthorizedExample.vue","ApiAuthUnauthorizedExample",{"data":2475,"body":2476,"toc":2777},{"title":22,"description":22},{"type":6,"children":2477},[2478,2773],{"type":9,"tag":26,"props":2479,"children":2481},{"className":28,"code":2480,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      \u003Ccode>auth.unauthorized\u003C\u002Fcode> 控制 401 时的行为；docs 站点关闭重定向便于演示，生产建议启用 \u003Ccode>redirect: true\u003C\u002Fcode> + \u003Ccode>loginPath\u003C\u002Fcode>。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ publicConfig.auth?.unauthorized }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[2482],{"type":9,"tag":33,"props":2483,"children":2484},{"__ignoreMap":22},[2485,2516,2539,2554,2561,2576,2603,2631,2692,2707,2743,2758],{"type":9,"tag":37,"props":2486,"children":2487},{"class":39,"line":40},[2488,2492,2496,2500,2504,2508,2512],{"type":9,"tag":37,"props":2489,"children":2490},{"style":44},[2491],{"type":14,"value":47},{"type":9,"tag":37,"props":2493,"children":2494},{"style":50},[2495],{"type":14,"value":53},{"type":9,"tag":37,"props":2497,"children":2498},{"style":56},[2499],{"type":14,"value":59},{"type":9,"tag":37,"props":2501,"children":2502},{"style":56},[2503],{"type":14,"value":64},{"type":9,"tag":37,"props":2505,"children":2506},{"style":44},[2507],{"type":14,"value":69},{"type":9,"tag":37,"props":2509,"children":2510},{"style":72},[2511],{"type":14,"value":75},{"type":9,"tag":37,"props":2513,"children":2514},{"style":44},[2515],{"type":14,"value":80},{"type":9,"tag":37,"props":2517,"children":2518},{"class":39,"line":83},[2519,2523,2527,2531,2535],{"type":9,"tag":37,"props":2520,"children":2521},{"style":87},[2522],{"type":14,"value":90},{"type":9,"tag":37,"props":2524,"children":2525},{"style":93},[2526],{"type":14,"value":748},{"type":9,"tag":37,"props":2528,"children":2529},{"style":87},[2530],{"type":14,"value":101},{"type":9,"tag":37,"props":2532,"children":2533},{"style":56},[2534],{"type":14,"value":757},{"type":9,"tag":37,"props":2536,"children":2537},{"style":44},[2538],{"type":14,"value":762},{"type":9,"tag":37,"props":2540,"children":2541},{"class":39,"line":134},[2542,2546,2550],{"type":9,"tag":37,"props":2543,"children":2544},{"style":44},[2545],{"type":14,"value":273},{"type":9,"tag":37,"props":2547,"children":2548},{"style":50},[2549],{"type":14,"value":53},{"type":9,"tag":37,"props":2551,"children":2552},{"style":44},[2553],{"type":14,"value":80},{"type":9,"tag":37,"props":2555,"children":2556},{"class":39,"line":144},[2557],{"type":9,"tag":37,"props":2558,"children":2559},{"emptyLinePlaceholder":138},[2560],{"type":14,"value":141},{"type":9,"tag":37,"props":2562,"children":2563},{"class":39,"line":181},[2564,2568,2572],{"type":9,"tag":37,"props":2565,"children":2566},{"style":44},[2567],{"type":14,"value":47},{"type":9,"tag":37,"props":2569,"children":2570},{"style":50},[2571],{"type":14,"value":302},{"type":9,"tag":37,"props":2573,"children":2574},{"style":44},[2575],{"type":14,"value":80},{"type":9,"tag":37,"props":2577,"children":2578},{"class":39,"line":195},[2579,2583,2587,2591,2595,2599],{"type":9,"tag":37,"props":2580,"children":2581},{"style":44},[2582],{"type":14,"value":315},{"type":9,"tag":37,"props":2584,"children":2585},{"style":50},[2586],{"type":14,"value":320},{"type":9,"tag":37,"props":2588,"children":2589},{"style":56},[2590],{"type":14,"value":325},{"type":9,"tag":37,"props":2592,"children":2593},{"style":44},[2594],{"type":14,"value":69},{"type":9,"tag":37,"props":2596,"children":2597},{"style":72},[2598],{"type":14,"value":334},{"type":9,"tag":37,"props":2600,"children":2601},{"style":44},[2602],{"type":14,"value":80},{"type":9,"tag":37,"props":2604,"children":2605},{"class":39,"line":208},[2606,2610,2614,2618,2622,2627],{"type":9,"tag":37,"props":2607,"children":2608},{"style":44},[2609],{"type":14,"value":347},{"type":9,"tag":37,"props":2611,"children":2612},{"style":50},[2613],{"type":14,"value":10},{"type":9,"tag":37,"props":2615,"children":2616},{"style":56},[2617],{"type":14,"value":325},{"type":9,"tag":37,"props":2619,"children":2620},{"style":44},[2621],{"type":14,"value":69},{"type":9,"tag":37,"props":2623,"children":2624},{"style":72},[2625],{"type":14,"value":2626},"\"text-sm text-muted\"",{"type":9,"tag":37,"props":2628,"children":2629},{"style":44},[2630],{"type":14,"value":80},{"type":9,"tag":37,"props":2632,"children":2633},{"class":39,"line":217},[2634,2638,2642,2647,2651,2656,2660,2665,2669,2674,2678,2683,2687],{"type":9,"tag":37,"props":2635,"children":2636},{"style":44},[2637],{"type":14,"value":1256},{"type":9,"tag":37,"props":2639,"children":2640},{"style":50},[2641],{"type":14,"value":33},{"type":9,"tag":37,"props":2643,"children":2644},{"style":44},[2645],{"type":14,"value":2646},">auth.unauthorized\u003C\u002F",{"type":9,"tag":37,"props":2648,"children":2649},{"style":50},[2650],{"type":14,"value":33},{"type":9,"tag":37,"props":2652,"children":2653},{"style":44},[2654],{"type":14,"value":2655},"> 控制 401 时的行为；docs 站点关闭重定向便于演示，生产建议启用 \u003C",{"type":9,"tag":37,"props":2657,"children":2658},{"style":50},[2659],{"type":14,"value":33},{"type":9,"tag":37,"props":2661,"children":2662},{"style":44},[2663],{"type":14,"value":2664},">redirect: true\u003C\u002F",{"type":9,"tag":37,"props":2666,"children":2667},{"style":50},[2668],{"type":14,"value":33},{"type":9,"tag":37,"props":2670,"children":2671},{"style":44},[2672],{"type":14,"value":2673},"> + \u003C",{"type":9,"tag":37,"props":2675,"children":2676},{"style":50},[2677],{"type":14,"value":33},{"type":9,"tag":37,"props":2679,"children":2680},{"style":44},[2681],{"type":14,"value":2682},">loginPath\u003C\u002F",{"type":9,"tag":37,"props":2684,"children":2685},{"style":50},[2686],{"type":14,"value":33},{"type":9,"tag":37,"props":2688,"children":2689},{"style":44},[2690],{"type":14,"value":2691},">。\n",{"type":9,"tag":37,"props":2693,"children":2694},{"class":39,"line":226},[2695,2699,2703],{"type":9,"tag":37,"props":2696,"children":2697},{"style":44},[2698],{"type":14,"value":446},{"type":9,"tag":37,"props":2700,"children":2701},{"style":50},[2702],{"type":14,"value":10},{"type":9,"tag":37,"props":2704,"children":2705},{"style":44},[2706],{"type":14,"value":80},{"type":9,"tag":37,"props":2708,"children":2709},{"class":39,"line":235},[2710,2714,2718,2722,2726,2730,2735,2739],{"type":9,"tag":37,"props":2711,"children":2712},{"style":44},[2713],{"type":14,"value":347},{"type":9,"tag":37,"props":2715,"children":2716},{"style":50},[2717],{"type":14,"value":26},{"type":9,"tag":37,"props":2719,"children":2720},{"style":56},[2721],{"type":14,"value":325},{"type":9,"tag":37,"props":2723,"children":2724},{"style":44},[2725],{"type":14,"value":69},{"type":9,"tag":37,"props":2727,"children":2728},{"style":72},[2729],{"type":14,"value":533},{"type":9,"tag":37,"props":2731,"children":2732},{"style":44},[2733],{"type":14,"value":2734},">{{ publicConfig.auth?.unauthorized }}\u003C\u002F",{"type":9,"tag":37,"props":2736,"children":2737},{"style":50},[2738],{"type":14,"value":26},{"type":9,"tag":37,"props":2740,"children":2741},{"style":44},[2742],{"type":14,"value":80},{"type":9,"tag":37,"props":2744,"children":2745},{"class":39,"line":244},[2746,2750,2754],{"type":9,"tag":37,"props":2747,"children":2748},{"style":44},[2749],{"type":14,"value":555},{"type":9,"tag":37,"props":2751,"children":2752},{"style":50},[2753],{"type":14,"value":320},{"type":9,"tag":37,"props":2755,"children":2756},{"style":44},[2757],{"type":14,"value":80},{"type":9,"tag":37,"props":2759,"children":2760},{"class":39,"line":258},[2761,2765,2769],{"type":9,"tag":37,"props":2762,"children":2763},{"style":44},[2764],{"type":14,"value":273},{"type":9,"tag":37,"props":2766,"children":2767},{"style":50},[2768],{"type":14,"value":302},{"type":9,"tag":37,"props":2770,"children":2771},{"style":44},[2772],{"type":14,"value":80},{"type":9,"tag":581,"props":2774,"children":2775},{},[2776],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":2778},[],{"code":2780,"filePath":2781,"pascalName":2782},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  endpoint: 'default' | 'v2'\n}>()\n\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nconst baseURL = computed(() => publicConfig.endpoints?.[props.endpoint]?.baseURL)\n\nasync function load() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use(props.endpoint)('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\nwatch(() => props.endpoint, load, { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"endpoint === 'v2' ? 'secondary' : 'neutral'\" variant=\"subtle\">\n        baseURL: {{ baseURL }}\n      \u003C\u002FUBadge>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-refresh-cw\" :loading=\"pending\" @click=\"load\">\n        刷新\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      $api 默认走 default 端点的 baseURL，$api.use(name) 切换到别名端点后请求改用对应 baseURL。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiEndpointsExample.vue","ApiEndpointsExample",{"data":2784,"body":2785,"toc":3841},{"title":22,"description":22},{"type":6,"children":2786},[2787,3837],{"type":9,"tag":597,"props":2788,"children":2789},{},[2790],{"type":9,"tag":26,"props":2791,"children":2793},{"className":28,"code":2792,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  endpoint: 'default' | 'v2'\n}>()\n\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nconst baseURL = computed(() => publicConfig.endpoints?.[props.endpoint]?.baseURL)\n\nasync function load() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use(props.endpoint)('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\nwatch(() => props.endpoint, load, { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"endpoint === 'v2' ? 'secondary' : 'neutral'\" variant=\"subtle\">\n        baseURL: {{ baseURL }}\n      \u003C\u002FUBadge>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-refresh-cw\" :loading=\"pending\" @click=\"load\">\n        刷新\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      $api 默认走 default 端点的 baseURL，$api.use(name) 切换到别名端点后请求改用对应 baseURL。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[2794],{"type":9,"tag":33,"props":2795,"children":2796},{"__ignoreMap":22},[2797,2828,2854,2882,2890,2897,2928,2951,2958,3000,3032,3082,3089,3122,3129,3149,3165,3181,3192,3233,3240,3253,3304,3311,3322,3338,3345,3352,3359,3389,3404,3411,3426,3453,3480,3554,3562,3577,3683,3691,3706,3721,3748,3756,3771,3807,3822],{"type":9,"tag":37,"props":2798,"children":2799},{"class":39,"line":40},[2800,2804,2808,2812,2816,2820,2824],{"type":9,"tag":37,"props":2801,"children":2802},{"style":44},[2803],{"type":14,"value":47},{"type":9,"tag":37,"props":2805,"children":2806},{"style":50},[2807],{"type":14,"value":53},{"type":9,"tag":37,"props":2809,"children":2810},{"style":56},[2811],{"type":14,"value":59},{"type":9,"tag":37,"props":2813,"children":2814},{"style":56},[2815],{"type":14,"value":64},{"type":9,"tag":37,"props":2817,"children":2818},{"style":44},[2819],{"type":14,"value":69},{"type":9,"tag":37,"props":2821,"children":2822},{"style":72},[2823],{"type":14,"value":75},{"type":9,"tag":37,"props":2825,"children":2826},{"style":44},[2827],{"type":14,"value":80},{"type":9,"tag":37,"props":2829,"children":2830},{"class":39,"line":83},[2831,2835,2840,2844,2849],{"type":9,"tag":37,"props":2832,"children":2833},{"style":87},[2834],{"type":14,"value":90},{"type":9,"tag":37,"props":2836,"children":2837},{"style":93},[2838],{"type":14,"value":2839}," props",{"type":9,"tag":37,"props":2841,"children":2842},{"style":87},[2843],{"type":14,"value":101},{"type":9,"tag":37,"props":2845,"children":2846},{"style":56},[2847],{"type":14,"value":2848}," defineProps",{"type":9,"tag":37,"props":2850,"children":2851},{"style":44},[2852],{"type":14,"value":2853},"\u003C{\n",{"type":9,"tag":37,"props":2855,"children":2856},{"class":39,"line":134},[2857,2862,2867,2872,2877],{"type":9,"tag":37,"props":2858,"children":2859},{"style":671},[2860],{"type":14,"value":2861},"  endpoint",{"type":9,"tag":37,"props":2863,"children":2864},{"style":87},[2865],{"type":14,"value":2866},":",{"type":9,"tag":37,"props":2868,"children":2869},{"style":72},[2870],{"type":14,"value":2871}," 'default'",{"type":9,"tag":37,"props":2873,"children":2874},{"style":87},[2875],{"type":14,"value":2876}," |",{"type":9,"tag":37,"props":2878,"children":2879},{"style":72},[2880],{"type":14,"value":2881}," 'v2'\n",{"type":9,"tag":37,"props":2883,"children":2884},{"class":39,"line":144},[2885],{"type":9,"tag":37,"props":2886,"children":2887},{"style":44},[2888],{"type":14,"value":2889},"}>()\n",{"type":9,"tag":37,"props":2891,"children":2892},{"class":39,"line":181},[2893],{"type":9,"tag":37,"props":2894,"children":2895},{"emptyLinePlaceholder":138},[2896],{"type":14,"value":141},{"type":9,"tag":37,"props":2898,"children":2899},{"class":39,"line":195},[2900,2904,2908,2912,2916,2920,2924],{"type":9,"tag":37,"props":2901,"children":2902},{"style":87},[2903],{"type":14,"value":90},{"type":9,"tag":37,"props":2905,"children":2906},{"style":44},[2907],{"type":14,"value":649},{"type":9,"tag":37,"props":2909,"children":2910},{"style":93},[2911],{"type":14,"value":719},{"type":9,"tag":37,"props":2913,"children":2914},{"style":44},[2915],{"type":14,"value":689},{"type":9,"tag":37,"props":2917,"children":2918},{"style":87},[2919],{"type":14,"value":69},{"type":9,"tag":37,"props":2921,"children":2922},{"style":56},[2923],{"type":14,"value":732},{"type":9,"tag":37,"props":2925,"children":2926},{"style":44},[2927],{"type":14,"value":703},{"type":9,"tag":37,"props":2929,"children":2930},{"class":39,"line":208},[2931,2935,2939,2943,2947],{"type":9,"tag":37,"props":2932,"children":2933},{"style":87},[2934],{"type":14,"value":90},{"type":9,"tag":37,"props":2936,"children":2937},{"style":93},[2938],{"type":14,"value":748},{"type":9,"tag":37,"props":2940,"children":2941},{"style":87},[2942],{"type":14,"value":101},{"type":9,"tag":37,"props":2944,"children":2945},{"style":56},[2946],{"type":14,"value":757},{"type":9,"tag":37,"props":2948,"children":2949},{"style":44},[2950],{"type":14,"value":762},{"type":9,"tag":37,"props":2952,"children":2953},{"class":39,"line":217},[2954],{"type":9,"tag":37,"props":2955,"children":2956},{"emptyLinePlaceholder":138},[2957],{"type":14,"value":141},{"type":9,"tag":37,"props":2959,"children":2960},{"class":39,"line":226},[2961,2965,2969,2973,2977,2981,2986,2991,2996],{"type":9,"tag":37,"props":2962,"children":2963},{"style":87},[2964],{"type":14,"value":90},{"type":9,"tag":37,"props":2966,"children":2967},{"style":93},[2968],{"type":14,"value":2015},{"type":9,"tag":37,"props":2970,"children":2971},{"style":87},[2972],{"type":14,"value":101},{"type":9,"tag":37,"props":2974,"children":2975},{"style":56},[2976],{"type":14,"value":790},{"type":9,"tag":37,"props":2978,"children":2979},{"style":44},[2980],{"type":14,"value":47},{"type":9,"tag":37,"props":2982,"children":2983},{"style":93},[2984],{"type":14,"value":2985},"unknown",{"type":9,"tag":37,"props":2987,"children":2988},{"style":44},[2989],{"type":14,"value":2990},">(",{"type":9,"tag":37,"props":2992,"children":2993},{"style":93},[2994],{"type":14,"value":2995},"null",{"type":9,"tag":37,"props":2997,"children":2998},{"style":44},[2999],{"type":14,"value":803},{"type":9,"tag":37,"props":3001,"children":3002},{"class":39,"line":235},[3003,3007,3012,3016,3020,3024,3028],{"type":9,"tag":37,"props":3004,"children":3005},{"style":87},[3006],{"type":14,"value":90},{"type":9,"tag":37,"props":3008,"children":3009},{"style":93},[3010],{"type":14,"value":3011}," pending",{"type":9,"tag":37,"props":3013,"children":3014},{"style":87},[3015],{"type":14,"value":101},{"type":9,"tag":37,"props":3017,"children":3018},{"style":56},[3019],{"type":14,"value":790},{"type":9,"tag":37,"props":3021,"children":3022},{"style":44},[3023],{"type":14,"value":111},{"type":9,"tag":37,"props":3025,"children":3026},{"style":93},[3027],{"type":14,"value":126},{"type":9,"tag":37,"props":3029,"children":3030},{"style":44},[3031],{"type":14,"value":803},{"type":9,"tag":37,"props":3033,"children":3034},{"class":39,"line":244},[3035,3039,3044,3048,3052,3056,3061,3065,3070,3074,3078],{"type":9,"tag":37,"props":3036,"children":3037},{"style":87},[3038],{"type":14,"value":90},{"type":9,"tag":37,"props":3040,"children":3041},{"style":93},[3042],{"type":14,"value":3043}," error",{"type":9,"tag":37,"props":3045,"children":3046},{"style":87},[3047],{"type":14,"value":101},{"type":9,"tag":37,"props":3049,"children":3050},{"style":56},[3051],{"type":14,"value":790},{"type":9,"tag":37,"props":3053,"children":3054},{"style":44},[3055],{"type":14,"value":47},{"type":9,"tag":37,"props":3057,"children":3058},{"style":93},[3059],{"type":14,"value":3060},"string",{"type":9,"tag":37,"props":3062,"children":3063},{"style":87},[3064],{"type":14,"value":2876},{"type":9,"tag":37,"props":3066,"children":3067},{"style":93},[3068],{"type":14,"value":3069}," null",{"type":9,"tag":37,"props":3071,"children":3072},{"style":44},[3073],{"type":14,"value":2990},{"type":9,"tag":37,"props":3075,"children":3076},{"style":93},[3077],{"type":14,"value":2995},{"type":9,"tag":37,"props":3079,"children":3080},{"style":44},[3081],{"type":14,"value":803},{"type":9,"tag":37,"props":3083,"children":3084},{"class":39,"line":258},[3085],{"type":9,"tag":37,"props":3086,"children":3087},{"emptyLinePlaceholder":138},[3088],{"type":14,"value":141},{"type":9,"tag":37,"props":3090,"children":3091},{"class":39,"line":267},[3092,3096,3101,3105,3109,3113,3117],{"type":9,"tag":37,"props":3093,"children":3094},{"style":87},[3095],{"type":14,"value":90},{"type":9,"tag":37,"props":3097,"children":3098},{"style":93},[3099],{"type":14,"value":3100}," baseURL",{"type":9,"tag":37,"props":3102,"children":3103},{"style":87},[3104],{"type":14,"value":101},{"type":9,"tag":37,"props":3106,"children":3107},{"style":56},[3108],{"type":14,"value":163},{"type":9,"tag":37,"props":3110,"children":3111},{"style":44},[3112],{"type":14,"value":168},{"type":9,"tag":37,"props":3114,"children":3115},{"style":87},[3116],{"type":14,"value":173},{"type":9,"tag":37,"props":3118,"children":3119},{"style":44},[3120],{"type":14,"value":3121}," publicConfig.endpoints?.[props.endpoint]?.baseURL)\n",{"type":9,"tag":37,"props":3123,"children":3124},{"class":39,"line":284},[3125],{"type":9,"tag":37,"props":3126,"children":3127},{"emptyLinePlaceholder":138},[3128],{"type":14,"value":141},{"type":9,"tag":37,"props":3130,"children":3131},{"class":39,"line":292},[3132,3136,3140,3145],{"type":9,"tag":37,"props":3133,"children":3134},{"style":87},[3135],{"type":14,"value":850},{"type":9,"tag":37,"props":3137,"children":3138},{"style":87},[3139],{"type":14,"value":855},{"type":9,"tag":37,"props":3141,"children":3142},{"style":56},[3143],{"type":14,"value":3144}," load",{"type":9,"tag":37,"props":3146,"children":3147},{"style":44},[3148],{"type":14,"value":865},{"type":9,"tag":37,"props":3150,"children":3151},{"class":39,"line":309},[3152,3157,3161],{"type":9,"tag":37,"props":3153,"children":3154},{"style":44},[3155],{"type":14,"value":3156},"  pending.value ",{"type":9,"tag":37,"props":3158,"children":3159},{"style":87},[3160],{"type":14,"value":69},{"type":9,"tag":37,"props":3162,"children":3163},{"style":93},[3164],{"type":14,"value":882},{"type":9,"tag":37,"props":3166,"children":3167},{"class":39,"line":341},[3168,3173,3177],{"type":9,"tag":37,"props":3169,"children":3170},{"style":44},[3171],{"type":14,"value":3172},"  error.value ",{"type":9,"tag":37,"props":3174,"children":3175},{"style":87},[3176],{"type":14,"value":69},{"type":9,"tag":37,"props":3178,"children":3179},{"style":93},[3180],{"type":14,"value":2114},{"type":9,"tag":37,"props":3182,"children":3183},{"class":39,"line":431},[3184,3188],{"type":9,"tag":37,"props":3185,"children":3186},{"style":87},[3187],{"type":14,"value":890},{"type":9,"tag":37,"props":3189,"children":3190},{"style":44},[3191],{"type":14,"value":178},{"type":9,"tag":37,"props":3193,"children":3194},{"class":39,"line":440},[3195,3200,3204,3209,3214,3219,3224,3229],{"type":9,"tag":37,"props":3196,"children":3197},{"style":44},[3198],{"type":14,"value":3199},"    data.value ",{"type":9,"tag":37,"props":3201,"children":3202},{"style":87},[3203],{"type":14,"value":69},{"type":9,"tag":37,"props":3205,"children":3206},{"style":87},[3207],{"type":14,"value":3208}," await",{"type":9,"tag":37,"props":3210,"children":3211},{"style":44},[3212],{"type":14,"value":3213}," $api.",{"type":9,"tag":37,"props":3215,"children":3216},{"style":56},[3217],{"type":14,"value":3218},"use",{"type":9,"tag":37,"props":3220,"children":3221},{"style":44},[3222],{"type":14,"value":3223},"(props.endpoint)(",{"type":9,"tag":37,"props":3225,"children":3226},{"style":72},[3227],{"type":14,"value":3228},"'\u002Fprofile'",{"type":9,"tag":37,"props":3230,"children":3231},{"style":44},[3232],{"type":14,"value":803},{"type":9,"tag":37,"props":3234,"children":3235},{"class":39,"line":457},[3236],{"type":9,"tag":37,"props":3237,"children":3238},{"style":44},[3239],{"type":14,"value":241},{"type":9,"tag":37,"props":3241,"children":3242},{"class":39,"line":486},[3243,3248],{"type":9,"tag":37,"props":3244,"children":3245},{"style":87},[3246],{"type":14,"value":3247},"  catch",{"type":9,"tag":37,"props":3249,"children":3250},{"style":44},[3251],{"type":14,"value":3252}," (err) {\n",{"type":9,"tag":37,"props":3254,"children":3255},{"class":39,"line":495},[3256,3261,3265,3270,3275,3280,3285,3290,3294,3299],{"type":9,"tag":37,"props":3257,"children":3258},{"style":44},[3259],{"type":14,"value":3260},"    error.value ",{"type":9,"tag":37,"props":3262,"children":3263},{"style":87},[3264],{"type":14,"value":69},{"type":9,"tag":37,"props":3266,"children":3267},{"style":44},[3268],{"type":14,"value":3269}," err ",{"type":9,"tag":37,"props":3271,"children":3272},{"style":87},[3273],{"type":14,"value":3274},"instanceof",{"type":9,"tag":37,"props":3276,"children":3277},{"style":56},[3278],{"type":14,"value":3279}," Error",{"type":9,"tag":37,"props":3281,"children":3282},{"style":87},[3283],{"type":14,"value":3284}," ?",{"type":9,"tag":37,"props":3286,"children":3287},{"style":44},[3288],{"type":14,"value":3289}," err.message ",{"type":9,"tag":37,"props":3291,"children":3292},{"style":87},[3293],{"type":14,"value":2866},{"type":9,"tag":37,"props":3295,"children":3296},{"style":56},[3297],{"type":14,"value":3298}," String",{"type":9,"tag":37,"props":3300,"children":3301},{"style":44},[3302],{"type":14,"value":3303},"(err)\n",{"type":9,"tag":37,"props":3305,"children":3306},{"class":39,"line":511},[3307],{"type":9,"tag":37,"props":3308,"children":3309},{"style":44},[3310],{"type":14,"value":241},{"type":9,"tag":37,"props":3312,"children":3313},{"class":39,"line":549},[3314,3318],{"type":9,"tag":37,"props":3315,"children":3316},{"style":87},[3317],{"type":14,"value":961},{"type":9,"tag":37,"props":3319,"children":3320},{"style":44},[3321],{"type":14,"value":178},{"type":9,"tag":37,"props":3323,"children":3324},{"class":39,"line":566},[3325,3330,3334],{"type":9,"tag":37,"props":3326,"children":3327},{"style":44},[3328],{"type":14,"value":3329},"    pending.value ",{"type":9,"tag":37,"props":3331,"children":3332},{"style":87},[3333],{"type":14,"value":69},{"type":9,"tag":37,"props":3335,"children":3336},{"style":93},[3337],{"type":14,"value":982},{"type":9,"tag":37,"props":3339,"children":3340},{"class":39,"line":1108},[3341],{"type":9,"tag":37,"props":3342,"children":3343},{"style":44},[3344],{"type":14,"value":241},{"type":9,"tag":37,"props":3346,"children":3347},{"class":39,"line":1120},[3348],{"type":9,"tag":37,"props":3349,"children":3350},{"style":44},[3351],{"type":14,"value":997},{"type":9,"tag":37,"props":3353,"children":3354},{"class":39,"line":1137},[3355],{"type":9,"tag":37,"props":3356,"children":3357},{"emptyLinePlaceholder":138},[3358],{"type":14,"value":141},{"type":9,"tag":37,"props":3360,"children":3361},{"class":39,"line":1145},[3362,3367,3371,3375,3380,3385],{"type":9,"tag":37,"props":3363,"children":3364},{"style":56},[3365],{"type":14,"value":3366},"watch",{"type":9,"tag":37,"props":3368,"children":3369},{"style":44},[3370],{"type":14,"value":168},{"type":9,"tag":37,"props":3372,"children":3373},{"style":87},[3374],{"type":14,"value":173},{"type":9,"tag":37,"props":3376,"children":3377},{"style":44},[3378],{"type":14,"value":3379}," props.endpoint, load, { immediate: ",{"type":9,"tag":37,"props":3381,"children":3382},{"style":93},[3383],{"type":14,"value":3384},"true",{"type":9,"tag":37,"props":3386,"children":3387},{"style":44},[3388],{"type":14,"value":131},{"type":9,"tag":37,"props":3390,"children":3391},{"class":39,"line":1153},[3392,3396,3400],{"type":9,"tag":37,"props":3393,"children":3394},{"style":44},[3395],{"type":14,"value":273},{"type":9,"tag":37,"props":3397,"children":3398},{"style":50},[3399],{"type":14,"value":53},{"type":9,"tag":37,"props":3401,"children":3402},{"style":44},[3403],{"type":14,"value":80},{"type":9,"tag":37,"props":3405,"children":3406},{"class":39,"line":1169},[3407],{"type":9,"tag":37,"props":3408,"children":3409},{"emptyLinePlaceholder":138},[3410],{"type":14,"value":141},{"type":9,"tag":37,"props":3412,"children":3413},{"class":39,"line":1177},[3414,3418,3422],{"type":9,"tag":37,"props":3415,"children":3416},{"style":44},[3417],{"type":14,"value":47},{"type":9,"tag":37,"props":3419,"children":3420},{"style":50},[3421],{"type":14,"value":302},{"type":9,"tag":37,"props":3423,"children":3424},{"style":44},[3425],{"type":14,"value":80},{"type":9,"tag":37,"props":3427,"children":3428},{"class":39,"line":1193},[3429,3433,3437,3441,3445,3449],{"type":9,"tag":37,"props":3430,"children":3431},{"style":44},[3432],{"type":14,"value":315},{"type":9,"tag":37,"props":3434,"children":3435},{"style":50},[3436],{"type":14,"value":320},{"type":9,"tag":37,"props":3438,"children":3439},{"style":56},[3440],{"type":14,"value":325},{"type":9,"tag":37,"props":3442,"children":3443},{"style":44},[3444],{"type":14,"value":69},{"type":9,"tag":37,"props":3446,"children":3447},{"style":72},[3448],{"type":14,"value":334},{"type":9,"tag":37,"props":3450,"children":3451},{"style":44},[3452],{"type":14,"value":80},{"type":9,"tag":37,"props":3454,"children":3455},{"class":39,"line":1221},[3456,3460,3464,3468,3472,3476],{"type":9,"tag":37,"props":3457,"children":3458},{"style":44},[3459],{"type":14,"value":347},{"type":9,"tag":37,"props":3461,"children":3462},{"style":50},[3463],{"type":14,"value":320},{"type":9,"tag":37,"props":3465,"children":3466},{"style":56},[3467],{"type":14,"value":325},{"type":9,"tag":37,"props":3469,"children":3470},{"style":44},[3471],{"type":14,"value":69},{"type":9,"tag":37,"props":3473,"children":3474},{"style":72},[3475],{"type":14,"value":1243},{"type":9,"tag":37,"props":3477,"children":3478},{"style":44},[3479],{"type":14,"value":80},{"type":9,"tag":37,"props":3481,"children":3482},{"class":39,"line":1250},[3483,3487,3491,3495,3499,3503,3507,3512,3516,3521,3525,3530,3534,3538,3542,3546,3550],{"type":9,"tag":37,"props":3484,"children":3485},{"style":44},[3486],{"type":14,"value":1256},{"type":9,"tag":37,"props":3488,"children":3489},{"style":50},[3490],{"type":14,"value":1261},{"type":9,"tag":37,"props":3492,"children":3493},{"style":44},[3494],{"type":14,"value":1266},{"type":9,"tag":37,"props":3496,"children":3497},{"style":56},[3498],{"type":14,"value":1271},{"type":9,"tag":37,"props":3500,"children":3501},{"style":44},[3502],{"type":14,"value":69},{"type":9,"tag":37,"props":3504,"children":3505},{"style":72},[3506],{"type":14,"value":405},{"type":9,"tag":37,"props":3508,"children":3509},{"style":44},[3510],{"type":14,"value":3511},"endpoint ",{"type":9,"tag":37,"props":3513,"children":3514},{"style":87},[3515],{"type":14,"value":2054},{"type":9,"tag":37,"props":3517,"children":3518},{"style":72},[3519],{"type":14,"value":3520}," 'v2'",{"type":9,"tag":37,"props":3522,"children":3523},{"style":87},[3524],{"type":14,"value":3284},{"type":9,"tag":37,"props":3526,"children":3527},{"style":72},[3528],{"type":14,"value":3529}," 'secondary'",{"type":9,"tag":37,"props":3531,"children":3532},{"style":87},[3533],{"type":14,"value":1266},{"type":9,"tag":37,"props":3535,"children":3536},{"style":72},[3537],{"type":14,"value":1303},{"type":9,"tag":37,"props":3539,"children":3540},{"style":56},[3541],{"type":14,"value":1308},{"type":9,"tag":37,"props":3543,"children":3544},{"style":44},[3545],{"type":14,"value":69},{"type":9,"tag":37,"props":3547,"children":3548},{"style":72},[3549],{"type":14,"value":1317},{"type":9,"tag":37,"props":3551,"children":3552},{"style":44},[3553],{"type":14,"value":80},{"type":9,"tag":37,"props":3555,"children":3556},{"class":39,"line":1324},[3557],{"type":9,"tag":37,"props":3558,"children":3559},{"style":44},[3560],{"type":14,"value":3561},"        baseURL: {{ baseURL }}\n",{"type":9,"tag":37,"props":3563,"children":3564},{"class":39,"line":1333},[3565,3569,3573],{"type":9,"tag":37,"props":3566,"children":3567},{"style":44},[3568],{"type":14,"value":1339},{"type":9,"tag":37,"props":3570,"children":3571},{"style":50},[3572],{"type":14,"value":1261},{"type":9,"tag":37,"props":3574,"children":3575},{"style":44},[3576],{"type":14,"value":80},{"type":9,"tag":37,"props":3578,"children":3579},{"class":39,"line":1350},[3580,3584,3588,3592,3596,3600,3604,3608,3612,3616,3620,3629,3633,3637,3641,3645,3650,3654,3658,3662,3666,3670,3675,3679],{"type":9,"tag":37,"props":3581,"children":3582},{"style":44},[3583],{"type":14,"value":1256},{"type":9,"tag":37,"props":3585,"children":3586},{"style":50},[3587],{"type":14,"value":352},{"type":9,"tag":37,"props":3589,"children":3590},{"style":56},[3591],{"type":14,"value":357},{"type":9,"tag":37,"props":3593,"children":3594},{"style":44},[3595],{"type":14,"value":69},{"type":9,"tag":37,"props":3597,"children":3598},{"style":72},[3599],{"type":14,"value":366},{"type":9,"tag":37,"props":3601,"children":3602},{"style":56},[3603],{"type":14,"value":1308},{"type":9,"tag":37,"props":3605,"children":3606},{"style":44},[3607],{"type":14,"value":69},{"type":9,"tag":37,"props":3609,"children":3610},{"style":72},[3611],{"type":14,"value":2221},{"type":9,"tag":37,"props":3613,"children":3614},{"style":56},[3615],{"type":14,"value":371},{"type":9,"tag":37,"props":3617,"children":3618},{"style":44},[3619],{"type":14,"value":69},{"type":9,"tag":37,"props":3621,"children":3622},{"style":72},[3623,3627],{"type":9,"tag":380,"props":3624,"children":3626},{"class":382,"style":3625},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Frefresh-cw.svg?color=%23000)",[],{"type":14,"value":3628},"\"i-lucide-refresh-cw\"",{"type":9,"tag":37,"props":3630,"children":3631},{"style":44},[3632],{"type":14,"value":1266},{"type":9,"tag":37,"props":3634,"children":3635},{"style":56},[3636],{"type":14,"value":1423},{"type":9,"tag":37,"props":3638,"children":3639},{"style":44},[3640],{"type":14,"value":69},{"type":9,"tag":37,"props":3642,"children":3643},{"style":72},[3644],{"type":14,"value":405},{"type":9,"tag":37,"props":3646,"children":3647},{"style":44},[3648],{"type":14,"value":3649},"pending",{"type":9,"tag":37,"props":3651,"children":3652},{"style":72},[3653],{"type":14,"value":405},{"type":9,"tag":37,"props":3655,"children":3656},{"style":44},[3657],{"type":14,"value":391},{"type":9,"tag":37,"props":3659,"children":3660},{"style":56},[3661],{"type":14,"value":396},{"type":9,"tag":37,"props":3663,"children":3664},{"style":44},[3665],{"type":14,"value":69},{"type":9,"tag":37,"props":3667,"children":3668},{"style":72},[3669],{"type":14,"value":405},{"type":9,"tag":37,"props":3671,"children":3672},{"style":44},[3673],{"type":14,"value":3674},"load",{"type":9,"tag":37,"props":3676,"children":3677},{"style":72},[3678],{"type":14,"value":405},{"type":9,"tag":37,"props":3680,"children":3681},{"style":44},[3682],{"type":14,"value":80},{"type":9,"tag":37,"props":3684,"children":3685},{"class":39,"line":1363},[3686],{"type":9,"tag":37,"props":3687,"children":3688},{"style":44},[3689],{"type":14,"value":3690},"        刷新\n",{"type":9,"tag":37,"props":3692,"children":3693},{"class":39,"line":1394},[3694,3698,3702],{"type":9,"tag":37,"props":3695,"children":3696},{"style":44},[3697],{"type":14,"value":1339},{"type":9,"tag":37,"props":3699,"children":3700},{"style":50},[3701],{"type":14,"value":352},{"type":9,"tag":37,"props":3703,"children":3704},{"style":44},[3705],{"type":14,"value":80},{"type":9,"tag":37,"props":3707,"children":3708},{"class":39,"line":1412},[3709,3713,3717],{"type":9,"tag":37,"props":3710,"children":3711},{"style":44},[3712],{"type":14,"value":446},{"type":9,"tag":37,"props":3714,"children":3715},{"style":50},[3716],{"type":14,"value":320},{"type":9,"tag":37,"props":3718,"children":3719},{"style":44},[3720],{"type":14,"value":80},{"type":9,"tag":37,"props":3722,"children":3723},{"class":39,"line":1443},[3724,3728,3732,3736,3740,3744],{"type":9,"tag":37,"props":3725,"children":3726},{"style":44},[3727],{"type":14,"value":347},{"type":9,"tag":37,"props":3729,"children":3730},{"style":50},[3731],{"type":14,"value":10},{"type":9,"tag":37,"props":3733,"children":3734},{"style":56},[3735],{"type":14,"value":325},{"type":9,"tag":37,"props":3737,"children":3738},{"style":44},[3739],{"type":14,"value":69},{"type":9,"tag":37,"props":3741,"children":3742},{"style":72},[3743],{"type":14,"value":479},{"type":9,"tag":37,"props":3745,"children":3746},{"style":44},[3747],{"type":14,"value":80},{"type":9,"tag":37,"props":3749,"children":3750},{"class":39,"line":1465},[3751],{"type":9,"tag":37,"props":3752,"children":3753},{"style":44},[3754],{"type":14,"value":3755},"      $api 默认走 default 端点的 baseURL，$api.use(name) 切换到别名端点后请求改用对应 baseURL。\n",{"type":9,"tag":37,"props":3757,"children":3758},{"class":39,"line":1495},[3759,3763,3767],{"type":9,"tag":37,"props":3760,"children":3761},{"style":44},[3762],{"type":14,"value":446},{"type":9,"tag":37,"props":3764,"children":3765},{"style":50},[3766],{"type":14,"value":10},{"type":9,"tag":37,"props":3768,"children":3769},{"style":44},[3770],{"type":14,"value":80},{"type":9,"tag":37,"props":3772,"children":3773},{"class":39,"line":1504},[3774,3778,3782,3786,3790,3794,3799,3803],{"type":9,"tag":37,"props":3775,"children":3776},{"style":44},[3777],{"type":14,"value":347},{"type":9,"tag":37,"props":3779,"children":3780},{"style":50},[3781],{"type":14,"value":26},{"type":9,"tag":37,"props":3783,"children":3784},{"style":56},[3785],{"type":14,"value":325},{"type":9,"tag":37,"props":3787,"children":3788},{"style":44},[3789],{"type":14,"value":69},{"type":9,"tag":37,"props":3791,"children":3792},{"style":72},[3793],{"type":14,"value":533},{"type":9,"tag":37,"props":3795,"children":3796},{"style":44},[3797],{"type":14,"value":3798},">{{ error ? { error } : data }}\u003C\u002F",{"type":9,"tag":37,"props":3800,"children":3801},{"style":50},[3802],{"type":14,"value":26},{"type":9,"tag":37,"props":3804,"children":3805},{"style":44},[3806],{"type":14,"value":80},{"type":9,"tag":37,"props":3808,"children":3809},{"class":39,"line":1513},[3810,3814,3818],{"type":9,"tag":37,"props":3811,"children":3812},{"style":44},[3813],{"type":14,"value":555},{"type":9,"tag":37,"props":3815,"children":3816},{"style":50},[3817],{"type":14,"value":320},{"type":9,"tag":37,"props":3819,"children":3820},{"style":44},[3821],{"type":14,"value":80},{"type":9,"tag":37,"props":3823,"children":3824},{"class":39,"line":1529},[3825,3829,3833],{"type":9,"tag":37,"props":3826,"children":3827},{"style":44},[3828],{"type":14,"value":273},{"type":9,"tag":37,"props":3830,"children":3831},{"style":50},[3832],{"type":14,"value":302},{"type":9,"tag":37,"props":3834,"children":3835},{"style":44},[3836],{"type":14,"value":80},{"type":9,"tag":581,"props":3838,"children":3839},{},[3840],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":3842},[],{"code":3844,"filePath":3845,"pascalName":3846},"\u003Cscript setup lang=\"ts\">\nconst { $api } = useNuxtApp()\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nasync function call() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use('v2')('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-zap\" :loading=\"pending\" @click=\"call\">\n      $api.use('v2')('\u002Fprofile')\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiEndpointsImperativeExample.vue","ApiEndpointsImperativeExample",{"data":3848,"body":3849,"toc":4514},{"title":22,"description":22},{"type":6,"children":3850},[3851,4510],{"type":9,"tag":26,"props":3852,"children":3854},{"className":28,"code":3853,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst { $api } = useNuxtApp()\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nasync function call() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use('v2')('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-zap\" :loading=\"pending\" @click=\"call\">\n      $api.use('v2')('\u002Fprofile')\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[3855],{"type":9,"tag":33,"props":3856,"children":3857},{"__ignoreMap":22},[3858,3889,3920,3927,3966,3997,4044,4051,4071,4086,4101,4112,4157,4164,4175,4218,4225,4236,4251,4258,4265,4280,4287,4302,4329,4422,4430,4445,4480,4495],{"type":9,"tag":37,"props":3859,"children":3860},{"class":39,"line":40},[3861,3865,3869,3873,3877,3881,3885],{"type":9,"tag":37,"props":3862,"children":3863},{"style":44},[3864],{"type":14,"value":47},{"type":9,"tag":37,"props":3866,"children":3867},{"style":50},[3868],{"type":14,"value":53},{"type":9,"tag":37,"props":3870,"children":3871},{"style":56},[3872],{"type":14,"value":59},{"type":9,"tag":37,"props":3874,"children":3875},{"style":56},[3876],{"type":14,"value":64},{"type":9,"tag":37,"props":3878,"children":3879},{"style":44},[3880],{"type":14,"value":69},{"type":9,"tag":37,"props":3882,"children":3883},{"style":72},[3884],{"type":14,"value":75},{"type":9,"tag":37,"props":3886,"children":3887},{"style":44},[3888],{"type":14,"value":80},{"type":9,"tag":37,"props":3890,"children":3891},{"class":39,"line":83},[3892,3896,3900,3904,3908,3912,3916],{"type":9,"tag":37,"props":3893,"children":3894},{"style":87},[3895],{"type":14,"value":90},{"type":9,"tag":37,"props":3897,"children":3898},{"style":44},[3899],{"type":14,"value":649},{"type":9,"tag":37,"props":3901,"children":3902},{"style":93},[3903],{"type":14,"value":719},{"type":9,"tag":37,"props":3905,"children":3906},{"style":44},[3907],{"type":14,"value":689},{"type":9,"tag":37,"props":3909,"children":3910},{"style":87},[3911],{"type":14,"value":69},{"type":9,"tag":37,"props":3913,"children":3914},{"style":56},[3915],{"type":14,"value":732},{"type":9,"tag":37,"props":3917,"children":3918},{"style":44},[3919],{"type":14,"value":703},{"type":9,"tag":37,"props":3921,"children":3922},{"class":39,"line":134},[3923],{"type":9,"tag":37,"props":3924,"children":3925},{"emptyLinePlaceholder":138},[3926],{"type":14,"value":141},{"type":9,"tag":37,"props":3928,"children":3929},{"class":39,"line":144},[3930,3934,3938,3942,3946,3950,3954,3958,3962],{"type":9,"tag":37,"props":3931,"children":3932},{"style":87},[3933],{"type":14,"value":90},{"type":9,"tag":37,"props":3935,"children":3936},{"style":93},[3937],{"type":14,"value":2015},{"type":9,"tag":37,"props":3939,"children":3940},{"style":87},[3941],{"type":14,"value":101},{"type":9,"tag":37,"props":3943,"children":3944},{"style":56},[3945],{"type":14,"value":790},{"type":9,"tag":37,"props":3947,"children":3948},{"style":44},[3949],{"type":14,"value":47},{"type":9,"tag":37,"props":3951,"children":3952},{"style":93},[3953],{"type":14,"value":2985},{"type":9,"tag":37,"props":3955,"children":3956},{"style":44},[3957],{"type":14,"value":2990},{"type":9,"tag":37,"props":3959,"children":3960},{"style":93},[3961],{"type":14,"value":2995},{"type":9,"tag":37,"props":3963,"children":3964},{"style":44},[3965],{"type":14,"value":803},{"type":9,"tag":37,"props":3967,"children":3968},{"class":39,"line":181},[3969,3973,3977,3981,3985,3989,3993],{"type":9,"tag":37,"props":3970,"children":3971},{"style":87},[3972],{"type":14,"value":90},{"type":9,"tag":37,"props":3974,"children":3975},{"style":93},[3976],{"type":14,"value":3011},{"type":9,"tag":37,"props":3978,"children":3979},{"style":87},[3980],{"type":14,"value":101},{"type":9,"tag":37,"props":3982,"children":3983},{"style":56},[3984],{"type":14,"value":790},{"type":9,"tag":37,"props":3986,"children":3987},{"style":44},[3988],{"type":14,"value":111},{"type":9,"tag":37,"props":3990,"children":3991},{"style":93},[3992],{"type":14,"value":126},{"type":9,"tag":37,"props":3994,"children":3995},{"style":44},[3996],{"type":14,"value":803},{"type":9,"tag":37,"props":3998,"children":3999},{"class":39,"line":195},[4000,4004,4008,4012,4016,4020,4024,4028,4032,4036,4040],{"type":9,"tag":37,"props":4001,"children":4002},{"style":87},[4003],{"type":14,"value":90},{"type":9,"tag":37,"props":4005,"children":4006},{"style":93},[4007],{"type":14,"value":3043},{"type":9,"tag":37,"props":4009,"children":4010},{"style":87},[4011],{"type":14,"value":101},{"type":9,"tag":37,"props":4013,"children":4014},{"style":56},[4015],{"type":14,"value":790},{"type":9,"tag":37,"props":4017,"children":4018},{"style":44},[4019],{"type":14,"value":47},{"type":9,"tag":37,"props":4021,"children":4022},{"style":93},[4023],{"type":14,"value":3060},{"type":9,"tag":37,"props":4025,"children":4026},{"style":87},[4027],{"type":14,"value":2876},{"type":9,"tag":37,"props":4029,"children":4030},{"style":93},[4031],{"type":14,"value":3069},{"type":9,"tag":37,"props":4033,"children":4034},{"style":44},[4035],{"type":14,"value":2990},{"type":9,"tag":37,"props":4037,"children":4038},{"style":93},[4039],{"type":14,"value":2995},{"type":9,"tag":37,"props":4041,"children":4042},{"style":44},[4043],{"type":14,"value":803},{"type":9,"tag":37,"props":4045,"children":4046},{"class":39,"line":208},[4047],{"type":9,"tag":37,"props":4048,"children":4049},{"emptyLinePlaceholder":138},[4050],{"type":14,"value":141},{"type":9,"tag":37,"props":4052,"children":4053},{"class":39,"line":217},[4054,4058,4062,4067],{"type":9,"tag":37,"props":4055,"children":4056},{"style":87},[4057],{"type":14,"value":850},{"type":9,"tag":37,"props":4059,"children":4060},{"style":87},[4061],{"type":14,"value":855},{"type":9,"tag":37,"props":4063,"children":4064},{"style":56},[4065],{"type":14,"value":4066}," call",{"type":9,"tag":37,"props":4068,"children":4069},{"style":44},[4070],{"type":14,"value":865},{"type":9,"tag":37,"props":4072,"children":4073},{"class":39,"line":226},[4074,4078,4082],{"type":9,"tag":37,"props":4075,"children":4076},{"style":44},[4077],{"type":14,"value":3156},{"type":9,"tag":37,"props":4079,"children":4080},{"style":87},[4081],{"type":14,"value":69},{"type":9,"tag":37,"props":4083,"children":4084},{"style":93},[4085],{"type":14,"value":882},{"type":9,"tag":37,"props":4087,"children":4088},{"class":39,"line":235},[4089,4093,4097],{"type":9,"tag":37,"props":4090,"children":4091},{"style":44},[4092],{"type":14,"value":3172},{"type":9,"tag":37,"props":4094,"children":4095},{"style":87},[4096],{"type":14,"value":69},{"type":9,"tag":37,"props":4098,"children":4099},{"style":93},[4100],{"type":14,"value":2114},{"type":9,"tag":37,"props":4102,"children":4103},{"class":39,"line":244},[4104,4108],{"type":9,"tag":37,"props":4105,"children":4106},{"style":87},[4107],{"type":14,"value":890},{"type":9,"tag":37,"props":4109,"children":4110},{"style":44},[4111],{"type":14,"value":178},{"type":9,"tag":37,"props":4113,"children":4114},{"class":39,"line":258},[4115,4119,4123,4127,4131,4135,4139,4144,4149,4153],{"type":9,"tag":37,"props":4116,"children":4117},{"style":44},[4118],{"type":14,"value":3199},{"type":9,"tag":37,"props":4120,"children":4121},{"style":87},[4122],{"type":14,"value":69},{"type":9,"tag":37,"props":4124,"children":4125},{"style":87},[4126],{"type":14,"value":3208},{"type":9,"tag":37,"props":4128,"children":4129},{"style":44},[4130],{"type":14,"value":3213},{"type":9,"tag":37,"props":4132,"children":4133},{"style":56},[4134],{"type":14,"value":3218},{"type":9,"tag":37,"props":4136,"children":4137},{"style":44},[4138],{"type":14,"value":111},{"type":9,"tag":37,"props":4140,"children":4141},{"style":72},[4142],{"type":14,"value":4143},"'v2'",{"type":9,"tag":37,"props":4145,"children":4146},{"style":44},[4147],{"type":14,"value":4148},")(",{"type":9,"tag":37,"props":4150,"children":4151},{"style":72},[4152],{"type":14,"value":3228},{"type":9,"tag":37,"props":4154,"children":4155},{"style":44},[4156],{"type":14,"value":803},{"type":9,"tag":37,"props":4158,"children":4159},{"class":39,"line":267},[4160],{"type":9,"tag":37,"props":4161,"children":4162},{"style":44},[4163],{"type":14,"value":241},{"type":9,"tag":37,"props":4165,"children":4166},{"class":39,"line":284},[4167,4171],{"type":9,"tag":37,"props":4168,"children":4169},{"style":87},[4170],{"type":14,"value":3247},{"type":9,"tag":37,"props":4172,"children":4173},{"style":44},[4174],{"type":14,"value":3252},{"type":9,"tag":37,"props":4176,"children":4177},{"class":39,"line":292},[4178,4182,4186,4190,4194,4198,4202,4206,4210,4214],{"type":9,"tag":37,"props":4179,"children":4180},{"style":44},[4181],{"type":14,"value":3260},{"type":9,"tag":37,"props":4183,"children":4184},{"style":87},[4185],{"type":14,"value":69},{"type":9,"tag":37,"props":4187,"children":4188},{"style":44},[4189],{"type":14,"value":3269},{"type":9,"tag":37,"props":4191,"children":4192},{"style":87},[4193],{"type":14,"value":3274},{"type":9,"tag":37,"props":4195,"children":4196},{"style":56},[4197],{"type":14,"value":3279},{"type":9,"tag":37,"props":4199,"children":4200},{"style":87},[4201],{"type":14,"value":3284},{"type":9,"tag":37,"props":4203,"children":4204},{"style":44},[4205],{"type":14,"value":3289},{"type":9,"tag":37,"props":4207,"children":4208},{"style":87},[4209],{"type":14,"value":2866},{"type":9,"tag":37,"props":4211,"children":4212},{"style":56},[4213],{"type":14,"value":3298},{"type":9,"tag":37,"props":4215,"children":4216},{"style":44},[4217],{"type":14,"value":3303},{"type":9,"tag":37,"props":4219,"children":4220},{"class":39,"line":309},[4221],{"type":9,"tag":37,"props":4222,"children":4223},{"style":44},[4224],{"type":14,"value":241},{"type":9,"tag":37,"props":4226,"children":4227},{"class":39,"line":341},[4228,4232],{"type":9,"tag":37,"props":4229,"children":4230},{"style":87},[4231],{"type":14,"value":961},{"type":9,"tag":37,"props":4233,"children":4234},{"style":44},[4235],{"type":14,"value":178},{"type":9,"tag":37,"props":4237,"children":4238},{"class":39,"line":431},[4239,4243,4247],{"type":9,"tag":37,"props":4240,"children":4241},{"style":44},[4242],{"type":14,"value":3329},{"type":9,"tag":37,"props":4244,"children":4245},{"style":87},[4246],{"type":14,"value":69},{"type":9,"tag":37,"props":4248,"children":4249},{"style":93},[4250],{"type":14,"value":982},{"type":9,"tag":37,"props":4252,"children":4253},{"class":39,"line":440},[4254],{"type":9,"tag":37,"props":4255,"children":4256},{"style":44},[4257],{"type":14,"value":241},{"type":9,"tag":37,"props":4259,"children":4260},{"class":39,"line":457},[4261],{"type":9,"tag":37,"props":4262,"children":4263},{"style":44},[4264],{"type":14,"value":997},{"type":9,"tag":37,"props":4266,"children":4267},{"class":39,"line":486},[4268,4272,4276],{"type":9,"tag":37,"props":4269,"children":4270},{"style":44},[4271],{"type":14,"value":273},{"type":9,"tag":37,"props":4273,"children":4274},{"style":50},[4275],{"type":14,"value":53},{"type":9,"tag":37,"props":4277,"children":4278},{"style":44},[4279],{"type":14,"value":80},{"type":9,"tag":37,"props":4281,"children":4282},{"class":39,"line":495},[4283],{"type":9,"tag":37,"props":4284,"children":4285},{"emptyLinePlaceholder":138},[4286],{"type":14,"value":141},{"type":9,"tag":37,"props":4288,"children":4289},{"class":39,"line":511},[4290,4294,4298],{"type":9,"tag":37,"props":4291,"children":4292},{"style":44},[4293],{"type":14,"value":47},{"type":9,"tag":37,"props":4295,"children":4296},{"style":50},[4297],{"type":14,"value":302},{"type":9,"tag":37,"props":4299,"children":4300},{"style":44},[4301],{"type":14,"value":80},{"type":9,"tag":37,"props":4303,"children":4304},{"class":39,"line":549},[4305,4309,4313,4317,4321,4325],{"type":9,"tag":37,"props":4306,"children":4307},{"style":44},[4308],{"type":14,"value":315},{"type":9,"tag":37,"props":4310,"children":4311},{"style":50},[4312],{"type":14,"value":320},{"type":9,"tag":37,"props":4314,"children":4315},{"style":56},[4316],{"type":14,"value":325},{"type":9,"tag":37,"props":4318,"children":4319},{"style":44},[4320],{"type":14,"value":69},{"type":9,"tag":37,"props":4322,"children":4323},{"style":72},[4324],{"type":14,"value":334},{"type":9,"tag":37,"props":4326,"children":4327},{"style":44},[4328],{"type":14,"value":80},{"type":9,"tag":37,"props":4330,"children":4331},{"class":39,"line":566},[4332,4336,4340,4344,4348,4352,4356,4360,4369,4373,4377,4381,4385,4389,4393,4397,4401,4405,4409,4414,4418],{"type":9,"tag":37,"props":4333,"children":4334},{"style":44},[4335],{"type":14,"value":347},{"type":9,"tag":37,"props":4337,"children":4338},{"style":50},[4339],{"type":14,"value":352},{"type":9,"tag":37,"props":4341,"children":4342},{"style":56},[4343],{"type":14,"value":357},{"type":9,"tag":37,"props":4345,"children":4346},{"style":44},[4347],{"type":14,"value":69},{"type":9,"tag":37,"props":4349,"children":4350},{"style":72},[4351],{"type":14,"value":366},{"type":9,"tag":37,"props":4353,"children":4354},{"style":56},[4355],{"type":14,"value":371},{"type":9,"tag":37,"props":4357,"children":4358},{"style":44},[4359],{"type":14,"value":69},{"type":9,"tag":37,"props":4361,"children":4362},{"style":72},[4363,4367],{"type":9,"tag":380,"props":4364,"children":4366},{"class":382,"style":4365},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fzap.svg?color=%23000)",[],{"type":14,"value":4368},"\"i-lucide-zap\"",{"type":9,"tag":37,"props":4370,"children":4371},{"style":44},[4372],{"type":14,"value":1266},{"type":9,"tag":37,"props":4374,"children":4375},{"style":56},[4376],{"type":14,"value":1423},{"type":9,"tag":37,"props":4378,"children":4379},{"style":44},[4380],{"type":14,"value":69},{"type":9,"tag":37,"props":4382,"children":4383},{"style":72},[4384],{"type":14,"value":405},{"type":9,"tag":37,"props":4386,"children":4387},{"style":44},[4388],{"type":14,"value":3649},{"type":9,"tag":37,"props":4390,"children":4391},{"style":72},[4392],{"type":14,"value":405},{"type":9,"tag":37,"props":4394,"children":4395},{"style":44},[4396],{"type":14,"value":391},{"type":9,"tag":37,"props":4398,"children":4399},{"style":56},[4400],{"type":14,"value":396},{"type":9,"tag":37,"props":4402,"children":4403},{"style":44},[4404],{"type":14,"value":69},{"type":9,"tag":37,"props":4406,"children":4407},{"style":72},[4408],{"type":14,"value":405},{"type":9,"tag":37,"props":4410,"children":4411},{"style":44},[4412],{"type":14,"value":4413},"call",{"type":9,"tag":37,"props":4415,"children":4416},{"style":72},[4417],{"type":14,"value":405},{"type":9,"tag":37,"props":4419,"children":4420},{"style":44},[4421],{"type":14,"value":80},{"type":9,"tag":37,"props":4423,"children":4424},{"class":39,"line":1108},[4425],{"type":9,"tag":37,"props":4426,"children":4427},{"style":44},[4428],{"type":14,"value":4429},"      $api.use('v2')('\u002Fprofile')\n",{"type":9,"tag":37,"props":4431,"children":4432},{"class":39,"line":1120},[4433,4437,4441],{"type":9,"tag":37,"props":4434,"children":4435},{"style":44},[4436],{"type":14,"value":446},{"type":9,"tag":37,"props":4438,"children":4439},{"style":50},[4440],{"type":14,"value":352},{"type":9,"tag":37,"props":4442,"children":4443},{"style":44},[4444],{"type":14,"value":80},{"type":9,"tag":37,"props":4446,"children":4447},{"class":39,"line":1137},[4448,4452,4456,4460,4464,4468,4472,4476],{"type":9,"tag":37,"props":4449,"children":4450},{"style":44},[4451],{"type":14,"value":347},{"type":9,"tag":37,"props":4453,"children":4454},{"style":50},[4455],{"type":14,"value":26},{"type":9,"tag":37,"props":4457,"children":4458},{"style":56},[4459],{"type":14,"value":325},{"type":9,"tag":37,"props":4461,"children":4462},{"style":44},[4463],{"type":14,"value":69},{"type":9,"tag":37,"props":4465,"children":4466},{"style":72},[4467],{"type":14,"value":533},{"type":9,"tag":37,"props":4469,"children":4470},{"style":44},[4471],{"type":14,"value":3798},{"type":9,"tag":37,"props":4473,"children":4474},{"style":50},[4475],{"type":14,"value":26},{"type":9,"tag":37,"props":4477,"children":4478},{"style":44},[4479],{"type":14,"value":80},{"type":9,"tag":37,"props":4481,"children":4482},{"class":39,"line":1145},[4483,4487,4491],{"type":9,"tag":37,"props":4484,"children":4485},{"style":44},[4486],{"type":14,"value":555},{"type":9,"tag":37,"props":4488,"children":4489},{"style":50},[4490],{"type":14,"value":320},{"type":9,"tag":37,"props":4492,"children":4493},{"style":44},[4494],{"type":14,"value":80},{"type":9,"tag":37,"props":4496,"children":4497},{"class":39,"line":1153},[4498,4502,4506],{"type":9,"tag":37,"props":4499,"children":4500},{"style":44},[4501],{"type":14,"value":273},{"type":9,"tag":37,"props":4503,"children":4504},{"style":50},[4505],{"type":14,"value":302},{"type":9,"tag":37,"props":4507,"children":4508},{"style":44},[4509],{"type":14,"value":80},{"type":9,"tag":581,"props":4511,"children":4512},{},[4513],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":4515},[],{"code":4517,"filePath":4518,"pascalName":4519},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      在 \u003Ccode>nuxt.config\u003C\u002Fcode> 的 \u003Ccode>movk.api.endpoints\u003C\u002Fcode> 注册新别名后即可被 \u003Ccode>endpoint\u003C\u002Fcode> 选项引用。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ { defaultEndpoint: publicConfig.defaultEndpoint, endpoints: publicConfig.endpoints } }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiEndpointsRuntimeExample.vue","ApiEndpointsRuntimeExample",{"data":4521,"body":4522,"toc":4823},{"title":22,"description":22},{"type":6,"children":4523},[4524,4819],{"type":9,"tag":26,"props":4525,"children":4527},{"className":28,"code":4526,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      在 \u003Ccode>nuxt.config\u003C\u002Fcode> 的 \u003Ccode>movk.api.endpoints\u003C\u002Fcode> 注册新别名后即可被 \u003Ccode>endpoint\u003C\u002Fcode> 选项引用。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ { defaultEndpoint: publicConfig.defaultEndpoint, endpoints: publicConfig.endpoints } }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[4528],{"type":9,"tag":33,"props":4529,"children":4530},{"__ignoreMap":22},[4531,4562,4585,4600,4607,4622,4649,4676,4738,4753,4789,4804],{"type":9,"tag":37,"props":4532,"children":4533},{"class":39,"line":40},[4534,4538,4542,4546,4550,4554,4558],{"type":9,"tag":37,"props":4535,"children":4536},{"style":44},[4537],{"type":14,"value":47},{"type":9,"tag":37,"props":4539,"children":4540},{"style":50},[4541],{"type":14,"value":53},{"type":9,"tag":37,"props":4543,"children":4544},{"style":56},[4545],{"type":14,"value":59},{"type":9,"tag":37,"props":4547,"children":4548},{"style":56},[4549],{"type":14,"value":64},{"type":9,"tag":37,"props":4551,"children":4552},{"style":44},[4553],{"type":14,"value":69},{"type":9,"tag":37,"props":4555,"children":4556},{"style":72},[4557],{"type":14,"value":75},{"type":9,"tag":37,"props":4559,"children":4560},{"style":44},[4561],{"type":14,"value":80},{"type":9,"tag":37,"props":4563,"children":4564},{"class":39,"line":83},[4565,4569,4573,4577,4581],{"type":9,"tag":37,"props":4566,"children":4567},{"style":87},[4568],{"type":14,"value":90},{"type":9,"tag":37,"props":4570,"children":4571},{"style":93},[4572],{"type":14,"value":748},{"type":9,"tag":37,"props":4574,"children":4575},{"style":87},[4576],{"type":14,"value":101},{"type":9,"tag":37,"props":4578,"children":4579},{"style":56},[4580],{"type":14,"value":757},{"type":9,"tag":37,"props":4582,"children":4583},{"style":44},[4584],{"type":14,"value":762},{"type":9,"tag":37,"props":4586,"children":4587},{"class":39,"line":134},[4588,4592,4596],{"type":9,"tag":37,"props":4589,"children":4590},{"style":44},[4591],{"type":14,"value":273},{"type":9,"tag":37,"props":4593,"children":4594},{"style":50},[4595],{"type":14,"value":53},{"type":9,"tag":37,"props":4597,"children":4598},{"style":44},[4599],{"type":14,"value":80},{"type":9,"tag":37,"props":4601,"children":4602},{"class":39,"line":144},[4603],{"type":9,"tag":37,"props":4604,"children":4605},{"emptyLinePlaceholder":138},[4606],{"type":14,"value":141},{"type":9,"tag":37,"props":4608,"children":4609},{"class":39,"line":181},[4610,4614,4618],{"type":9,"tag":37,"props":4611,"children":4612},{"style":44},[4613],{"type":14,"value":47},{"type":9,"tag":37,"props":4615,"children":4616},{"style":50},[4617],{"type":14,"value":302},{"type":9,"tag":37,"props":4619,"children":4620},{"style":44},[4621],{"type":14,"value":80},{"type":9,"tag":37,"props":4623,"children":4624},{"class":39,"line":195},[4625,4629,4633,4637,4641,4645],{"type":9,"tag":37,"props":4626,"children":4627},{"style":44},[4628],{"type":14,"value":315},{"type":9,"tag":37,"props":4630,"children":4631},{"style":50},[4632],{"type":14,"value":320},{"type":9,"tag":37,"props":4634,"children":4635},{"style":56},[4636],{"type":14,"value":325},{"type":9,"tag":37,"props":4638,"children":4639},{"style":44},[4640],{"type":14,"value":69},{"type":9,"tag":37,"props":4642,"children":4643},{"style":72},[4644],{"type":14,"value":334},{"type":9,"tag":37,"props":4646,"children":4647},{"style":44},[4648],{"type":14,"value":80},{"type":9,"tag":37,"props":4650,"children":4651},{"class":39,"line":208},[4652,4656,4660,4664,4668,4672],{"type":9,"tag":37,"props":4653,"children":4654},{"style":44},[4655],{"type":14,"value":347},{"type":9,"tag":37,"props":4657,"children":4658},{"style":50},[4659],{"type":14,"value":10},{"type":9,"tag":37,"props":4661,"children":4662},{"style":56},[4663],{"type":14,"value":325},{"type":9,"tag":37,"props":4665,"children":4666},{"style":44},[4667],{"type":14,"value":69},{"type":9,"tag":37,"props":4669,"children":4670},{"style":72},[4671],{"type":14,"value":2626},{"type":9,"tag":37,"props":4673,"children":4674},{"style":44},[4675],{"type":14,"value":80},{"type":9,"tag":37,"props":4677,"children":4678},{"class":39,"line":217},[4679,4684,4688,4693,4697,4702,4706,4711,4715,4720,4724,4729,4733],{"type":9,"tag":37,"props":4680,"children":4681},{"style":44},[4682],{"type":14,"value":4683},"      在 \u003C",{"type":9,"tag":37,"props":4685,"children":4686},{"style":50},[4687],{"type":14,"value":33},{"type":9,"tag":37,"props":4689,"children":4690},{"style":44},[4691],{"type":14,"value":4692},">nuxt.config\u003C\u002F",{"type":9,"tag":37,"props":4694,"children":4695},{"style":50},[4696],{"type":14,"value":33},{"type":9,"tag":37,"props":4698,"children":4699},{"style":44},[4700],{"type":14,"value":4701},"> 的 \u003C",{"type":9,"tag":37,"props":4703,"children":4704},{"style":50},[4705],{"type":14,"value":33},{"type":9,"tag":37,"props":4707,"children":4708},{"style":44},[4709],{"type":14,"value":4710},">movk.api.endpoints\u003C\u002F",{"type":9,"tag":37,"props":4712,"children":4713},{"style":50},[4714],{"type":14,"value":33},{"type":9,"tag":37,"props":4716,"children":4717},{"style":44},[4718],{"type":14,"value":4719},"> 注册新别名后即可被 \u003C",{"type":9,"tag":37,"props":4721,"children":4722},{"style":50},[4723],{"type":14,"value":33},{"type":9,"tag":37,"props":4725,"children":4726},{"style":44},[4727],{"type":14,"value":4728},">endpoint\u003C\u002F",{"type":9,"tag":37,"props":4730,"children":4731},{"style":50},[4732],{"type":14,"value":33},{"type":9,"tag":37,"props":4734,"children":4735},{"style":44},[4736],{"type":14,"value":4737},"> 选项引用。\n",{"type":9,"tag":37,"props":4739,"children":4740},{"class":39,"line":226},[4741,4745,4749],{"type":9,"tag":37,"props":4742,"children":4743},{"style":44},[4744],{"type":14,"value":446},{"type":9,"tag":37,"props":4746,"children":4747},{"style":50},[4748],{"type":14,"value":10},{"type":9,"tag":37,"props":4750,"children":4751},{"style":44},[4752],{"type":14,"value":80},{"type":9,"tag":37,"props":4754,"children":4755},{"class":39,"line":235},[4756,4760,4764,4768,4772,4776,4781,4785],{"type":9,"tag":37,"props":4757,"children":4758},{"style":44},[4759],{"type":14,"value":347},{"type":9,"tag":37,"props":4761,"children":4762},{"style":50},[4763],{"type":14,"value":26},{"type":9,"tag":37,"props":4765,"children":4766},{"style":56},[4767],{"type":14,"value":325},{"type":9,"tag":37,"props":4769,"children":4770},{"style":44},[4771],{"type":14,"value":69},{"type":9,"tag":37,"props":4773,"children":4774},{"style":72},[4775],{"type":14,"value":533},{"type":9,"tag":37,"props":4777,"children":4778},{"style":44},[4779],{"type":14,"value":4780},">{{ { defaultEndpoint: publicConfig.defaultEndpoint, endpoints: publicConfig.endpoints } }}\u003C\u002F",{"type":9,"tag":37,"props":4782,"children":4783},{"style":50},[4784],{"type":14,"value":26},{"type":9,"tag":37,"props":4786,"children":4787},{"style":44},[4788],{"type":14,"value":80},{"type":9,"tag":37,"props":4790,"children":4791},{"class":39,"line":244},[4792,4796,4800],{"type":9,"tag":37,"props":4793,"children":4794},{"style":44},[4795],{"type":14,"value":555},{"type":9,"tag":37,"props":4797,"children":4798},{"style":50},[4799],{"type":14,"value":320},{"type":9,"tag":37,"props":4801,"children":4802},{"style":44},[4803],{"type":14,"value":80},{"type":9,"tag":37,"props":4805,"children":4806},{"class":39,"line":258},[4807,4811,4815],{"type":9,"tag":37,"props":4808,"children":4809},{"style":44},[4810],{"type":14,"value":273},{"type":9,"tag":37,"props":4812,"children":4813},{"style":50},[4814],{"type":14,"value":302},{"type":9,"tag":37,"props":4816,"children":4817},{"style":44},[4818],{"type":14,"value":80},{"type":9,"tag":581,"props":4820,"children":4821},{},[4822],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":4824},[],{"code":4826,"filePath":4827,"pascalName":4828},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'silent' | 'message' | 'error-only' | 'custom'\n}>()\n\nconst fail = ref(false)\nconst target = () => `\u002Fprofile${fail.value ? '?fail=1' : ''}`\n\nconst fetchers = {\n  'default': useApiFetch(target, { key: 'toast-default', immediate: false }),\n  'silent': useApiFetch(target, { key: 'toast-silent', immediate: false, toast: false }),\n  'message': useApiFetch(target, {\n    key: 'toast-message',\n    immediate: false,\n    toast: { successMessage: '加载成功 ✓', errorMessage: '加载失败 ✗' }\n  }),\n  'error-only': useApiFetch(target, { key: 'toast-error-only', immediate: false, toast: { success: false } }),\n  'custom': useApiFetch(target, {\n    key: 'toast-custom',\n    immediate: false,\n    toast: {\n      success: { color: 'secondary', icon: 'i-lucide-sparkles' },\n      error: { color: 'warning', icon: 'i-lucide-triangle-alert' }\n    }\n  })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '未传 toast 时继承全局配置，成功 \u002F 错误均按默认样式弹出。',\n  'silent': 'toast: false 关闭所有单次提示。',\n  'message': 'successMessage \u002F errorMessage 替换默认文案。',\n  'error-only': '{ success: false } 关闭成功提示但保留错误提示。',\n  'custom': '为成功 \u002F 错误分别覆盖 color、icon 等 ToastProps。'\n}\n\nconst display = computed(() => active.value.error.value\n  ? { error: active.value.error.value.message }\n  : active.value.data.value)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-3 flex-wrap\">\n      \u003CUSwitch v-model=\"fail\" label=\"注入错误（验证错误分支）\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"active.execute()\">\n        触发请求\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiToastExample.vue","ApiToastExample",{"data":4830,"body":4831,"toc":6105},{"title":22,"description":22},{"type":6,"children":4832},[4833,6101],{"type":9,"tag":26,"props":4834,"children":4836},{"className":28,"code":4835,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'silent' | 'message' | 'error-only' | 'custom'\n}>()\n\nconst fail = ref(false)\nconst target = () => `\u002Fprofile${fail.value ? '?fail=1' : ''}`\n\nconst fetchers = {\n  'default': useApiFetch(target, { key: 'toast-default', immediate: false }),\n  'silent': useApiFetch(target, { key: 'toast-silent', immediate: false, toast: false }),\n  'message': useApiFetch(target, {\n    key: 'toast-message',\n    immediate: false,\n    toast: { successMessage: '加载成功 ✓', errorMessage: '加载失败 ✗' }\n  }),\n  'error-only': useApiFetch(target, { key: 'toast-error-only', immediate: false, toast: { success: false } }),\n  'custom': useApiFetch(target, {\n    key: 'toast-custom',\n    immediate: false,\n    toast: {\n      success: { color: 'secondary', icon: 'i-lucide-sparkles' },\n      error: { color: 'warning', icon: 'i-lucide-triangle-alert' }\n    }\n  })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '未传 toast 时继承全局配置，成功 \u002F 错误均按默认样式弹出。',\n  'silent': 'toast: false 关闭所有单次提示。',\n  'message': 'successMessage \u002F errorMessage 替换默认文案。',\n  'error-only': '{ success: false } 关闭成功提示但保留错误提示。',\n  'custom': '为成功 \u002F 错误分别覆盖 color、icon 等 ToastProps。'\n}\n\nconst display = computed(() => active.value.error.value\n  ? { error: active.value.error.value.message }\n  : active.value.data.value)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-3 flex-wrap\">\n      \u003CUSwitch v-model=\"fail\" label=\"注入错误（验证错误分支）\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"active.execute()\">\n        触发请求\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[4837],{"type":9,"tag":33,"props":4838,"children":4839},{"__ignoreMap":22},[4840,4871,4894,4946,4953,4960,4992,5055,5062,5082,5123,5169,5190,5208,5224,5252,5260,5307,5327,5343,5358,5366,5398,5428,5435,5443,5450,5457,5490,5497,5549,5569,5589,5609,5629,5645,5652,5659,5691,5704,5717,5732,5739,5754,5781,5809,5861,5948,5956,5971,5986,6013,6021,6036,6071,6086],{"type":9,"tag":37,"props":4841,"children":4842},{"class":39,"line":40},[4843,4847,4851,4855,4859,4863,4867],{"type":9,"tag":37,"props":4844,"children":4845},{"style":44},[4846],{"type":14,"value":47},{"type":9,"tag":37,"props":4848,"children":4849},{"style":50},[4850],{"type":14,"value":53},{"type":9,"tag":37,"props":4852,"children":4853},{"style":56},[4854],{"type":14,"value":59},{"type":9,"tag":37,"props":4856,"children":4857},{"style":56},[4858],{"type":14,"value":64},{"type":9,"tag":37,"props":4860,"children":4861},{"style":44},[4862],{"type":14,"value":69},{"type":9,"tag":37,"props":4864,"children":4865},{"style":72},[4866],{"type":14,"value":75},{"type":9,"tag":37,"props":4868,"children":4869},{"style":44},[4870],{"type":14,"value":80},{"type":9,"tag":37,"props":4872,"children":4873},{"class":39,"line":83},[4874,4878,4882,4886,4890],{"type":9,"tag":37,"props":4875,"children":4876},{"style":87},[4877],{"type":14,"value":90},{"type":9,"tag":37,"props":4879,"children":4880},{"style":93},[4881],{"type":14,"value":2839},{"type":9,"tag":37,"props":4883,"children":4884},{"style":87},[4885],{"type":14,"value":101},{"type":9,"tag":37,"props":4887,"children":4888},{"style":56},[4889],{"type":14,"value":2848},{"type":9,"tag":37,"props":4891,"children":4892},{"style":44},[4893],{"type":14,"value":2853},{"type":9,"tag":37,"props":4895,"children":4896},{"class":39,"line":134},[4897,4902,4906,4910,4914,4919,4923,4928,4932,4937,4941],{"type":9,"tag":37,"props":4898,"children":4899},{"style":671},[4900],{"type":14,"value":4901},"  mode",{"type":9,"tag":37,"props":4903,"children":4904},{"style":87},[4905],{"type":14,"value":2866},{"type":9,"tag":37,"props":4907,"children":4908},{"style":72},[4909],{"type":14,"value":2871},{"type":9,"tag":37,"props":4911,"children":4912},{"style":87},[4913],{"type":14,"value":2876},{"type":9,"tag":37,"props":4915,"children":4916},{"style":72},[4917],{"type":14,"value":4918}," 'silent'",{"type":9,"tag":37,"props":4920,"children":4921},{"style":87},[4922],{"type":14,"value":2876},{"type":9,"tag":37,"props":4924,"children":4925},{"style":72},[4926],{"type":14,"value":4927}," 'message'",{"type":9,"tag":37,"props":4929,"children":4930},{"style":87},[4931],{"type":14,"value":2876},{"type":9,"tag":37,"props":4933,"children":4934},{"style":72},[4935],{"type":14,"value":4936}," 'error-only'",{"type":9,"tag":37,"props":4938,"children":4939},{"style":87},[4940],{"type":14,"value":2876},{"type":9,"tag":37,"props":4942,"children":4943},{"style":72},[4944],{"type":14,"value":4945}," 'custom'\n",{"type":9,"tag":37,"props":4947,"children":4948},{"class":39,"line":144},[4949],{"type":9,"tag":37,"props":4950,"children":4951},{"style":44},[4952],{"type":14,"value":2889},{"type":9,"tag":37,"props":4954,"children":4955},{"class":39,"line":181},[4956],{"type":9,"tag":37,"props":4957,"children":4958},{"emptyLinePlaceholder":138},[4959],{"type":14,"value":141},{"type":9,"tag":37,"props":4961,"children":4962},{"class":39,"line":195},[4963,4967,4972,4976,4980,4984,4988],{"type":9,"tag":37,"props":4964,"children":4965},{"style":87},[4966],{"type":14,"value":90},{"type":9,"tag":37,"props":4968,"children":4969},{"style":93},[4970],{"type":14,"value":4971}," fail",{"type":9,"tag":37,"props":4973,"children":4974},{"style":87},[4975],{"type":14,"value":101},{"type":9,"tag":37,"props":4977,"children":4978},{"style":56},[4979],{"type":14,"value":790},{"type":9,"tag":37,"props":4981,"children":4982},{"style":44},[4983],{"type":14,"value":111},{"type":9,"tag":37,"props":4985,"children":4986},{"style":93},[4987],{"type":14,"value":126},{"type":9,"tag":37,"props":4989,"children":4990},{"style":44},[4991],{"type":14,"value":803},{"type":9,"tag":37,"props":4993,"children":4994},{"class":39,"line":208},[4995,4999,5004,5008,5013,5017,5022,5027,5032,5037,5041,5046,5050],{"type":9,"tag":37,"props":4996,"children":4997},{"style":87},[4998],{"type":14,"value":90},{"type":9,"tag":37,"props":5000,"children":5001},{"style":56},[5002],{"type":14,"value":5003}," target",{"type":9,"tag":37,"props":5005,"children":5006},{"style":87},[5007],{"type":14,"value":101},{"type":9,"tag":37,"props":5009,"children":5010},{"style":44},[5011],{"type":14,"value":5012}," () ",{"type":9,"tag":37,"props":5014,"children":5015},{"style":87},[5016],{"type":14,"value":173},{"type":9,"tag":37,"props":5018,"children":5019},{"style":72},[5020],{"type":14,"value":5021}," `\u002Fprofile${",{"type":9,"tag":37,"props":5023,"children":5024},{"style":44},[5025],{"type":14,"value":5026},"fail",{"type":9,"tag":37,"props":5028,"children":5029},{"style":72},[5030],{"type":14,"value":5031},".",{"type":9,"tag":37,"props":5033,"children":5034},{"style":44},[5035],{"type":14,"value":5036},"value",{"type":9,"tag":37,"props":5038,"children":5039},{"style":87},[5040],{"type":14,"value":3284},{"type":9,"tag":37,"props":5042,"children":5043},{"style":72},[5044],{"type":14,"value":5045}," '?fail=1'",{"type":9,"tag":37,"props":5047,"children":5048},{"style":87},[5049],{"type":14,"value":1266},{"type":9,"tag":37,"props":5051,"children":5052},{"style":72},[5053],{"type":14,"value":5054}," ''}`\n",{"type":9,"tag":37,"props":5056,"children":5057},{"class":39,"line":217},[5058],{"type":9,"tag":37,"props":5059,"children":5060},{"emptyLinePlaceholder":138},[5061],{"type":14,"value":141},{"type":9,"tag":37,"props":5063,"children":5064},{"class":39,"line":226},[5065,5069,5074,5078],{"type":9,"tag":37,"props":5066,"children":5067},{"style":87},[5068],{"type":14,"value":90},{"type":9,"tag":37,"props":5070,"children":5071},{"style":93},[5072],{"type":14,"value":5073}," fetchers",{"type":9,"tag":37,"props":5075,"children":5076},{"style":87},[5077],{"type":14,"value":101},{"type":9,"tag":37,"props":5079,"children":5080},{"style":44},[5081],{"type":14,"value":178},{"type":9,"tag":37,"props":5083,"children":5084},{"class":39,"line":235},[5085,5090,5094,5099,5104,5109,5114,5118],{"type":9,"tag":37,"props":5086,"children":5087},{"style":72},[5088],{"type":14,"value":5089},"  'default'",{"type":9,"tag":37,"props":5091,"children":5092},{"style":44},[5093],{"type":14,"value":679},{"type":9,"tag":37,"props":5095,"children":5096},{"style":56},[5097],{"type":14,"value":5098},"useApiFetch",{"type":9,"tag":37,"props":5100,"children":5101},{"style":44},[5102],{"type":14,"value":5103},"(target, { key: ",{"type":9,"tag":37,"props":5105,"children":5106},{"style":72},[5107],{"type":14,"value":5108},"'toast-default'",{"type":9,"tag":37,"props":5110,"children":5111},{"style":44},[5112],{"type":14,"value":5113},", immediate: ",{"type":9,"tag":37,"props":5115,"children":5116},{"style":93},[5117],{"type":14,"value":126},{"type":9,"tag":37,"props":5119,"children":5120},{"style":44},[5121],{"type":14,"value":5122}," }),\n",{"type":9,"tag":37,"props":5124,"children":5125},{"class":39,"line":244},[5126,5131,5135,5139,5143,5148,5152,5156,5161,5165],{"type":9,"tag":37,"props":5127,"children":5128},{"style":72},[5129],{"type":14,"value":5130},"  'silent'",{"type":9,"tag":37,"props":5132,"children":5133},{"style":44},[5134],{"type":14,"value":679},{"type":9,"tag":37,"props":5136,"children":5137},{"style":56},[5138],{"type":14,"value":5098},{"type":9,"tag":37,"props":5140,"children":5141},{"style":44},[5142],{"type":14,"value":5103},{"type":9,"tag":37,"props":5144,"children":5145},{"style":72},[5146],{"type":14,"value":5147},"'toast-silent'",{"type":9,"tag":37,"props":5149,"children":5150},{"style":44},[5151],{"type":14,"value":5113},{"type":9,"tag":37,"props":5153,"children":5154},{"style":93},[5155],{"type":14,"value":126},{"type":9,"tag":37,"props":5157,"children":5158},{"style":44},[5159],{"type":14,"value":5160},", toast: ",{"type":9,"tag":37,"props":5162,"children":5163},{"style":93},[5164],{"type":14,"value":126},{"type":9,"tag":37,"props":5166,"children":5167},{"style":44},[5168],{"type":14,"value":5122},{"type":9,"tag":37,"props":5170,"children":5171},{"class":39,"line":258},[5172,5177,5181,5185],{"type":9,"tag":37,"props":5173,"children":5174},{"style":72},[5175],{"type":14,"value":5176},"  'message'",{"type":9,"tag":37,"props":5178,"children":5179},{"style":44},[5180],{"type":14,"value":679},{"type":9,"tag":37,"props":5182,"children":5183},{"style":56},[5184],{"type":14,"value":5098},{"type":9,"tag":37,"props":5186,"children":5187},{"style":44},[5188],{"type":14,"value":5189},"(target, {\n",{"type":9,"tag":37,"props":5191,"children":5192},{"class":39,"line":267},[5193,5198,5203],{"type":9,"tag":37,"props":5194,"children":5195},{"style":44},[5196],{"type":14,"value":5197},"    key: ",{"type":9,"tag":37,"props":5199,"children":5200},{"style":72},[5201],{"type":14,"value":5202},"'toast-message'",{"type":9,"tag":37,"props":5204,"children":5205},{"style":44},[5206],{"type":14,"value":5207},",\n",{"type":9,"tag":37,"props":5209,"children":5210},{"class":39,"line":284},[5211,5216,5220],{"type":9,"tag":37,"props":5212,"children":5213},{"style":44},[5214],{"type":14,"value":5215},"    immediate: ",{"type":9,"tag":37,"props":5217,"children":5218},{"style":93},[5219],{"type":14,"value":126},{"type":9,"tag":37,"props":5221,"children":5222},{"style":44},[5223],{"type":14,"value":5207},{"type":9,"tag":37,"props":5225,"children":5226},{"class":39,"line":292},[5227,5232,5237,5242,5247],{"type":9,"tag":37,"props":5228,"children":5229},{"style":44},[5230],{"type":14,"value":5231},"    toast: { successMessage: ",{"type":9,"tag":37,"props":5233,"children":5234},{"style":72},[5235],{"type":14,"value":5236},"'加载成功 ✓'",{"type":9,"tag":37,"props":5238,"children":5239},{"style":44},[5240],{"type":14,"value":5241},", errorMessage: ",{"type":9,"tag":37,"props":5243,"children":5244},{"style":72},[5245],{"type":14,"value":5246},"'加载失败 ✗'",{"type":9,"tag":37,"props":5248,"children":5249},{"style":44},[5250],{"type":14,"value":5251}," }\n",{"type":9,"tag":37,"props":5253,"children":5254},{"class":39,"line":309},[5255],{"type":9,"tag":37,"props":5256,"children":5257},{"style":44},[5258],{"type":14,"value":5259},"  }),\n",{"type":9,"tag":37,"props":5261,"children":5262},{"class":39,"line":341},[5263,5268,5272,5276,5280,5285,5289,5293,5298,5302],{"type":9,"tag":37,"props":5264,"children":5265},{"style":72},[5266],{"type":14,"value":5267},"  'error-only'",{"type":9,"tag":37,"props":5269,"children":5270},{"style":44},[5271],{"type":14,"value":679},{"type":9,"tag":37,"props":5273,"children":5274},{"style":56},[5275],{"type":14,"value":5098},{"type":9,"tag":37,"props":5277,"children":5278},{"style":44},[5279],{"type":14,"value":5103},{"type":9,"tag":37,"props":5281,"children":5282},{"style":72},[5283],{"type":14,"value":5284},"'toast-error-only'",{"type":9,"tag":37,"props":5286,"children":5287},{"style":44},[5288],{"type":14,"value":5113},{"type":9,"tag":37,"props":5290,"children":5291},{"style":93},[5292],{"type":14,"value":126},{"type":9,"tag":37,"props":5294,"children":5295},{"style":44},[5296],{"type":14,"value":5297},", toast: { success: ",{"type":9,"tag":37,"props":5299,"children":5300},{"style":93},[5301],{"type":14,"value":126},{"type":9,"tag":37,"props":5303,"children":5304},{"style":44},[5305],{"type":14,"value":5306}," } }),\n",{"type":9,"tag":37,"props":5308,"children":5309},{"class":39,"line":431},[5310,5315,5319,5323],{"type":9,"tag":37,"props":5311,"children":5312},{"style":72},[5313],{"type":14,"value":5314},"  'custom'",{"type":9,"tag":37,"props":5316,"children":5317},{"style":44},[5318],{"type":14,"value":679},{"type":9,"tag":37,"props":5320,"children":5321},{"style":56},[5322],{"type":14,"value":5098},{"type":9,"tag":37,"props":5324,"children":5325},{"style":44},[5326],{"type":14,"value":5189},{"type":9,"tag":37,"props":5328,"children":5329},{"class":39,"line":440},[5330,5334,5339],{"type":9,"tag":37,"props":5331,"children":5332},{"style":44},[5333],{"type":14,"value":5197},{"type":9,"tag":37,"props":5335,"children":5336},{"style":72},[5337],{"type":14,"value":5338},"'toast-custom'",{"type":9,"tag":37,"props":5340,"children":5341},{"style":44},[5342],{"type":14,"value":5207},{"type":9,"tag":37,"props":5344,"children":5345},{"class":39,"line":457},[5346,5350,5354],{"type":9,"tag":37,"props":5347,"children":5348},{"style":44},[5349],{"type":14,"value":5215},{"type":9,"tag":37,"props":5351,"children":5352},{"style":93},[5353],{"type":14,"value":126},{"type":9,"tag":37,"props":5355,"children":5356},{"style":44},[5357],{"type":14,"value":5207},{"type":9,"tag":37,"props":5359,"children":5360},{"class":39,"line":486},[5361],{"type":9,"tag":37,"props":5362,"children":5363},{"style":44},[5364],{"type":14,"value":5365},"    toast: {\n",{"type":9,"tag":37,"props":5367,"children":5368},{"class":39,"line":495},[5369,5374,5379,5384,5393],{"type":9,"tag":37,"props":5370,"children":5371},{"style":44},[5372],{"type":14,"value":5373},"      success: { color: ",{"type":9,"tag":37,"props":5375,"children":5376},{"style":72},[5377],{"type":14,"value":5378},"'secondary'",{"type":9,"tag":37,"props":5380,"children":5381},{"style":44},[5382],{"type":14,"value":5383},", icon: ",{"type":9,"tag":37,"props":5385,"children":5386},{"style":72},[5387,5391],{"type":9,"tag":380,"props":5388,"children":5390},{"class":382,"style":5389},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fsparkles.svg?color=%23000)",[],{"type":14,"value":5392},"'i-lucide-sparkles'",{"type":9,"tag":37,"props":5394,"children":5395},{"style":44},[5396],{"type":14,"value":5397}," },\n",{"type":9,"tag":37,"props":5399,"children":5400},{"class":39,"line":511},[5401,5406,5411,5415,5424],{"type":9,"tag":37,"props":5402,"children":5403},{"style":44},[5404],{"type":14,"value":5405},"      error: { color: ",{"type":9,"tag":37,"props":5407,"children":5408},{"style":72},[5409],{"type":14,"value":5410},"'warning'",{"type":9,"tag":37,"props":5412,"children":5413},{"style":44},[5414],{"type":14,"value":5383},{"type":9,"tag":37,"props":5416,"children":5417},{"style":72},[5418,5422],{"type":9,"tag":380,"props":5419,"children":5421},{"class":382,"style":5420},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Ftriangle-alert.svg?color=%23000)",[],{"type":14,"value":5423},"'i-lucide-triangle-alert'",{"type":9,"tag":37,"props":5425,"children":5426},{"style":44},[5427],{"type":14,"value":5251},{"type":9,"tag":37,"props":5429,"children":5430},{"class":39,"line":549},[5431],{"type":9,"tag":37,"props":5432,"children":5433},{"style":44},[5434],{"type":14,"value":232},{"type":9,"tag":37,"props":5436,"children":5437},{"class":39,"line":566},[5438],{"type":9,"tag":37,"props":5439,"children":5440},{"style":44},[5441],{"type":14,"value":5442},"  })\n",{"type":9,"tag":37,"props":5444,"children":5445},{"class":39,"line":1108},[5446],{"type":9,"tag":37,"props":5447,"children":5448},{"style":44},[5449],{"type":14,"value":997},{"type":9,"tag":37,"props":5451,"children":5452},{"class":39,"line":1120},[5453],{"type":9,"tag":37,"props":5454,"children":5455},{"emptyLinePlaceholder":138},[5456],{"type":14,"value":141},{"type":9,"tag":37,"props":5458,"children":5459},{"class":39,"line":1137},[5460,5464,5469,5473,5477,5481,5485],{"type":9,"tag":37,"props":5461,"children":5462},{"style":87},[5463],{"type":14,"value":90},{"type":9,"tag":37,"props":5465,"children":5466},{"style":93},[5467],{"type":14,"value":5468}," active",{"type":9,"tag":37,"props":5470,"children":5471},{"style":87},[5472],{"type":14,"value":101},{"type":9,"tag":37,"props":5474,"children":5475},{"style":56},[5476],{"type":14,"value":163},{"type":9,"tag":37,"props":5478,"children":5479},{"style":44},[5480],{"type":14,"value":168},{"type":9,"tag":37,"props":5482,"children":5483},{"style":87},[5484],{"type":14,"value":173},{"type":9,"tag":37,"props":5486,"children":5487},{"style":44},[5488],{"type":14,"value":5489}," fetchers[props.mode])\n",{"type":9,"tag":37,"props":5491,"children":5492},{"class":39,"line":1145},[5493],{"type":9,"tag":37,"props":5494,"children":5495},{"emptyLinePlaceholder":138},[5496],{"type":14,"value":141},{"type":9,"tag":37,"props":5498,"children":5499},{"class":39,"line":1153},[5500,5504,5509,5513,5518,5522,5527,5532,5536,5541,5545],{"type":9,"tag":37,"props":5501,"children":5502},{"style":87},[5503],{"type":14,"value":90},{"type":9,"tag":37,"props":5505,"children":5506},{"style":93},[5507],{"type":14,"value":5508}," hints",{"type":9,"tag":37,"props":5510,"children":5511},{"style":87},[5512],{"type":14,"value":2866},{"type":9,"tag":37,"props":5514,"children":5515},{"style":56},[5516],{"type":14,"value":5517}," Record",{"type":9,"tag":37,"props":5519,"children":5520},{"style":44},[5521],{"type":14,"value":47},{"type":9,"tag":37,"props":5523,"children":5524},{"style":87},[5525],{"type":14,"value":5526},"typeof",{"type":9,"tag":37,"props":5528,"children":5529},{"style":44},[5530],{"type":14,"value":5531}," props.mode, ",{"type":9,"tag":37,"props":5533,"children":5534},{"style":93},[5535],{"type":14,"value":3060},{"type":9,"tag":37,"props":5537,"children":5538},{"style":44},[5539],{"type":14,"value":5540},"> ",{"type":9,"tag":37,"props":5542,"children":5543},{"style":87},[5544],{"type":14,"value":69},{"type":9,"tag":37,"props":5546,"children":5547},{"style":44},[5548],{"type":14,"value":178},{"type":9,"tag":37,"props":5550,"children":5551},{"class":39,"line":1169},[5552,5556,5560,5565],{"type":9,"tag":37,"props":5553,"children":5554},{"style":72},[5555],{"type":14,"value":5089},{"type":9,"tag":37,"props":5557,"children":5558},{"style":44},[5559],{"type":14,"value":679},{"type":9,"tag":37,"props":5561,"children":5562},{"style":72},[5563],{"type":14,"value":5564},"'未传 toast 时继承全局配置，成功 \u002F 错误均按默认样式弹出。'",{"type":9,"tag":37,"props":5566,"children":5567},{"style":44},[5568],{"type":14,"value":5207},{"type":9,"tag":37,"props":5570,"children":5571},{"class":39,"line":1177},[5572,5576,5580,5585],{"type":9,"tag":37,"props":5573,"children":5574},{"style":72},[5575],{"type":14,"value":5130},{"type":9,"tag":37,"props":5577,"children":5578},{"style":44},[5579],{"type":14,"value":679},{"type":9,"tag":37,"props":5581,"children":5582},{"style":72},[5583],{"type":14,"value":5584},"'toast: false 关闭所有单次提示。'",{"type":9,"tag":37,"props":5586,"children":5587},{"style":44},[5588],{"type":14,"value":5207},{"type":9,"tag":37,"props":5590,"children":5591},{"class":39,"line":1193},[5592,5596,5600,5605],{"type":9,"tag":37,"props":5593,"children":5594},{"style":72},[5595],{"type":14,"value":5176},{"type":9,"tag":37,"props":5597,"children":5598},{"style":44},[5599],{"type":14,"value":679},{"type":9,"tag":37,"props":5601,"children":5602},{"style":72},[5603],{"type":14,"value":5604},"'successMessage \u002F errorMessage 替换默认文案。'",{"type":9,"tag":37,"props":5606,"children":5607},{"style":44},[5608],{"type":14,"value":5207},{"type":9,"tag":37,"props":5610,"children":5611},{"class":39,"line":1221},[5612,5616,5620,5625],{"type":9,"tag":37,"props":5613,"children":5614},{"style":72},[5615],{"type":14,"value":5267},{"type":9,"tag":37,"props":5617,"children":5618},{"style":44},[5619],{"type":14,"value":679},{"type":9,"tag":37,"props":5621,"children":5622},{"style":72},[5623],{"type":14,"value":5624},"'{ success: false } 关闭成功提示但保留错误提示。'",{"type":9,"tag":37,"props":5626,"children":5627},{"style":44},[5628],{"type":14,"value":5207},{"type":9,"tag":37,"props":5630,"children":5631},{"class":39,"line":1250},[5632,5636,5640],{"type":9,"tag":37,"props":5633,"children":5634},{"style":72},[5635],{"type":14,"value":5314},{"type":9,"tag":37,"props":5637,"children":5638},{"style":44},[5639],{"type":14,"value":679},{"type":9,"tag":37,"props":5641,"children":5642},{"style":72},[5643],{"type":14,"value":5644},"'为成功 \u002F 错误分别覆盖 color、icon 等 ToastProps。'\n",{"type":9,"tag":37,"props":5646,"children":5647},{"class":39,"line":1324},[5648],{"type":9,"tag":37,"props":5649,"children":5650},{"style":44},[5651],{"type":14,"value":997},{"type":9,"tag":37,"props":5653,"children":5654},{"class":39,"line":1333},[5655],{"type":9,"tag":37,"props":5656,"children":5657},{"emptyLinePlaceholder":138},[5658],{"type":14,"value":141},{"type":9,"tag":37,"props":5660,"children":5661},{"class":39,"line":1350},[5662,5666,5670,5674,5678,5682,5686],{"type":9,"tag":37,"props":5663,"children":5664},{"style":87},[5665],{"type":14,"value":90},{"type":9,"tag":37,"props":5667,"children":5668},{"style":93},[5669],{"type":14,"value":154},{"type":9,"tag":37,"props":5671,"children":5672},{"style":87},[5673],{"type":14,"value":101},{"type":9,"tag":37,"props":5675,"children":5676},{"style":56},[5677],{"type":14,"value":163},{"type":9,"tag":37,"props":5679,"children":5680},{"style":44},[5681],{"type":14,"value":168},{"type":9,"tag":37,"props":5683,"children":5684},{"style":87},[5685],{"type":14,"value":173},{"type":9,"tag":37,"props":5687,"children":5688},{"style":44},[5689],{"type":14,"value":5690}," active.value.error.value\n",{"type":9,"tag":37,"props":5692,"children":5693},{"class":39,"line":1363},[5694,5699],{"type":9,"tag":37,"props":5695,"children":5696},{"style":87},[5697],{"type":14,"value":5698},"  ?",{"type":9,"tag":37,"props":5700,"children":5701},{"style":44},[5702],{"type":14,"value":5703}," { error: active.value.error.value.message }\n",{"type":9,"tag":37,"props":5705,"children":5706},{"class":39,"line":1394},[5707,5712],{"type":9,"tag":37,"props":5708,"children":5709},{"style":87},[5710],{"type":14,"value":5711},"  :",{"type":9,"tag":37,"props":5713,"children":5714},{"style":44},[5715],{"type":14,"value":5716}," active.value.data.value)\n",{"type":9,"tag":37,"props":5718,"children":5719},{"class":39,"line":1412},[5720,5724,5728],{"type":9,"tag":37,"props":5721,"children":5722},{"style":44},[5723],{"type":14,"value":273},{"type":9,"tag":37,"props":5725,"children":5726},{"style":50},[5727],{"type":14,"value":53},{"type":9,"tag":37,"props":5729,"children":5730},{"style":44},[5731],{"type":14,"value":80},{"type":9,"tag":37,"props":5733,"children":5734},{"class":39,"line":1443},[5735],{"type":9,"tag":37,"props":5736,"children":5737},{"emptyLinePlaceholder":138},[5738],{"type":14,"value":141},{"type":9,"tag":37,"props":5740,"children":5741},{"class":39,"line":1465},[5742,5746,5750],{"type":9,"tag":37,"props":5743,"children":5744},{"style":44},[5745],{"type":14,"value":47},{"type":9,"tag":37,"props":5747,"children":5748},{"style":50},[5749],{"type":14,"value":302},{"type":9,"tag":37,"props":5751,"children":5752},{"style":44},[5753],{"type":14,"value":80},{"type":9,"tag":37,"props":5755,"children":5756},{"class":39,"line":1495},[5757,5761,5765,5769,5773,5777],{"type":9,"tag":37,"props":5758,"children":5759},{"style":44},[5760],{"type":14,"value":315},{"type":9,"tag":37,"props":5762,"children":5763},{"style":50},[5764],{"type":14,"value":320},{"type":9,"tag":37,"props":5766,"children":5767},{"style":56},[5768],{"type":14,"value":325},{"type":9,"tag":37,"props":5770,"children":5771},{"style":44},[5772],{"type":14,"value":69},{"type":9,"tag":37,"props":5774,"children":5775},{"style":72},[5776],{"type":14,"value":334},{"type":9,"tag":37,"props":5778,"children":5779},{"style":44},[5780],{"type":14,"value":80},{"type":9,"tag":37,"props":5782,"children":5783},{"class":39,"line":1504},[5784,5788,5792,5796,5800,5805],{"type":9,"tag":37,"props":5785,"children":5786},{"style":44},[5787],{"type":14,"value":347},{"type":9,"tag":37,"props":5789,"children":5790},{"style":50},[5791],{"type":14,"value":320},{"type":9,"tag":37,"props":5793,"children":5794},{"style":56},[5795],{"type":14,"value":325},{"type":9,"tag":37,"props":5797,"children":5798},{"style":44},[5799],{"type":14,"value":69},{"type":9,"tag":37,"props":5801,"children":5802},{"style":72},[5803],{"type":14,"value":5804},"\"flex items-center gap-3 flex-wrap\"",{"type":9,"tag":37,"props":5806,"children":5807},{"style":44},[5808],{"type":14,"value":80},{"type":9,"tag":37,"props":5810,"children":5811},{"class":39,"line":1513},[5812,5816,5821,5826,5830,5834,5838,5842,5847,5851,5856],{"type":9,"tag":37,"props":5813,"children":5814},{"style":44},[5815],{"type":14,"value":1256},{"type":9,"tag":37,"props":5817,"children":5818},{"style":50},[5819],{"type":14,"value":5820},"USwitch",{"type":9,"tag":37,"props":5822,"children":5823},{"style":56},[5824],{"type":14,"value":5825}," v-model",{"type":9,"tag":37,"props":5827,"children":5828},{"style":44},[5829],{"type":14,"value":69},{"type":9,"tag":37,"props":5831,"children":5832},{"style":72},[5833],{"type":14,"value":405},{"type":9,"tag":37,"props":5835,"children":5836},{"style":44},[5837],{"type":14,"value":5026},{"type":9,"tag":37,"props":5839,"children":5840},{"style":72},[5841],{"type":14,"value":405},{"type":9,"tag":37,"props":5843,"children":5844},{"style":56},[5845],{"type":14,"value":5846}," label",{"type":9,"tag":37,"props":5848,"children":5849},{"style":44},[5850],{"type":14,"value":69},{"type":9,"tag":37,"props":5852,"children":5853},{"style":72},[5854],{"type":14,"value":5855},"\"注入错误（验证错误分支）\"",{"type":9,"tag":37,"props":5857,"children":5858},{"style":44},[5859],{"type":14,"value":5860}," \u002F>\n",{"type":9,"tag":37,"props":5862,"children":5863},{"class":39,"line":1529},[5864,5868,5872,5876,5880,5884,5888,5892,5896,5900,5904,5911,5915,5919,5923,5927,5932,5936,5940,5944],{"type":9,"tag":37,"props":5865,"children":5866},{"style":44},[5867],{"type":14,"value":1256},{"type":9,"tag":37,"props":5869,"children":5870},{"style":50},[5871],{"type":14,"value":352},{"type":9,"tag":37,"props":5873,"children":5874},{"style":56},[5875],{"type":14,"value":357},{"type":9,"tag":37,"props":5877,"children":5878},{"style":44},[5879],{"type":14,"value":69},{"type":9,"tag":37,"props":5881,"children":5882},{"style":72},[5883],{"type":14,"value":366},{"type":9,"tag":37,"props":5885,"children":5886},{"style":56},[5887],{"type":14,"value":1308},{"type":9,"tag":37,"props":5889,"children":5890},{"style":44},[5891],{"type":14,"value":69},{"type":9,"tag":37,"props":5893,"children":5894},{"style":72},[5895],{"type":14,"value":2221},{"type":9,"tag":37,"props":5897,"children":5898},{"style":56},[5899],{"type":14,"value":371},{"type":9,"tag":37,"props":5901,"children":5902},{"style":44},[5903],{"type":14,"value":69},{"type":9,"tag":37,"props":5905,"children":5906},{"style":72},[5907,5910],{"type":9,"tag":380,"props":5908,"children":5909},{"class":382,"style":2235},[],{"type":14,"value":2238},{"type":9,"tag":37,"props":5912,"children":5913},{"style":44},[5914],{"type":14,"value":391},{"type":9,"tag":37,"props":5916,"children":5917},{"style":56},[5918],{"type":14,"value":396},{"type":9,"tag":37,"props":5920,"children":5921},{"style":44},[5922],{"type":14,"value":69},{"type":9,"tag":37,"props":5924,"children":5925},{"style":72},[5926],{"type":14,"value":405},{"type":9,"tag":37,"props":5928,"children":5929},{"style":44},[5930],{"type":14,"value":5931},"active.",{"type":9,"tag":37,"props":5933,"children":5934},{"style":56},[5935],{"type":14,"value":415},{"type":9,"tag":37,"props":5937,"children":5938},{"style":44},[5939],{"type":14,"value":420},{"type":9,"tag":37,"props":5941,"children":5942},{"style":72},[5943],{"type":14,"value":405},{"type":9,"tag":37,"props":5945,"children":5946},{"style":44},[5947],{"type":14,"value":80},{"type":9,"tag":37,"props":5949,"children":5950},{"class":39,"line":1541},[5951],{"type":9,"tag":37,"props":5952,"children":5953},{"style":44},[5954],{"type":14,"value":5955},"        触发请求\n",{"type":9,"tag":37,"props":5957,"children":5958},{"class":39,"line":1550},[5959,5963,5967],{"type":9,"tag":37,"props":5960,"children":5961},{"style":44},[5962],{"type":14,"value":1339},{"type":9,"tag":37,"props":5964,"children":5965},{"style":50},[5966],{"type":14,"value":352},{"type":9,"tag":37,"props":5968,"children":5969},{"style":44},[5970],{"type":14,"value":80},{"type":9,"tag":37,"props":5972,"children":5973},{"class":39,"line":1566},[5974,5978,5982],{"type":9,"tag":37,"props":5975,"children":5976},{"style":44},[5977],{"type":14,"value":446},{"type":9,"tag":37,"props":5979,"children":5980},{"style":50},[5981],{"type":14,"value":320},{"type":9,"tag":37,"props":5983,"children":5984},{"style":44},[5985],{"type":14,"value":80},{"type":9,"tag":37,"props":5987,"children":5988},{"class":39,"line":1584},[5989,5993,5997,6001,6005,6009],{"type":9,"tag":37,"props":5990,"children":5991},{"style":44},[5992],{"type":14,"value":347},{"type":9,"tag":37,"props":5994,"children":5995},{"style":50},[5996],{"type":14,"value":10},{"type":9,"tag":37,"props":5998,"children":5999},{"style":56},[6000],{"type":14,"value":325},{"type":9,"tag":37,"props":6002,"children":6003},{"style":44},[6004],{"type":14,"value":69},{"type":9,"tag":37,"props":6006,"children":6007},{"style":72},[6008],{"type":14,"value":479},{"type":9,"tag":37,"props":6010,"children":6011},{"style":44},[6012],{"type":14,"value":80},{"type":9,"tag":37,"props":6014,"children":6015},{"class":39,"line":1602},[6016],{"type":9,"tag":37,"props":6017,"children":6018},{"style":44},[6019],{"type":14,"value":6020},"      {{ hints[mode] }}\n",{"type":9,"tag":37,"props":6022,"children":6023},{"class":39,"line":1631},[6024,6028,6032],{"type":9,"tag":37,"props":6025,"children":6026},{"style":44},[6027],{"type":14,"value":446},{"type":9,"tag":37,"props":6029,"children":6030},{"style":50},[6031],{"type":14,"value":10},{"type":9,"tag":37,"props":6033,"children":6034},{"style":44},[6035],{"type":14,"value":80},{"type":9,"tag":37,"props":6037,"children":6038},{"class":39,"line":1652},[6039,6043,6047,6051,6055,6059,6063,6067],{"type":9,"tag":37,"props":6040,"children":6041},{"style":44},[6042],{"type":14,"value":347},{"type":9,"tag":37,"props":6044,"children":6045},{"style":50},[6046],{"type":14,"value":26},{"type":9,"tag":37,"props":6048,"children":6049},{"style":56},[6050],{"type":14,"value":325},{"type":9,"tag":37,"props":6052,"children":6053},{"style":44},[6054],{"type":14,"value":69},{"type":9,"tag":37,"props":6056,"children":6057},{"style":72},[6058],{"type":14,"value":533},{"type":9,"tag":37,"props":6060,"children":6061},{"style":44},[6062],{"type":14,"value":538},{"type":9,"tag":37,"props":6064,"children":6065},{"style":50},[6066],{"type":14,"value":26},{"type":9,"tag":37,"props":6068,"children":6069},{"style":44},[6070],{"type":14,"value":80},{"type":9,"tag":37,"props":6072,"children":6073},{"class":39,"line":1681},[6074,6078,6082],{"type":9,"tag":37,"props":6075,"children":6076},{"style":44},[6077],{"type":14,"value":555},{"type":9,"tag":37,"props":6079,"children":6080},{"style":50},[6081],{"type":14,"value":320},{"type":9,"tag":37,"props":6083,"children":6084},{"style":44},[6085],{"type":14,"value":80},{"type":9,"tag":37,"props":6087,"children":6088},{"class":39,"line":1689},[6089,6093,6097],{"type":9,"tag":37,"props":6090,"children":6091},{"style":44},[6092],{"type":14,"value":273},{"type":9,"tag":37,"props":6094,"children":6095},{"style":50},[6096],{"type":14,"value":302},{"type":9,"tag":37,"props":6098,"children":6099},{"style":44},[6100],{"type":14,"value":80},{"type":9,"tag":581,"props":6102,"children":6103},{},[6104],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":6106},[],{"code":6108,"filePath":6109,"pascalName":6110},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'no-unwrap' | 'no-business-check' | 'combined'\n}>()\n\nconst fetchers = {\n  'default': useApiFetch('\u002Fprofile', { key: 'unwrap-default', immediate: false }),\n  'no-unwrap': useApiFetch('\u002Fprofile', { key: 'unwrap-no-unwrap', immediate: false, unwrap: false }),\n  'no-business-check': useApiFetch('\u002Fdemo\u002Flegacy', { key: 'unwrap-no-business-check', immediate: false, businessCheck: false }),\n  'combined': useApiFetch('\u002Fdemo\u002Fexternal', { key: 'unwrap-combined', immediate: false, businessCheck: false, unwrap: false })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '按 dataKey（默认 data）抽取业务数据，调用方直接拿到去信封后的对象。',\n  'no-unwrap': 'unwrap: false 不重写 response._data，保留完整 code\u002Fmessage\u002Fdata 信封。',\n  'no-business-check': 'legacy 接口未返回 code 字段，关闭校验后仍按 dataKey 解包出业务数据。',\n  'combined': 'external 接口信封非标，同时关闭两项由调用方完全自处理响应。'\n}\n\nwatch(() => props.mode, () => active.value.execute(), { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUBadge variant=\"subtle\">\n      {{ mode }}\n    \u003C\u002FUBadge>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ active.data.value }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiUnwrapExample.vue","ApiUnwrapExample",{"data":6112,"body":6113,"toc":6935},{"title":22,"description":22},{"type":6,"children":6114},[6115,6931],{"type":9,"tag":26,"props":6116,"children":6118},{"className":28,"code":6117,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'no-unwrap' | 'no-business-check' | 'combined'\n}>()\n\nconst fetchers = {\n  'default': useApiFetch('\u002Fprofile', { key: 'unwrap-default', immediate: false }),\n  'no-unwrap': useApiFetch('\u002Fprofile', { key: 'unwrap-no-unwrap', immediate: false, unwrap: false }),\n  'no-business-check': useApiFetch('\u002Fdemo\u002Flegacy', { key: 'unwrap-no-business-check', immediate: false, businessCheck: false }),\n  'combined': useApiFetch('\u002Fdemo\u002Fexternal', { key: 'unwrap-combined', immediate: false, businessCheck: false, unwrap: false })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '按 dataKey（默认 data）抽取业务数据，调用方直接拿到去信封后的对象。',\n  'no-unwrap': 'unwrap: false 不重写 response._data，保留完整 code\u002Fmessage\u002Fdata 信封。',\n  'no-business-check': 'legacy 接口未返回 code 字段，关闭校验后仍按 dataKey 解包出业务数据。',\n  'combined': 'external 接口信封非标，同时关闭两项由调用方完全自处理响应。'\n}\n\nwatch(() => props.mode, () => active.value.execute(), { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUBadge variant=\"subtle\">\n      {{ mode }}\n    \u003C\u002FUBadge>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ active.data.value }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[6119],{"type":9,"tag":33,"props":6120,"children":6121},{"__ignoreMap":22},[6122,6153,6176,6218,6225,6232,6251,6296,6350,6405,6467,6474,6481,6512,6519,6566,6586,6606,6626,6642,6649,6656,6702,6717,6724,6739,6766,6793,6801,6816,6843,6850,6865,6901,6916],{"type":9,"tag":37,"props":6123,"children":6124},{"class":39,"line":40},[6125,6129,6133,6137,6141,6145,6149],{"type":9,"tag":37,"props":6126,"children":6127},{"style":44},[6128],{"type":14,"value":47},{"type":9,"tag":37,"props":6130,"children":6131},{"style":50},[6132],{"type":14,"value":53},{"type":9,"tag":37,"props":6134,"children":6135},{"style":56},[6136],{"type":14,"value":59},{"type":9,"tag":37,"props":6138,"children":6139},{"style":56},[6140],{"type":14,"value":64},{"type":9,"tag":37,"props":6142,"children":6143},{"style":44},[6144],{"type":14,"value":69},{"type":9,"tag":37,"props":6146,"children":6147},{"style":72},[6148],{"type":14,"value":75},{"type":9,"tag":37,"props":6150,"children":6151},{"style":44},[6152],{"type":14,"value":80},{"type":9,"tag":37,"props":6154,"children":6155},{"class":39,"line":83},[6156,6160,6164,6168,6172],{"type":9,"tag":37,"props":6157,"children":6158},{"style":87},[6159],{"type":14,"value":90},{"type":9,"tag":37,"props":6161,"children":6162},{"style":93},[6163],{"type":14,"value":2839},{"type":9,"tag":37,"props":6165,"children":6166},{"style":87},[6167],{"type":14,"value":101},{"type":9,"tag":37,"props":6169,"children":6170},{"style":56},[6171],{"type":14,"value":2848},{"type":9,"tag":37,"props":6173,"children":6174},{"style":44},[6175],{"type":14,"value":2853},{"type":9,"tag":37,"props":6177,"children":6178},{"class":39,"line":134},[6179,6183,6187,6191,6195,6200,6204,6209,6213],{"type":9,"tag":37,"props":6180,"children":6181},{"style":671},[6182],{"type":14,"value":4901},{"type":9,"tag":37,"props":6184,"children":6185},{"style":87},[6186],{"type":14,"value":2866},{"type":9,"tag":37,"props":6188,"children":6189},{"style":72},[6190],{"type":14,"value":2871},{"type":9,"tag":37,"props":6192,"children":6193},{"style":87},[6194],{"type":14,"value":2876},{"type":9,"tag":37,"props":6196,"children":6197},{"style":72},[6198],{"type":14,"value":6199}," 'no-unwrap'",{"type":9,"tag":37,"props":6201,"children":6202},{"style":87},[6203],{"type":14,"value":2876},{"type":9,"tag":37,"props":6205,"children":6206},{"style":72},[6207],{"type":14,"value":6208}," 'no-business-check'",{"type":9,"tag":37,"props":6210,"children":6211},{"style":87},[6212],{"type":14,"value":2876},{"type":9,"tag":37,"props":6214,"children":6215},{"style":72},[6216],{"type":14,"value":6217}," 'combined'\n",{"type":9,"tag":37,"props":6219,"children":6220},{"class":39,"line":144},[6221],{"type":9,"tag":37,"props":6222,"children":6223},{"style":44},[6224],{"type":14,"value":2889},{"type":9,"tag":37,"props":6226,"children":6227},{"class":39,"line":181},[6228],{"type":9,"tag":37,"props":6229,"children":6230},{"emptyLinePlaceholder":138},[6231],{"type":14,"value":141},{"type":9,"tag":37,"props":6233,"children":6234},{"class":39,"line":195},[6235,6239,6243,6247],{"type":9,"tag":37,"props":6236,"children":6237},{"style":87},[6238],{"type":14,"value":90},{"type":9,"tag":37,"props":6240,"children":6241},{"style":93},[6242],{"type":14,"value":5073},{"type":9,"tag":37,"props":6244,"children":6245},{"style":87},[6246],{"type":14,"value":101},{"type":9,"tag":37,"props":6248,"children":6249},{"style":44},[6250],{"type":14,"value":178},{"type":9,"tag":37,"props":6252,"children":6253},{"class":39,"line":208},[6254,6258,6262,6266,6270,6274,6279,6284,6288,6292],{"type":9,"tag":37,"props":6255,"children":6256},{"style":72},[6257],{"type":14,"value":5089},{"type":9,"tag":37,"props":6259,"children":6260},{"style":44},[6261],{"type":14,"value":679},{"type":9,"tag":37,"props":6263,"children":6264},{"style":56},[6265],{"type":14,"value":5098},{"type":9,"tag":37,"props":6267,"children":6268},{"style":44},[6269],{"type":14,"value":111},{"type":9,"tag":37,"props":6271,"children":6272},{"style":72},[6273],{"type":14,"value":3228},{"type":9,"tag":37,"props":6275,"children":6276},{"style":44},[6277],{"type":14,"value":6278},", { key: ",{"type":9,"tag":37,"props":6280,"children":6281},{"style":72},[6282],{"type":14,"value":6283},"'unwrap-default'",{"type":9,"tag":37,"props":6285,"children":6286},{"style":44},[6287],{"type":14,"value":5113},{"type":9,"tag":37,"props":6289,"children":6290},{"style":93},[6291],{"type":14,"value":126},{"type":9,"tag":37,"props":6293,"children":6294},{"style":44},[6295],{"type":14,"value":5122},{"type":9,"tag":37,"props":6297,"children":6298},{"class":39,"line":217},[6299,6304,6308,6312,6316,6320,6324,6329,6333,6337,6342,6346],{"type":9,"tag":37,"props":6300,"children":6301},{"style":72},[6302],{"type":14,"value":6303},"  'no-unwrap'",{"type":9,"tag":37,"props":6305,"children":6306},{"style":44},[6307],{"type":14,"value":679},{"type":9,"tag":37,"props":6309,"children":6310},{"style":56},[6311],{"type":14,"value":5098},{"type":9,"tag":37,"props":6313,"children":6314},{"style":44},[6315],{"type":14,"value":111},{"type":9,"tag":37,"props":6317,"children":6318},{"style":72},[6319],{"type":14,"value":3228},{"type":9,"tag":37,"props":6321,"children":6322},{"style":44},[6323],{"type":14,"value":6278},{"type":9,"tag":37,"props":6325,"children":6326},{"style":72},[6327],{"type":14,"value":6328},"'unwrap-no-unwrap'",{"type":9,"tag":37,"props":6330,"children":6331},{"style":44},[6332],{"type":14,"value":5113},{"type":9,"tag":37,"props":6334,"children":6335},{"style":93},[6336],{"type":14,"value":126},{"type":9,"tag":37,"props":6338,"children":6339},{"style":44},[6340],{"type":14,"value":6341},", unwrap: ",{"type":9,"tag":37,"props":6343,"children":6344},{"style":93},[6345],{"type":14,"value":126},{"type":9,"tag":37,"props":6347,"children":6348},{"style":44},[6349],{"type":14,"value":5122},{"type":9,"tag":37,"props":6351,"children":6352},{"class":39,"line":226},[6353,6358,6362,6366,6370,6375,6379,6384,6388,6392,6397,6401],{"type":9,"tag":37,"props":6354,"children":6355},{"style":72},[6356],{"type":14,"value":6357},"  'no-business-check'",{"type":9,"tag":37,"props":6359,"children":6360},{"style":44},[6361],{"type":14,"value":679},{"type":9,"tag":37,"props":6363,"children":6364},{"style":56},[6365],{"type":14,"value":5098},{"type":9,"tag":37,"props":6367,"children":6368},{"style":44},[6369],{"type":14,"value":111},{"type":9,"tag":37,"props":6371,"children":6372},{"style":72},[6373],{"type":14,"value":6374},"'\u002Fdemo\u002Flegacy'",{"type":9,"tag":37,"props":6376,"children":6377},{"style":44},[6378],{"type":14,"value":6278},{"type":9,"tag":37,"props":6380,"children":6381},{"style":72},[6382],{"type":14,"value":6383},"'unwrap-no-business-check'",{"type":9,"tag":37,"props":6385,"children":6386},{"style":44},[6387],{"type":14,"value":5113},{"type":9,"tag":37,"props":6389,"children":6390},{"style":93},[6391],{"type":14,"value":126},{"type":9,"tag":37,"props":6393,"children":6394},{"style":44},[6395],{"type":14,"value":6396},", businessCheck: ",{"type":9,"tag":37,"props":6398,"children":6399},{"style":93},[6400],{"type":14,"value":126},{"type":9,"tag":37,"props":6402,"children":6403},{"style":44},[6404],{"type":14,"value":5122},{"type":9,"tag":37,"props":6406,"children":6407},{"class":39,"line":235},[6408,6413,6417,6421,6425,6430,6434,6439,6443,6447,6451,6455,6459,6463],{"type":9,"tag":37,"props":6409,"children":6410},{"style":72},[6411],{"type":14,"value":6412},"  'combined'",{"type":9,"tag":37,"props":6414,"children":6415},{"style":44},[6416],{"type":14,"value":679},{"type":9,"tag":37,"props":6418,"children":6419},{"style":56},[6420],{"type":14,"value":5098},{"type":9,"tag":37,"props":6422,"children":6423},{"style":44},[6424],{"type":14,"value":111},{"type":9,"tag":37,"props":6426,"children":6427},{"style":72},[6428],{"type":14,"value":6429},"'\u002Fdemo\u002Fexternal'",{"type":9,"tag":37,"props":6431,"children":6432},{"style":44},[6433],{"type":14,"value":6278},{"type":9,"tag":37,"props":6435,"children":6436},{"style":72},[6437],{"type":14,"value":6438},"'unwrap-combined'",{"type":9,"tag":37,"props":6440,"children":6441},{"style":44},[6442],{"type":14,"value":5113},{"type":9,"tag":37,"props":6444,"children":6445},{"style":93},[6446],{"type":14,"value":126},{"type":9,"tag":37,"props":6448,"children":6449},{"style":44},[6450],{"type":14,"value":6396},{"type":9,"tag":37,"props":6452,"children":6453},{"style":93},[6454],{"type":14,"value":126},{"type":9,"tag":37,"props":6456,"children":6457},{"style":44},[6458],{"type":14,"value":6341},{"type":9,"tag":37,"props":6460,"children":6461},{"style":93},[6462],{"type":14,"value":126},{"type":9,"tag":37,"props":6464,"children":6465},{"style":44},[6466],{"type":14,"value":131},{"type":9,"tag":37,"props":6468,"children":6469},{"class":39,"line":244},[6470],{"type":9,"tag":37,"props":6471,"children":6472},{"style":44},[6473],{"type":14,"value":997},{"type":9,"tag":37,"props":6475,"children":6476},{"class":39,"line":258},[6477],{"type":9,"tag":37,"props":6478,"children":6479},{"emptyLinePlaceholder":138},[6480],{"type":14,"value":141},{"type":9,"tag":37,"props":6482,"children":6483},{"class":39,"line":267},[6484,6488,6492,6496,6500,6504,6508],{"type":9,"tag":37,"props":6485,"children":6486},{"style":87},[6487],{"type":14,"value":90},{"type":9,"tag":37,"props":6489,"children":6490},{"style":93},[6491],{"type":14,"value":5468},{"type":9,"tag":37,"props":6493,"children":6494},{"style":87},[6495],{"type":14,"value":101},{"type":9,"tag":37,"props":6497,"children":6498},{"style":56},[6499],{"type":14,"value":163},{"type":9,"tag":37,"props":6501,"children":6502},{"style":44},[6503],{"type":14,"value":168},{"type":9,"tag":37,"props":6505,"children":6506},{"style":87},[6507],{"type":14,"value":173},{"type":9,"tag":37,"props":6509,"children":6510},{"style":44},[6511],{"type":14,"value":5489},{"type":9,"tag":37,"props":6513,"children":6514},{"class":39,"line":284},[6515],{"type":9,"tag":37,"props":6516,"children":6517},{"emptyLinePlaceholder":138},[6518],{"type":14,"value":141},{"type":9,"tag":37,"props":6520,"children":6521},{"class":39,"line":292},[6522,6526,6530,6534,6538,6542,6546,6550,6554,6558,6562],{"type":9,"tag":37,"props":6523,"children":6524},{"style":87},[6525],{"type":14,"value":90},{"type":9,"tag":37,"props":6527,"children":6528},{"style":93},[6529],{"type":14,"value":5508},{"type":9,"tag":37,"props":6531,"children":6532},{"style":87},[6533],{"type":14,"value":2866},{"type":9,"tag":37,"props":6535,"children":6536},{"style":56},[6537],{"type":14,"value":5517},{"type":9,"tag":37,"props":6539,"children":6540},{"style":44},[6541],{"type":14,"value":47},{"type":9,"tag":37,"props":6543,"children":6544},{"style":87},[6545],{"type":14,"value":5526},{"type":9,"tag":37,"props":6547,"children":6548},{"style":44},[6549],{"type":14,"value":5531},{"type":9,"tag":37,"props":6551,"children":6552},{"style":93},[6553],{"type":14,"value":3060},{"type":9,"tag":37,"props":6555,"children":6556},{"style":44},[6557],{"type":14,"value":5540},{"type":9,"tag":37,"props":6559,"children":6560},{"style":87},[6561],{"type":14,"value":69},{"type":9,"tag":37,"props":6563,"children":6564},{"style":44},[6565],{"type":14,"value":178},{"type":9,"tag":37,"props":6567,"children":6568},{"class":39,"line":309},[6569,6573,6577,6582],{"type":9,"tag":37,"props":6570,"children":6571},{"style":72},[6572],{"type":14,"value":5089},{"type":9,"tag":37,"props":6574,"children":6575},{"style":44},[6576],{"type":14,"value":679},{"type":9,"tag":37,"props":6578,"children":6579},{"style":72},[6580],{"type":14,"value":6581},"'按 dataKey（默认 data）抽取业务数据，调用方直接拿到去信封后的对象。'",{"type":9,"tag":37,"props":6583,"children":6584},{"style":44},[6585],{"type":14,"value":5207},{"type":9,"tag":37,"props":6587,"children":6588},{"class":39,"line":341},[6589,6593,6597,6602],{"type":9,"tag":37,"props":6590,"children":6591},{"style":72},[6592],{"type":14,"value":6303},{"type":9,"tag":37,"props":6594,"children":6595},{"style":44},[6596],{"type":14,"value":679},{"type":9,"tag":37,"props":6598,"children":6599},{"style":72},[6600],{"type":14,"value":6601},"'unwrap: false 不重写 response._data，保留完整 code\u002Fmessage\u002Fdata 信封。'",{"type":9,"tag":37,"props":6603,"children":6604},{"style":44},[6605],{"type":14,"value":5207},{"type":9,"tag":37,"props":6607,"children":6608},{"class":39,"line":431},[6609,6613,6617,6622],{"type":9,"tag":37,"props":6610,"children":6611},{"style":72},[6612],{"type":14,"value":6357},{"type":9,"tag":37,"props":6614,"children":6615},{"style":44},[6616],{"type":14,"value":679},{"type":9,"tag":37,"props":6618,"children":6619},{"style":72},[6620],{"type":14,"value":6621},"'legacy 接口未返回 code 字段，关闭校验后仍按 dataKey 解包出业务数据。'",{"type":9,"tag":37,"props":6623,"children":6624},{"style":44},[6625],{"type":14,"value":5207},{"type":9,"tag":37,"props":6627,"children":6628},{"class":39,"line":440},[6629,6633,6637],{"type":9,"tag":37,"props":6630,"children":6631},{"style":72},[6632],{"type":14,"value":6412},{"type":9,"tag":37,"props":6634,"children":6635},{"style":44},[6636],{"type":14,"value":679},{"type":9,"tag":37,"props":6638,"children":6639},{"style":72},[6640],{"type":14,"value":6641},"'external 接口信封非标，同时关闭两项由调用方完全自处理响应。'\n",{"type":9,"tag":37,"props":6643,"children":6644},{"class":39,"line":457},[6645],{"type":9,"tag":37,"props":6646,"children":6647},{"style":44},[6648],{"type":14,"value":997},{"type":9,"tag":37,"props":6650,"children":6651},{"class":39,"line":486},[6652],{"type":9,"tag":37,"props":6653,"children":6654},{"emptyLinePlaceholder":138},[6655],{"type":14,"value":141},{"type":9,"tag":37,"props":6657,"children":6658},{"class":39,"line":495},[6659,6663,6667,6671,6676,6680,6685,6689,6694,6698],{"type":9,"tag":37,"props":6660,"children":6661},{"style":56},[6662],{"type":14,"value":3366},{"type":9,"tag":37,"props":6664,"children":6665},{"style":44},[6666],{"type":14,"value":168},{"type":9,"tag":37,"props":6668,"children":6669},{"style":87},[6670],{"type":14,"value":173},{"type":9,"tag":37,"props":6672,"children":6673},{"style":44},[6674],{"type":14,"value":6675}," props.mode, () ",{"type":9,"tag":37,"props":6677,"children":6678},{"style":87},[6679],{"type":14,"value":173},{"type":9,"tag":37,"props":6681,"children":6682},{"style":44},[6683],{"type":14,"value":6684}," active.value.",{"type":9,"tag":37,"props":6686,"children":6687},{"style":56},[6688],{"type":14,"value":415},{"type":9,"tag":37,"props":6690,"children":6691},{"style":44},[6692],{"type":14,"value":6693},"(), { immediate: ",{"type":9,"tag":37,"props":6695,"children":6696},{"style":93},[6697],{"type":14,"value":3384},{"type":9,"tag":37,"props":6699,"children":6700},{"style":44},[6701],{"type":14,"value":131},{"type":9,"tag":37,"props":6703,"children":6704},{"class":39,"line":511},[6705,6709,6713],{"type":9,"tag":37,"props":6706,"children":6707},{"style":44},[6708],{"type":14,"value":273},{"type":9,"tag":37,"props":6710,"children":6711},{"style":50},[6712],{"type":14,"value":53},{"type":9,"tag":37,"props":6714,"children":6715},{"style":44},[6716],{"type":14,"value":80},{"type":9,"tag":37,"props":6718,"children":6719},{"class":39,"line":549},[6720],{"type":9,"tag":37,"props":6721,"children":6722},{"emptyLinePlaceholder":138},[6723],{"type":14,"value":141},{"type":9,"tag":37,"props":6725,"children":6726},{"class":39,"line":566},[6727,6731,6735],{"type":9,"tag":37,"props":6728,"children":6729},{"style":44},[6730],{"type":14,"value":47},{"type":9,"tag":37,"props":6732,"children":6733},{"style":50},[6734],{"type":14,"value":302},{"type":9,"tag":37,"props":6736,"children":6737},{"style":44},[6738],{"type":14,"value":80},{"type":9,"tag":37,"props":6740,"children":6741},{"class":39,"line":1108},[6742,6746,6750,6754,6758,6762],{"type":9,"tag":37,"props":6743,"children":6744},{"style":44},[6745],{"type":14,"value":315},{"type":9,"tag":37,"props":6747,"children":6748},{"style":50},[6749],{"type":14,"value":320},{"type":9,"tag":37,"props":6751,"children":6752},{"style":56},[6753],{"type":14,"value":325},{"type":9,"tag":37,"props":6755,"children":6756},{"style":44},[6757],{"type":14,"value":69},{"type":9,"tag":37,"props":6759,"children":6760},{"style":72},[6761],{"type":14,"value":334},{"type":9,"tag":37,"props":6763,"children":6764},{"style":44},[6765],{"type":14,"value":80},{"type":9,"tag":37,"props":6767,"children":6768},{"class":39,"line":1120},[6769,6773,6777,6781,6785,6789],{"type":9,"tag":37,"props":6770,"children":6771},{"style":44},[6772],{"type":14,"value":347},{"type":9,"tag":37,"props":6774,"children":6775},{"style":50},[6776],{"type":14,"value":1261},{"type":9,"tag":37,"props":6778,"children":6779},{"style":56},[6780],{"type":14,"value":1308},{"type":9,"tag":37,"props":6782,"children":6783},{"style":44},[6784],{"type":14,"value":69},{"type":9,"tag":37,"props":6786,"children":6787},{"style":72},[6788],{"type":14,"value":1317},{"type":9,"tag":37,"props":6790,"children":6791},{"style":44},[6792],{"type":14,"value":80},{"type":9,"tag":37,"props":6794,"children":6795},{"class":39,"line":1137},[6796],{"type":9,"tag":37,"props":6797,"children":6798},{"style":44},[6799],{"type":14,"value":6800},"      {{ mode }}\n",{"type":9,"tag":37,"props":6802,"children":6803},{"class":39,"line":1145},[6804,6808,6812],{"type":9,"tag":37,"props":6805,"children":6806},{"style":44},[6807],{"type":14,"value":446},{"type":9,"tag":37,"props":6809,"children":6810},{"style":50},[6811],{"type":14,"value":1261},{"type":9,"tag":37,"props":6813,"children":6814},{"style":44},[6815],{"type":14,"value":80},{"type":9,"tag":37,"props":6817,"children":6818},{"class":39,"line":1153},[6819,6823,6827,6831,6835,6839],{"type":9,"tag":37,"props":6820,"children":6821},{"style":44},[6822],{"type":14,"value":347},{"type":9,"tag":37,"props":6824,"children":6825},{"style":50},[6826],{"type":14,"value":10},{"type":9,"tag":37,"props":6828,"children":6829},{"style":56},[6830],{"type":14,"value":325},{"type":9,"tag":37,"props":6832,"children":6833},{"style":44},[6834],{"type":14,"value":69},{"type":9,"tag":37,"props":6836,"children":6837},{"style":72},[6838],{"type":14,"value":479},{"type":9,"tag":37,"props":6840,"children":6841},{"style":44},[6842],{"type":14,"value":80},{"type":9,"tag":37,"props":6844,"children":6845},{"class":39,"line":1169},[6846],{"type":9,"tag":37,"props":6847,"children":6848},{"style":44},[6849],{"type":14,"value":6020},{"type":9,"tag":37,"props":6851,"children":6852},{"class":39,"line":1177},[6853,6857,6861],{"type":9,"tag":37,"props":6854,"children":6855},{"style":44},[6856],{"type":14,"value":446},{"type":9,"tag":37,"props":6858,"children":6859},{"style":50},[6860],{"type":14,"value":10},{"type":9,"tag":37,"props":6862,"children":6863},{"style":44},[6864],{"type":14,"value":80},{"type":9,"tag":37,"props":6866,"children":6867},{"class":39,"line":1193},[6868,6872,6876,6880,6884,6888,6893,6897],{"type":9,"tag":37,"props":6869,"children":6870},{"style":44},[6871],{"type":14,"value":347},{"type":9,"tag":37,"props":6873,"children":6874},{"style":50},[6875],{"type":14,"value":26},{"type":9,"tag":37,"props":6877,"children":6878},{"style":56},[6879],{"type":14,"value":325},{"type":9,"tag":37,"props":6881,"children":6882},{"style":44},[6883],{"type":14,"value":69},{"type":9,"tag":37,"props":6885,"children":6886},{"style":72},[6887],{"type":14,"value":533},{"type":9,"tag":37,"props":6889,"children":6890},{"style":44},[6891],{"type":14,"value":6892},">{{ active.data.value }}\u003C\u002F",{"type":9,"tag":37,"props":6894,"children":6895},{"style":50},[6896],{"type":14,"value":26},{"type":9,"tag":37,"props":6898,"children":6899},{"style":44},[6900],{"type":14,"value":80},{"type":9,"tag":37,"props":6902,"children":6903},{"class":39,"line":1221},[6904,6908,6912],{"type":9,"tag":37,"props":6905,"children":6906},{"style":44},[6907],{"type":14,"value":555},{"type":9,"tag":37,"props":6909,"children":6910},{"style":50},[6911],{"type":14,"value":320},{"type":9,"tag":37,"props":6913,"children":6914},{"style":44},[6915],{"type":14,"value":80},{"type":9,"tag":37,"props":6917,"children":6918},{"class":39,"line":1250},[6919,6923,6927],{"type":9,"tag":37,"props":6920,"children":6921},{"style":44},[6922],{"type":14,"value":273},{"type":9,"tag":37,"props":6924,"children":6925},{"style":50},[6926],{"type":14,"value":302},{"type":9,"tag":37,"props":6928,"children":6929},{"style":44},[6930],{"type":14,"value":80},{"type":9,"tag":581,"props":6932,"children":6933},{},[6934],{"type":14,"value":585},{"title":22,"searchDepth":83,"depth":83,"links":6936},[],{"id":6938,"title":719,"body":6939,"category":9574,"description":15,"difficulty":9574,"extension":9575,"index":9576,"keywords":9574,"links":9574,"meta":9577,"navigation":9574,"path":9578,"requires":9574,"seo":9579,"sitemap":9580,"stem":9581,"__hash__":9582},"docs_en\u002Fen\u002Fdocs\u002F4.api\u002F2.api-plugin.md",{"type":6940,"value":6941,"toc":9543},"minimark",[6942,6947,6962,6966,7184,7199,7203,7210,7361,7368,7373,7389,7393,7397,7407,7409,7413,7419,7421,7427,7431,7465,7469,7480,7482,7486,7495,7497,7501,7506,7508,7512,7525,7527,7531,7552,7604,7607,7611,7622,7707,7783,7799,7803,7812,7865,7878,7881,7885,7891,8137,8141,8150,8318,8322,8454,8458,8464,8717,8818,8822,8830,8957,8967,9010,9023,9027,9063,9176,9180,9184,9189,9294,9328,9331,9334,9382,9385,9488,9540],[6943,6944,6946],"h2",{"id":6945},"introduction","Introduction",[10,6948,6949,6951,6952,6955,6956,659,6958,6961],{},[33,6950,719],{}," is a global ",[33,6953,6954],{},"$fetch"," instance injected by a Nuxt plugin, with a full built-in interceptor chain (auth injection, business status code checking, data unwrapping, Toast notifications). It is the underlying engine for all API composables (",[33,6957,5098],{},[33,6959,6960],{},"useLazyApiFetch",", etc.).",[6943,6963,6965],{"id":6964},"usage","Usage",[26,6967,6971],{"className":6968,"code":6969,"language":6970,"meta":22,"style":22},"language-ts shiki shiki-themes github-light github-light github-dark","const { $api } = useNuxtApp()\n\n\u002F\u002F GET request (data is automatically unwrapped)\nconst users = await $api\u003CUser[]>('\u002Fusers')\n\n\u002F\u002F POST request\nconst user = await $api\u003CUser>('\u002Fusers', {\n  method: 'POST',\n  body: { name: 'test', email: 'test@example.com' }\n})\n\n\u002F\u002F PUT request\nconst updated = await $api\u003CUser>(`\u002Fusers\u002F${id}`, {\n  method: 'PUT',\n  body: { name: 'new-name' }\n})\n\n\u002F\u002F DELETE request\nawait $api(`\u002Fusers\u002F${id}`, { method: 'DELETE' })\n","ts",[33,6972,6973,6993,6997,7003,7030,7034,7039,7063,7072,7088,7092,7096,7101,7131,7140,7149,7153,7157,7162],{"__ignoreMap":22},[37,6974,6975,6978,6981,6984,6986,6988,6991],{"class":39,"line":40},[37,6976,90],{"class":6977},"s8jYJ",[37,6979,649],{"class":6980},"sxrX7",[37,6982,719],{"class":6983},"sBjJW",[37,6985,689],{"class":6980},[37,6987,69],{"class":6977},[37,6989,732],{"class":6990},"snPdu",[37,6992,703],{"class":6980},[37,6994,6995],{"class":39,"line":83},[37,6996,141],{"emptyLinePlaceholder":138},[37,6998,6999],{"class":39,"line":134},[37,7000,7002],{"class":7001},"sCsY4","\u002F\u002F GET request (data is automatically unwrapped)\n",[37,7004,7005,7007,7010,7012,7014,7016,7018,7021,7024,7028],{"class":39,"line":144},[37,7006,90],{"class":6977},[37,7008,7009],{"class":6983}," users",[37,7011,101],{"class":6977},[37,7013,3208],{"class":6977},[37,7015,907],{"class":6990},[37,7017,47],{"class":6980},[37,7019,7020],{"class":6990},"User",[37,7022,7023],{"class":6980},"[]>(",[37,7025,7027],{"class":7026},"sIIMD","'\u002Fusers'",[37,7029,803],{"class":6980},[37,7031,7032],{"class":39,"line":181},[37,7033,141],{"emptyLinePlaceholder":138},[37,7035,7036],{"class":39,"line":195},[37,7037,7038],{"class":7001},"\u002F\u002F POST request\n",[37,7040,7041,7043,7046,7048,7050,7052,7054,7056,7058,7060],{"class":39,"line":208},[37,7042,90],{"class":6977},[37,7044,7045],{"class":6983}," user",[37,7047,101],{"class":6977},[37,7049,3208],{"class":6977},[37,7051,907],{"class":6990},[37,7053,47],{"class":6980},[37,7055,7020],{"class":6990},[37,7057,2990],{"class":6980},[37,7059,7027],{"class":7026},[37,7061,7062],{"class":6980},", {\n",[37,7064,7065,7068,7070],{"class":39,"line":217},[37,7066,7067],{"class":6980},"  method: ",[37,7069,926],{"class":7026},[37,7071,5207],{"class":6980},[37,7073,7074,7077,7080,7083,7086],{"class":39,"line":226},[37,7075,7076],{"class":6980},"  body: { name: ",[37,7078,7079],{"class":7026},"'test'",[37,7081,7082],{"class":6980},", email: ",[37,7084,7085],{"class":7026},"'test@example.com'",[37,7087,5251],{"class":6980},[37,7089,7090],{"class":39,"line":235},[37,7091,264],{"class":6980},[37,7093,7094],{"class":39,"line":244},[37,7095,141],{"emptyLinePlaceholder":138},[37,7097,7098],{"class":39,"line":258},[37,7099,7100],{"class":7001},"\u002F\u002F PUT request\n",[37,7102,7103,7105,7108,7110,7112,7114,7116,7118,7120,7123,7126,7129],{"class":39,"line":267},[37,7104,90],{"class":6977},[37,7106,7107],{"class":6983}," updated",[37,7109,101],{"class":6977},[37,7111,3208],{"class":6977},[37,7113,907],{"class":6990},[37,7115,47],{"class":6980},[37,7117,7020],{"class":6990},[37,7119,2990],{"class":6980},[37,7121,7122],{"class":7026},"`\u002Fusers\u002F${",[37,7124,7125],{"class":6980},"id",[37,7127,7128],{"class":7026},"}`",[37,7130,7062],{"class":6980},[37,7132,7133,7135,7138],{"class":39,"line":284},[37,7134,7067],{"class":6980},[37,7136,7137],{"class":7026},"'PUT'",[37,7139,5207],{"class":6980},[37,7141,7142,7144,7147],{"class":39,"line":292},[37,7143,7076],{"class":6980},[37,7145,7146],{"class":7026},"'new-name'",[37,7148,5251],{"class":6980},[37,7150,7151],{"class":39,"line":309},[37,7152,264],{"class":6980},[37,7154,7155],{"class":39,"line":341},[37,7156,141],{"emptyLinePlaceholder":138},[37,7158,7159],{"class":39,"line":431},[37,7160,7161],{"class":7001},"\u002F\u002F DELETE request\n",[37,7163,7164,7167,7169,7171,7173,7175,7177,7179,7182],{"class":39,"line":440},[37,7165,7166],{"class":6977},"await",[37,7168,907],{"class":6990},[37,7170,111],{"class":6980},[37,7172,7122],{"class":7026},[37,7174,7125],{"class":6980},[37,7176,7128],{"class":7026},[37,7178,921],{"class":6980},[37,7180,7181],{"class":7026},"'DELETE'",[37,7183,131],{"class":6980},[7185,7186,7187,7188,7190,7191,7194,7195,7198],"note",{},"Data returned by ",[33,7189,719],{}," has already been automatically unwrapped by the interceptor (the ",[33,7192,7193],{},"dataKey"," field is extracted); the generic ",[33,7196,7197],{},"T"," directly maps to the business data type.",[6943,7200,7202],{"id":7201},"multi-endpoint-switching","Multi-Endpoint Switching",[10,7204,7205,7206,7209],{},"Use ",[33,7207,7208],{},"$api.use(endpoint)"," to switch to a specific endpoint:",[26,7211,7213],{"className":6968,"code":7212,"language":6970,"meta":22,"style":22},"const { $api } = useNuxtApp()\n\n\u002F\u002F Use the default endpoint\nconst users = await $api('\u002Fusers')\n\n\u002F\u002F Switch to the admin endpoint\nconst adminUsers = await $api.use('admin')('\u002Fusers')\n\n\u002F\u002F Save an endpoint reference to avoid repeated use() calls\nconst adminApi = $api.use('admin')\nconst config = await adminApi('\u002Fconfig')\nconst stats = await adminApi('\u002Fstats')\n",[33,7214,7215,7231,7235,7240,7258,7262,7267,7293,7297,7302,7321,7341],{"__ignoreMap":22},[37,7216,7217,7219,7221,7223,7225,7227,7229],{"class":39,"line":40},[37,7218,90],{"class":6977},[37,7220,649],{"class":6980},[37,7222,719],{"class":6983},[37,7224,689],{"class":6980},[37,7226,69],{"class":6977},[37,7228,732],{"class":6990},[37,7230,703],{"class":6980},[37,7232,7233],{"class":39,"line":83},[37,7234,141],{"emptyLinePlaceholder":138},[37,7236,7237],{"class":39,"line":134},[37,7238,7239],{"class":7001},"\u002F\u002F Use the default endpoint\n",[37,7241,7242,7244,7246,7248,7250,7252,7254,7256],{"class":39,"line":144},[37,7243,90],{"class":6977},[37,7245,7009],{"class":6983},[37,7247,101],{"class":6977},[37,7249,3208],{"class":6977},[37,7251,907],{"class":6990},[37,7253,111],{"class":6980},[37,7255,7027],{"class":7026},[37,7257,803],{"class":6980},[37,7259,7260],{"class":39,"line":181},[37,7261,141],{"emptyLinePlaceholder":138},[37,7263,7264],{"class":39,"line":195},[37,7265,7266],{"class":7001},"\u002F\u002F Switch to the admin endpoint\n",[37,7268,7269,7271,7274,7276,7278,7280,7282,7284,7287,7289,7291],{"class":39,"line":208},[37,7270,90],{"class":6977},[37,7272,7273],{"class":6983}," adminUsers",[37,7275,101],{"class":6977},[37,7277,3208],{"class":6977},[37,7279,3213],{"class":6980},[37,7281,3218],{"class":6990},[37,7283,111],{"class":6980},[37,7285,7286],{"class":7026},"'admin'",[37,7288,4148],{"class":6980},[37,7290,7027],{"class":7026},[37,7292,803],{"class":6980},[37,7294,7295],{"class":39,"line":217},[37,7296,141],{"emptyLinePlaceholder":138},[37,7298,7299],{"class":39,"line":226},[37,7300,7301],{"class":7001},"\u002F\u002F Save an endpoint reference to avoid repeated use() calls\n",[37,7303,7304,7306,7309,7311,7313,7315,7317,7319],{"class":39,"line":235},[37,7305,90],{"class":6977},[37,7307,7308],{"class":6983}," adminApi",[37,7310,101],{"class":6977},[37,7312,3213],{"class":6980},[37,7314,3218],{"class":6990},[37,7316,111],{"class":6980},[37,7318,7286],{"class":7026},[37,7320,803],{"class":6980},[37,7322,7323,7325,7328,7330,7332,7334,7336,7339],{"class":39,"line":244},[37,7324,90],{"class":6977},[37,7326,7327],{"class":6983}," config",[37,7329,101],{"class":6977},[37,7331,3208],{"class":6977},[37,7333,7308],{"class":6990},[37,7335,111],{"class":6980},[37,7337,7338],{"class":7026},"'\u002Fconfig'",[37,7340,803],{"class":6980},[37,7342,7343,7345,7348,7350,7352,7354,7356,7359],{"class":39,"line":258},[37,7344,90],{"class":6977},[37,7346,7347],{"class":6983}," stats",[37,7349,101],{"class":6977},[37,7351,3208],{"class":6977},[37,7353,7308],{"class":6990},[37,7355,111],{"class":6980},[37,7357,7358],{"class":7026},"'\u002Fstats'",[37,7360,803],{"class":6980},[10,7362,7363,7364,7367],{},"Endpoint instances are internally cached, so multiple calls to ",[33,7365,7366],{},"$api.use('admin')"," return the same instance.",[7369,7370,7372],"h3",{"id":7371},"switch-and-compare-baseurl","Switch and Compare baseURL",[10,7374,7375,7377,7378,7381,7382,7385,7386,7388],{},[33,7376,719],{}," uses the ",[33,7379,7380],{},"baseURL"," of the default endpoint; calling ",[33,7383,7384],{},"$api.use(name)"," switches to the named endpoint's ",[33,7387,7380],{},". Select a different endpoint in the dropdown to observe the baseURL and response change accordingly:",[7390,7391],"component-example",{"name":2782,":options":7392,":collapse":3384},"[{\"name\":\"endpoint\",\"label\":\"endpoint\",\"items\":[\"default\",\"v2\"],\"default\":\"default\"}]",[7369,7394,7396],{"id":7395},"imperative-usage","Imperative Usage",[10,7398,7399,7400,7403,7404,7406],{},"Outside a ",[33,7401,7402],{},"useFetch"," context, obtain an endpoint instance via ",[33,7405,7384],{}," and make raw requests directly:",[7390,7408],{"name":3846},[7369,7410,7412],{"id":7411},"active-runtime-config","Active Runtime Config",[10,7414,7415,7418],{},[33,7416,7417],{},"runtimeConfig.public.movkApi"," exposes the endpoint list and default endpoint name for runtime debugging:",[7390,7420],{"name":4519},[7422,7423,7426],"tip",{"icon":7424,"to":7425},"i-lucide-settings","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fconfiguration#endpoints","Learn how to configure multiple API endpoints",[6943,7428,7430],{"id":7429},"auth-integration","Auth Integration",[10,7432,7433,7434,7437,7438,7441,7442,7445,7446,7449,7450,7453,7454,7456,7457,7460,7461,7464],{},"When ",[33,7435,7436],{},"auth"," is enabled and ",[33,7439,7440],{},"tokenSource"," is ",[33,7443,7444],{},"'session'"," (default), the module automatically integrates with ",[33,7447,7448],{},"nuxt-auth-utils",": after login it reads the token from ",[33,7451,7452],{},"session[sessionTokenPath]"," and all ",[33,7455,719],{}," requests automatically inject the ",[33,7458,7459],{},"Authorization"," header. On a 401 response, the ",[33,7462,7463],{},"auth.unauthorized"," strategy clears the session or redirects to the login page.",[7369,7466,7468],{"id":7467},"current-session","Current Session",[10,7470,7471,7472,7475,7476,7479],{},"The reactive session exposed by ",[33,7473,7474],{},"useUserSession","; call ",[33,7477,7478],{},"fetch()"," after login\u002Flogout to sync state:",[7390,7481],{"name":591,":collapse":3384},[7369,7483,7485],{"id":7484},"calling-a-protected-endpoint","Calling a Protected Endpoint",[10,7487,7488,7490,7491,7494],{},[33,7489,5098],{}," automatically carries the Authorization header when accessing ",[33,7492,7493],{},"\u002Fdemo\u002Fprotected","; returns 401 when not logged in:",[7390,7496],{"name":19},[7369,7498,7500],{"id":7499},"_401-handling-strategy","401 Handling Strategy",[10,7502,7503,7505],{},[33,7504,7463],{}," controls redirect and session clearing; this docs site disables redirect for demonstration purposes:",[7390,7507],{"name":2473},[7369,7509,7511],{"id":7510},"token-injection-format","Token Injection Format",[10,7513,7514,7517,7518,7521,7522,7524],{},[33,7515,7516],{},"headerName"," + ",[33,7519,7520],{},"tokenType"," determine the final request header format; the backend echoes the ",[33,7523,2086],{}," field for verification:",[7390,7526],{"name":1859},[6943,7528,7530],{"id":7529},"data-unwrapping-and-business-validation","Data Unwrapping and Business Validation",[10,7532,7533,7535,7536,7539,7540,7543,7544,7547,7548,7551],{},[33,7534,719],{}," extracts business data by ",[33,7537,7538],{},"response.dataKey"," and validates the business code against ",[33,7541,7542],{},"successCodes"," by default. The ",[33,7545,7546],{},"unwrap"," \u002F ",[33,7549,7550],{},"businessCheck"," switches can be declared globally, per endpoint or per request, with precedence explicit request value > endpoint > global. Select a mode in the dropdown to observe the difference in the returned structure:",[7553,7554,7555,7566,7583,7598],"ul",{},[7556,7557,7558,7561,7562,7565],"li",{},[33,7559,7560],{},"default",": Extracts business data by the default ",[33,7563,7564],{},"data"," field; the caller receives the de-enveloped object directly.",[7556,7567,7568,679,7571,7574,7575,7578,7579,7582],{},[33,7569,7570],{},"no-unwrap",[33,7572,7573],{},"unwrap: false"," — does not overwrite ",[33,7576,7577],{},"response._data",", preserving the full ",[33,7580,7581],{},"code\u002Fmessage\u002Fdata"," envelope.",[7556,7584,7585,7588,7589,7591,7592,7595,7596,5031],{},[33,7586,7587],{},"no-business-check",": Legacy endpoints that don't return a ",[33,7590,33],{}," field — ",[33,7593,7594],{},"businessCheck: false"," disables validation and still unwraps the business data by ",[33,7597,7193],{},[7556,7599,7600,7603],{},[33,7601,7602],{},"combined",": Non-standard external envelopes — disable both to let the caller handle the response entirely.",[7390,7605],{"name":6110,":options":7606},"[{\"name\":\"mode\",\"label\":\"Mode\",\"items\":[\"default\",\"no-unwrap\",\"no-business-check\",\"combined\"],\"default\":\"default\"}]",[7369,7608,7610],{"id":7609},"endpoint-level-declaration","Endpoint-Level Declaration",[10,7612,7613,7614,7617,7618,7621],{},"Returning a bare array or object (no ",[33,7615,7616],{},"{ code, data }"," envelope) is an inherent property of an endpoint. Declare it once on the endpoint ",[33,7619,7620],{},"response",", and every request to that endpoint (including upload, download and streaming) follows it:",[26,7623,7626],{"className":6968,"code":7624,"filename":7625,"language":6970,"meta":22,"style":22},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      endpoints: {\n        sensor: {\n          baseURL: process.env.NUXT_SENSOR_URL,\n          response: { businessCheck: false, unwrap: false }\n        }\n      }\n    }\n  }\n})\n","nuxt.config.ts",[33,7627,7628,7642,7647,7652,7657,7662,7672,7685,7690,7695,7699,7703],{"__ignoreMap":22},[37,7629,7630,7633,7636,7639],{"class":39,"line":40},[37,7631,7632],{"class":6977},"export",[37,7634,7635],{"class":6977}," default",[37,7637,7638],{"class":6990}," defineNuxtConfig",[37,7640,7641],{"class":6980},"({\n",[37,7643,7644],{"class":39,"line":83},[37,7645,7646],{"class":6980},"  movk: {\n",[37,7648,7649],{"class":39,"line":134},[37,7650,7651],{"class":6980},"    api: {\n",[37,7653,7654],{"class":39,"line":144},[37,7655,7656],{"class":6980},"      endpoints: {\n",[37,7658,7659],{"class":39,"line":181},[37,7660,7661],{"class":6980},"        sensor: {\n",[37,7663,7664,7667,7670],{"class":39,"line":195},[37,7665,7666],{"class":6980},"          baseURL: process.env.",[37,7668,7669],{"class":6983},"NUXT_SENSOR_URL",[37,7671,5207],{"class":6980},[37,7673,7674,7677,7679,7681,7683],{"class":39,"line":208},[37,7675,7676],{"class":6980},"          response: { businessCheck: ",[37,7678,126],{"class":6983},[37,7680,6341],{"class":6980},[37,7682,126],{"class":6983},[37,7684,5251],{"class":6980},[37,7686,7687],{"class":39,"line":217},[37,7688,7689],{"class":6980},"        }\n",[37,7691,7692],{"class":39,"line":226},[37,7693,7694],{"class":6980},"      }\n",[37,7696,7697],{"class":39,"line":235},[37,7698,232],{"class":6980},[37,7700,7701],{"class":39,"line":244},[37,7702,241],{"class":6980},[37,7704,7705],{"class":39,"line":258},[37,7706,264],{"class":6980},[26,7708,7710],{"className":6968,"code":7709,"language":6970,"meta":22,"style":22},"\u002F\u002F Receives the array directly\nconst points = await $api.use('sensor')\u003CSensorPoint[]>('\u002Fpoint-numbers')\n\n\u002F\u002F Explicit request values win: re-enable business-code checking for a single request\nawait $api.use('sensor')('\u002Flegacy', { businessCheck: true })\n",[33,7711,7712,7717,7750,7754,7759],{"__ignoreMap":22},[37,7713,7714],{"class":39,"line":40},[37,7715,7716],{"class":7001},"\u002F\u002F Receives the array directly\n",[37,7718,7719,7721,7724,7726,7728,7730,7732,7734,7737,7740,7743,7745,7748],{"class":39,"line":83},[37,7720,90],{"class":6977},[37,7722,7723],{"class":6983}," points",[37,7725,101],{"class":6977},[37,7727,3208],{"class":6977},[37,7729,3213],{"class":6980},[37,7731,3218],{"class":6990},[37,7733,111],{"class":6980},[37,7735,7736],{"class":7026},"'sensor'",[37,7738,7739],{"class":6980},")\u003C",[37,7741,7742],{"class":6990},"SensorPoint",[37,7744,7023],{"class":6980},[37,7746,7747],{"class":7026},"'\u002Fpoint-numbers'",[37,7749,803],{"class":6980},[37,7751,7752],{"class":39,"line":134},[37,7753,141],{"emptyLinePlaceholder":138},[37,7755,7756],{"class":39,"line":144},[37,7757,7758],{"class":7001},"\u002F\u002F Explicit request values win: re-enable business-code checking for a single request\n",[37,7760,7761,7763,7765,7767,7769,7771,7773,7776,7779,7781],{"class":39,"line":181},[37,7762,7166],{"class":6977},[37,7764,3213],{"class":6980},[37,7766,3218],{"class":6990},[37,7768,111],{"class":6980},[37,7770,7736],{"class":7026},[37,7772,4148],{"class":6980},[37,7774,7775],{"class":7026},"'\u002Flegacy'",[37,7777,7778],{"class":6980},", { businessCheck: ",[37,7780,3384],{"class":6983},[37,7782,131],{"class":6980},[7185,7784,7785,7786,7788,7789,7441,7792,7795,7796,5031],{},"With checking enabled, a non-object response body (",[33,7787,2995],{},", string, array, etc.) is treated as a business failure (",[33,7790,7791],{},"error.data.kind",[33,7793,7794],{},"business",") instead of throwing a ",[33,7797,7798],{},"TypeError",[6943,7800,7802],{"id":7801},"toast-notifications","Toast Notifications",[10,7804,7805,7807,7808,7811],{},[33,7806,719],{}," has built-in Toast notifications, determining success\u002Ffailure by ",[33,7809,7810],{},"toast.successCodes",". Supports two levels of customization: global defaults and per-request overrides. Select a mode in the dropdown and toggle the \"inject error\" switch to observe the success\u002Ffailure branches:",[7553,7813,7814,7823,7832,7844,7853],{},[7556,7815,7816,7818,7819,7822],{},[33,7817,7560],{},": No ",[33,7820,7821],{},"toast"," passed — inherits global config; both success and error use the default style.",[7556,7824,7825,679,7828,7831],{},[33,7826,7827],{},"silent",[33,7829,7830],{},"toast: false"," — disables all per-request notifications.",[7556,7833,7834,679,7837,7547,7840,7843],{},[33,7835,7836],{},"message",[33,7838,7839],{},"successMessage",[33,7841,7842],{},"errorMessage"," replace the default text.",[7556,7845,7846,679,7849,7852],{},[33,7847,7848],{},"error-only",[33,7850,7851],{},"{ success: false }"," — disables success notification but keeps error notification.",[7556,7854,7855,7858,7859,659,7861,7864],{},[33,7856,7857],{},"custom",": Overrides ",[33,7860,1271],{},[33,7862,7863],{},"icon"," and other ToastProps for success and error separately.",[7185,7866,7867,7868,7871,7872,7875,7876,5031],{},"Setting ",[33,7869,7870],{},"toast.success.methods"," in the global or endpoint config limits success notifications to mutating requests (POST \u002F PUT \u002F PATCH \u002F DELETE). A single GET can still opt back in with request-level ",[33,7873,7874],{},"{ success: { show: true } }"," or ",[33,7877,7839],{},[7390,7879],{"name":4828,":options":7880},"[{\"name\":\"mode\",\"label\":\"Mode\",\"items\":[\"default\",\"silent\",\"message\",\"error-only\",\"custom\"],\"default\":\"default\"}]",[6943,7882,7884],{"id":7883},"using-in-event-handlers","Using in Event Handlers",[10,7886,7887,7888,7890],{},"Using ",[33,7889,719],{}," inside event handlers is the most common scenario:",[26,7892,7894],{"className":28,"code":7893,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst { $api } = useNuxtApp()\n\n\u002F\u002F Form submission\nasync function handleCreate(formData: CreateUserRequest) {\n  try {\n    const user = await $api\u003CUser>('\u002Fusers', {\n      method: 'POST',\n      body: formData\n    })\n    \u002F\u002F Toast is shown automatically, no manual handling needed\n    navigateTo(`\u002Fusers\u002F${user.id}`)\n  }\n  catch (error) {\n    \u002F\u002F Business error Toast is shown automatically\n    \u002F\u002F Add extra logic here if needed (e.g. highlight form fields)\n  }\n}\n\n\u002F\u002F Delete confirmation\nasync function handleDelete(id: string) {\n  await $api(`\u002Fusers\u002F${id}`, { method: 'DELETE' })\n  await refreshNuxtData() \u002F\u002F Refresh page-cached data\n}\n\u003C\u002Fscript>\n",[33,7895,7896,7913,7929,7933,7938,7961,7967,7990,7999,8004,8009,8014,8034,8038,8045,8050,8055,8059,8063,8067,8072,8091,8112,8125,8129],{"__ignoreMap":22},[37,7897,7898,7900,7903,7905,7907,7909,7911],{"class":39,"line":40},[37,7899,47],{"class":6980},[37,7901,53],{"class":7902},"sovSZ",[37,7904,59],{"class":6990},[37,7906,64],{"class":6990},[37,7908,69],{"class":6980},[37,7910,75],{"class":7026},[37,7912,80],{"class":6980},[37,7914,7915,7917,7919,7921,7923,7925,7927],{"class":39,"line":83},[37,7916,90],{"class":6977},[37,7918,649],{"class":6980},[37,7920,719],{"class":6983},[37,7922,689],{"class":6980},[37,7924,69],{"class":6977},[37,7926,732],{"class":6990},[37,7928,703],{"class":6980},[37,7930,7931],{"class":39,"line":134},[37,7932,141],{"emptyLinePlaceholder":138},[37,7934,7935],{"class":39,"line":144},[37,7936,7937],{"class":7001},"\u002F\u002F Form submission\n",[37,7939,7940,7942,7944,7947,7949,7953,7955,7958],{"class":39,"line":181},[37,7941,850],{"class":6977},[37,7943,855],{"class":6977},[37,7945,7946],{"class":6990}," handleCreate",[37,7948,111],{"class":6980},[37,7950,7952],{"class":7951},"sP4rz","formData",[37,7954,2866],{"class":6977},[37,7956,7957],{"class":6990}," CreateUserRequest",[37,7959,7960],{"class":6980},") {\n",[37,7962,7963,7965],{"class":39,"line":195},[37,7964,890],{"class":6977},[37,7966,178],{"class":6980},[37,7968,7969,7972,7974,7976,7978,7980,7982,7984,7986,7988],{"class":39,"line":208},[37,7970,7971],{"class":6977},"    const",[37,7973,7045],{"class":6983},[37,7975,101],{"class":6977},[37,7977,3208],{"class":6977},[37,7979,907],{"class":6990},[37,7981,47],{"class":6980},[37,7983,7020],{"class":6990},[37,7985,2990],{"class":6980},[37,7987,7027],{"class":7026},[37,7989,7062],{"class":6980},[37,7991,7992,7995,7997],{"class":39,"line":217},[37,7993,7994],{"class":6980},"      method: ",[37,7996,926],{"class":7026},[37,7998,5207],{"class":6980},[37,8000,8001],{"class":39,"line":226},[37,8002,8003],{"class":6980},"      body: formData\n",[37,8005,8006],{"class":39,"line":235},[37,8007,8008],{"class":6980},"    })\n",[37,8010,8011],{"class":39,"line":244},[37,8012,8013],{"class":7001},"    \u002F\u002F Toast is shown automatically, no manual handling needed\n",[37,8015,8016,8019,8021,8023,8026,8028,8030,8032],{"class":39,"line":258},[37,8017,8018],{"class":6990},"    navigateTo",[37,8020,111],{"class":6980},[37,8022,7122],{"class":7026},[37,8024,8025],{"class":6980},"user",[37,8027,5031],{"class":7026},[37,8029,7125],{"class":6980},[37,8031,7128],{"class":7026},[37,8033,803],{"class":6980},[37,8035,8036],{"class":39,"line":267},[37,8037,241],{"class":6980},[37,8039,8040,8042],{"class":39,"line":284},[37,8041,3247],{"class":6977},[37,8043,8044],{"class":6980}," (error) {\n",[37,8046,8047],{"class":39,"line":292},[37,8048,8049],{"class":7001},"    \u002F\u002F Business error Toast is shown automatically\n",[37,8051,8052],{"class":39,"line":309},[37,8053,8054],{"class":7001},"    \u002F\u002F Add extra logic here if needed (e.g. highlight form fields)\n",[37,8056,8057],{"class":39,"line":341},[37,8058,241],{"class":6980},[37,8060,8061],{"class":39,"line":431},[37,8062,997],{"class":6980},[37,8064,8065],{"class":39,"line":440},[37,8066,141],{"emptyLinePlaceholder":138},[37,8068,8069],{"class":39,"line":457},[37,8070,8071],{"class":7001},"\u002F\u002F Delete confirmation\n",[37,8073,8074,8076,8078,8081,8083,8085,8087,8089],{"class":39,"line":486},[37,8075,850],{"class":6977},[37,8077,855],{"class":6977},[37,8079,8080],{"class":6990}," handleDelete",[37,8082,111],{"class":6980},[37,8084,7125],{"class":7951},[37,8086,2866],{"class":6977},[37,8088,2096],{"class":6983},[37,8090,7960],{"class":6980},[37,8092,8093,8096,8098,8100,8102,8104,8106,8108,8110],{"class":39,"line":495},[37,8094,8095],{"class":6977},"  await",[37,8097,907],{"class":6990},[37,8099,111],{"class":6980},[37,8101,7122],{"class":7026},[37,8103,7125],{"class":6980},[37,8105,7128],{"class":7026},[37,8107,921],{"class":6980},[37,8109,7181],{"class":7026},[37,8111,131],{"class":6980},[37,8113,8114,8116,8119,8122],{"class":39,"line":511},[37,8115,8095],{"class":6977},[37,8117,8118],{"class":6990}," refreshNuxtData",[37,8120,8121],{"class":6980},"() ",[37,8123,8124],{"class":7001},"\u002F\u002F Refresh page-cached data\n",[37,8126,8127],{"class":39,"line":549},[37,8128,997],{"class":6980},[37,8130,8131,8133,8135],{"class":39,"line":566},[37,8132,273],{"class":6980},[37,8134,53],{"class":7902},[37,8136,80],{"class":6980},[6943,8138,8140],{"id":8139},"using-in-useasyncdata","Using in useAsyncData",[10,8142,8143,8144,8146,8147,2866],{},"When you need to aggregate multiple endpoints or do complex data processing, use ",[33,8145,719],{}," inside ",[33,8148,8149],{},"useAsyncData",[26,8151,8153],{"className":6968,"code":8152,"language":6970,"meta":22,"style":22},"const { $api } = useNuxtApp()\n\n\u002F\u002F Aggregate multiple endpoints\nconst { data: dashboard } = await useAsyncData('dashboard', async () => {\n  const [users, stats, recent] = await Promise.all([\n    $api\u003CUser[]>('\u002Fusers'),\n    $api\u003CStats>('\u002Fstats'),\n    $api\u003CActivity[]>('\u002Factivity\u002Frecent')\n  ])\n  return { users, stats, recent }\n})\n",[33,8154,8155,8171,8175,8180,8217,8255,8271,8286,8302,8307,8314],{"__ignoreMap":22},[37,8156,8157,8159,8161,8163,8165,8167,8169],{"class":39,"line":40},[37,8158,90],{"class":6977},[37,8160,649],{"class":6980},[37,8162,719],{"class":6983},[37,8164,689],{"class":6980},[37,8166,69],{"class":6977},[37,8168,732],{"class":6990},[37,8170,703],{"class":6980},[37,8172,8173],{"class":39,"line":83},[37,8174,141],{"emptyLinePlaceholder":138},[37,8176,8177],{"class":39,"line":134},[37,8178,8179],{"class":7001},"\u002F\u002F Aggregate multiple endpoints\n",[37,8181,8182,8184,8186,8188,8190,8193,8195,8197,8199,8202,8204,8207,8209,8211,8213,8215],{"class":39,"line":144},[37,8183,90],{"class":6977},[37,8185,649],{"class":6980},[37,8187,7564],{"class":7951},[37,8189,679],{"class":6980},[37,8191,8192],{"class":6983},"dashboard",[37,8194,689],{"class":6980},[37,8196,69],{"class":6977},[37,8198,3208],{"class":6977},[37,8200,8201],{"class":6990}," useAsyncData",[37,8203,111],{"class":6980},[37,8205,8206],{"class":7026},"'dashboard'",[37,8208,659],{"class":6980},[37,8210,850],{"class":6977},[37,8212,5012],{"class":6980},[37,8214,173],{"class":6977},[37,8216,178],{"class":6980},[37,8218,8219,8221,8224,8227,8229,8232,8234,8237,8240,8242,8244,8247,8249,8252],{"class":39,"line":181},[37,8220,2010],{"class":6977},[37,8222,8223],{"class":6980}," [",[37,8225,8226],{"class":6983},"users",[37,8228,659],{"class":6980},[37,8230,8231],{"class":6983},"stats",[37,8233,659],{"class":6980},[37,8235,8236],{"class":6983},"recent",[37,8238,8239],{"class":6980},"] ",[37,8241,69],{"class":6977},[37,8243,3208],{"class":6977},[37,8245,8246],{"class":6983}," Promise",[37,8248,5031],{"class":6980},[37,8250,8251],{"class":6990},"all",[37,8253,8254],{"class":6980},"([\n",[37,8256,8257,8260,8262,8264,8266,8268],{"class":39,"line":195},[37,8258,8259],{"class":6990},"    $api",[37,8261,47],{"class":6980},[37,8263,7020],{"class":6990},[37,8265,7023],{"class":6980},[37,8267,7027],{"class":7026},[37,8269,8270],{"class":6980},"),\n",[37,8272,8273,8275,8277,8280,8282,8284],{"class":39,"line":208},[37,8274,8259],{"class":6990},[37,8276,47],{"class":6980},[37,8278,8279],{"class":6990},"Stats",[37,8281,2990],{"class":6980},[37,8283,7358],{"class":7026},[37,8285,8270],{"class":6980},[37,8287,8288,8290,8292,8295,8297,8300],{"class":39,"line":217},[37,8289,8259],{"class":6990},[37,8291,47],{"class":6980},[37,8293,8294],{"class":6990},"Activity",[37,8296,7023],{"class":6980},[37,8298,8299],{"class":7026},"'\u002Factivity\u002Frecent'",[37,8301,803],{"class":6980},[37,8303,8304],{"class":39,"line":226},[37,8305,8306],{"class":6980},"  ])\n",[37,8308,8309,8311],{"class":39,"line":235},[37,8310,250],{"class":6977},[37,8312,8313],{"class":6980}," { users, stats, recent }\n",[37,8315,8316],{"class":39,"line":244},[37,8317,264],{"class":6980},[7369,8319,8321],{"id":8320},"wrapping-a-custom-composable","Wrapping a Custom Composable",[26,8323,8326],{"className":6968,"code":8324,"filename":8325,"language":6970,"meta":22,"style":22},"export function useDashboard() {\n  const { $api } = useNuxtApp()\n\n  return useAsyncData('dashboard', async () => {\n    const [users, stats] = await Promise.all([\n      $api\u003CUser[]>('\u002Fusers'),\n      $api\u003CStats>('\u002Fstats')\n    ])\n    return { users, stats }\n  })\n}\n","app\u002Fcomposables\u002FuseDashboard.ts",[33,8327,8328,8339,8355,8359,8379,8405,8420,8434,8439,8446,8450],{"__ignoreMap":22},[37,8329,8330,8332,8334,8337],{"class":39,"line":40},[37,8331,7632],{"class":6977},[37,8333,855],{"class":6977},[37,8335,8336],{"class":6990}," useDashboard",[37,8338,865],{"class":6980},[37,8340,8341,8343,8345,8347,8349,8351,8353],{"class":39,"line":83},[37,8342,2010],{"class":6977},[37,8344,649],{"class":6980},[37,8346,719],{"class":6983},[37,8348,689],{"class":6980},[37,8350,69],{"class":6977},[37,8352,732],{"class":6990},[37,8354,703],{"class":6980},[37,8356,8357],{"class":39,"line":134},[37,8358,141],{"emptyLinePlaceholder":138},[37,8360,8361,8363,8365,8367,8369,8371,8373,8375,8377],{"class":39,"line":144},[37,8362,250],{"class":6977},[37,8364,8201],{"class":6990},[37,8366,111],{"class":6980},[37,8368,8206],{"class":7026},[37,8370,659],{"class":6980},[37,8372,850],{"class":6977},[37,8374,5012],{"class":6980},[37,8376,173],{"class":6977},[37,8378,178],{"class":6980},[37,8380,8381,8383,8385,8387,8389,8391,8393,8395,8397,8399,8401,8403],{"class":39,"line":181},[37,8382,7971],{"class":6977},[37,8384,8223],{"class":6980},[37,8386,8226],{"class":6983},[37,8388,659],{"class":6980},[37,8390,8231],{"class":6983},[37,8392,8239],{"class":6980},[37,8394,69],{"class":6977},[37,8396,3208],{"class":6977},[37,8398,8246],{"class":6983},[37,8400,5031],{"class":6980},[37,8402,8251],{"class":6990},[37,8404,8254],{"class":6980},[37,8406,8407,8410,8412,8414,8416,8418],{"class":39,"line":195},[37,8408,8409],{"class":6990},"      $api",[37,8411,47],{"class":6980},[37,8413,7020],{"class":6990},[37,8415,7023],{"class":6980},[37,8417,7027],{"class":7026},[37,8419,8270],{"class":6980},[37,8421,8422,8424,8426,8428,8430,8432],{"class":39,"line":208},[37,8423,8409],{"class":6990},[37,8425,47],{"class":6980},[37,8427,8279],{"class":6990},[37,8429,2990],{"class":6980},[37,8431,7358],{"class":7026},[37,8433,803],{"class":6980},[37,8435,8436],{"class":39,"line":217},[37,8437,8438],{"class":6980},"    ])\n",[37,8440,8441,8443],{"class":39,"line":226},[37,8442,201],{"class":6977},[37,8444,8445],{"class":6980}," { users, stats }\n",[37,8447,8448],{"class":39,"line":235},[37,8449,5442],{"class":6980},[37,8451,8452],{"class":39,"line":244},[37,8453,997],{"class":6980},[7369,8455,8457],{"id":8456},"business-operation-composable","Business Operation Composable",[10,8459,8460,8461,8463],{},"For write operations such as delete or approve, encapsulate the ",[33,8462,719],{}," calls in a dedicated composable to keep page files lean:",[26,8465,8468],{"className":6968,"code":8466,"filename":8467,"language":6970,"meta":22,"style":22},"export function useUserActions() {\n  const { $api } = useNuxtApp()\n\n  async function remove(id: string) {\n    await $api(`\u002Fusers\u002F${id}`, { method: 'DELETE' })\n    await refreshNuxtData()\n  }\n\n  async function create(data: CreateUserRequest) {\n    return await $api\u003CUser>('\u002Fusers', {\n      method: 'POST',\n      body: data,\n    })\n  }\n\n  async function updateRole(id: string, role: UserRole) {\n    return await $api\u003CUser>(`\u002Fusers\u002F${id}\u002Frole`, {\n      method: 'PUT',\n      body: { role },\n      toast: { successMessage: 'Role updated' },\n    })\n  }\n\n  return { remove, create, updateRole }\n}\n","app\u002Fcomposables\u002FuseUserActions.ts",[33,8469,8470,8481,8497,8501,8521,8541,8549,8553,8557,8576,8594,8602,8607,8611,8615,8619,8648,8671,8679,8684,8694,8698,8702,8706,8713],{"__ignoreMap":22},[37,8471,8472,8474,8476,8479],{"class":39,"line":40},[37,8473,7632],{"class":6977},[37,8475,855],{"class":6977},[37,8477,8478],{"class":6990}," useUserActions",[37,8480,865],{"class":6980},[37,8482,8483,8485,8487,8489,8491,8493,8495],{"class":39,"line":83},[37,8484,2010],{"class":6977},[37,8486,649],{"class":6980},[37,8488,719],{"class":6983},[37,8490,689],{"class":6980},[37,8492,69],{"class":6977},[37,8494,732],{"class":6990},[37,8496,703],{"class":6980},[37,8498,8499],{"class":39,"line":134},[37,8500,141],{"emptyLinePlaceholder":138},[37,8502,8503,8506,8508,8511,8513,8515,8517,8519],{"class":39,"line":144},[37,8504,8505],{"class":6977},"  async",[37,8507,855],{"class":6977},[37,8509,8510],{"class":6990}," remove",[37,8512,111],{"class":6980},[37,8514,7125],{"class":7951},[37,8516,2866],{"class":6977},[37,8518,2096],{"class":6983},[37,8520,7960],{"class":6980},[37,8522,8523,8525,8527,8529,8531,8533,8535,8537,8539],{"class":39,"line":181},[37,8524,902],{"class":6977},[37,8526,907],{"class":6990},[37,8528,111],{"class":6980},[37,8530,7122],{"class":7026},[37,8532,7125],{"class":6980},[37,8534,7128],{"class":7026},[37,8536,921],{"class":6980},[37,8538,7181],{"class":7026},[37,8540,131],{"class":6980},[37,8542,8543,8545,8547],{"class":39,"line":195},[37,8544,902],{"class":6977},[37,8546,8118],{"class":6990},[37,8548,703],{"class":6980},[37,8550,8551],{"class":39,"line":208},[37,8552,241],{"class":6980},[37,8554,8555],{"class":39,"line":217},[37,8556,141],{"emptyLinePlaceholder":138},[37,8558,8559,8561,8563,8566,8568,8570,8572,8574],{"class":39,"line":226},[37,8560,8505],{"class":6977},[37,8562,855],{"class":6977},[37,8564,8565],{"class":6990}," create",[37,8567,111],{"class":6980},[37,8569,7564],{"class":7951},[37,8571,2866],{"class":6977},[37,8573,7957],{"class":6990},[37,8575,7960],{"class":6980},[37,8577,8578,8580,8582,8584,8586,8588,8590,8592],{"class":39,"line":235},[37,8579,201],{"class":6977},[37,8581,3208],{"class":6977},[37,8583,907],{"class":6990},[37,8585,47],{"class":6980},[37,8587,7020],{"class":6990},[37,8589,2990],{"class":6980},[37,8591,7027],{"class":7026},[37,8593,7062],{"class":6980},[37,8595,8596,8598,8600],{"class":39,"line":244},[37,8597,7994],{"class":6980},[37,8599,926],{"class":7026},[37,8601,5207],{"class":6980},[37,8603,8604],{"class":39,"line":258},[37,8605,8606],{"class":6980},"      body: data,\n",[37,8608,8609],{"class":39,"line":267},[37,8610,8008],{"class":6980},[37,8612,8613],{"class":39,"line":284},[37,8614,241],{"class":6980},[37,8616,8617],{"class":39,"line":292},[37,8618,141],{"emptyLinePlaceholder":138},[37,8620,8621,8623,8625,8628,8630,8632,8634,8636,8638,8641,8643,8646],{"class":39,"line":309},[37,8622,8505],{"class":6977},[37,8624,855],{"class":6977},[37,8626,8627],{"class":6990}," updateRole",[37,8629,111],{"class":6980},[37,8631,7125],{"class":7951},[37,8633,2866],{"class":6977},[37,8635,2096],{"class":6983},[37,8637,659],{"class":6980},[37,8639,8640],{"class":7951},"role",[37,8642,2866],{"class":6977},[37,8644,8645],{"class":6990}," UserRole",[37,8647,7960],{"class":6980},[37,8649,8650,8652,8654,8656,8658,8660,8662,8664,8666,8669],{"class":39,"line":341},[37,8651,201],{"class":6977},[37,8653,3208],{"class":6977},[37,8655,907],{"class":6990},[37,8657,47],{"class":6980},[37,8659,7020],{"class":6990},[37,8661,2990],{"class":6980},[37,8663,7122],{"class":7026},[37,8665,7125],{"class":6980},[37,8667,8668],{"class":7026},"}\u002Frole`",[37,8670,7062],{"class":6980},[37,8672,8673,8675,8677],{"class":39,"line":431},[37,8674,7994],{"class":6980},[37,8676,7137],{"class":7026},[37,8678,5207],{"class":6980},[37,8680,8681],{"class":39,"line":440},[37,8682,8683],{"class":6980},"      body: { role },\n",[37,8685,8686,8689,8692],{"class":39,"line":457},[37,8687,8688],{"class":6980},"      toast: { successMessage: ",[37,8690,8691],{"class":7026},"'Role updated'",[37,8693,5397],{"class":6980},[37,8695,8696],{"class":39,"line":486},[37,8697,8008],{"class":6980},[37,8699,8700],{"class":39,"line":495},[37,8701,241],{"class":6980},[37,8703,8704],{"class":39,"line":511},[37,8705,141],{"emptyLinePlaceholder":138},[37,8707,8708,8710],{"class":39,"line":549},[37,8709,250],{"class":6977},[37,8711,8712],{"class":6980}," { remove, create, updateRole }\n",[37,8714,8715],{"class":39,"line":566},[37,8716,997],{"class":6980},[26,8718,8721],{"className":28,"code":8719,"filename":8720,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\n\u002F\u002F Data fetching with useApiFetch\nconst { data: users, refresh } = await useApiFetch\u003CUser[]>('\u002Fusers')\n\n\u002F\u002F Write operations with $api composable\nconst { remove, updateRole } = useUserActions()\n\u003C\u002Fscript>\n","app\u002Fpages\u002Fusers\u002Findex.vue",[33,8722,8723,8739,8744,8779,8783,8788,8810],{"__ignoreMap":22},[37,8724,8725,8727,8729,8731,8733,8735,8737],{"class":39,"line":40},[37,8726,47],{"class":6980},[37,8728,53],{"class":7902},[37,8730,59],{"class":6990},[37,8732,64],{"class":6990},[37,8734,69],{"class":6980},[37,8736,75],{"class":7026},[37,8738,80],{"class":6980},[37,8740,8741],{"class":39,"line":83},[37,8742,8743],{"class":7001},"\u002F\u002F Data fetching with useApiFetch\n",[37,8745,8746,8748,8750,8752,8754,8756,8758,8761,8763,8765,8767,8769,8771,8773,8775,8777],{"class":39,"line":134},[37,8747,90],{"class":6977},[37,8749,649],{"class":6980},[37,8751,7564],{"class":7951},[37,8753,679],{"class":6980},[37,8755,8226],{"class":6983},[37,8757,659],{"class":6980},[37,8759,8760],{"class":6983},"refresh",[37,8762,689],{"class":6980},[37,8764,69],{"class":6977},[37,8766,3208],{"class":6977},[37,8768,106],{"class":6990},[37,8770,47],{"class":6980},[37,8772,7020],{"class":6990},[37,8774,7023],{"class":6980},[37,8776,7027],{"class":7026},[37,8778,803],{"class":6980},[37,8780,8781],{"class":39,"line":144},[37,8782,141],{"emptyLinePlaceholder":138},[37,8784,8785],{"class":39,"line":181},[37,8786,8787],{"class":7001},"\u002F\u002F Write operations with $api composable\n",[37,8789,8790,8792,8794,8797,8799,8802,8804,8806,8808],{"class":39,"line":195},[37,8791,90],{"class":6977},[37,8793,649],{"class":6980},[37,8795,8796],{"class":6983},"remove",[37,8798,659],{"class":6980},[37,8800,8801],{"class":6983},"updateRole",[37,8803,689],{"class":6980},[37,8805,69],{"class":6977},[37,8807,8478],{"class":6990},[37,8809,703],{"class":6980},[37,8811,8812,8814,8816],{"class":39,"line":208},[37,8813,273],{"class":6980},[37,8815,53],{"class":7902},[37,8817,80],{"class":6980},[6943,8819,8821],{"id":8820},"per-request-configuration","Per-Request Configuration",[10,8823,8824,8825,659,8827,8829],{},"Per-request options sit at the same level as ofetch options; ",[33,8826,719],{},[33,8828,5098],{},", upload\u002Fdownload and streaming requests share the same shape:",[26,8831,8833],{"className":6968,"code":8832,"language":6970,"meta":22,"style":22},"const { $api } = useNuxtApp()\n\n\u002F\u002F Disable Toast\nawait $api('\u002Fusers', { toast: false })\n\n\u002F\u002F Custom Toast message\nawait $api('\u002Fusers', {\n  method: 'POST',\n  body: formData,\n  toast: { successMessage: 'Created successfully' }\n})\n\n\u002F\u002F Disable business status code checking (still unwraps by dataKey)\nconst data = await $api('\u002Fexternal-api\u002Fdata', { businessCheck: false })\n",[33,8834,8835,8851,8855,8860,8877,8881,8886,8898,8906,8911,8921,8925,8929,8934],{"__ignoreMap":22},[37,8836,8837,8839,8841,8843,8845,8847,8849],{"class":39,"line":40},[37,8838,90],{"class":6977},[37,8840,649],{"class":6980},[37,8842,719],{"class":6983},[37,8844,689],{"class":6980},[37,8846,69],{"class":6977},[37,8848,732],{"class":6990},[37,8850,703],{"class":6980},[37,8852,8853],{"class":39,"line":83},[37,8854,141],{"emptyLinePlaceholder":138},[37,8856,8857],{"class":39,"line":134},[37,8858,8859],{"class":7001},"\u002F\u002F Disable Toast\n",[37,8861,8862,8864,8866,8868,8870,8873,8875],{"class":39,"line":144},[37,8863,7166],{"class":6977},[37,8865,907],{"class":6990},[37,8867,111],{"class":6980},[37,8869,7027],{"class":7026},[37,8871,8872],{"class":6980},", { toast: ",[37,8874,126],{"class":6983},[37,8876,131],{"class":6980},[37,8878,8879],{"class":39,"line":181},[37,8880,141],{"emptyLinePlaceholder":138},[37,8882,8883],{"class":39,"line":195},[37,8884,8885],{"class":7001},"\u002F\u002F Custom Toast message\n",[37,8887,8888,8890,8892,8894,8896],{"class":39,"line":208},[37,8889,7166],{"class":6977},[37,8891,907],{"class":6990},[37,8893,111],{"class":6980},[37,8895,7027],{"class":7026},[37,8897,7062],{"class":6980},[37,8899,8900,8902,8904],{"class":39,"line":217},[37,8901,7067],{"class":6980},[37,8903,926],{"class":7026},[37,8905,5207],{"class":6980},[37,8907,8908],{"class":39,"line":226},[37,8909,8910],{"class":6980},"  body: formData,\n",[37,8912,8913,8916,8919],{"class":39,"line":235},[37,8914,8915],{"class":6980},"  toast: { successMessage: ",[37,8917,8918],{"class":7026},"'Created successfully'",[37,8920,5251],{"class":6980},[37,8922,8923],{"class":39,"line":244},[37,8924,264],{"class":6980},[37,8926,8927],{"class":39,"line":258},[37,8928,141],{"emptyLinePlaceholder":138},[37,8930,8931],{"class":39,"line":267},[37,8932,8933],{"class":7001},"\u002F\u002F Disable business status code checking (still unwraps by dataKey)\n",[37,8935,8936,8938,8940,8942,8944,8946,8948,8951,8953,8955],{"class":39,"line":284},[37,8937,90],{"class":6977},[37,8939,2015],{"class":6983},[37,8941,101],{"class":6977},[37,8943,3208],{"class":6977},[37,8945,907],{"class":6990},[37,8947,111],{"class":6980},[37,8949,8950],{"class":7026},"'\u002Fexternal-api\u002Fdata'",[37,8952,7778],{"class":6980},[37,8954,126],{"class":6983},[37,8956,131],{"class":6980},[10,8958,8959,8960,7547,8963,8966],{},"User-provided hooks such as ",[33,8961,8962],{},"onRequest",[33,8964,8965],{},"onResponse"," run together with the built-in interceptors (built-in first) and never override auth, business validation, unwrapping or Toast:",[26,8968,8970],{"className":6968,"code":8969,"language":6970,"meta":22,"style":22},"await $api('\u002Fusers', {\n  onResponse({ response }) {\n    \u002F\u002F response._data is already processed by the policy\n  }\n})\n",[33,8971,8972,8984,8997,9002,9006],{"__ignoreMap":22},[37,8973,8974,8976,8978,8980,8982],{"class":39,"line":40},[37,8975,7166],{"class":6977},[37,8977,907],{"class":6990},[37,8979,111],{"class":6980},[37,8981,7027],{"class":7026},[37,8983,7062],{"class":6980},[37,8985,8986,8989,8992,8994],{"class":39,"line":83},[37,8987,8988],{"class":6990},"  onResponse",[37,8990,8991],{"class":6980},"({ ",[37,8993,7620],{"class":7951},[37,8995,8996],{"class":6980}," }) {\n",[37,8998,8999],{"class":39,"line":134},[37,9000,9001],{"class":7001},"    \u002F\u002F response._data is already processed by the policy\n",[37,9003,9004],{"class":39,"line":144},[37,9005,241],{"class":6980},[37,9007,9008],{"class":39,"line":181},[37,9009,264],{"class":6980},[7185,9011,9012,9013,9016,9017,9019,9020,9022],{},"These options are declared through a type extension of ofetch's ",[33,9014,9015],{},"FetchOptions"," and are only recognized by Movk Nuxt's ",[33,9018,719],{}," client; the native ",[33,9021,6954],{}," ignores them.",[6943,9024,9026],{"id":9025},"error-handling","Error Handling",[10,9028,9029,9030,9032,9033,9036,9037,9040,9041,9043,9044,659,9046,659,9049,659,9052,7875,9055,9058,9059,9062],{},"Every error thrown by ",[33,9031,719],{}," is an ",[33,9034,9035],{},"ApiError"," (",[33,9038,9039],{},"NuxtError\u003CApiErrorData>","), classified by ",[33,9042,7791],{}," as ",[33,9045,7794],{},[33,9047,9048],{},"http",[33,9050,9051],{},"network",[33,9053,9054],{},"timeout",[33,9056,9057],{},"aborted",". The error Toast and ",[33,9060,9061],{},"movk:api:error"," fire only once after ofetch retries finish; aborts are not reported:",[26,9064,9066],{"className":6968,"code":9065,"language":6970,"meta":22,"style":22},"try {\n  await $api('\u002Forders', { method: 'POST', body })\n}\ncatch (error) {\n  const { kind, code } = (error as ApiError).data ?? {}\n  if (kind === 'business' && code === 40001) {\n    \u002F\u002F business-code branch\n  }\n}\n",[33,9067,9068,9075,9093,9097,9104,9138,9163,9168,9172],{"__ignoreMap":22},[37,9069,9070,9073],{"class":39,"line":40},[37,9071,9072],{"class":6977},"try",[37,9074,178],{"class":6980},[37,9076,9077,9079,9081,9083,9086,9088,9090],{"class":39,"line":83},[37,9078,8095],{"class":6977},[37,9080,907],{"class":6990},[37,9082,111],{"class":6980},[37,9084,9085],{"class":7026},"'\u002Forders'",[37,9087,921],{"class":6980},[37,9089,926],{"class":7026},[37,9091,9092],{"class":6980},", body })\n",[37,9094,9095],{"class":39,"line":134},[37,9096,997],{"class":6980},[37,9098,9099,9102],{"class":39,"line":144},[37,9100,9101],{"class":6977},"catch",[37,9103,8044],{"class":6980},[37,9105,9106,9108,9110,9113,9115,9117,9119,9121,9124,9126,9129,9132,9135],{"class":39,"line":181},[37,9107,2010],{"class":6977},[37,9109,649],{"class":6980},[37,9111,9112],{"class":6983},"kind",[37,9114,659],{"class":6980},[37,9116,33],{"class":6983},[37,9118,689],{"class":6980},[37,9120,69],{"class":6977},[37,9122,9123],{"class":6980}," (error ",[37,9125,2077],{"class":6977},[37,9127,9128],{"class":6990}," ApiError",[37,9130,9131],{"class":6980},").data ",[37,9133,9134],{"class":6977},"??",[37,9136,9137],{"class":6980}," {}\n",[37,9139,9140,9142,9145,9147,9150,9153,9156,9158,9161],{"class":39,"line":195},[37,9141,187],{"class":6977},[37,9143,9144],{"class":6980}," (kind ",[37,9146,2054],{"class":6977},[37,9148,9149],{"class":7026}," 'business'",[37,9151,9152],{"class":6977}," &&",[37,9154,9155],{"class":6980}," code ",[37,9157,2054],{"class":6977},[37,9159,9160],{"class":6983}," 40001",[37,9162,7960],{"class":6980},[37,9164,9165],{"class":39,"line":208},[37,9166,9167],{"class":7001},"    \u002F\u002F business-code branch\n",[37,9169,9170],{"class":39,"line":217},[37,9171,241],{"class":6980},[37,9173,9174],{"class":39,"line":226},[37,9175,997],{"class":6980},[6943,9177,9179],{"id":9178},"api","API",[7369,9181,9183],{"id":9182},"apiinstance","ApiInstance",[10,9185,9186,9187,2866],{},"Type definition of ",[33,9188,719],{},[26,9190,9192],{"className":6968,"code":9191,"language":6970,"meta":22,"style":22},"type ApiInstance = $Fetch & {\n  use: (endpoint: string) => ApiInstance\n  stream: \u003CT>(url: string, options?: ApiStreamOptions\u003CT>) => Promise\u003CAsyncGenerator\u003CT>>\n}\n",[33,9193,9194,9212,9236,9290],{"__ignoreMap":22},[37,9195,9196,9199,9202,9204,9207,9210],{"class":39,"line":40},[37,9197,9198],{"class":6977},"type",[37,9200,9201],{"class":6990}," ApiInstance",[37,9203,101],{"class":6977},[37,9205,9206],{"class":6990}," $Fetch",[37,9208,9209],{"class":6977}," &",[37,9211,178],{"class":6980},[37,9213,9214,9217,9219,9221,9224,9226,9228,9231,9233],{"class":39,"line":83},[37,9215,9216],{"class":6990},"  use",[37,9218,2866],{"class":6977},[37,9220,9036],{"class":6980},[37,9222,9223],{"class":7951},"endpoint",[37,9225,2866],{"class":6977},[37,9227,2096],{"class":6983},[37,9229,9230],{"class":6980},") ",[37,9232,173],{"class":6977},[37,9234,9235],{"class":6990}," ApiInstance\n",[37,9237,9238,9241,9243,9246,9248,9250,9253,9255,9257,9259,9262,9264,9267,9269,9271,9274,9276,9278,9280,9283,9285,9287],{"class":39,"line":134},[37,9239,9240],{"class":6990},"  stream",[37,9242,2866],{"class":6977},[37,9244,9245],{"class":6980}," \u003C",[37,9247,7197],{"class":6990},[37,9249,2990],{"class":6980},[37,9251,9252],{"class":7951},"url",[37,9254,2866],{"class":6977},[37,9256,2096],{"class":6983},[37,9258,659],{"class":6980},[37,9260,9261],{"class":7951},"options",[37,9263,2091],{"class":6977},[37,9265,9266],{"class":6990}," ApiStreamOptions",[37,9268,47],{"class":6980},[37,9270,7197],{"class":6990},[37,9272,9273],{"class":6980},">) ",[37,9275,173],{"class":6977},[37,9277,8246],{"class":6990},[37,9279,47],{"class":6980},[37,9281,9282],{"class":6990},"AsyncGenerator",[37,9284,47],{"class":6980},[37,9286,7197],{"class":6990},[37,9288,9289],{"class":6980},">>\n",[37,9291,9292],{"class":39,"line":144},[37,9293,997],{"class":6980},[9295,9296,9297,9311],"field-group",{},[9298,9299,9302,9303,9306,9307,9310],"field",{"name":9300,"type":9301},"$api(url, options)","Promise\u003CT>","Send an API request. Supports all ofetch options plus the fields of ",[33,9304,9305],{},"ApiRequestOptions",". ",[33,9308,9309],{},"$api.raw"," returns the full response through the same pipeline.",[9298,9312,9313,9314,9316,9317,9319,9320,9323,9324,9327],{"name":7208,"type":9183},"Switch to the specified endpoint and return that endpoint's ",[33,9315,719],{}," instance. ",[33,9318,9223],{}," is typed as ",[33,9321,9322],{},"MovkApiEndpointName"," (a literal union merged by the module from the ",[33,9325,9326],{},"movk.api.endpoints"," declaration). Endpoint instances are internally cached; multiple calls return the same instance.",[7369,9329,9305],{"id":9330},"apirequestoptions",[10,9332,9333],{},"Per-request configuration passed alongside ofetch options:",[9295,9335,9336,9346,9366],{},[9298,9337,9339,9340,9342,9343,9345],{"name":7821,"type":9338},"RequestToastOptions | false","Toast configuration. Set to ",[33,9341,126],{}," to disable all Toast notifications; ",[33,9344,7874],{}," re-enables it for one request when globally disabled.",[9298,9347,9349,9350,9352,9353,9356,9357,9359,9360,9362,9363,9365],{"name":7550,"type":9348},"boolean","Whether to validate the business status code against ",[33,9351,7542],{},". Inherits the endpoint \u002F global ",[33,9354,9355],{},"response.businessCheck"," when omitted; when ",[33,9358,126],{},", no business ",[33,9361,9035],{}," is thrown but the ",[33,9364,7193],{}," field is still unwrapped.",[9298,9367,9368,9369,9352,9371,9356,9374,9376,9377,9379,9380,5031],{"name":7546,"type":9348},"Whether to unwrap by ",[33,9370,7193],{},[33,9372,9373],{},"response.unwrap",[33,9375,126],{},", the interceptor does not overwrite ",[33,9378,7577],{}," and the caller receives the raw body. Orthogonal to ",[33,9381,7550],{},[7369,9383,9035],{"id":9384},"apierror",[26,9386,9388],{"className":6968,"code":9387,"language":6970,"meta":22,"style":22},"type ApiError = NuxtError\u003CApiErrorData>\n\ninterface ApiErrorData {\n  kind: 'business' | 'http' | 'network' | 'timeout' | 'aborted'\n  endpoint: string\n  code?: number | string\n  response?: unknown\n}\n",[33,9389,9390,9408,9412,9422,9451,9460,9474,9484],{"__ignoreMap":22},[37,9391,9392,9394,9396,9398,9401,9403,9406],{"class":39,"line":40},[37,9393,9198],{"class":6977},[37,9395,9128],{"class":6990},[37,9397,101],{"class":6977},[37,9399,9400],{"class":6990}," NuxtError",[37,9402,47],{"class":6980},[37,9404,9405],{"class":6990},"ApiErrorData",[37,9407,80],{"class":6980},[37,9409,9410],{"class":39,"line":83},[37,9411,141],{"emptyLinePlaceholder":138},[37,9413,9414,9417,9420],{"class":39,"line":134},[37,9415,9416],{"class":6977},"interface",[37,9418,9419],{"class":6990}," ApiErrorData",[37,9421,178],{"class":6980},[37,9423,9424,9427,9429,9431,9433,9436,9438,9441,9443,9446,9448],{"class":39,"line":144},[37,9425,9426],{"class":7951},"  kind",[37,9428,2866],{"class":6977},[37,9430,9149],{"class":7026},[37,9432,2876],{"class":6977},[37,9434,9435],{"class":7026}," 'http'",[37,9437,2876],{"class":6977},[37,9439,9440],{"class":7026}," 'network'",[37,9442,2876],{"class":6977},[37,9444,9445],{"class":7026}," 'timeout'",[37,9447,2876],{"class":6977},[37,9449,9450],{"class":7026}," 'aborted'\n",[37,9452,9453,9455,9457],{"class":39,"line":181},[37,9454,2861],{"class":7951},[37,9456,2866],{"class":6977},[37,9458,9459],{"class":6983}," string\n",[37,9461,9462,9465,9467,9470,9472],{"class":39,"line":195},[37,9463,9464],{"class":7951},"  code",[37,9466,2091],{"class":6977},[37,9468,9469],{"class":6983}," number",[37,9471,2876],{"class":6977},[37,9473,9459],{"class":6983},[37,9475,9476,9479,9481],{"class":39,"line":208},[37,9477,9478],{"class":7951},"  response",[37,9480,2091],{"class":6977},[37,9482,9483],{"class":6983}," unknown\n",[37,9485,9486],{"class":39,"line":217},[37,9487,997],{"class":6980},[9295,9489,9490,9498,9505,9525,9536],{},[9298,9491,9494,9495,5031],{"name":9492,"type":9493},"statusCode","number","The HTTP status on HTTP failures; on business failures the business code when it falls within 100–599, otherwise ",[33,9496,9497],{},"500",[9298,9499,9500,9501,9504],{"name":7836,"type":3060},"Error message, preferring the ",[33,9502,9503],{},"messageKey"," field of the response body.",[9298,9506,9509,9510,9512,9513,9515,9516,9518,9519,9521,9522,9524],{"name":9507,"type":9508},"data.kind","ApiErrorKind","Error category: ",[33,9511,7794],{}," failed business-code check, ",[33,9514,9048],{}," HTTP 4xx\u002F5xx, ",[33,9517,9051],{}," no response received, ",[33,9520,9054],{}," timed out, ",[33,9523,9057],{}," aborted by the caller.",[9298,9526,9529,9530,9532,9533,9535],{"name":9527,"type":9528},"data.code","number | string","The original business code (",[33,9531,7794],{},") or HTTP status (",[33,9534,9048],{},").",[9298,9537,9539],{"name":9538,"type":2985},"data.response","The raw response body.",[581,9541,9542],{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}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 .sovSZ, html code.shiki .sovSZ{--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":22,"searchDepth":83,"depth":83,"links":9544},[9545,9546,9547,9552,9558,9561,9562,9563,9567,9568,9569],{"id":6945,"depth":83,"text":6946},{"id":6964,"depth":83,"text":6965},{"id":7201,"depth":83,"text":7202,"children":9548},[9549,9550,9551],{"id":7371,"depth":134,"text":7372},{"id":7395,"depth":134,"text":7396},{"id":7411,"depth":134,"text":7412},{"id":7429,"depth":83,"text":7430,"children":9553},[9554,9555,9556,9557],{"id":7467,"depth":134,"text":7468},{"id":7484,"depth":134,"text":7485},{"id":7499,"depth":134,"text":7500},{"id":7510,"depth":134,"text":7511},{"id":7529,"depth":83,"text":7530,"children":9559},[9560],{"id":7609,"depth":134,"text":7610},{"id":7801,"depth":83,"text":7802},{"id":7883,"depth":83,"text":7884},{"id":8139,"depth":83,"text":8140,"children":9564},[9565,9566],{"id":8320,"depth":134,"text":8321},{"id":8456,"depth":134,"text":8457},{"id":8820,"depth":83,"text":8821},{"id":9025,"depth":83,"text":9026},{"id":9178,"depth":83,"text":9179,"children":9570},[9571,9572,9573],{"id":9182,"depth":134,"text":9183},{"id":9330,"depth":134,"text":9305},{"id":9384,"depth":134,"text":9035},null,"md",false,{},"\u002Fen\u002Fdocs\u002Fapi\u002Fapi-plugin",{"title":719,"description":15},{"loc":9578},"en\u002Fdocs\u002F4.api\u002F2.api-plugin","4d71iNQn6P8qR9RNeVP6SgSXVfC0KOrJ9a8V6xrfl0s",[9584],{"title":9585,"path":9586,"stem":9587,"children":9588,"page":9576},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[9589,9627,9683,9721,9754],{"title":9590,"path":9591,"stem":9592,"children":9593,"category":9574,"description":9574,"icon":9626},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F1.getting-started\u002F1.index",[9594,9596,9601,9606,9611,9616,9621],{"title":6946,"path":9591,"stem":9592,"category":9574,"description":9595},"Explore forms, data tables, components, and API integration in Movk Nuxt and choose a setup for Nuxt or Vue + Vite.",{"title":9597,"path":9598,"stem":9599,"category":9574,"description":9600},"Installation","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F1.getting-started\u002F2.installation","Install and configure the Movk Nuxt module in a Nuxt 4 project.",{"title":9602,"path":9603,"stem":9604,"category":9574,"description":9605},"Module Configuration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fconfiguration","en\u002Fdocs\u002F1.getting-started\u002F3.configuration","Configure component prefix, theme colors, fonts, API endpoints, auth strategy, response parsing rules and Toast notification behavior.",{"title":9607,"path":9608,"stem":9609,"category":9574,"description":9610},"Vue \u002F Vite","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fvue","en\u002Fdocs\u002F1.getting-started\u002F4.vue","Use Movk standalone components, theming and composables in a plain Vue + Vite project without Nuxt.",{"title":9612,"path":9613,"stem":9614,"category":9574,"description":9615},"Theme System","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ftheme","en\u002Fdocs\u002F1.getting-started\u002F5.theme","Manage colors, radius, icon sets and dark mode through module defaults, the ThemePicker component and the useTheme composable, with build-time font configuration.",{"title":9617,"path":9618,"stem":9619,"category":9574,"description":9620},"Migrate to v2","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration","en\u002Fdocs\u002F1.getting-started\u002F6.migration","Breaking changes to handle when upgrading from v1 to v2.",{"title":9622,"path":9623,"stem":9624,"category":9574,"description":9625},"AI Integration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fai","en\u002Fdocs\u002F1.getting-started\u002F7.ai","Help AI assistants understand Movk Nuxt through MCP, llms.txt and Skills.","i-lucide-square-play",{"title":9628,"category":9574,"description":9574,"icon":9629,"path":9630,"stem":9631,"children":9632,"page":9576},"Forms","i-lucide-square-pen","\u002Fen\u002Fdocs\u002Fauto-form","en\u002Fdocs\u002F2.auto-form",[9633,9638,9643,9648,9653,9658,9663,9668,9673,9678],{"title":9634,"path":9635,"stem":9636,"category":9574,"description":9637},"Quickstart","\u002Fen\u002Fdocs\u002Fauto-form\u002Fquickstart","en\u002Fdocs\u002F2.auto-form\u002F1.quickstart","Learn the core design philosophy and basic usage of AutoForm.",{"title":9639,"path":9640,"stem":9641,"category":9574,"description":9642},"Recipes","\u002Fen\u002Fdocs\u002Fauto-form\u002Frecipes","en\u002Fdocs\u002F2.auto-form\u002F10.recipes","Real-world AutoForm scenarios — login, grouped registration validation, multi-file upload and horizontal search form.",{"title":9644,"path":9645,"stem":9646,"category":9574,"description":9647},"Field Types","\u002Fen\u002Fdocs\u002Fauto-form\u002Ffield-types","en\u002Fdocs\u002F2.auto-form\u002F2.field-types","Mapping of afz field types to controls and their configuration.",{"title":9649,"path":9650,"stem":9651,"category":9574,"description":9652},"Objects and Arrays","\u002Fen\u002Fdocs\u002Fauto-form\u002Fobject-array","en\u002Fdocs\u002F2.auto-form\u002F3.object-array","Rendering and editing nested object and dynamic array fields.",{"title":9654,"path":9655,"stem":9656,"category":9574,"description":9657},"Controls","\u002Fen\u002Fdocs\u002Fauto-form\u002Fcontrols","en\u002Fdocs\u002F2.auto-form\u002F4.controls","Map schema fields to Nuxt UI controls via the type field, or register and inject custom Vue components to extend form fields.",{"title":9659,"path":9660,"stem":9661,"category":9574,"description":9662},"Metadata and Layout","\u002Fen\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","en\u002Fdocs\u002F2.auto-form\u002F5.metadata-layout","Configure field properties through meta and arrange them with afz.layout.",{"title":9664,"path":9665,"stem":9666,"category":9574,"description":9667},"Slots","\u002Fen\u002Fdocs\u002Fauto-form\u002Fslots","en\u002Fdocs\u002F2.auto-form\u002F6.slots","Customize AutoForm's header\u002Ffooter, field controls, before\u002Fafter field and layout content via named slots.",{"title":9669,"path":9670,"stem":9671,"category":9574,"description":9672},"Reactivity and Submit","\u002Fen\u002Fdocs\u002Fauto-form\u002Freactive-submit","en\u002Fdocs\u002F2.auto-form\u002F7.reactive-submit","Reactive linkage between fields and form submission handling.",{"title":9674,"path":9675,"stem":9676,"category":9574,"description":9677},"SearchForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fsearch-form","en\u002Fdocs\u002F2.auto-form\u002F8.search-form","A schema-driven, collapsible search form component.",{"title":9679,"path":9680,"stem":9681,"category":9574,"description":9682},"useAutoForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","en\u002Fdocs\u002F2.auto-form\u002F9.use-auto-form","A composable for creating typed Zod schemas and managing AutoForm controls.",{"title":9684,"path":9685,"stem":9686,"children":9687,"category":9574,"description":9574,"icon":9720},"DataTable","\u002Fen\u002Fdocs\u002Fdata-table","en\u002Fdocs\u002F3.data-table\u002F1.index",[9688,9690,9695,9700,9705,9710,9715],{"title":6946,"path":9685,"stem":9686,"category":9574,"description":9689},"A declarative data table based on TanStack Table, with column configuration, selection, expansion, tree data, pagination, load more and complete API reference.",{"title":9691,"path":9692,"stem":9693,"category":9574,"description":9694},"Appearance","\u002Fen\u002Fdocs\u002Fdata-table\u002Fappearance","en\u002Fdocs\u002F3.data-table\u002F2.appearance","Component style overrides, pagination style overrides, stripe and borders, visual density, fit-content width, empty-cell placeholders and sticky header.",{"title":9696,"path":9697,"stem":9698,"category":9574,"description":9699},"Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fcolumns","en\u002Fdocs\u002F3.data-table\u002F3.columns","Data column configuration — fixed columns, sorting, column pinning, column resize, text truncation, tooltips, visibility and functional per-column configuration.",{"title":9701,"path":9702,"stem":9703,"category":9574,"description":9704},"Special Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fspecial-columns","en\u002Fdocs\u002F3.data-table\u002F4.special-columns","Configuration for selection, index, row-pinning and actions columns — including tree selection strategies, dynamic button props and confirmation dialogs.",{"title":9706,"path":9707,"stem":9708,"category":9574,"description":9709},"Rows & Interaction","\u002Fen\u002Fdocs\u002Fdata-table\u002Frows","en\u002Fdocs\u002F3.data-table\u002F5.rows","Row selection, expandable detail slot, click behaviors, dynamic row class\u002Fstyle, hover, context menu and imperative control.",{"title":9711,"path":9712,"stem":9713,"category":9574,"description":9714},"Tree Data","\u002Fen\u002Fdocs\u002Fdata-table\u002Ftree","en\u002Fdocs\u002F3.data-table\u002F6.tree","Enable tree-mode tables via childrenKey — configure expansion, cascade selection strategies, indentation and read selection results.",{"title":9716,"path":9717,"stem":9718,"category":9574,"description":9719},"Pagination & Load More","\u002Fen\u002Fdocs\u002Fdata-table\u002Fpagination","en\u002Fdocs\u002F3.data-table\u002F7.pagination","Client-side auto pagination, server-side manual pagination with loading state, and bottom-trigger load-more for infinite scroll.","i-lucide-table",{"title":9179,"path":9722,"stem":9723,"children":9724,"category":9574,"description":9574,"icon":9753},"\u002Fen\u002Fdocs\u002Fapi","en\u002Fdocs\u002F4.api\u002F1.index",[9725,9728,9729,9734,9738,9743,9748],{"title":9726,"path":9722,"stem":9723,"category":9574,"description":9727},"Overview","Nuxt data-fetching fundamentals and the core concepts and architecture of the Movk Nuxt API system.",{"title":719,"path":9578,"stem":9581,"category":9574,"description":15},{"title":9730,"path":9731,"stem":9732,"category":9574,"description":9733},"Hooks","\u002Fen\u002Fdocs\u002Fapi\u002Fhooks","en\u002Fdocs\u002F4.api\u002F3.hooks","Extend API system behavior via Nuxt runtime hooks — global request interception, error handling and custom 401 logic.",{"title":5098,"path":9735,"stem":9736,"category":9574,"description":9737},"\u002Fen\u002Fdocs\u002Fapi\u002Fuse-api-fetch","en\u002Fdocs\u002F4.api\u002F4.use-api-fetch","An API request composable built on Nuxt useFetch, providing automatic authentication, business status code checking and Toast notifications.",{"title":9739,"path":9740,"stem":9741,"category":9574,"description":9742},"Upload and Download","\u002Fen\u002Fdocs\u002Fapi\u002Fupload-download","en\u002Fdocs\u002F4.api\u002F5.upload-download","File upload and download with progress tracking.",{"title":9744,"path":9745,"stem":9746,"category":9574,"description":9747},"Streaming","\u002Fen\u002Fdocs\u002Fapi\u002Fstream","en\u002Fdocs\u002F4.api\u002F6.stream","SSE streaming requests and the AI SDK chat transport.",{"title":9749,"path":9750,"stem":9751,"category":9574,"description":9752},"API Architecture","\u002Fen\u002Fdocs\u002Fapi\u002Farchitecture","en\u002Fdocs\u002F4.api\u002F7.architecture","Clarify @movk\u002Fnuxt's responsibility boundary, organize direct backend calls, same-origin proxies, and minimal BFFs with lean layers, and wire up both authentication patterns.","i-lucide-cloud",{"title":9755,"category":9574,"description":9574,"icon":9756,"path":9757,"stem":9758,"children":9759,"page":9576},"Components","i-lucide-box","\u002Fen\u002Fdocs\u002Fcomponents","en\u002Fdocs\u002F5.components",[9760,9766,9772],{"title":9761,"path":9762,"stem":9763,"category":9764,"description":9765},"DatePicker","\u002Fen\u002Fdocs\u002Fcomponents\u002Fdate-picker","en\u002Fdocs\u002F5.components\u002Fdate-picker","advanced","An internationalized date picker component.",{"title":9767,"path":9768,"stem":9769,"category":9770,"description":9771},"MessageBox","\u002Fen\u002Fdocs\u002Fcomponents\u002Fmessage-box","en\u002Fdocs\u002F5.components\u002Fmessage-box","feedback","A modal message dialog offering both declarative and programmatic usage.",{"title":9773,"path":9774,"stem":9775,"category":9764,"description":9776,"badge":9777},"Tree","\u002Fen\u002Fdocs\u002Fcomponents\u002Ftree","en\u002Fdocs\u002F5.components\u002Ftree","A tree component built on Nuxt UI Tree, adding search, lazy loading, toolbar, checkboxes, and parent\u002Fchild strategy.","v1.4.2",{"data":9779,"body":9780},{},{"type":6,"children":9781},[9782],{"type":9,"tag":10,"props":9783,"children":9784},{},[9785,9787],{"type":14,"value":9786},"Copyright © 2025 - 2026 YiXuan - ",{"type":9,"tag":37,"props":9788,"children":9791},{"className":9789},[9790],"text-highlighted",[9792],{"type":14,"value":9793},"MIT License",[9795,9796],{"title":9726,"path":9722,"stem":9723,"description":9727,"children":-1},{"title":9730,"path":9731,"stem":9732,"description":9733,"children":-1},1796262161178,"57ec5f4d-51f0-47ee-be90-2d13383383df"]