[{"data":1,"prerenderedAt":2586},["ShallowReactive",2],{"\u002Fdocs\u002Futils\u002Futilities":3,"dl-navigation-docs":1694,"shared":2039,"surroundings-\u002Fdocs\u002Futils\u002Futilities":2580},{"id":4,"title":5,"_llmSection":6,"_local":7,"_schemaOrg":6,"_seo":6,"body":13,"description":1685,"extension":1686,"ignore":6,"meta":1687,"navigation":1688,"path":1689,"seo":1690,"sitemap":1691,"stem":1692,"__hash__":1693},"docs\u002Fdocs\u002F04.utils\u002F02.utilities.md","Utilities",null,{"url":8},{"array":9,"map":10,"set":11,"regex":12},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FArray","https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FMap","https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FSet","https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FRegular_expression",{"type":14,"value":15,"toc":1658},"minimark",[16,25,48,55,58,119,171,217,255,294,349,414,463,541,590,645,735,796,863,951,1153,1218,1303,1372,1425,1498,1547,1622],[17,18,19,20,24],"p",{},"Internally ",[21,22,23],"strong",{},"we've built a set of utility helpers"," to streamline common tasks across the codebase. These utilities are designed to be small, focused functions that can be reused in various contexts, such as components, composables, macros, and server\u002Fruntime code.",[26,27,30],"dl-callout",{"title":28,"type":29},"Global Context","note",[17,31,32,33,36,37,40,41,47],{},"All of these ",[21,34,35],{},"utilities are auto-imported, globally accessible"," and can be used with application-based context without needing to import them. Additionally, ",[21,38,39],{},"some of them are also"," ",[42,43,46],"dl-link",{"label":44,"hash":45},"**exported** from the `@vuehouse\u002Fdl\u002Fexports`","vuehousedlexports","$docs-advanced-globals"," package for broader use. This allows you to leverage these functions even in environments where the global context is not available (such as server code, runtime code, other utilities, etc.). We will indicate which utilities were exported in their respective sections.",[17,49,50,51,54],{},"Bellow you'll find a ",[21,52,53],{},"comprehensive list of these utilities"," with a brief descriptions of their functionality. Where applicable, with examples that illustrate on how to use each effectively.",[56,57],"hr",{},[59,60,62,69,72,78,99,112,117],"dl-section",{"id":61},"utilasyncmap",[63,64,65],"h2",{"id":61},[66,67,68],"code",{},"utilAsyncMap",[17,70,71],{},"Asynchronously maps over an array of values.",[17,73,74,77],{},[21,75,76],{},"Example",":",[79,80,82,92],"dl-code",{"tabs":81},"example.ts, signature.d.ts",[83,84,90],"pre",{"className":85,"code":87,"language":88,"meta":89},[86],"language-ts","const values = [1, 2, 3, 4, 5];\nconst mappedValues = await utilAsyncMap(values, async (value) => {\n  return value * 2;\n});\n\u002F\u002F results in: [2, 4, 6, 8, 10]\n\"cref:jswye6\"\n","ts","",[66,91,87],{"__ignoreMap":89},[83,93,97],{"className":94,"code":95,"filename":96,"language":88,"meta":89},[86],"declare function utilAsyncMap\u003CT, Result = void>(\n  array: T[],\n  callback: (item: T, index: number) => Result | Promise\u003CResult>,\n): Promise\u003CAwaited\u003CResult>[]>;\n","[esc]",[66,98,95],{"__ignoreMap":89},[17,100,101,102,105,106,111],{},"Utility is especially useful when you need to ",[21,103,104],{},"map over an array of values asynchronously",", or perform multiple operations concurrently. It leverages the ",[42,107,110],{"label":108,"path":109},"`Promise.all`","\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FPromise\u002Fall","$mdn"," method to wait for all promises to resolve before continuing.",[113,114,116],"dl-renderer",{":data":115},"{\"utilityName\": \"utilAsyncMap\"}","rref:section-utility-exports-disclaimer",[56,118],{},[59,120,122,127,138,142,156,166,169],{"id":121},"utilbooleanstring",[63,123,124],{"id":121},[66,125,126],{},"utilBooleanString",[17,128,129,130,137],{},"Converts a string with boolean-like value to the real ",[131,132,136],"a",{"href":133,"rel":134},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FBoolean",[135],"nofollow","Boolean",".",[17,139,140,77],{},[21,141,76],{},[79,143,144,150],{"tabs":81},[83,145,148],{"className":146,"code":147,"language":88,"meta":89},[86],"const convertedBoolean = utilBooleanString('true');\n\u002F\u002F results in: true\n\"cref:ad9o6t\"\n",[66,149,147],{"__ignoreMap":89},[83,151,154],{"className":152,"code":153,"filename":96,"language":88,"meta":89},[86],"import type { Nullable } from '@vuehouse\u002Fdl\u002Ftypes';\n\ndeclare function utilBooleanString(value: Nullable\u003Cstring | boolean>): Nullable\u003Cboolean>;\n",[66,155,153],{"__ignoreMap":89},[17,157,158,159,162,163,137],{},"Utility can be helpful when converting boolean values defined in Markdown - which are represented as strings - before passing them to a component; either defined as ",[66,160,161],{},"value=\"true\""," or ",[66,164,165],{},"value=true",[113,167,116],{":data":168},"{\"utilityName\": \"utilBooleanString\"}",[56,170],{},[59,172,174,179,187,191,205,212,215],{"id":173},"utilcastitem",[63,175,176],{"id":173},[66,177,178],{},"utilCastItem",[17,180,181,182,137],{},"Converts a given value to a specified type using ",[131,183,186],{"href":184,"rel":185},"https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002F2\u002Feveryday-types.html#type-assertions",[135],"TypeScript assertions",[17,188,189,77],{},[21,190,76],{},[79,192,193,199],{"tabs":81},[83,194,197],{"className":195,"code":196,"language":88,"meta":89},[86],"type User = { id: string; name: string };\n\nconst user = utilCastItem\u003CUser>({ id: '1', name: 'Jane' });\n\"cref:330edd\"\n",[66,198,196],{"__ignoreMap":89},[83,200,203],{"className":201,"code":202,"filename":96,"language":88,"meta":89},[86],"declare function utilCastItem\u003CT>(item: any): T;\n",[66,204,202],{"__ignoreMap":89},[17,206,207,208,211],{},"Utility might be very useful when you want to ",[21,209,210],{},"narrow down types",", especially when dealing with dynamic data sources or complex structures.",[113,213,116],{":data":214},"{\"utilityName\": \"utilCastItem\"}",[56,216],{},[59,218,220,225,228,232,246,253],{"id":219},"utilcollectioncheck",[63,221,222],{"id":219},[66,223,224],{},"utilCollectionCheck",[17,226,227],{},"Validates whether a given collection exists in the list of allowed collections.",[17,229,230,77],{},[21,231,76],{},[79,233,234,240],{"tabs":81},[83,235,238],{"className":236,"code":237,"language":88,"meta":89},[86],"\u002F\u002F Check \"blog\" collection, update validator ref\nconst isBlog = utilCollectionCheck('blog');\n\u002F\u002F or with custom reactive validator (side effect)\nconst isCollectionExists = ref(true);\nconst isDocs = utilCollectionCheck('docs', undefined, isCollectionExists);\n\"cref:fp1hlv\"\n",[66,239,237],{"__ignoreMap":89},[83,241,244],{"className":242,"code":243,"filename":96,"language":88,"meta":89},[86],"import type { Nullable, CollectionName } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { Ref } from 'vue';\n\ndeclare function utilCollectionCheck(\n  collection: Nullable\u003CCollectionName>,\n  validator: Ref\u003Cboolean | undefined> = ref(false),\n): Nullable\u003Cboolean>;\n",[66,245,243],{"__ignoreMap":89},[17,247,248,249,252],{},"Utility can be very useful to ",[21,250,251],{},"check if a given collection exists when working with Nuxt Content collections",". The optional validator is updated as a \"side effect\".",[56,254],{},[59,256,258,263,266,270,285,292],{"id":257},"utilcollectionname",[63,259,260],{"id":257},[66,261,262],{},"utilCollectionName",[17,264,265],{},"Reads the collection name from the current route.",[17,267,268,77],{},[21,269,76],{},[79,271,273,279],{"tabs":272},"Component.vue, signature.d.ts",[83,274,277],{"className":275,"code":276,"language":88,"meta":89},[86],"const route = useRoute();\nconst collectionName = await utilCollectionName(route);\n\u002F\u002F results in: 'docs', 'blog', etc.\n\"cref:yxrs29\"\n",[66,278,276],{"__ignoreMap":89},[83,280,283],{"className":281,"code":282,"filename":96,"language":88,"meta":89},[86],"import type { PageCollections } from '@nuxt\u002Fcontent';\nimport type { RouteLocationNormalizedLoaded } from 'vue-router';\nimport type { Ref } from 'vue';\n\ndeclare function utilCollectionName\u003CCollection extends keyof PageCollections>(\n  route: RouteLocationNormalizedLoaded,\n  routesWildcard?: RouteLocationNormalizedLoaded['name'][],\n): Promise\u003CRef\u003CCollection>>;\n",[66,284,282],{"__ignoreMap":89},[17,286,287,288,291],{},"Utility is useful when you need to ",[21,289,290],{},"determine which content collection the current page belongs to",". It extracts the collection name from route parameters, path segments, or query parameters. Useful for building dynamic navigation or content filtering.",[56,293],{},[59,295,297,302,315,319,333,347],{"id":296},"utilcontentbody",[63,298,299],{"id":296},[66,300,301],{},"utilContentBody",[17,303,304,305,308,309,314],{},"Extracts the ",[66,306,307],{},"body"," object from a page collection data, retrieved from the ",[42,310,313],{"label":311,"path":312},"`queryCollection`","\u002Fdocs\u002Futils\u002Fquery-collection","$nuxt-content"," method.",[17,316,317,77],{},[21,318,76],{},[79,320,321,327],{"tabs":81},[83,322,325],{"className":323,"code":324,"language":88,"meta":89},[86],"const body = utilContentBody(pageData);\n\"cref:mtr3cj\"\n",[66,326,324],{"__ignoreMap":89},[83,328,331],{"className":329,"code":330,"filename":96,"language":88,"meta":89},[86],"import type { PageCollectionItemBase } from '@nuxt\u002Fcontent';\nimport type { Nullable } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { Ref } from 'vue';\n\ndeclare function utilContentBody(\n  collectionData: Nullable\u003CPageCollectionItemBase | Ref\u003CPageCollectionItemBase>>,\n): Nullable\u003CPageCollectionItemBase['body'] | ReturnType\u003Ctypeof toValue\u003CPageCollectionItemBase>>['body']>;\n",[66,332,330],{"__ignoreMap":89},[17,334,335,336,339,340,346],{},"Utility unwraps possible ",[66,337,338],{},"Ref"," values further using the ",[131,341,343],{"href":342},"#utilobjectparser",[66,344,345],{},"utilObjectParser"," to normalize the output.",[56,348],{},[59,350,352,357,370,374,388,404,412],{"id":351},"utilcontentseo",[63,353,354],{"id":351},[66,355,356],{},"utilContentSeo",[17,358,359,360,363,364,367,368,314],{},"Normalizes custom SEO (",[66,361,362],{},"_seo",") and Schema.org (",[66,365,366],{},"_schemaOrg",") metadata into a plain object(s), retrieved from the ",[42,369,313],{"label":311,"path":312},[17,371,372,77],{},[21,373,76],{},[79,375,376,382],{"tabs":81},[83,377,380],{"className":378,"code":379,"language":88,"meta":89},[86],"const [seo, schemaOrg] = utilContentSeo(pageData);\n\u002F\u002F or without schema.org\nconst [seo] = utilContentSeo(pageData, false);\n\"cref:k5oesj\"\n",[66,381,379],{"__ignoreMap":89},[83,383,386],{"className":384,"code":385,"filename":96,"language":88,"meta":89},[86],"import type { Nullable, PrimitiveRecordNested } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype MetaKeys = 'description' | 'keywords' | 'robots' | 'author' | 'locale';\n\ndeclare function utilContentSeo\u003CExtendedKeys extends string = MetaKeys>(\n  pageData: Nullable\u003CCollections[CollectionName] | Ref\u003CCollections[CollectionName]>>,\n  schemaOrg: boolean = true,\n): [seo: PrimitiveRecordNested\u003Cany, ExtendedKeys>, schemaOrg: PrimitiveRecordNested\u003Cany, ExtendedKeys>] | [];\n",[66,387,385],{"__ignoreMap":89},[17,389,390,391,393,394,399,400,403],{},"Utility can be helpful with differently defined ",[66,392,362],{}," data formats - object vs. array, set within the content page ",[42,395,398],{"label":396,"hash":397},"Frontmatter section","frontmatter","$docs-guidelines-writing-content",". If you don't need Schema.org metadata, you can pass ",[66,401,402],{},"false"," as the second argument to skip the normalization.",[17,405,406,407,137],{},"More about defining custom SEO metadata ",[42,408,411],{"label":409,"hash":410},"you can read here","local-metadata-page-based","$docs-guidelines-defining-metadata",[56,413],{},[59,415,417,422,430,434,448,461],{"id":416},"utildatabody",[63,418,419],{"id":416},[66,420,421],{},"utilDataBody",[17,423,304,424,427,428,314],{},[66,425,426],{},"meta.body"," from a data-type collection, retrieved from the ",[42,429,313],{"label":311,"path":312},[17,431,432,77],{},[21,433,76],{},[79,435,436,442],{"tabs":81},[83,437,440],{"className":438,"code":439,"language":88,"meta":89},[86],"const dataBody = utilDataBody(item);\n\"cref:sxbdpg\"\n",[66,441,439],{"__ignoreMap":89},[83,443,446],{"className":444,"code":445,"filename":96,"language":88,"meta":89},[86],"import type { CollectionItemBase, MarkdownRoot } from '@nuxt\u002Fcontent';\nimport type { Nullable } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { Ref } from 'vue';\n\nexport type DataCollectionBody\u003CCollection extends CollectionItemBase | Ref\u003CCollectionItemBase> = CollectionItemBase> =\n  Omit\u003CCollection, 'meta'> & {\n    meta: { body: MarkdownRoot };\n  };\n\ndeclare function utilDataBody\u003CCollection extends CollectionItemBase | Ref\u003CCollectionItemBase>>(\n  collectionData: Nullable\u003CDataCollectionBody\u003CCollection>>,\n): Nullable\u003CMarkdownRoot>;\n",[66,447,445],{"__ignoreMap":89},[17,449,335,450,339,452,456,457,137],{},[66,451,338],{},[131,453,454],{"href":342},[66,455,345],{}," to normalize the output. Internally it's used to ",[42,458,460],{"label":459},"handle sharable Markdown components","$docs-components-renderer",[56,462],{},[59,464,466,471,474,478,492,524,527,536,539],{"id":465},"utilemailparser",[63,467,468],{"id":465},[66,469,470],{},"utilEmailParser",[17,472,473],{},"Extracts a person's data from an email address by parsing the local part.",[17,475,476,77],{},[21,477,76],{},[79,479,480,486],{"tabs":81},[83,481,484],{"className":482,"code":483,"language":88,"meta":89},[86],"const { first, last, full, email } = utilEmailParser('john.doe@email.com');\n\u002F\u002F results in: John, Doe, John Doe, john.doe@email.com\n\"cref:j511yt\"\n",[66,485,483],{"__ignoreMap":89},[83,487,490],{"className":488,"code":489,"filename":96,"language":88,"meta":89},[86],"import type { LooseAutocomplete } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype UnknownString = 'Unknown';\ntype ParsedNameRecord = {\n  email: string;\n  first: LooseAutocomplete\u003CUnknownString>;\n  last?: LooseAutocomplete\u003CUnknownString>;\n  full: LooseAutocomplete\u003CUnknownString>;\n  valid: boolean;\n};\n\ndeclare function utilEmailParser(email: string, placeholder: UnknownString = 'Unknown'): ParsedNameRecord;\n",[66,491,489],{"__ignoreMap":89},[17,493,494,495,498,499,502,503,502,506,502,509,512,513,502,516,519,520,523],{},"Utility ",[21,496,497],{},"extracts user-friendly name information from an email address",". It is used in our Newsletter adapters to generate name data for new mailing list subscribers. The parser skips role-based addresses (like ",[66,500,501],{},"admin",", ",[66,504,505],{},"support",[66,507,508],{},"hello",[66,510,511],{},"contact",", etc.) and titles (such as ",[66,514,515],{},"ms",[66,517,518],{},"mrs",", etc.), returning clean data when possible; if a name cannot be reasonably determined, it will return the string ",[66,521,522],{},"Unknown",". You can override the placeholder string with the second argument.",[17,525,526],{},"Additionally, the utility returns a boolean value indicating whether the email is valid.",[79,528,530],{"tabs":529},"example.ts",[83,531,534],{"className":532,"code":533,"language":88,"meta":89},[86],"const { valid } = utilEmailParser('john.doe@email.com');\n\u002F\u002F results in: true\n\"cref:29alel\"\n",[66,535,533],{"__ignoreMap":89},[113,537,116],{":data":538},"{\"utilityName\": \"utilEmailParser\"}",[56,540],{},[59,542,544,549,556,560,574,588],{"id":543},"utilcssvariable",[63,545,546],{"id":543},[66,547,548],{},"utilCSSVariable",[17,550,551,552,555],{},"Builds a CSS variable string from a ",[66,553,554],{},"--var"," name.",[17,557,558,77],{},[21,559,76],{},[79,561,562,568],{"tabs":81},[83,563,566],{"className":564,"code":565,"language":88,"meta":89},[86],"const color = utilCSSVariable('--css-variable');\n\u002F\u002F results in: var(--css-variable)\n\"cref:zvdukp\"\n",[66,567,565],{"__ignoreMap":89},[83,569,572],{"className":570,"code":571,"filename":96,"language":88,"meta":89},[86],"type CSSVariableName = `--${string}`;\ntype CSSVariable = `var(${CSSVariableName})`;\n\ndeclare function utilCSSVariable(variantName: CSSVariableName): CSSVariable;\n",[66,573,571],{"__ignoreMap":89},[17,575,576,577,580,581,162,584,587],{},"Utility can be helpful while defining ",[21,578,579],{},"dynamic variables"," or multiple variable definitions within the component's ",[66,582,583],{},"script",[66,585,586],{},"template"," sections.",[56,589],{},[59,591,593,598,601,605,619,640,643],{"id":592},"utillogmessage",[63,594,595],{"id":592},[66,596,597],{},"utilLogMessage",[17,599,600],{},"Formats a log message with application tag and source.",[17,602,603,77],{},[21,604,76],{},[79,606,607,613],{"tabs":81},[83,608,611],{"className":609,"code":610,"language":88,"meta":89},[86],"console.warn(utilLogMessage([`Something failed: ${error}`, 'utilLogMessage']));\n\u002F\u002F results in: [app-tag: utilSomething] Something failed\n\"cref:ry00ko\"\n",[66,612,610],{"__ignoreMap":89},[83,614,617],{"className":615,"code":616,"filename":96,"language":88,"meta":89},[86],"type ResolvedMessage = `[${string}: ${string}] ${string}` | `[${string}${string}] ${string}`;\n\ndeclare function utilLogMessage([message, source, tag]: [string, string?, string?]): ResolvedMessage;\n",[66,618,616],{"__ignoreMap":89},[17,620,621,622,625,626,629,630,635,636,639],{},"Utility is ",[21,623,624],{},"used throughout the application"," to format log messages in a consistent and informative way. It helps ",[21,627,628],{},"ensure a unified logging style",". By default, the tag is taken from ",[42,631,634],{"label":632,"hash":633},"`dl.meta.tag`","dlmeta","$docs-guidelines-configuration",", but in some internal utilities, the ",[66,637,638],{},"doclayer"," tag is hardcoded to clearly indicate the source of internals.",[113,641,116],{":data":642},"{\"utilityName\": \"utilLogMessage\"}",[56,644],{},[59,646,648,653,663,667,681,688,730,733],{"id":647},"utilmdtohast",[63,649,650],{"id":647},[66,651,652],{},"utilMDtoHAST",[17,654,655,656,662],{},"Converts Markdown input into a normalized ",[657,658],"dl-tooltip",{"label":659,"lock-width":660,"tooltip":661},"HAST","true","HAST is a specification for representing HTML as an Abstract Syntax Tree (AST)."," \u002F Minimark tree.",[17,664,665,77],{},[21,666,76],{},[79,668,669,675],{"tabs":81},[83,670,673],{"className":671,"code":672,"language":88,"meta":89},[86],"const hast = await utilMDtoHAST('**Hello** from Markdown');\n\u002F\u002F or return Minimark-compatible AST\nconst minimark = await utilMDtoHAST('**Hello** from Markdown', { toMinimark: true });\n\u002F\u002F or converted to Comark-compatible AST\nconst comark = await utilMDtoHAST('**Hello** from Markdown', {\n  withComponents: true,\n  \u002F\u002F (optional) combined will return Minimark-like object with rendered components\n  toMinimark: true,\n});\n\"cref:ghyq1l\"\n",[66,674,672],{"__ignoreMap":89},[83,676,679],{"className":677,"code":678,"filename":96,"language":88,"meta":89},[86],"type HastNodes = ReturnType\u003Ctypeof import('mdast-util-to-hast').toHast> & { children: any };\ntype MinimarkNodes = ReturnType\u003Ctypeof import('minimark\u002Fhast').fromHast>;\ntype ComarkTree = Awaited\u003CReturnType\u003Ctypeof import('comark').parse>>;\ntype ComarkNodes = ComarkTree['nodes'];\n\ndeclare function utilMDtoHAST(\n  markdown: string,\n  options?: { toMinimark?: boolean; withComponents?: boolean },\n): Promise\u003CHastNodes | MinimarkNodes | ComarkNodes>;\n",[66,680,678],{"__ignoreMap":89},[17,682,683,684,687],{},"Use this utility whenever you need to ",[21,685,686],{},"convert Markdown into an Abstract Syntax Tree (AST)"," for further processing - such as rendering content or making transformations.",[689,690,691,698,713,723],"ul",{},[692,693,694,697],"li",{},[21,695,696],{},"By default",", the function returns a normalized HAST tree, which is a standard structure for representing HTML.",[692,699,700,701,704,705,707,708,712],{},"If you pass ",[66,702,703],{},"{ toMinimark: true }",", the output will be formatted as a Minimark AST, compatible with the ",[42,706,313],{}," renderer and the ",[42,709,460],{"label":710,"hash":711},"`DlRenderer`","as-the-ast-renderer"," component.",[692,714,700,715,718,719,722],{},[66,716,717],{},"{ withComponents: true }",", the output includes a tree where both custom content and native components are represented, using the ",[42,720,721],{},"$comark"," library to shape the AST.",[692,724,725,726,729],{},"If you use both ",[66,727,728],{},"{ withComponents: true, toMinimark: true }"," together, you'll get a Minimark-like AST that includes rendered components.",[17,731,732],{},"This flexibility allows you to choose exactly the format you need, depending on where and how the parsed Markdown will be used.",[56,734],{},[59,736,738,743,746,750,764,791,794],{"id":737},"utilmdtohtml",[63,739,740],{"id":737},[66,741,742],{},"utilMDtoHTML",[17,744,745],{},"Converts Markdown \"tags\" into HTML.",[17,747,748,77],{},[21,749,76],{},[79,751,752,758],{"tabs":81},[83,753,756],{"className":754,"code":755,"language":88,"meta":89},[86],"utilMDtoHTML('Use `code` and **bold** _text_');\n\u002F\u002F results in: 'Use \u003Ccode>code\u003C\u002Fcode> and \u003Cstrong>bold\u003C\u002Fstrong> \u003Ci>text\u003C\u002Fi>'\n\"cref:ereyii\"\n",[66,757,755],{"__ignoreMap":89},[83,759,762],{"className":760,"code":761,"filename":96,"language":88,"meta":89},[86],"declare function utilMDtoHTML(markdown: string): string;\n",[66,763,761],{"__ignoreMap":89},[17,765,766,767,770,771,779,780,502,783,786,787,137],{},"Utility is especially useful when ",[21,768,769],{},"rendering Markdown within inline HTML",", most often by using the ",[131,772,775,778],{"href":773,"rel":774},"https:\u002F\u002Fvuejs.org\u002Fapi\u002Fbuilt-in-directives.html#v-html",[135],[66,776,777],{},"v-html"," directive",". It handles: ",[66,781,782],{},"backtick code",[21,784,785],{},"bold",", and ",[788,789,790],"em",{},"italic",[113,792,116],{":data":793},"{\"utilityName\": \"utilMDtoHTML\"}",[56,795],{},[59,797,799,803,806,810,824,858,861],{"id":798},"utilobjectparser",[63,800,801],{"id":798},[66,802,345],{},[17,804,805],{},"Converts complex object structures into plain ones.",[17,807,808,77],{},[21,809,76],{},[79,811,812,818],{"tabs":81},[83,813,816],{"className":814,"code":815,"language":88,"meta":89},[86],"const plain = utilObjectParser(anyObject);\n\"cref:tmqp4r\"\n",[66,817,815],{"__ignoreMap":89},[83,819,822],{"className":820,"code":821,"filename":96,"language":88,"meta":89},[86],"declare function utilObjectParser\u003CT = unknown, Return = unknown>(\n  input: T,\n  bucket: WeakMap\u003CWeakKey, unknown> = new WeakMap(),\n): Return;\n",[66,823,821],{"__ignoreMap":89},[17,825,826,827,830,831,834,835,502,842,502,848,854,855,137],{},"Utility widely used across the codebase to ",[21,828,829],{},"ensure consistent and safe object handling",". It can ",[21,832,833],{},"convert proxies and complex data structures"," (",[42,836,838],{"label":837,"local":660},"Arrays",[839,840],"binding",{"value":841},"$doc._local.url.array",[42,843,845],{"label":844,"local":660},"Maps",[839,846],{"value":847},"$doc._local.url.map",[42,849,851],{"label":850,"local":660},"Sets",[839,852],{"value":853},"$doc._local.url.set",") into plain objects, handle stringified JSON(s), finally guard circular referencing. Use it when you need to ",[21,856,857],{},"safely convert various data types into plain objects",[113,859,116],{":data":860},"{\"utilityName\": \"utilObjectParser\"}",[56,862],{},[59,864,866,871,874,878,892,903,917,946,949],{"id":865},"utilprimitivewatch",[63,867,868],{"id":865},[66,869,870],{},"utilPrimitiveWatch",[17,872,873],{},"Creates a lightweight watcher for a primitive value(s).",[17,875,876,77],{},[21,877,76],{},[79,879,880,886],{"tabs":81},[83,881,884],{"className":882,"code":883,"language":88,"meta":89},[86],"\u002F\u002F Initialize the watcher with a value\nconst status = utilPrimitiveWatch(false);\n\u002F\u002F Get the current value\nstatus.get(); \u002F\u002F false\n\u002F\u002F Watch for changes\nconst stop = status.watch((resolved, wasResolved) => {\n  if (resolved) console.log(`Changed from ${wasResolved} to ${resolved}`);\n});\n\u002F\u002F Set wherever you want to update the value, being notified when it changes.\nstatus.set(true); \u002F\u002F logs: \"Changed from false to true\"\n\u002F\u002F Remove listener\nstop();\n\"cref:rxgyre\"\n",[66,885,883],{"__ignoreMap":89},[83,887,890],{"className":888,"code":889,"filename":96,"language":88,"meta":89},[86],"import type { Primitive } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype WatchCallback = (newValue: Primitive, oldValue: Primitive) => void;\n\ndeclare function utilPrimitiveWatch\u003CValue extends Primitive>(\n  value: Value,\n): {\n  get(): Value;\n  set(newValue: Value): void;\n  watch(callback: WatchCallback): () => void;\n  unwatch(callback: WatchCallback): ReturnType\u003Ctypeof utilPrimitiveWatch\u003CValue>>;\n};\n",[66,891,889],{"__ignoreMap":89},[17,893,894,895,898,899,902],{},"Utility provides a ",[21,896,897],{},"simple pub\u002Fsub wrapper"," around a single primitive. It works ",[21,900,901],{},"outside Vue component context"," - useful in module setup, server\u002Fruntime code, or anywhere Vue composables are not available.",[17,904,905,906,909,910,913,914,137],{},"Listeners are called ",[21,907,908],{},"synchronously"," when ",[66,911,912],{},"set()"," runs. If you register twice ",[21,915,916],{},"the same callback, it will run twice",[26,918,921],{"title":919,"type":920},"Not Vue reactivity","warning",[17,922,923,924,162,927,930,931,934,935,938,939,942,943,945],{},"Unlike Vue ",[66,925,926],{},"ref",[66,928,929],{},"watch",", this ",[21,932,933],{},"utility does not"," integrate with the component lifecycle. Call the function returned from ",[66,936,937],{},"watch()"," to unsubscribe when cleanup is needed. Always call methods on the returned object (",[66,940,941],{},"watcher.watch(...)",") - destructuring ",[66,944,929],{}," can break unsubscribe.",[113,947,116],{":data":948},"{\"utilityName\": \"utilPrimitiveWatch\"}",[56,950],{},[59,952,954,959,962,966,980,995,1102,1148,1151],{"id":953},"utilsafeimport",[63,955,956],{"id":953},[66,957,958],{},"utilSafeImport",[17,960,961],{},"Safely imports a module with timeout.",[17,963,964,77],{},[21,965,76],{},[79,967,968,974],{"tabs":81},[83,969,972],{"className":970,"code":971,"language":88,"meta":89},[86],"const module = await utilSafeImport('some-module' \u002F* { ...config } *\u002F);\nif (module) {\n  \u002F\u002F use the imported module\n}\n\"cref:1aavf4\"\n",[66,973,971],{"__ignoreMap":89},[83,975,978],{"className":976,"code":977,"filename":96,"language":88,"meta":89},[86],"import type { JitiOptions } from 'jiti';\n\ntype SafeImportConfig = Partial\u003C{\n  \u002F** Suppress warning logs when the import fails or time's out. *\u002F\n  silent: boolean;\n  \u002F** Timeout in milliseconds. Defaults to `100` (native) or `2000` (with `ts`) when `ts` is set. *\u002F\n  timeout: number;\n  \u002F** Tag for warning output (e.g. module name that calling this utility). *\u002F\n  source: string;\n  \u002F** Evaluate TypeScript via jiti (same approach as Nuxt). *\u002F\n  ts: boolean | JitiOptions;\n}>;\n\ndeclare function utilSafeImport\u003CImport = unknown | null>(specifier: string, config?: SafeImportConfig): Promise\u003CImport>;\n",[66,979,977],{"__ignoreMap":89},[17,981,982,983,986,987,990,991,994],{},"Use this utility when ",[21,984,985],{},"attempting to dynamically import a module",". If the import fails, or takes longer than the configured timeout, it returns ",[66,988,989],{},"null"," instead of throwing or hanging. Especially useful for ",[21,992,993],{},"dynamic, user-initiated, or optional imports",", where reliability and responsiveness are critical. Below you can see the configuration options that are available:",[996,997,998,1014],"table",{},[999,1000,1001],"thead",{},[1002,1003,1004,1008,1011],"tr",{},[1005,1006,1007],"th",{},"Option",[1005,1009,1010],{},"Default",[1005,1012,1013],{},"Description",[1015,1016,1017,1035,1067,1084],"tbody",{},[1002,1018,1019,1025,1029],{},[1020,1021,1022],"td",{},[66,1023,1024],{},"silent",[1020,1026,1027],{},[66,1028,402],{},[1020,1030,1031],{},[17,1032,1034],{"style":1033},"min-width: 20rem","Skips warning logs on failure.",[1002,1036,1037,1042,1062],{},[1020,1038,1039],{},[66,1040,1041],{},"timeout",[1020,1043,1044],{},[17,1045,1047,1048,40,1051,1054,1055,1058,1059,1061],{"style":1046},"min-width: 10rem","- ",[66,1049,1050],{},"100",[1052,1053],"br",{}," - ",[66,1056,1057],{},"2000"," for ",[66,1060,88],{}," mode",[1020,1063,1064],{},[17,1065,1066],{},"Max wait before the import is treated as failed. Time in milliseconds.",[1002,1068,1069,1074,1079],{},[1020,1070,1071],{},[66,1072,1073],{},"source",[1020,1075,1076],{},[66,1077,1078],{},"undefined",[1020,1080,1081],{},[17,1082,1083],{},"Tag for warning output (e.g. module name that calling this utility).",[1002,1085,1086,1090,1094],{},[1020,1087,1088],{},[66,1089,88],{},[1020,1091,1092],{},[66,1093,402],{},[1020,1095,1096],{},[17,1097,1098,1099,137],{},"Resolves TypeScript files with ",[42,1100,1101],{},"$jiti",[26,1103,1105,1133,1140],{"title":1104,"type":29},"When to enable `ts` option",[17,1106,1107,1108,1111,1112,1114,1115,1117,1118,1121,1122,1126,1127,1129,1130,1132],{},"Because native ",[66,1109,1110],{},"import()"," cannot evaluate TypeScript files (Node does not understands that) set ",[66,1113,88],{}," option to ",[66,1116,660],{}," when loading any TypeScript files, local ",[66,1119,1120],{},".ts"," modules, or any specifier that depends on package export conditions. Pass ",[42,1123,1101],{"label":1124,"path":1125},"`JitiOptions`","blob\u002Ffd3bb289b75ed207edfb686d671ed50144f7e90f\u002Flib\u002Ftypes.d.ts#L79"," instead of ",[66,1128,660],{}," to customize aliases or other ",[42,1131,1101],{}," settings for a one-off import.",[17,1134,1135,1136,1139],{},"Simple example would be with loading ",[66,1137,1138],{},"app.config.ts"," file:",[79,1141,1142],{"tabs":529},[83,1143,1146],{"className":1144,"code":1145,"language":88,"meta":89},[86],"const { default: appConfig } = await utilSafeImport('app.config.ts', {\n  ts: true,\n});\n\"cref:j0e4wd\"\n",[66,1147,1145],{"__ignoreMap":89},[113,1149,116],{":data":1150},"{\"utilityName\": \"utilSafeImport\", \"export\": \"server\"}",[56,1152],{},[59,1154,1156,1161,1169,1173,1189,1202,1216],{"id":1155},"utilshikihighlighter",[63,1157,1158],{"id":1155},[66,1159,1160],{},"utilShikiHighlighter",[17,1162,1163,1164,1168],{},"Returns the globally initialized ",[42,1165,1167],{"label":1166},"**Shiki**","$shiki"," highlighter instance.",[17,1170,1171,77],{},[21,1172,76],{},[79,1174,1175,1183],{"tabs":272},[83,1176,1181],{"className":1177,"code":1179,"language":1180,"meta":89},[1178],"language-vue","\u003Cscript setup lang=\"ts\">\n\u002F\u002F Call existing highlighter instance\nconst highlighter = await utilShikiHighlighter();\n\u002F\u002F Call new highlighter instance with custom config\nconst highlighter = await utilShikiHighlighter({\n  themes: { dark: 'nord', light: 'nord-light' },\n  langs: ['typescript', 'javascript', 'json'],\n});\n\u002F\u002F Highlight code\nconst highlightedCode = highlighter.codeToHtml(code, {\n  lang: 'typescript',\n  theme: 'github-dark-default',\n});\n\u003C\u002Fscript>\n\"cref:btvdhp\"\n","vue",[66,1182,1179],{"__ignoreMap":89},[83,1184,1187],{"className":1185,"code":1186,"filename":96,"language":88,"meta":89},[86],"import type { Highlighter } from '@vuehouse\u002Fdl\u002Ftypes';\n\ndeclare async function utilShikiHighlighter(customConfig?: Highlighter): Promise\u003CReturnType\u003Ctypeof import('shiki\u002Fbundle\u002Fweb').createHighlighter>>;\n",[66,1188,1186],{"__ignoreMap":89},[17,1190,1191,1192,1195,1196,1201],{},"Utility provides access to the ",[21,1193,1194],{},"Shiki syntax highlighter instance",", which is initialized once and globally, based on the ",[42,1197,1200],{"label":1198,"hash":1199},"`dl.components.DlCode` component configuration","highlighter","$docs-components-code",". Use it to generate highlighted code blocks with support for multiple languages and themes.",[26,1203,1205],{"title":1204,"type":29},"New instance of the Shiki highlighter",[17,1206,1207,1208,1211,1212,1215],{},"If you provide a ",[66,1209,1210],{},"customConfig"," object, a ",[21,1213,1214],{},"new instance of the Shiki highlighter will be created"," with the specified configuration instead of returning the global one. This is useful when you need different highlighting settings for specific use cases and\u002For single components.",[56,1217],{},[59,1219,1221,1226,1229,1238,1242,1256,1289,1301],{"id":1220},"utilsafehtml",[63,1222,1223],{"id":1220},[66,1224,1225],{},"utilSafeHTML",[17,1227,1228],{},"Sanitizes HTML client-side.",[26,1230,1231],{"title":402,"type":920},[17,1232,1233,1234,1237],{},"This utility is ",[21,1235,1236],{},"intended to work with the Vue component's template structure"," only. It contains the Nuxt runtime internals and should not be used outside of the component context.",[17,1239,1240,77],{},[21,1241,76],{},[79,1243,1244,1250],{"tabs":272},[83,1245,1248],{"className":1246,"code":1247,"language":1180,"meta":89},[1178],"\u003Ctemplate>\n  \u003Cdiv v-html=\"utilSafeHTML('unsafeHTML')\">\u003C\u002Fdiv>\n  \u003C!-- Disabled locally, per usage -->\n  \u003Cdiv v-html=\"utilSafeHTML('unsafeHTML', true)\">\u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\"cref:dhmpqi\"\n",[66,1249,1247],{"__ignoreMap":89},[83,1251,1254],{"className":1252,"code":1253,"filename":96,"language":88,"meta":89},[86],"declare function utilSafeHTML(html: string, localDisable: boolean = false): string;\n",[66,1255,1253],{"__ignoreMap":89},[26,1257,1259,1279],{"title":1258,"type":920},"Enabled by default",[17,1260,1261,1262,1265,1266,1269,1270,1275,1276,1278],{},"By default, ",[21,1263,1264],{},"HTML that is loaded dynamically is sanitized"," on the client side. This is primarily relevant for components using the ",[42,1267,1268],{},"$vue",". Global sanitization is controlled by the ",[42,1271,1274],{"label":1272,"hash":1273},"`sanitizeHTML`","sanitizehtml","$docs-getting-started-installation"," property - set this to ",[66,1277,402],{}," to disable sanitization everywhere. For new components, you can also disable it locally as needed, which might be helpful if you want to override the global setting.",[17,1280,1281,1284,1285,1288],{},[21,1282,1283],{},"Server-side sanitization is not performed",", assuming that server-rendered data is already secure. Sanitization is also disabled for ",[42,1286,1200],{"label":1287},"`DlCode`"," component code blocks, since the variety of code data can lead to improper escaping.",[17,1290,1291,1292,1295,1296,1300],{},"Utility might be very helpful when ",[21,1293,1294],{},"rendering dynamic HTML content from potentially untrusted sources"," - such as user inputs or external APIs - particularly when using inline HTML inserts with the ",[42,1297,1268],{"label":1298,"hash":777,"path":1299},"`v-html` directive","api\u002Fbuilt-in-directives.html"," in templates.",[56,1302],{},[59,1304,1306,1311,1314,1318,1332,1349,1367,1370],{"id":1305},"utilsluggen",[63,1307,1308],{"id":1305},[66,1309,1310],{},"utilSlugGen",[17,1312,1313],{},"Generates URL-friendly slugs.",[17,1315,1316,77],{},[21,1317,76],{},[79,1319,1320,1326],{"tabs":81},[83,1321,1324],{"className":1322,"code":1323,"language":88,"meta":89},[86],"utilSlugGen('Hello World!');\n\u002F\u002F results in: 'hello-world'\nutilSlugGen('\u002FDocs\u002F01.index.md', 'path');\n\u002F\u002F results in: '\u002Fdocs'\n\"cref:602a0m\"\n",[66,1325,1323],{"__ignoreMap":89},[83,1327,1330],{"className":1328,"code":1329,"filename":96,"language":88,"meta":89},[86],"type SlugType = 'simple' | 'path';\n\ndeclare function utilSlugGen(value: unknown, type?: SlugType): string;\n",[66,1331,1329],{"__ignoreMap":89},[17,1333,1334,1335,1338,1339,1343,1344,1348],{},"Utility is used to ",[21,1336,1337],{},"generate slugs from content paths",", such as for the ",[42,1340,634],{"label":1341,"hash":1342},"`dl.pathMap`","dlpathmap"," (used by the ",[42,1345,1347],{"label":1346},"`DlLink`","$docs-components-link"," component), and other internal modules. It is useful whenever you need to create URL-friendly strings from arbitrary input.",[17,1350,1351,1352,1355,1356,1359,1360,1362,1363,1366],{},"It supports two modes: ",[66,1353,1354],{},"simple"," and ",[66,1357,1358],{},"path",". The ",[66,1361,1358],{}," mode ",[21,1364,1365],{},"handles extensions",", camel-case, diacritics, numbered segments, double slashes, trailing index, spaces, and casing.",[113,1368,116],{":data":1369},"{\"utilityName\": \"utilSlugGen\"}",[56,1371],{},[59,1373,1375,1380,1383,1387,1401,1413,1420,1423],{"id":1374},"utilthrottle",[63,1376,1377],{"id":1374},[66,1378,1379],{},"utilThrottle",[17,1381,1382],{},"Immediate-leading throttle with per-callback state storing.",[17,1384,1385,77],{},[21,1386,76],{},[79,1388,1389,1395],{"tabs":81},[83,1390,1393],{"className":1391,"code":1392,"language":88,"meta":89},[86],"const { callback: onClick, pending } = utilThrottle(() => doSomething(), ref(false), 1000);\nonClick();\n\"cref:x85j68\"\n",[66,1394,1392],{"__ignoreMap":89},[83,1396,1399],{"className":1397,"code":1398,"filename":96,"language":88,"meta":89},[86],"import type { Ref } from 'vue';\nimport type { ThrottleFunction } from '@vuehouse\u002Fdl\u002Ftypes';\n\ndeclare function utilThrottle\u003CCallback extends ThrottleFunction>(\n  callback: Callback,\n  pending: Ref\u003Cboolean> = ref(false),\n  timeout: number = 1000,\n): { callback: Callback; pending?: Ref\u003Cboolean> };\n",[66,1400,1398],{"__ignoreMap":89},[17,1402,494,1403,1406,1407,1410,1411,712],{},[21,1404,1405],{},"uses an internal caching mechanism"," to store state of each callback, ensuring that every ",[21,1408,1409],{},"throttled function maintains its own timing and execution context, without leaking",". You can use it to limit how frequently a function can be called, such as user's interactions with an UI or events. It's used for copy-to-clipboard functionality in the ",[42,1412,1200],{"label":1287},[17,1414,1415,1416,1419],{},"You can pass your own pending state to have it updated accordingly, or simply use the pre-built one. The initial timeout is set to ",[66,1417,1418],{},"1000ms = 1s",", but you can customize it as needed.",[113,1421,116],{":data":1422},"{\"utilityName\": \"utilThrottle\"}",[56,1424],{},[59,1426,1428,1433,1436,1440,1454,1482,1493,1496],{"id":1427},"utiltwc",[63,1429,1430],{"id":1427},[66,1431,1432],{},"utilTWC",[17,1434,1435],{},"Builds Tailwind class(es) string from array or a tuple-builder.",[17,1437,1438,77],{},[21,1439,76],{},[79,1441,1442,1448],{"tabs":81},[83,1443,1446],{"className":1444,"code":1445,"language":88,"meta":89},[86],"const classes = utilTWC(['px-4', shouldHighlight && 'bg-yellow-100']);\n\u002F\u002F results in: 'px-4 bg-yellow-100'\nconst classes = utilTWC((resolver) => resolver(['px-4', 'py-2', isActive ? 'text-brand-500' : 'text-neutral-400']));\n\u002F\u002F results in: 'px-4 py-2 text-brand-500'\n\"cref:2avwn7\"\n",[66,1447,1445],{"__ignoreMap":89},[83,1449,1452],{"className":1450,"code":1451,"filename":96,"language":88,"meta":89},[86],"import type { LooseAutocomplete, ArrayToString } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype TailwindClass = (typeof import('#build\u002Fdoclayer\u002Ftwcl-compressed').default)[number];\ntype TailwindClassUnion = LooseAutocomplete\u003CTailwindClass>[];\n\ndeclare function utilTWC\u003CClassList extends TailwindClassUnion>(\n  resolver: (_tuple: typeof buildClassTuple) => ClassList,\n): ArrayToString\u003CReturnType\u003Ctypeof resolver>>;\ndeclare function utilTWC\u003CClassList extends TailwindClassUnion>(resolver: ClassList | TailwindClassUnion): string;\ndeclare function utilTWC(resolver: TailwindClassUnion): string;\ndeclare function utilTWC(resolver: any): any;\n",[66,1453,1451],{"__ignoreMap":89},[17,1455,894,1456,1463,1464,1467,1468,1471,1472,1475,1476,1481],{},[21,1457,1458,1459,1462],{},"smart way to define ",[42,1460,1461],{},"$tailwind"," CSS classes."," It accepts an array of class names, with suggestions provided by the TypeScript compiler - all for ",[21,1465,1466],{},"better DX",". The array is resolved into a final string containing the ",[21,1469,1470],{},"complete CSS class list",". It works alongside a special module, which supplies a union type of all valid Tailwind classes available at runtime. This enhances autocomplete and type safety. As a ",[21,1473,1474],{},"base piece"," it's integrated into the ",[42,1477,1480],{"label":1478,"hash":1479},"`defineDoclayerComponentUi`","definedoclayercomponentui","$docs-utils-macros"," macro, helping to build component-level UI configurations.",[17,1483,1484,1485,1488,1489,1492],{},"When used with a ",[66,1486,1487],{},"resolver"," callback function, ",[21,1490,1491],{},"it provides type inference for the final classes string"," directly at the definition level.",[113,1494,116],{":data":1495},"{\"utilityName\": \"utilTWC\"}",[56,1497],{},[59,1499,1501,1506,1509,1513,1527,1545],{"id":1500},"utiluid",[63,1502,1503],{"id":1500},[66,1504,1505],{},"utilUID",[17,1507,1508],{},"Generates a short, unique & random identifier.",[17,1510,1511,77],{},[21,1512,76],{},[79,1514,1515,1521],{"tabs":81},[83,1516,1519],{"className":1517,"code":1518,"language":88,"meta":89},[86],"const id = utilUID();\n\u002F\u002F results in: 'k2q9af'\n\"cref:z6kyx3\"\n",[66,1520,1518],{"__ignoreMap":89},[83,1522,1525],{"className":1523,"code":1524,"filename":96,"language":88,"meta":89},[86],"declare function utilUID(length: number = 6, chars: string): string;\n",[66,1526,1524],{"__ignoreMap":89},[17,1528,1529,1530,502,1533,1536,1537,1540,1541,1544],{},"Utility provides ",[21,1531,1532],{},"fast",[21,1534,1535],{},"dependency-free"," UID generation. Use it to create unique identifiers like keys, element IDs, or any situation where a distinct value is needed. You can specify both the length and the character set for the UUID. It ",[21,1538,1539],{},"uses a fast randomization algorithm"," based on the given character set, making it ",[21,1542,1543],{},"much more \"predictable\""," in the final result.",[56,1546],{},[59,1548,1550,1555,1558,1562,1576,1598,1608,1617,1620],{"id":1549},"utilwarnpatterncheck",[63,1551,1552],{"id":1549},[66,1553,1554],{},"utilWarnPatternCheck",[17,1556,1557],{},"Tests if a warning\u002Ferror message matches known patterns that are safe to ignore them.",[17,1559,1560,77],{},[21,1561,76],{},[79,1563,1564,1570],{"tabs":81},[83,1565,1568],{"className":1566,"code":1567,"language":88,"meta":89},[86],"\u002F\u002F check message against predefined patterns\nif (utilWarnPatternCheck(msg)) return;\n\u002F\u002F with additional custom regex\nif (utilWarnPatternCheck(msg, [\u002FcustomRegex\u002Fg])) return;\n\"cref:o2ismf\"\n",[66,1569,1567],{"__ignoreMap":89},[83,1571,1574],{"className":1572,"code":1573,"filename":96,"language":88,"meta":89},[86],"declare function utilWarnPatternCheck(message: string, patterns?: RegExp[]): boolean;\n",[66,1575,1573],{"__ignoreMap":89},[17,1577,1578,1579,162,1582,502,1585,1588,1589,1593,1594,1597],{},"Utility is useful for adding custom or additional warning filters. However, if you override the default warning handlers provided by DocLayer for ",[42,1580,1581],{},"$vite",[42,1583,1584],{},"$nitro",[21,1586,1587],{},"some warnings that are normally ignored may get logged unnecessarily",". To log every suppressed warning, enable ",[42,1590,634],{"label":1591,"hash":1592},"`dl.dev.debug`","dldevdebug"," mode. Keep in mind that this ",[21,1595,1596],{},"utility is primarily intended to filter out common warnings that have already been well-tested and addressed"," during the development.",[17,1599,1600,1601,1607],{},"Below you can see the default set of predefined ",[42,1602,1604],{"label":1603,"local":660},"Regex patterns",[839,1605],{"value":1606},"$doc._local.url.regex"," with explanations that are used in DocLayer error\u002Fwarning handlers: Vue, Vite & Nitro.",[79,1609,1611],{"max-height":1610},"20rem",[83,1612,1615],{"className":1613,"code":1614,"language":88,"meta":89},[86],"const $patterns = [\n  \u002F\u002F Nuxt logs a warning if a custom Nuxt Content component is not found.\n  \u002F\u002F It is a well-known issue: tba\n  \u002FFailed to resolve component\u002F,\n  \u002F\u002F Nuxt UI cannot recognize custom-generated slots passed to MDC components, so this warning is disabled.\n  \u002FSlot \"(?:[^\"]+|default)\" invoked outside of the render function\u002F,\n  \u002F\u002F Nuxt occasionally displays a warning when attempting to access `useAsyncData` before the context is available.\n  \u002F\u002F This sometimes occurs inside macros, not causing any real issues.\n  \u002F\u002F [in progress]\n  \u002F\\[useAsyncData\\] Component is already mounted\u002F,\n  \u002F\u002F The Tailwind CSS sourcemap (for Vite) is not available during build, so this warning is ignored.\n  \u002F\u002F It is a well-known issue: https:\u002F\u002Fgithub.com\u002Ftailwindlabs\u002Ftailwindcss\u002Fdiscussions\u002F16119\n  \u002F\\[plugin @tailwindcss\\\u002Fvite:generate:build\\]\u002F,\n  \u002F\u002F If sitemaps are disabled, Nitro pointing the lack of sourcemaps for external dependencies.\n  \u002FSourcemap is likely to be incorrect\u002F,\n  \u002F\u002F Nuxt logs a warning if Chrome requires a devtools configuration file. Disabled for now.\n  \u002F\\.well-known\\\u002Fappspecific\\\u002Fcom\\.chrome\\.devtools\\.json\u002F,\n  \u002F\u002F Since section links (ToC) are handled manually, the router reports a manual history update.\n  \u002Fhistory.state seems to have been manually\u002F,\n  \u002F\u002F Nuxt UI has issues rendering dynamic slots in the `Stepper` component-`expose` is mistakenly called per slot.\n  \u002F\u002F [in progress]\n  \u002Fexpose\\(\\) should be called only once\u002F,\n  \u002F\u002F The `manifest-route-rule` middleware is used natively for route rules, so this warning can be safely ignored.\n  \u002F\u002F It is a well-known issue: https:\u002F\u002Fgithub.com\u002Fnuxt\u002Fnuxt\u002Fissues\u002F30267\n  \u002F['\"]manifest-route-rule['\"] middleware already exists\u002F,\n  \u002Fmiddleware already exists\u002F,\n  \u002F\u002F The scroll behavior is manipulated manually, which leads to router warnings.\n  \u002FCould(?: not|n't) find element using selector [\"']#top[\"']\u002F,\n  \u002F\u002F The Terser plugin adds this comment to the build, which is not needed and is correct in production builds.\n  \u002FNO_SIDE_EFFECT\u002Fg,\n  \u002F\u002F The app uses virtual paths replaced by Vite. Unrecognized paths may trigger this warning, which is ignored.\n  \u002F:dl-virtual:\u002F,\n  \u002F\u002F LightningCSS does not recognize some pseudo-classes; this warning is ignored.\n  \u002F\u002F It is a well-known issue: https:\u002F\u002Fgithub.com\u002Fnuxt\u002Fnuxt\u002Fissues\u002F31041\n  \u002F\\[lightningcss minify\\] ['\"]deep['\"] is not recognized as a valid pseudo-class\u002F,\n  \u002F\u002F Since Vite recognizes double imports (dynamic\u002Fvirtual), and it's done on purpose,\n  \u002F\u002F to provide access to the config outside the context, the warning has been disabled.\n  \u002Fapp\\.config\\.ts is dynamically imported\u002F,\n  \u002F\u002F Module-provided pages and layouts are not detected by the app, but exists. (TODO: track the issue)\n  \u002FYour project has pages\u002F,\n  \u002FYour project has layouts\u002F,\n  \u002F\u002F Vite makes import mismatch over the same component, but defined with runtime params.\n  \u002F(?:Wrapper|Hero)\\.vue is dynamically imported\u002F,\n];\n\"cref:g1q2rp\"\n",[66,1616,1614],{"__ignoreMap":89},[113,1618,116],{":data":1619},"{\"utilityName\": \"utilWarnPatternCheck\"}",[56,1621],{},[59,1623,1625,1630,1637,1641,1655],{"id":1624},"utilwindowwidth",[63,1626,1627],{"id":1624},[66,1628,1629],{},"utilWindowWidth",[17,1631,1632,1633,1636],{},"Checks if ",[66,1634,1635],{},"window.innerWidth"," is at least the given width.",[17,1638,1639,77],{},[21,1640,76],{},[79,1642,1643,1649],{"tabs":81},[83,1644,1647],{"className":1645,"code":1646,"language":88,"meta":89},[86],"const isDesktop = utilWindowWidth(1024);\n\"cref:30181i\"\n",[66,1648,1646],{"__ignoreMap":89},[83,1650,1653],{"className":1651,"code":1652,"filename":96,"language":88,"meta":89},[86],"declare function utilWindowWidth(windowWidth: number): boolean | undefined;\n",[66,1654,1652],{"__ignoreMap":89},[113,1656,116],{":data":1657},"{\"utilityName\": \"utilWindowWidth\"}",{"title":89,"searchDepth":1659,"depth":1659,"links":1660},2,[1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684],{"id":61,"depth":1659,"text":68},{"id":121,"depth":1659,"text":126},{"id":173,"depth":1659,"text":178},{"id":219,"depth":1659,"text":224},{"id":257,"depth":1659,"text":262},{"id":296,"depth":1659,"text":301},{"id":351,"depth":1659,"text":356},{"id":416,"depth":1659,"text":421},{"id":465,"depth":1659,"text":470},{"id":543,"depth":1659,"text":548},{"id":592,"depth":1659,"text":597},{"id":647,"depth":1659,"text":652},{"id":737,"depth":1659,"text":742},{"id":798,"depth":1659,"text":345},{"id":865,"depth":1659,"text":870},{"id":953,"depth":1659,"text":958},{"id":1155,"depth":1659,"text":1160},{"id":1220,"depth":1659,"text":1225},{"id":1305,"depth":1659,"text":1310},{"id":1374,"depth":1659,"text":1379},{"id":1427,"depth":1659,"text":1432},{"id":1500,"depth":1659,"text":1505},{"id":1549,"depth":1659,"text":1554},{"id":1624,"depth":1659,"text":1629},"Auto-imported helper functions for common tasks across DocLayer","md",{},true,"\u002Fdocs\u002Futils\u002Futilities",{"title":5,"description":1685},{"loc":1689},"docs\u002F04.utils\u002F02.utilities","S5PWizxpDfOZSEJJEwaBEIwkWmhOyivGXTdtVvvjaoU",[1695],{"title":1696,"path":1697,"stem":1698,"children":1699,"page":1750},"Docs","\u002Fdocs","docs",[1700,1719,1751,1862,1887,1918,1941,1956,1998,2019],{"title":1701,"path":1702,"stem":1703,"children":1704,"description":6,"icon":1718},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[1705,1708,1713],{"title":1706,"path":1702,"stem":1703,"description":1707},"Introduction","What DocLayer is, who it’s for, and how it can help",{"title":1709,"path":1710,"stem":1711,"description":1712},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":1714,"path":1715,"stem":1716,"description":1717},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":1720,"description":6,"icon":1721,"path":1722,"stem":1723,"children":1724,"page":1750},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[1725,1730,1735,1740,1745],{"title":1726,"path":1727,"stem":1728,"description":1729},"Internals","\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":1731,"path":1732,"stem":1733,"description":1734},"Configuration","\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":1736,"path":1737,"stem":1738,"description":1739},"Writing Content","\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":1741,"path":1742,"stem":1743,"description":1744},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":1746,"path":1747,"stem":1748,"description":1749},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":1752,"path":1753,"stem":1754,"children":1755,"description":6,"label":1706,"icon":1861},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[1756,1759,1765,1770,1775,1780,1785,1790,1795,1800,1805,1810,1815,1820,1826,1831,1836,1841,1846,1851,1856],{"title":1757,"path":1753,"stem":1754,"description":1758,"label":1706},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":1760,"path":1761,"stem":1762,"description":1763,"label":1764},"Components Building & Styling","\u002Fdocs\u002Fcomponents\u002Fbuilding","docs\u002F03.components\u002F02.building","Create custom content components with DlWrapper","DlWrapper",{"title":1766,"path":1767,"stem":1768,"description":1769},"DlRenderer","\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":1771,"path":1772,"stem":1773,"description":1774},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":1776,"path":1777,"stem":1778,"description":1779},"DlCode","\u002Fdocs\u002Fcomponents\u002Fcode","docs\u002F03.components\u002F05.code","Display your code snippets with syntax highlighting, copy, tabs, transformations and more",{"title":1781,"path":1782,"stem":1783,"description":1784},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":1786,"path":1787,"stem":1788,"description":1789},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":1781,"path":1791,"stem":1792,"description":1784,"badge":1793},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":1794,"glow":1688},"new",{"title":1796,"path":1797,"stem":1798,"description":1799},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":1801,"path":1802,"stem":1803,"description":1804},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":1806,"path":1807,"stem":1808,"description":1809},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":1811,"path":1812,"stem":1813,"description":1814},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":1816,"path":1817,"stem":1818,"description":1819},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":1821,"path":1822,"stem":1823,"description":1824,"badge":1825},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":1794,"glow":1688},{"title":1827,"path":1828,"stem":1829,"description":1830},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":1832,"path":1833,"stem":1834,"description":1835},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":1837,"path":1838,"stem":1839,"description":1840},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":1842,"path":1843,"stem":1844,"description":1845},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":1847,"path":1848,"stem":1849,"description":1850},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":1852,"path":1853,"stem":1854,"description":1855},"DlNewsletter","\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":1857,"path":1858,"stem":1859,"description":1860},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":5,"path":1863,"stem":1864,"children":1865,"description":6,"label":1706,"icon":1886},"\u002Fdocs\u002Futils","docs\u002F04.utils\u002F01.index",[1866,1869,1870,1875,1880],{"title":1867,"path":1863,"stem":1864,"description":1868,"label":1706},"Utilities Introduction","Helpers, composables, macros, and types for extending DocLayer beyond Markdown",{"title":5,"path":1689,"stem":1692,"description":1685},{"title":1871,"path":1872,"stem":1873,"description":1874},"Composables","\u002Fdocs\u002Futils\u002Fcomposables","docs\u002F04.utils\u002F03.composables","Vue composables for collections, UI resolution, navigation, and content",{"title":1876,"path":1877,"stem":1878,"description":1879},"Macros","\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":1881,"path":1882,"stem":1883,"description":1884,"label":1885},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","Types","tool-case",{"title":1888,"path":1889,"stem":1890,"children":1891,"description":6,"label":1895,"icon":1917},"Adapters","\u002Fdocs\u002Fadapters","docs\u002F05.adapters\u002F01.index",[1892,1896,1901,1907,1912],{"title":1893,"path":1889,"stem":1890,"description":1894,"label":1895},"Building Adapters","Build type-safe adapters to plug external services into DocLayer","Building",{"title":1897,"path":1898,"stem":1899,"description":1900},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":1902,"path":1903,"stem":1904,"description":1905,"label":1902,"badge":1906},"PostHog","\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":1794,"glow":1688},{"title":1908,"path":1909,"stem":1910,"description":1911},"Resend","\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":1913,"path":1914,"stem":1915,"description":1916},"Substack","\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":1919,"path":1920,"stem":1921,"children":1922,"description":6,"label":1706,"icon":1940},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[1923,1926,1931,1935],{"title":1924,"path":1920,"stem":1921,"description":1925,"label":1706},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":1927,"path":1928,"stem":1929,"description":1930},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":1731,"path":1932,"stem":1933,"description":1934},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":1936,"path":1937,"stem":1938,"description":1939},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":1942,"path":1943,"stem":1944,"children":1945,"description":6,"icon":1955},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[1946,1949],{"title":1947,"path":1943,"stem":1944,"description":1948},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":1950,"path":1951,"stem":1952,"description":1953,"label":1954},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":1957,"description":6,"icon":1958,"path":1959,"stem":1960,"children":1961,"page":1750},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[1962,1968,1973,1978,1983,1988,1993],{"title":1963,"path":1964,"stem":1965,"description":1966,"label":1967},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":1969,"path":1970,"stem":1971,"description":1972},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":1974,"path":1975,"stem":1976,"description":1977},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":1979,"path":1980,"stem":1981,"description":1982},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":1984,"path":1985,"stem":1986,"description":1987},"AI Tuning","\u002Fdocs\u002Fadvanced\u002Fai-tuning","docs\u002F09.advanced\u002F06.ai-tuning","Templates and rules for AGENTS.md, coding agents, and content-author AI",{"title":1989,"path":1990,"stem":1991,"description":1992},"Error Handling","\u002Fdocs\u002Fadvanced\u002Ferror-handling","docs\u002F09.advanced\u002F07.error-handling","How DocLayer validates and reports errors in authoring, build, and production",{"title":1994,"path":1995,"stem":1996,"description":1997},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":1999,"description":6,"icon":2000,"path":2001,"stem":2002,"children":2003,"page":1750},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[2004,2009,2014],{"title":2005,"path":2006,"stem":2007,"description":2008},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":2010,"path":2011,"stem":2012,"description":2013},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":2015,"path":2016,"stem":2017,"description":2018},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":1936,"description":6,"icon":2020,"path":2021,"stem":2022,"children":2023,"page":1750},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[2024,2029,2034],{"title":2025,"path":2026,"stem":2027,"description":2028},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":2030,"path":2031,"stem":2032,"description":2033},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":2035,"path":2036,"stem":2037,"description":2038},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[2040,2062,2083,2104,2131,2147,2166,2192,2214,2259,2280,2292,2308,2325,2337,2398,2416,2442,2467,2497,2540,2567],{"id":2041,"data":6,"extension":1686,"meta":2042,"stem":2060,"__hash__":2061},"shared\u002Fcode-type-header-logo-path.md",{"body":2043},{"type":14,"value":2044,"toc":2058},[2045],[79,2046,2047,2053],{},[83,2048,2051],{"className":2049,"code":2050,"language":88,"meta":89},[86],"type DocLayerConfig = {\n  \u002F\u002F rest of the AppConfig interface\n  headerLogoPath:\n    | string\n    | {\n        light: string;\n        dark: string;\n        fallback?: string;\n      };\n};\n\"cref:k9e5ul\"\n",[66,2052,2050],{"__ignoreMap":89},[586,2054,2055],{"v-slot:ui":89},[17,2056,2057],{},"{\"actions\": \"hidden\", \"base\": \"mt-0!\"}",{"title":89,"searchDepth":1659,"depth":1659,"links":2059},[],"code-type-header-logo-path","551Sg_POiUffLU346shstXNFdKuMuK4ToyOLqIJp1Ws",{"id":2063,"data":6,"extension":1686,"meta":2064,"stem":2081,"__hash__":2082},"shared\u002Fcode-type-module-options-root-prep.md",{"body":2065},{"type":14,"value":2066,"toc":2079},[2067],[79,2068,2069,2075],{},[83,2070,2073],{"className":2071,"code":2072,"language":88,"meta":89},[86],"type ModuleOptions = {\n  rootPrep:\n    | {\n        components: boolean;\n        configs: boolean;\n        public: boolean;\n      }\n    | boolean;\n};\n\"cref:bqm9nh\"\n",[66,2074,2072],{"__ignoreMap":89},[586,2076,2077],{"v-slot:ui":89},[17,2078,2057],{},{"title":89,"searchDepth":1659,"depth":1659,"links":2080},[],"code-type-module-options-root-prep","CDd6YiejS7_3Pl2ETS054y-cran1P92f4jEUZTnpnOI",{"id":2084,"data":6,"extension":1686,"meta":2085,"stem":2102,"__hash__":2103},"shared\u002Fcode-type-search-debug-options.md",{"body":2086},{"type":14,"value":2087,"toc":2100},[2088],[79,2089,2090,2096],{},[83,2091,2094],{"className":2092,"code":2093,"language":88,"meta":89},[86],"type DebugOptions =\n  | {\n      mint: boolean;\n      parser: boolean;\n      assistant: boolean;\n      compression: boolean;\n    }\n  | boolean;\n\"cref:4kwyr2\"\n",[66,2095,2093],{"__ignoreMap":89},[586,2097,2098],{"v-slot:ui":89},[17,2099,2057],{},{"title":89,"searchDepth":1659,"depth":1659,"links":2101},[],"code-type-search-debug-options","9sgMqYFmn561p6df7FEuf-1-dyKAqrO_HYGdARynLlA",{"id":2105,"data":6,"extension":1686,"meta":2106,"stem":2129,"__hash__":2130},"shared\u002Finline-read-more-about.md",{"body":2107},{"type":14,"value":2108,"toc":2127},[2109],[17,2110,2113,2114,502,2118],{"className":2111},[2112],"mt-0!","More about ",[2115,2116],"dl-format",{":content":2117},"about",[42,2119,2120,2123,2124],{"label":409},[839,2121],{"value":2122},"$doc.link","|",[839,2125],{"value":2126},"$doc.hash",{"title":89,"searchDepth":1659,"depth":1659,"links":2128},[],"inline-read-more-about","O5VeK2Uv84witk_mAupYbHJxwXAmNoSKDgtmvyvLQwU",{"id":2132,"data":6,"extension":1686,"meta":2133,"stem":2145,"__hash__":2146},"shared\u002Fsection-exported-types.md",{"body":2134},{"type":14,"value":2135,"toc":2143},[2136],[17,2137,2138,2139,2142],{},"You can refer to the exported types, which are available for use throughout your application. All of them can be accessed from the ",[66,2140,2141],{},"@vuehouse\u002Fdl\u002Ftypes"," entrypoint.",{"title":89,"searchDepth":1659,"depth":1659,"links":2144},[],"section-exported-types","SyCNSGhT7VGICRHuO3fNO2QfyQUf7s10wVMGQyTfBFk",{"id":2148,"data":6,"extension":1686,"meta":2149,"stem":2164,"__hash__":2165},"shared\u002Fsection-highlighter-marker-disclaimer.md",{"body":2150},{"type":14,"value":2151,"toc":2162},[2152],[2153,2154,2155],"blockquote",{},[17,2156,2157,2158,2161],{},"The ",[66,2159,2160],{},"!"," character has been escaped manually to demonstrate the code usage, remove the backslash when using it.",{"title":89,"searchDepth":1659,"depth":1659,"links":2163},[],"section-highlighter-marker-disclaimer","DvlAILaQ9PE_c-B8f_1AYbrRaXRnOq9Ldr_Uc8qwkqE",{"id":2167,"data":6,"extension":1686,"meta":2168,"stem":2190,"__hash__":2191},"shared\u002Fsection-newly-added.md",{"body":2169},{"type":14,"value":2170,"toc":2188},[2171],[26,2172,2173],{"title":402},[17,2174,2175,2179,2180,2187],{},[2176,2177,1794],"dl-badge",{":iui":2178,"glow":660,"size":1686},"{ \"base\": \"mr-1 align-text-top\" }"," Available from the ",[66,2181,2184],{"className":2182},[2183],"whitespace-nowrap",[839,2185],{"value":2186},"$doc.version"," release.",{"title":89,"searchDepth":1659,"depth":1659,"links":2189},[],"section-newly-added","ALhVdWjkGXgjt6I9nIikz7fUkwkGy62V3bicM903qW8",{"id":2193,"data":6,"extension":1686,"meta":2194,"stem":2212,"__hash__":2213},"shared\u002Fsection-optional-tool.md",{"body":2195},{"type":14,"value":2196,"toc":2210},[2197],[26,2198,2199],{"title":402,"type":29},[17,2200,2201,2202,2205,2206,137],{},"This tool is not a part of the DocLayer module. Its usage is opinionated and ",[21,2203,2204],{},"optionally included"," in the ",[42,2207,2209],{"label":2208},"Boilerplate application","$dl-boilerplate",{"title":89,"searchDepth":1659,"depth":1659,"links":2211},[],"section-optional-tool","OWRAq0rKvbIllQHS-mJRS8L2qkNiiQ8RMiFBIBiZmnY",{"id":2215,"data":6,"extension":1686,"meta":2216,"stem":2257,"__hash__":2258},"shared\u002Fsection-props-extending.md",{"body":2217},{"type":14,"value":2218,"toc":2255},[2219],[26,2220,2222,2233],{"title":2221,"type":29},"Why to use built-in property extending?",[17,2223,2224,2225,2232],{},"You might ask ",[21,2226,2227,2228],{},"why this approach is better than simply ",[42,2229,398],{"hash":2230,"label":2231},"defining-dynamic-properties","passing regular dynamic properties"," to your content components?",[689,2234,2235,2242,2249,2252],{},[692,2236,2237,2238,137],{},"First, it’s not limited to local data - you can provide data from parent components as well as from the global registry, managed by the ",[42,2239,634],{"hash":2240,"label":2241},"dlindocdata","`dl.inDocData` object",[692,2243,2244,2245,2248],{},"Second, dynamic property binding with the ",[66,2246,2247],{},"$doc"," handler isn’t possible when using regular dynamic props, since those values are resolved as static data, which can make data binding inconsistent.",[692,2250,2251],{},"Third, you can mix static and dynamic content for the same property.",[692,2253,2254],{},"Finally, with this approach, data binding happens at the component level, is cached, and reused for future renders, rather than being resolved each time during Markdown parsing.",{"title":89,"searchDepth":1659,"depth":1659,"links":2256},[],"section-props-extending","_KvOHw4F9cNT3FPfJPu3rKhnly5pt4adBb6EQXsJM8s",{"id":2260,"data":6,"extension":1686,"meta":2261,"stem":2278,"__hash__":2279},"shared\u002Fsection-props-intro.md",{"body":2262},{"type":14,"value":2263,"toc":2276},[2264],[17,2265,2266,2267,2272,2273,137],{},"Here are the properties you can use with the ",[66,2268,2269],{},[839,2270],{"value":2271},"$doc.componentName"," component. Each property should be set on an individual component instance; they do not affect the global configuration. More about defining properties in MDC components ",[42,2274,398],{"hash":2275,"label":409},"defining-properties",{"title":89,"searchDepth":1659,"depth":1659,"links":2277},[],"section-props-intro","SKoDIW1kVb4amM1MgbWMvvgRr9IWPabKr58_xl1Q-GM",{"id":2281,"data":6,"extension":1686,"meta":2282,"stem":2290,"__hash__":2291},"shared\u002Fsection-props-iui-description.md",{"body":2283},{"type":14,"value":2284,"toc":2288},[2285],[17,2286,2287],{},"Special property dedicated to inline components, can be used to add TW classes for certain component markup elements.",{"title":89,"searchDepth":1659,"depth":1659,"links":2289},[],"section-props-iui-description","Se96jxhroK3WLRE4HXYqDeoYv1lpUd8qv4vZ8us54sI",{"id":2293,"data":6,"extension":1686,"meta":2294,"stem":2306,"__hash__":2307},"shared\u002Fsection-props-ui-default.md",{"body":2295},{"type":14,"value":2296,"toc":2304},[2297],[17,2298,2300],{"style":2299},"white-space: nowrap;",[131,2301,2303],{"href":2302},"#styling","see below",{"title":89,"searchDepth":1659,"depth":1659,"links":2305},[],"section-props-ui-default","5mkrOeoYp1BToIddCkwyzzTWeOQvj1gDVRYHJJl7kow",{"id":2309,"data":6,"extension":1686,"meta":2310,"stem":2323,"__hash__":2324},"shared\u002Fsection-props-ui-description.md",{"body":2311},{"type":14,"value":2312,"toc":2321},[2313],[17,2314,2316,2317,2320],{"style":2315},"min-width: 16rem;","The component ",[66,2318,2319],{},"ui"," object. Defines the Tailwind classes for the component's HTML markup elements.",{"title":89,"searchDepth":1659,"depth":1659,"links":2322},[],"section-props-ui-description","xXl6RjZ54x2VpJv6H1mJ7OSCTSOfMTtRD1_VyiC0tjI",{"id":2326,"data":6,"extension":1686,"meta":2327,"stem":2335,"__hash__":2336},"shared\u002Fsection-props-ui-type.md",{"body":2328},{"type":14,"value":2329,"toc":2333},[2330],[66,2331,2332],{"style":2299},"() => UI",{"title":89,"searchDepth":1659,"depth":1659,"links":2334},[],"section-props-ui-type","AuxEvFbnpnbFrEjJrYiNJVZsYmI8RkEnH9RjkkuoaSQ",{"id":2338,"data":6,"extension":1686,"meta":2339,"stem":2396,"__hash__":2397},"shared\u002Fsection-remote-model-callout.md",{"body":2340},{"type":14,"value":2341,"toc":2394},[2342],[26,2343,2345,2351,2361,2364,2373,2383],{"title":2344},"DocLayer's Remote Model",[17,2346,2347,2350],{},[21,2348,2349],{},"DocLayer offers a prebuilt remote API for the AI Assistant",", providing advanced features like context focusing, deterministic intelligent caching, and optimized code extraction to deliver precise, high-quality answers (almost) every time.",[17,2352,2353,137],{},[21,2354,2355,2356,2360],{},"Our carefully fine-tuned model is available through the ",[42,2357,2359],{"label":2358},"🫠 Early Supporter Program","$docs-project-support"," - help us to build the best product possible securing the most advanced features for the best price",[17,2362,2363],{},"Here’s how you can configure it:",[79,2365,2367],{"tabs":2366},"nuxt.config.ts",[83,2368,2371],{"className":2369,"code":2370,"language":88,"meta":89},[86],"export default defineNuxtConfig({\n  \u002F\u002F the rest of the nuxt.config.ts\n  modules: ['@vuehouse\u002Fdl-search'],\n  dlSearch: {\n    assistant: {\n      model: {\n        type: 'dl',\n        config: {\n          endpoint: 'https:\u002F\u002Fvue.house\u002Fapi',\n          token: process.env.DL_API_TOKEN,\n        },\n      },\n    },\n  },\n});\n\"cref:96cag8\"\n",[66,2372,2370],{"__ignoreMap":89},[17,2374,2375,2376,2379,2380,137],{},"To try our API please ",[42,2377,2378],{},"$mailto-vue-house",". ",[21,2381,2382],{},"It's free",[17,2384,2385,2386,40,2389,137],{},"Remote ",[21,2387,2388],{},"API operates with a dedicated",[42,2390,2393],{"label":2391,"hash":2392},"DocLayer AI Kit","ai-kit","$docs-search-usage",{"title":89,"searchDepth":1659,"depth":1659,"links":2395},[],"section-remote-model-callout","C3AapTL9Uu5tqauRWl5GqZc8aOld3-yEvscN9Dwfp2M",{"id":2399,"data":6,"extension":1686,"meta":2400,"stem":2414,"__hash__":2415},"shared\u002Fsection-slots-ui-description.md",{"body":2401},{"type":14,"value":2402,"toc":2412},[2403],[17,2404,2405,2406,2408,2409,137],{},"Dedicated slot for defining the component’s ",[66,2407,2319],{}," object. More about styling MDC components ",[42,2410,2411],{"label":409},"$docs-components-building",{"title":89,"searchDepth":1659,"depth":1659,"links":2413},[],"section-slots-ui-description","HFR6PT0KFzSBW9WnqIk5KdPqHjGTTl3za3mklYIIYUY",{"id":2417,"data":6,"extension":1686,"meta":2418,"stem":2440,"__hash__":2441},"shared\u002Fsection-styling-css-classes-intro.md",{"body":2419},{"type":14,"value":2420,"toc":2438},[2421],[17,2422,2423,2424,2428,2429,2433,2434,2437],{},"Below are the CSS utility classes used by the ",[66,2425,2426],{},[839,2427],{"value":2271}," component. They make use of the ",[131,2430,2432],{"href":2431},"#css-variables","CSS variables"," described above and ",[131,2435,2436],{"href":2302},"define the default styling"," for the component's markup elements.",{"title":89,"searchDepth":1659,"depth":1659,"links":2439},[],"section-styling-css-classes-intro","VRtlxQ59m9iNVrWHp9r1OAy2lkklqQPtKbRIkwVCY6A",{"id":2443,"data":6,"extension":1686,"meta":2444,"stem":2465,"__hash__":2466},"shared\u002Fsection-styling-css-variables-intro.md",{"body":2445},{"type":14,"value":2446,"toc":2463},[2447],[17,2448,2449,2450,2453,2454,2458,2459,137],{},"Here is a set of CSS variables you can ",[21,2451,2452],{},"use to customize the appearance"," of the ",[66,2455,2456],{},[839,2457],{"value":2271}," component globally. More about theming and styling with CSS variables, ",[42,2460,2462],{"hash":2461,"label":409},"css-variables","$docs-guidelines-theming",{"title":89,"searchDepth":1659,"depth":1659,"links":2464},[],"section-styling-css-variables-intro","Vk6yVXoMwLNtqisCZhk9m2F3-wHKjiujWtBBZbTJcD4",{"id":2468,"data":6,"extension":1686,"meta":2469,"stem":2495,"__hash__":2496},"shared\u002Fsection-styling-intro.md",{"body":2470},{"type":14,"value":2471,"toc":2493},[2472,2485],[26,2473,2475],{"title":2474,"type":29},"Styling from Markdown",[17,2476,2477,2478,2481,2482,137],{},"Every DocLayer component ",[21,2479,2480],{},"can be styled directly within your Markdown file"," using dedicated slot\u002Fproperty configuration. This allows you to customize the appearance of the component's markup elements without modifying global styles. More about components styling ",[42,2483,2411],{"hash":2484,"label":409},"styling-inside-the-markdown-files",[17,2486,2487,2488],{},"Below you'll find the default set of Tailwind classes for the component's dedicated markup elements. ",[2115,2489,2490],{},[839,2491],{"defaultValue":1078,"value":2492},"$doc.extend",{"title":89,"searchDepth":1659,"depth":1659,"links":2494},[],"section-styling-intro","8V_zEj7QXax6dzKp918ZNy97d9u4qk6TaE40wI5JWEs",{"id":2498,"data":6,"extension":1686,"meta":2499,"stem":2538,"__hash__":2539},"shared\u002Fsection-utility-exports-disclaimer.md",{"body":2500},{"type":14,"value":2501,"toc":2536},[2502],[26,2503,2504,2510,2529],{"title":402,"type":29},[17,2505,1233,2506,2509],{},[21,2507,2508],{},"exported from the module"," package.",[79,2511,2514,2520],{"dynamic":2512,"tabs":2513},"utilityName","file.ts",[83,2515,2518],{"className":2516,"code":2517,"language":88,"meta":89},[86],"import { :dl-dynamic: } from '@vuehouse\u002Fdl\u002Fexports';\n\"cref:zseli7\"\n",[66,2519,2517],{"__ignoreMap":89},[586,2521,2522],{"v-slot:props":89},[17,2523,2524,2525,2528],{},"{\"dynamic\": \"",[839,2526],{"value":2527},"$doc.utilityName","\" }",[17,2530,2531,2532,2535],{},"You can use it this way ",[21,2533,2534],{},"when the global context is not available"," and utility can't be loaded automatically by Nuxt.",{"title":89,"searchDepth":1659,"depth":1659,"links":2537},[],"section-utility-exports-disclaimer","FXCXHiiD49oOkbSwsKFpp4m0gsXkZdnUwCwWnVjwucI",{"id":2541,"data":6,"extension":1686,"meta":2542,"stem":2565,"__hash__":2566},"shared\u002Ftooltip-app-config-path.md",{"body":2543},{"type":14,"value":2544,"toc":2563},[2545],[657,2546,2549],{"label":2547,"tooltip":2548},"`app.config.ts`","In-app file path: app\u002Fapp.config.ts",[586,2550,2551],{"v-slot:props":89},[17,2552,2553,2554,2558,2559,2562],{},"{\"tooltip\": \"In-app file path: ",[839,2555],{"defaultValue":2556,"value":2557},"app\u002Fapp.config.ts","$doc.tooltip","\", \"label\": \"",[839,2560],{"defaultValue":2547,"value":2561},"$doc.label","\"}",{"title":89,"searchDepth":1659,"depth":1659,"links":2564},[],"tooltip-app-config-path","WVDQKyALt7paYD6Tr7K10fmQ27d2XjzO_oxDKHCgSdc",{"id":2568,"data":6,"extension":1686,"meta":2569,"stem":2578,"__hash__":2579},"shared\u002Ftooltip-rag.md",{"body":2570},{"type":14,"value":2571,"toc":2576},[2572],[657,2573],{"label":2574,"lock-width":660,"tooltip":2575},"**RAG**","RAG stands for Retrieval-Augmented Generation. It is an AI solution that enhances the accuracy and reliability of Large Language Models by allowing them to reference data outside their original training set when generating answers. In most cases, this data is provided locally.",{"title":89,"searchDepth":1659,"depth":1659,"links":2577},[],"tooltip-rag","fDKuZzfT8d6JNox0uI1P0_ktG8kYWiz7WGsWWo7gTGs",[2581,2583,2584,2585],{"title":5,"path":2582,"stem":1864,"children":-1,"description":6,"label":1706,"icon":1886},"\u002Fdocs\u002Futils\u002F.navigation",{"title":1867,"path":1863,"stem":1864,"description":1868,"label":1706,"children":-1},{"title":1871,"path":1872,"stem":1873,"description":1874,"children":-1},{"title":1876,"path":1877,"stem":1878,"description":1879,"children":-1},1795796068079]