@arbetsformedlingen/yrkesvaljaren 2.0.12 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +52 -21
  2. package/dist/cjs/{af-validation-message-Cy89nVEv.js → af-validation-message-BdR9X_qh.js} +1 -1
  3. package/dist/cjs/core-selector.cjs.entry.js +342 -23
  4. package/dist/cjs/digi-service-job-selector.cjs.entry.js +352 -61
  5. package/dist/cjs/{index-hZgOvC17.js → index-DMQDFAL7.js} +0 -22
  6. package/dist/cjs/index.cjs.js +4 -7
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/{esm/fuse-BPnhMTul.js → cjs/types-DdzCbiye.js} +965 -1
  9. package/dist/cjs/yrkesvaljaren.cjs.js +2 -2
  10. package/dist/collection/collection-manifest.json +0 -1
  11. package/dist/collection/components/core-selector/core-selector.css +70 -49
  12. package/dist/collection/components/core-selector/core-selector.js +309 -14
  13. package/dist/collection/components/design-compat/af-icon.js +8 -7
  14. package/dist/collection/components/job-selector/job-selector-controller.js +13 -3
  15. package/dist/collection/components/job-selector/job-selector.css +188 -34
  16. package/dist/collection/components/job-selector/job-selector.js +199 -10
  17. package/dist/components/core-selector2.js +1 -1
  18. package/dist/components/digi-service-job-selector.js +1 -1
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/types.js +1 -1
  21. package/dist/esm/{af-validation-message-BgoGzzBf.js → af-validation-message-DMoOu-0k.js} +1 -1
  22. package/dist/esm/core-selector.entry.js +342 -23
  23. package/dist/esm/digi-service-job-selector.entry.js +310 -19
  24. package/dist/esm/{index-HNd02eQb.js → index-vJ-tamti.js} +1 -22
  25. package/dist/esm/index.js +2 -4
  26. package/dist/esm/loader.js +3 -3
  27. package/dist/{cjs/fuse-BTLNKxuL.js → esm/types-DVos4HHS.js} +948 -2
  28. package/dist/esm/yrkesvaljaren.js +3 -3
  29. package/dist/types/components/core-selector/core-selector.d.ts +68 -0
  30. package/dist/types/components/job-selector/job-selector-controller.d.ts +5 -0
  31. package/dist/types/components/job-selector/job-selector.d.ts +21 -3
  32. package/dist/types/components/job-selector/types.d.ts +12 -0
  33. package/dist/types/components.d.ts +20 -99
  34. package/dist/types/index.d.ts +1 -1
  35. package/dist/vendor/taxonomy-core/af-data-layer.d.ts +16 -0
  36. package/dist/vendor/taxonomy-core/af-data-layer.js +24 -0
  37. package/dist/vendor/taxonomy-core/index.d.ts +1 -1
  38. package/dist/vendor/taxonomy-core/index.js +1 -1
  39. package/dist/vendor/taxonomy-core/pii-sanitizer.d.ts +25 -0
  40. package/dist/vendor/taxonomy-core/pii-sanitizer.js +137 -0
  41. package/dist/vendor/taxonomy-core/selector-navigation.d.ts +9 -1
  42. package/dist/vendor/taxonomy-core/selector-navigation.js +28 -1
  43. package/dist/vendor/taxonomy-core/selector-types.d.ts +12 -0
  44. package/dist/yrkesvaljaren/index.esm.js +1 -1
  45. package/dist/yrkesvaljaren/p-0f19a308.entry.js +1 -0
  46. package/dist/yrkesvaljaren/{p-BUviBbwX.js → p-DHK95AvZ.js} +1 -1
  47. package/dist/yrkesvaljaren/p-DVos4HHS.js +1 -0
  48. package/dist/yrkesvaljaren/p-b81496c8.entry.js +1 -0
  49. package/dist/yrkesvaljaren/p-vJ-tamti.js +3 -0
  50. package/dist/yrkesvaljaren/yrkesvaljaren.esm.js +1 -1
  51. package/package.json +12 -10
  52. package/dist/cjs/geo-valjaren.cjs.entry.js +0 -14910
  53. package/dist/cjs/job-selector-demo.cjs.entry.js +0 -690
  54. package/dist/cjs/neobrutal-search.cjs.entry.js +0 -171
  55. package/dist/cjs/search.engine-D4cpbVzd.js +0 -504
  56. package/dist/cjs/taxonomy-registry-Dzt0SPzT.js +0 -454
  57. package/dist/cjs/types-CtHBl6Ra.js +0 -14
  58. package/dist/collection/components/geovaljaren/geovaljaren.css +0 -21
  59. package/dist/collection/components/geovaljaren/geovaljaren.js +0 -304
  60. package/dist/collection/components/geovaljaren/logic/adapter.utils.js +0 -20
  61. package/dist/collection/components/geovaljaren/logic/data.utils.js +0 -12
  62. package/dist/collection/components/geovaljaren/logic/history-service.js +0 -25
  63. package/dist/collection/components/geovaljaren/logic/search.engine.js +0 -28
  64. package/dist/collection/verkstad/verkstad.js +0 -408
  65. package/dist/components/fuse.js +0 -1
  66. package/dist/components/geo-valjaren.d.ts +0 -11
  67. package/dist/components/geo-valjaren.js +0 -1
  68. package/dist/components/job-selector-demo.d.ts +0 -11
  69. package/dist/components/job-selector-demo.js +0 -1
  70. package/dist/components/job-selector.js +0 -1
  71. package/dist/components/neobrutal-search.d.ts +0 -11
  72. package/dist/components/neobrutal-search.js +0 -1
  73. package/dist/components/search.engine.js +0 -1
  74. package/dist/esm/geo-valjaren.entry.js +0 -14908
  75. package/dist/esm/job-selector-demo.entry.js +0 -688
  76. package/dist/esm/neobrutal-search.entry.js +0 -169
  77. package/dist/esm/search.engine-BaWUTc3r.js +0 -493
  78. package/dist/esm/taxonomy-registry-C-pSh51L.js +0 -449
  79. package/dist/esm/types-DHUftoZJ.js +0 -12
  80. package/dist/types/components/geovaljaren/geovaljaren.d.ts +0 -24
  81. package/dist/types/components/geovaljaren/logic/adapter.utils.d.ts +0 -7
  82. package/dist/types/components/geovaljaren/logic/data.utils.d.ts +0 -7
  83. package/dist/types/components/geovaljaren/logic/history-service.d.ts +0 -6
  84. package/dist/types/components/geovaljaren/logic/search.engine.d.ts +0 -7
  85. package/dist/types/components/job-selector-demo/job-selector-demo.d.ts +0 -65
  86. package/dist/types/components/neobrutal-search/neobrutal-search.d.ts +0 -18
  87. package/dist/types/verkstad/verkstad.d.ts +0 -1
  88. package/dist/types/vitest-globals.d.ts +0 -1
  89. package/dist/yrkesvaljaren/p-5c3a5308.entry.js +0 -1
  90. package/dist/yrkesvaljaren/p-9ecd5177.entry.js +0 -1
  91. package/dist/yrkesvaljaren/p-BPnhMTul.js +0 -1
  92. package/dist/yrkesvaljaren/p-C-pSh51L.js +0 -1
  93. package/dist/yrkesvaljaren/p-CjMoDiZD.js +0 -1
  94. package/dist/yrkesvaljaren/p-DHUftoZJ.js +0 -1
  95. package/dist/yrkesvaljaren/p-HNd02eQb.js +0 -3
  96. package/dist/yrkesvaljaren/p-b6130085.entry.js +0 -1
  97. package/dist/yrkesvaljaren/p-dbbea724.entry.js +0 -1
  98. package/dist/yrkesvaljaren/p-df3fa43b.entry.js +0 -1
@@ -1,690 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-hZgOvC17.js');
4
- var taxonomyRegistry = require('./taxonomy-registry-Dzt0SPzT.js');
5
-
6
- /**
7
- * marked v18.0.11 - a markdown parser
8
- * Copyright (c) 2018-2026, MarkedJS. (MIT License)
9
- * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
10
- * https://github.com/markedjs/marked
11
- */
12
-
13
- /**
14
- * DO NOT EDIT THIS FILE
15
- * The code in this file is generated from files in ./src/
16
- */
17
-
18
- function A(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var R=A();function j(l){R=l;}var z={exec:()=>null};function I(l){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),s=e[n];return s||(s=l(n),e[n]=s),s}}function k(l,e=""){let t=typeof l=="string"?l:l.source,n={replace:(s,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(m.caret,"$1"),t=t.replace(s,i),n},getRegex:()=>new RegExp(t,e)};return n}var Oe=((l="")=>{try{return !!new RegExp("(?<=1)(?<!1)"+l)}catch{return false}})(),m={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:I(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:I(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:I(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:I(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:I(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:I(l=>new RegExp(`^ {0,${l}}>`))},Te=/^(?:[ \t]*(?:\n|$))+/,we=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ye=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Pe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,U=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,oe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ae=k(oe).replace(/bull/g,U).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Se=k(oe).replace(/bull/g,U).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),K=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,_e=/^[^\n]+/,W=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$e=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",W).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Le=k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,U).getRegex(),Q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ee=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",Q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le=l=>k(K).replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",l).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),ze=le(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Me=le(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ae=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Me).getRegex(),J={blockquote:Ae,code:we,def:$e,fences:ye,heading:Pe,hr:q,html:Ee,lheading:ae,list:Le,newline:Te,paragraph:ze,table:z,text:_e},se=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),Ie={...J,lheading:Se,table:se,paragraph:k(K).replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",se).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex()},Ce={...J,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(K).replace("hr",q).replace("heading",` *#{1,6} *[^
19
- ]`).replace("lheading",ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Be=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,De=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ue=/^( {2,}|\\)\n(?!\s*$)/,qe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,v=/[^\s\p{P}\p{S}]/u,ve=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),He=/[\p{Pi}\p{Ps}"']/u,pe=/(?!~)[\p{P}\p{S}]/u,Ze=/(?!~)[\s\p{P}\p{S}]/u,Ge=/(?:[^\s\p{P}\p{S}]|~)/u,Qe=k(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Oe?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ce=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ne=k(ce,"u").replace(/punct/g,_).getRegex(),je=k(ce,"u").replace(/punct/g,pe).getRegex(),Fe=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Ue=k(Fe,"u").replace(/openQuote/g,He).replace(/punct/g,_).getRegex(),he="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ke=k(he,"gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,C).replace(/punct/g,_).getRegex(),We=k(he,"gu").replace(/notPunctSpace/g,Ge).replace(/punctSpace/g,Ze).replace(/punct/g,pe).getRegex(),Xe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Je=k(Xe,"gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,C).replace(/punct/g,_).getRegex(),Ve=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,C).replace(/punct/g,_).getRegex(),Ye="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",et=k(Ye,"gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,C).replace(/punct/g,_).getRegex(),tt=k(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_).getRegex(),nt="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",rt=k(nt,"gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,C).replace(/punct/g,_).getRegex(),st=k(/\\(punct)/,"gu").replace(/punct/g,_).getRegex(),it=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ot=k(X).replace("(?:-->|$)","-->").getRegex(),at=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ot).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,lt=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ke=k(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",W).getRegex(),de=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",W).getRegex(),ut=k("reflink|nolink(?!\\()","g").replace("reflink",ke).replace("nolink",de).getRegex(),ie=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,V={_backpedal:z,anyPunctuation:st,autolink:it,blockSkip:Qe,br:ue,code:De,del:z,delLDelim:z,delRDelim:z,emStrongLDelim:Ne,emStrongRDelimAst:Ke,emStrongRDelimUnd:Ve,escape:Be,link:lt,nolink:de,punctuation:ve,reflink:ke,reflinkSearch:ut,tag:at,text:qe,url:z},pt={...V,emStrongLDelim:Ue,emStrongRDelimAst:Je,emStrongRDelimUnd:et,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},F={...V,emStrongRDelimAst:We,emStrongLDelim:je,delLDelim:tt,delRDelim:rt,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ie).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:k(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ie).getRegex()},ct={...F,br:k(ue).replace("{2,}","*").getRegex(),text:k(F.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},H={normal:J,gfm:Ie,pedantic:Ce},B={normal:V,gfm:F,breaks:ct,pedantic:pt};var ht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ge=l=>ht[l];function T(l,e){if(e){if(m.escapeTest.test(l))return l.replace(m.escapeReplace,ge)}else if(m.escapeTestNoEncode.test(l))return l.replace(m.escapeReplaceNoEncode,ge);return l}function Y(l){try{l=encodeURI(l).replace(m.percentDecode,"%");}catch{return null}return l}function ee(l,e){let t=l.replace(m.findPipe,(r,i,o)=>{let u=false,a=i;for(;--a>=0&&o[a]==="\\";)u=!u;return u?"|":" |"}),n=t.split(m.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(m.slashPipe,"|");return n}function $(l,e,t){let n=l.length;if(n===0)return "";let s=0;for(;s<n;){let r=l.charAt(n-s-1);if(r===e&&true)s++;else break}return l.slice(0,n-s)}function te(l){let e=l.split(`
20
- `),t=e.length-1;for(;t>=0&&m.blankLine.test(e[t]);)t--;return e.length-t<=2?l:e.slice(0,t+1).join(`
21
- `)}function fe(l,e){if(l.indexOf(e[1])===-1)return -1;let t=0;for(let n=0;n<l.length;n++)if(l[n]==="\\")n++;else if(l[n]===e[0])t++;else if(l[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function me(l,e=0){let t=e,n="";for(let s of l)if(s===" "){let r=4-t%4;n+=" ".repeat(r),t+=r;}else n+=s,t++;return n}function xe(l,e,t,n,s){let r=e.href,i=e.title||null,o=l[1].replace(s.other.outputLinkReplace,"$1"),u=l[0].charAt(0)==="!";n.state.inLink=true;let a=n.state.linkEmitted,p=n.state.inRawBlock;n.state.linkEmitted=false;let c=n.inlineTokens(o),h=n.state.linkEmitted;if(n.state.linkEmitted=a,n.state.inLink=false,!u){if(h){n.state.inRawBlock=p;return}n.state.linkEmitted=true;}return {type:u?"image":"link",raw:t,href:r,title:i,text:o,tokens:c}}function kt(l,e,t){let n=l.match(t.other.indentCodeCompensation);if(n===null)return e;let s=n[1];return e.split(`
22
- `).map(r=>{let i=r.match(t.other.beginningSpace);if(i===null)return r;let[o]=i;return o.length>=s.length?r.slice(s.length):r}).join(`
23
- `)}var y=class{options;rules;lexer;constructor(e){this.options=e||R;}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return {type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:te(t[0]),s=n.replace(this.rules.other.codeRemoveIndent,"");return {type:"code",raw:n,codeBlockStyle:"indented",text:s}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],s=kt(n,t[3]||"",this.rules);return {type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let s=$(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim());}return {type:"heading",raw:$(t[0],`
24
- `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return {type:"hr",raw:$(t[0],`
25
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=$(t[0],`
26
- `).split(`
27
- `),s="",r="",i=[];for(;n.length>0;){let o=false,u=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))u.push(n[a]),o=true;else if(!o)u.push(n[a]);else break;n=n.slice(a);let p=u.join(`
28
- `),c=p.replace(this.rules.other.blockquoteSetextReplace,`
29
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
30
- ${p}`:p,r=r?`${r}
31
- ${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=true,this.lexer.blockTokens(c,i,true),this.lexer.state.top=h,n.length===0)break;let d=i.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let O=d,g=n.join(`
32
- `),w=O.raw+`
33
- `+g.replace(this.rules.other.blockquoteSetextReplace2,""),E=this.blockquote(w);i[i.length-1]=E,s=`${s}
34
- ${g}`,r=r.substring(0,r.length-O.text.length)+E.text;break}else if(d?.type==="list"){let O=d,g=O.raw+`
35
- `+n.join(`
36
- `),w=this.list(g);i[i.length-1]=w,s=s.substring(0,s.length-d.raw.length)+w.raw,r=r.substring(0,r.length-O.raw.length)+w.raw,n=g.substring(i.at(-1).raw.length).split(`
37
- `);continue}}return {type:"blockquote",raw:s,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:false,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=false;for(;e;){let a=false,p="",c="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;p=t[0],e=e.substring(p.length);let h=me(t[2].split(`
38
- `,1)[0],t[1].length),d=e.split(`
39
- `,1)[0],O=!h.trim(),g=0;if(this.options.pedantic?(g=2,c=h.trimStart()):O?g=t[1].length+1:(g=h.search(this.rules.other.nonSpaceChar),g=g>4?1:g,c=h.slice(g),g+=t[1].length),O&&this.rules.other.blankLine.test(d)&&(p+=d+`
40
- `,e=e.substring(d.length+1),a=true),!a){let w=this.rules.other.nextBulletRegex(g),E=this.rules.other.hrRegex(g),ne=this.rules.other.fencesBeginRegex(g),re=this.rules.other.headingBeginRegex(g),be=this.rules.other.htmlBeginRegex(g),Re=this.rules.other.blockquoteBeginRegex(g);for(;e;){let N=e.split(`
41
- `,1)[0],D;if(d=N,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),D=d):D=d.replace(this.rules.other.tabCharGlobal," "),ne.test(d)||re.test(d)||be.test(d)||Re.test(d)||w.test(d)||E.test(d))break;if(D.search(this.rules.other.nonSpaceChar)>=g||!d.trim())c+=`
42
- `+D.slice(g);else {if(O||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ne.test(h)||re.test(h)||E.test(h))break;c+=`
43
- `+d;}O=!d.trim(),p+=N+`
44
- `,e=e.substring(N.length+1),h=D.slice(g);}}r.loose||(o?r.loose=true:this.rules.other.doubleBlankLine.test(p)&&(o=true)),r.items.push({type:"list_item",raw:p,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:false,text:c,tokens:[]}),r.raw+=p;}let u=r.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let a of r.items)if(this.lexer.state.top=false,a.tokens=this.lexer.blockTokens(a.text,[]),!r.loose){let p=a.tokens.filter(h=>h.type==="space"),c=p.length>0&&p.some(h=>this.rules.other.anyLine.test(h.raw));r.loose=c;}for(let a of r.items){let p=a.tokens[0];if(a.task&&(p?.type==="text"||p?.type==="paragraph")){a.text=a.text.replace(this.rules.other.listReplaceTask,""),p.raw=p.raw.replace(this.rules.other.listReplaceTask,""),p.text=p.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(a.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};a.checked=h.checked,r.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=h.raw+a.tokens[0].raw,a.tokens[0].text=h.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(h)):a.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):a.tokens.unshift(h);}}else a.task&&(a.task=false);}if(r.loose)for(let a of r.items){a.loose=true;for(let p of a.tokens)p.type==="text"&&(p.type="paragraph");}return r}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=te(t[0]);return {type:"html",block:true,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return {type:"def",tag:n,raw:$(t[0],`
45
- `),href:s,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ee(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
46
- `):[],i={type:"table",raw:$(t[0],`
47
- `),header:[],align:[],rows:[]};if(n.length===s.length){for(let o of s)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:true,align:i.align[o]});for(let o of r)i.rows.push(ee(o,i.header.length).map((u,a)=>({text:u,tokens:this.lexer.inline(u),header:false,align:i.align[a]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return {type:"heading",raw:$(t[0],`
48
- `),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
49
- `?t[1].slice(0,-1):t[1];return {type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return {type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return {type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return !this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=true:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=false),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=true:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=false),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:false,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=$(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else {let i=fe(t[2],"()");if(i===-2)return;if(i>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,u).trim(),t[3]="";}}let s=t[2],r="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(s);i&&(s=i[1],r=i[3]);}else r=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),xe(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[s.toLowerCase()];if(!r){let i=n[0].charAt(0);return {type:"text",raw:i,text:i}}return xe(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[3]||"")||!n||this.rules.inline.punctuation.exec(n)){let i=[...s[0]].length-1,o,u,a=i,p=0,c=s[0][0],h=n===c,d=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(s=d.exec(t))!==null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(u=[...o].length,s[3]||s[4]){a+=u;continue}else if(s[5]||s[6]){if(i%3&&!((i+u)%3)){p+=u;continue}if(h)break}if(a-=u,a>0)continue;u=Math.min(u,u+a+p);let O=[...s[0]][0].length,g=e.slice(0,i+s.index+O+u);if(Math.min(i,u)%2){let E=g.slice(1,-1);return {type:"em",raw:g,text:E,tokens:this.lexer.inlineTokens(E)}}let w=g.slice(2,-2);return {type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return {type:"br",raw:t[0]}}del(e,t,n=""){let s=this.rules.inline.delLDelim.exec(e);if(!s)return;if(!(s[1]||"")||!n||this.rules.inline.punctuation.exec(n)){let i=[...s[0]].length-1,o,u,a=i,p=this.rules.inline.delRDelim;for(p.lastIndex=0,t=t.slice(-1*e.length+i);(s=p.exec(t))!==null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o||(u=[...o].length,u!==i))continue;if(s[3]||s[4]){a+=u;continue}if(a-=u,a>0)continue;u=Math.min(u,u+a);let c=[...s[0]][0].length,h=e.slice(0,i+s.index+c+u),d=h.slice(i,-i);return {type:"del",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,s;return t[2]==="@"?(n=t[1],s="mailto:"+n):(n=t[1],s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=t[0],s="mailto:"+n;else {let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);n=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0];}return {type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return {type:"text",raw:t[0],text:t[0],escaped:n}}}};var x=class l{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||R,this.options.tokenizer=this.options.tokenizer||new y,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:false,inRawBlock:false,linkEmitted:false,top:true};let t={other:m,block:H.normal,inline:B.normal};this.options.pedantic?(t.block=H.pedantic,t.inline=B.pedantic):this.options.gfm&&(t.block=H.gfm,this.options.breaks?t.inline=B.breaks:t.inline=B.gfm),this.tokenizer.rules=t;}static get rules(){return {block:H,inline:B}}static lex(e,t){return new l(t).lex(e)}static lexInline(e,t){return new l(t).inlineTokens(e)}lex(e){e=e.replace(m.carriageReturn,`
50
- `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens);}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=false){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(m.tabCharGlobal," ").replace(m.spaceLine,""));let s=1/0;for(;e;){if(e.length<s)s=e.length;else {this.infiniteLoopError(e.charCodeAt(0));break}let r;if(this.options.extensions?.block?.some(o=>(r=o.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),true):false))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let o=t.at(-1);r.raw.length===1&&o!==void 0?o.raw+=`
51
- `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let o=t.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
52
- `)?"":`
53
- `)+r.raw,o.text+=`
54
- `+r.text,this.inlineQueue.at(-1).src=o.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let o=t.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
55
- `)?"":`
56
- `)+r.raw,o.text+=`
57
- `+r.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let o=1/0,u=e.slice(1),a;this.options.extensions.startBlock.forEach(p=>{a=p.call({lexer:this},u),typeof a=="number"&&a>=0&&(o=Math.min(o,a));}),o<1/0&&o>=0&&(i=e.substring(0,o+1));}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=t.at(-1);n&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
58
- `)?"":`
59
- `)+r.raw,o.text+=`
60
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let o=t.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
61
- `)?"":`
62
- `)+r.raw,o.text+=`
63
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=true,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes("["))return false;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!=="!")return true;for(let n of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let s=n[0],r=s.lastIndexOf("[");if(!(s.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,s.slice(r+1,-1)))&&!(r>1&&this.linkInText(s.slice(1,r-1))))return true}return false}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes("[")){let o=this.tokenizer.rules.inline.reflinkSearch,u=a=>{let p=a.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,a.slice(p+1,-1)))return a;if(p>1&&a.charAt(0)!=="!"){let c=a.slice(1,p-1);if(this.linkInText(c))return "["+c.replace(o,u)+"]["+"a".repeat(a.length-p-2)+"]"}return "["+"a".repeat(a.length-2)+"]"};n=n.replace(o,u);}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,o=>"+".repeat(o.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(o,u,a)=>{let p=a?a.length:0;return o.slice(0,p)+"["+"a".repeat(o.length-p-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let s=false,r="",i=1/0;for(;e;){if(e.length<i)i=e.length;else {this.infiniteLoopError(e.charCodeAt(0));break}s||(r=""),s=false;let o;if(this.options.extensions?.inline?.some(a=>(o=a.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),true):false))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let a=t.at(-1);o.type==="text"&&a?.type==="text"?(a.raw+=o.raw,a.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,r)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,r)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let u=e;if(this.options.extensions?.startInline){let a=1/0,p=e.slice(1),c;this.options.extensions.startInline.forEach(h=>{c=h.call({lexer:this},p),typeof c=="number"&&c>=0&&(a=Math.min(a,c));}),a<1/0&&a>=0&&(u=e.substring(0,a+1));}if(o=this.tokenizer.inlineText(u)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(r=o.raw.slice(-1)),s=true;let a=t.at(-1);a?.type==="text"?(a.raw+=o.raw,a.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}};var P=class{options;parser;constructor(e){this.options=e||R;}space(e){return ""}code({text:e,lang:t,escaped:n}){let s=(t||"").match(m.notSpaceStart)?.[0],r=e.replace(m.endingNewline,"")+`
64
- `;return s?'<pre><code class="language-'+T(s)+'">'+(n?r:T(r,true))+`</code></pre>
65
- `:"<pre><code>"+(n?r:T(r,true))+`</code></pre>
66
- `}blockquote({tokens:e}){return `<blockquote>
67
- ${this.parser.parse(e)}</blockquote>
68
- `}html({text:e}){return e}def(e){return ""}heading({tokens:e,depth:t}){return `<h${t}>${this.parser.parseInline(e)}</h${t}>
69
- `}hr(e){return `<hr>
70
- `}list(e){let t=e.ordered,n=e.start,s="";for(let o=0;o<e.items.length;o++){let u=e.items[o];s+=this.listitem(u);}let r=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return "<"+r+i+`>
71
- `+s+"</"+r+`>
72
- `}listitem(e){return `<li>${this.parser.parse(e.tokens)}</li>
73
- `}checkbox({checked:e}){return "<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return `<p>${this.parser.parseInline(e)}</p>
74
- `}table(e){let t="",n="";for(let r=0;r<e.header.length;r++)n+=this.tablecell(e.header[r]);t+=this.tablerow({text:n});let s="";for(let r=0;r<e.rows.length;r++){let i=e.rows[r];n="";for(let o=0;o<i.length;o++)n+=this.tablecell(i[o]);s+=this.tablerow({text:n});}return s&&(s=`<tbody>${s}</tbody>`),`<table>
75
- <thead>
76
- `+t+`</thead>
77
- `+s+`</table>
78
- `}tablerow({text:e}){return `<tr>
79
- ${e}</tr>
80
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return (e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
81
- `}strong({tokens:e}){return `<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return `<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return `<code>${T(e,true)}</code>`}br(e){return "<br>"}del({tokens:e}){return `<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let s=this.parser.parseInline(n),r=Y(e);if(r===null)return s;e=r;let i='<a href="'+e+'"';return t&&(i+=' title="'+T(t)+'"'),i+=">"+s+"</a>",i}image({href:e,title:t,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=Y(e);if(r===null)return T(n);e=r;let i=`<img src="${e}" alt="${T(n)}"`;return t&&(i+=` title="${T(t)}"`),i+=">",i}text(e){return "tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:T(e.text)}};var L=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return ""+e}image({text:e}){return ""+e}br(){return ""}checkbox({raw:e}){return e}};var b=class l{options;renderer;textRenderer;constructor(e){this.options=e||R,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new L;}static parse(e,t){return new l(t).parse(e)}static parseInline(e,t){return new l(t).parseInline(e)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions?.renderers?.[s.type]){let i=s,o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==false||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(i.type)){t+=o||"";continue}}let r=s;switch(r.type){case "space":{t+=this.renderer.space(r);break}case "hr":{t+=this.renderer.hr(r);break}case "heading":{t+=this.renderer.heading(r);break}case "code":{t+=this.renderer.code(r);break}case "table":{t+=this.renderer.table(r);break}case "blockquote":{t+=this.renderer.blockquote(r);break}case "list":{t+=this.renderer.list(r);break}case "checkbox":{t+=this.renderer.checkbox(r);break}case "html":{t+=this.renderer.html(r);break}case "def":{t+=this.renderer.def(r);break}case "paragraph":{t+=this.renderer.paragraph(r);break}case "text":{t+=this.renderer.text(r);break}default:{let i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let s=0;s<e.length;s++){let r=e[s];if(this.options.extensions?.renderers?.[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==false||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(r.type)){n+=o||"";continue}}let i=r;switch(i.type){case "escape":{n+=t.text(i);break}case "html":{n+=t.html(i);break}case "link":{n+=t.link(i);break}case "image":{n+=t.image(i);break}case "checkbox":{n+=t.checkbox(i);break}case "strong":{n+=t.strong(i);break}case "em":{n+=t.em(i);break}case "codespan":{n+=t.codespan(i);break}case "br":{n+=t.br(i);break}case "del":{n+=t.del(i);break}case "text":{n+=t.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}};var S=class{options;block;constructor(e){this.options=e||R;}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?x.lex:x.lexInline}provideParser(e=this.block){return e?b.parse:b.parseInline}};var Z=class{defaults=A();options=this.setOptions;parse=this.parseMarkdown(true);parseInline=this.parseMarkdown(false);Parser=b;Renderer=P;TextRenderer=L;Lexer=x;Tokenizer=y;Hooks=S;constructor(...e){this.use(...e);}walkTokens(e,t){let n=[];for(let s of e)switch(n=n.concat(t.call(this,s)),s.type){case "table":{let r=s;for(let i of r.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of r.rows)for(let o of i)n=n.concat(this.walkTokens(o.tokens,t));break}case "list":{let r=s;n=n.concat(this.walkTokens(r.items,t));break}default:{let r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{let o=r[i].flat(1/0);n=n.concat(this.walkTokens(o,t));}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)));}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||false,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=t.renderers[r.name];i?t.renderers[r.name]=function(...o){let u=r.renderer.apply(this,o);return u===false&&(u=i.apply(this,o)),u}:t.renderers[r.name]=r.renderer;}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[r.level];i?i.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]));}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens);}),s.extensions=t),n.renderer){let r=this.defaults.renderer||new P(this.defaults);for(let i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,u=n.renderer[o],a=r[o];r[o]=(...p)=>{let c=u.apply(r,p);return c===false&&(c=a.apply(r,p)),c||""};}s.renderer=r;}if(n.tokenizer){let r=this.defaults.tokenizer||new y(this.defaults);for(let i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,u=n.tokenizer[o],a=r[o];r[o]=(...p)=>{let c=u.apply(r,p);return c===false&&(c=a.apply(r,p)),c};}s.tokenizer=r;}if(n.hooks){let r=this.defaults.hooks||new S;for(let i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,u=n.hooks[o],a=r[o];S.passThroughHooks.has(i)?r[o]=p=>{if(this.defaults.async&&S.passThroughHooksRespectAsync.has(i))return (async()=>{let h=await u.call(r,p);return a.call(r,h)})();let c=u.call(r,p);return a.call(r,c)}:r[o]=(...p)=>{if(this.defaults.async)return (async()=>{let h=await u.apply(r,p);return h===false&&(h=await a.apply(r,p)),h})();let c=u.apply(r,p);return c===false&&(c=a.apply(r,p)),c};}s.hooks=r;}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;s.walkTokens=function(o){let u=[];return u.push(i.call(this,o)),r&&(u=u.concat(r.call(this,o))),u};}this.defaults={...this.defaults,...s};}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return x.lex(e,t??this.defaults)}parser(e,t){return b.parse(e,t??this.defaults)}parseMarkdown(e){return (n,s)=>{let r={...s},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===true&&r.async===false)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return (async()=>{let u=i.hooks?await i.hooks.preprocess(n):n,p=await(i.hooks?await i.hooks.provideLexer(e):e?x.lex:x.lexInline)(u,i),c=i.hooks?await i.hooks.processAllTokens(p):p;i.walkTokens&&await Promise.all(this.walkTokens(c,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser(e):e?b.parse:b.parseInline)(c,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(o);try{i.hooks&&(n=i.hooks.preprocess(n));let a=(i.hooks?i.hooks.provideLexer(e):e?x.lex:x.lexInline)(n,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let c=(i.hooks?i.hooks.provideParser(e):e?b.parse:b.parseInline)(a,i);return i.hooks&&(c=i.hooks.postprocess(c)),c}catch(u){return o(u)}}}onError(e,t){return n=>{if(n.message+=`
82
- Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+T(n.message+"",true)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}};var M=new Z;function f(l,e){return M.parse(l,e)}f.options=f.setOptions=function(l){return M.setOptions(l),f.defaults=M.defaults,j(f.defaults),f};f.getDefaults=A;f.defaults=R;function dt(...l){return M.use(...l),f.defaults=M.defaults,j(f.defaults),f}f.use=dt;f.walkTokens=function(l,e){return M.walkTokens(l,e)};f.parseInline=M.parseInline;f.Parser=b;f.parser=b.parse;f.Renderer=P;f.TextRenderer=L;f.Lexer=x;f.lexer=x.lex;f.Tokenizer=y;f.Hooks=S;f.parse=f;
83
-
84
- const jobSelectorDemoCss = () => `.control-panel{width:100%;background-color:#f1f3f5;border-radius:4px;border:1px solid #dee2e6;display:flex;flex-direction:column}.control-panel-section{padding:var(--digi--global--spacing--base) var(--digi--global--spacing--base) var(--digi--global--spacing--base) var(--digi--global--spacing--base);border-bottom:1px solid #e0e0e0}.control-panel-section:last-child{border-bottom:none}.control-panel-section--button{margin-top:auto;position:relative;padding-top:0;border-bottom:none}.control-panel-section--button::before{content:'';display:block;border-top:1px solid #dcdcdc;margin-bottom:1rem;width:100%}.control-panel-section digi-form-label{display:block;margin-bottom:var(--digi--global--spacing--smallest-2)}.hidden{display:none !important}.mt-2{margin-top:var(--digi--global--spacing--base)}.page-subheading{margin-bottom:var(--digi--global--spacing--largest-4)}.example-container{display:flex;flex-direction:column;gap:var(--digi--global--spacing--base);margin-bottom:var(--digi--global--spacing--largest-4)}.example-main-column{flex:1;display:flex;flex-direction:column;min-width:0}.demo-area{flex:1;background-color:#ffffff;background-image:linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);background-size:20px 20px;background-position:0 0, 10px 10px;padding:var(--digi--global--spacing--base) var(--digi--global--spacing--largest-4) var(--digi--global--spacing--largest-4) var(--digi--global--spacing--largest-4);border:1px solid #dee2e6;border-bottom:none;border-radius:4px 4px 0 0;min-height:200px;display:flex;flex-direction:column;gap:var(--digi--global--spacing--largest-4)}.demo-visual-wrapper{flex:1;min-width:0;margin-top:calc(var(--digi--global--spacing--smallest-3) * -1)}.demo-live-output{flex:1;display:flex;flex-direction:column;height:auto;min-height:100px;align-self:flex-start !important}.output-label-external{margin-bottom:var(--digi--global--spacing--smallest-3);display:block}#live-json-block{background-color:#262626;color:#fff;border-radius:4px;box-shadow:0 4px 6px rgba(0, 0, 0, 0.1);flex:1;width:100%;margin-top:0 !important;display:block}.demo-live-output *,.demo-live-output *::before,.demo-live-output *::after{border-color:transparent !important;}#live-json-block *,#live-json-block *::before,#live-json-block *::after{border-color:#262626 !important}.output-title{display:none;}.code-output-container{background-color:transparent;border-radius:4px;padding:0;margin-top:0;display:flex;flex-direction:column;gap:1.5rem}.digi-code-block-custom{--digi--code-block--background:transparent;--digi--code-block--max-height:auto;margin:0 !important;border:none !important;width:100%}.digi-code-block-custom::part(container){border:none !important;box-shadow:none !important;background:transparent !important;padding:0 !important;height:auto;border-top-color:#262626 !important;border-bottom-color:#262626 !important;margin:0 !important}.digi-code-block-custom::part(code){white-space:pre-wrap;height:auto;overflow:visible;padding:0 !important;background:transparent !important;border:none !important;border-top-color:#262626 !important;border-bottom-color:#262626 !important;margin:0 !important}.digi-code-block-custom::part(pre){border:none !important;margin:0 !important;padding:0 !important;border-top-color:#262626 !important;border-bottom-color:#262626 !important}.digi-code-block-custom::part(toolbar){border-color:#262626 !important;background:#262626 !important;border-top-color:#262626 !important;border-bottom-color:#262626 !important;margin:0 !important;padding:0 !important}#live-json-block::part(container),#live-json-block::part(code),#live-json-block::part(pre),#live-json-block::part(toolbar){border-color:#262626 !important;border-top-color:#262626 !important;border-bottom-color:#262626 !important;margin-top:0 !important;padding-top:0 !important}#live-json-block pre,#live-json-block code{margin-top:0 !important;padding-top:0 !important}.digi-code-block-custom::part(copy-button){display:none}.readme-content-area{font-family:'Open Sans', sans-serif;padding-left:0;padding-right:0}.readme-content-area h1,.readme-content-area h2,.readme-content-area h3{color:#212529;font-weight:600;margin-top:3rem}.readme-content-area p,.readme-content-area li{color:#343a40}.readme-content-area pre{background-color:#262626;color:#ffffff;padding:1.5rem;border-radius:4px}.readme-content-area pre code{background-color:transparent;padding:0}.readme-content-area code{font-family:monospace;background-color:rgba(0, 0, 0, 0.05);padding:0.2em 0.4em;border-radius:3px;font-size:0.9em}.readme-content-area img,.readme-content-area table{max-width:100%}table,digi-table{width:100%;border-collapse:collapse;margin-top:1rem}th,td{border:1px solid #dee2e6;padding:0.75rem;text-align:left}td:last-child{word-break:break-word;hyphens:auto}td:nth-child(3){word-break:break-word;min-width:92px}th{background-color:#f8f9fa}.section-spacing{margin-top:3rem}#copy-button{margin:0;--digi--button--padding-inline:0;--digi--button--padding-inline-start:0;--digi--button--padding-left:0}@media (min-width: 992px){.example-container{flex-direction:row;align-items:stretch;gap:0}.control-panel{width:350px;flex-shrink:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #dee2e6}.demo-area{flex-direction:row;flex-wrap:wrap;border-top-right-radius:0;border-right:none;row-gap:var(--digi--global--spacing--base);column-gap:var(--digi--global--spacing--largest-4);align-items:flex-start;align-content:flex-start;}.demo-visual-wrapper{flex:0 0 auto;width:100%;max-width:500px;}.demo-live-output{flex:1;min-width:300px;max-width:500px;margin-left:0;align-self:flex-start !important;height:auto !important}.code-output-container{border-bottom-right-radius:0}}.footer-email-link{text-decoration:none !important;color:inherit;font-weight:600}.footer-email-link:hover{text-decoration:underline !important}.digi-docs-home-main-quote-block{display:block;margin-top:3rem;width:100%}.digi-docs-home-main-quote-block::part(container){background-color:#f8fdf0 !important;}.digi-docs-home-main-quote-block .digi-quote__img{object-position:18% 30% !important}.quote-container{display:block;width:fit-content;padding:2rem 0;margin:0}@media (min-width: 992px){.quote-container{padding:4rem 0}}.tracks-info-section{margin-top:4rem;padding-top:2rem;border-top:1px solid #eee}.tracks-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start}.track-info-column{display:flex;flex-direction:column;gap:1rem}.track-info-column h2{margin:0 0 0.5rem 0;color:#006ebf}.track-info-column p{line-height:1.6;color:#333}@media (max-width: 1024px){.tracks-info-grid{grid-template-columns:1fr;gap:2rem}}.radiobutton-description{max-width:var(--digi--paragraph-width--medium);line-height:var(--digi--typography--label-description--line-height--desktop);font-size:var(--digi--typography--label-description--font-size--desktop);padding-left:2rem;font-family:var(--digi--global--typography--font-family--default, "Open Sans", Arial, sans-serif);margin-top:-0.5rem;margin-bottom:1rem;color:var(--digi--color--text--description, #5c5c5c)}`;
85
-
86
- const DATA_PUBLIC_BASE_URL = 'https://d3hng02m5bee8m.cloudfront.net';
87
- const DATA_PACKAGE_MANIFEST_URL = `${DATA_PUBLIC_BASE_URL}/data-packages/latest.json`;
88
- const YrkesvaljarenDemo = class {
89
- constructor(hostRef) {
90
- index.registerInstance(this, hostRef);
91
- }
92
- get el() { return index.getElement(this); }
93
- variant = 'single';
94
- version = 'latest';
95
- required = true;
96
- allowFreeText = false;
97
- history = true;
98
- size = 'medium';
99
- framework = 'angular';
100
- codeInstallationMode = 'versioned';
101
- afHideHeader = false;
102
- afHidePreamble = false;
103
- lastSingleSelection = '';
104
- lastMultiSelection = '';
105
- implementationCode = '';
106
- readmeMainContent = 'Laddar dokumentation...';
107
- readmeCodeContent = [];
108
- availableYvVersions = [];
109
- latestYvDataVersion = '';
110
- // Changelog state
111
- latestVersion = '';
112
- latestDate = '';
113
- latestType = '';
114
- latestChanges = '';
115
- isTaxonomyLoading = true;
116
- singleBox;
117
- multiBox;
118
- latestYvDataUrl = `${DATA_PUBLIC_BASE_URL}/yrkesvaljaren/latest.json`;
119
- async componentWillLoad() {
120
- await this.loadDataPackageManifest();
121
- // Datapaketet är standard; "Senaste" är ett alternativ.
122
- if (this.latestYvDataVersion)
123
- this.version = this.latestYvDataVersion;
124
- this.updateCodeBlock();
125
- // Load changelog and markdown in parallel
126
- this.loadMarkdown();
127
- this.loadChangelog();
128
- // Wait for taxonomy to be ready before rendering selectors
129
- await this.refreshTaxonomy();
130
- }
131
- async loadDataPackageManifest() {
132
- try {
133
- const response = await fetch(DATA_PACKAGE_MANIFEST_URL);
134
- if (!response.ok) {
135
- throw new Error(`Manifest HTTP error! status: ${response.status}`);
136
- }
137
- const manifest = await response.json();
138
- const yvManifest = manifest.yrkesvaljaren;
139
- const versions = yvManifest?.versions || [];
140
- this.availableYvVersions = versions.map(versionInfo => versionInfo.taxonomyVersion);
141
- this.latestYvDataVersion = yvManifest?.latest?.taxonomyVersion || this.availableYvVersions[0] || '';
142
- this.latestYvDataUrl = yvManifest?.latest?.dataUrl || this.latestYvDataUrl;
143
- }
144
- catch (error) {
145
- console.warn('[Demo] Kunde inte hämta datapaketsmanifestet', error);
146
- this.availableYvVersions = [];
147
- this.latestYvDataVersion = '';
148
- }
149
- }
150
- getTaxonomyUrls() {
151
- return [this.latestYvDataUrl, '/assets/taxonomy.json'];
152
- }
153
- async fetchFirstOk(urls) {
154
- let lastError = null;
155
- for (const url of urls) {
156
- try {
157
- const response = await fetch(url);
158
- if (response.ok) {
159
- return response;
160
- }
161
- lastError = new Error(`Taxonomy HTTP error! status: ${response.status}`);
162
- }
163
- catch (error) {
164
- lastError = error;
165
- }
166
- }
167
- throw lastError || new Error('Kunde inte hitta någon taxonomi-URL att hämta.');
168
- }
169
- /** Datapaketet på npmjs: ett paket där major-versionen är taxonomiversionen. */
170
- getExampleDataPackageName() {
171
- return '@arbetsformedlingen/yrkesvaljaren-data';
172
- }
173
- /** Attribut som skiljer sig från komponentens standardvärden. */
174
- getExampleAttributes() {
175
- const attrs = [['af-label', 'Välj yrke']];
176
- if (this.variant === 'multi') {
177
- attrs.push(['af-label-description', 'Du kan välja mer än ett yrke']);
178
- attrs.push(['af-enable-multiple', 'true']);
179
- }
180
- if (this.required)
181
- attrs.push(['af-required', 'true']);
182
- if (this.allowFreeText)
183
- attrs.push(['af-manual-input', 'true']);
184
- if (!this.history)
185
- attrs.push(['af-history', 'false']);
186
- if (this.size !== 'medium')
187
- attrs.push(['af-size', this.size]);
188
- return attrs;
189
- }
190
- async refreshTaxonomy() {
191
- this.isTaxonomyLoading = true;
192
- const taxonomyUrls = this.getTaxonomyUrls();
193
- try {
194
- console.log(`[Demo] Fetching taxonomy from: ${taxonomyUrls.join(', ')}`);
195
- const taxRes = await this.fetchFirstOk(taxonomyUrls);
196
- const data = await taxRes.json();
197
- // Register data globally
198
- taxonomyRegistry.registerTaxonomy(data);
199
- console.log(`[Demo] Taxonomy registered successfully`);
200
- // Trigger components to update
201
- if (this.singleBox && this.singleBox.updateData) {
202
- await this.singleBox.updateData();
203
- }
204
- if (this.multiBox && this.multiBox.updateData) {
205
- await this.multiBox.updateData();
206
- }
207
- }
208
- catch (e) {
209
- console.error('[Demo] Failed to load taxonomy', e);
210
- }
211
- finally {
212
- this.isTaxonomyLoading = false;
213
- }
214
- }
215
- async loadChangelog() {
216
- try {
217
- const response = await fetch('/CHANGELOG.md');
218
- if (!response.ok)
219
- return; // Silent fail if missing
220
- const text = await response.text();
221
- // Split on version headings and skip sections such as "Unreleased".
222
- const chunks = text.split(/^## /m);
223
- const chunk = chunks
224
- .slice(1)
225
- .find(candidate => /^\[\d[^\]]*\] - .+$/.test(candidate.split('\n')[0].trim()));
226
- if (chunk) {
227
- const lines = chunk.split('\n');
228
- const firstLine = lines[0].trim();
229
- const verRegex = /^\[(.*?)\] - (.*)$/;
230
- const verMatch = firstLine.match(verRegex);
231
- if (verMatch) {
232
- this.latestVersion = verMatch[1];
233
- this.latestDate = verMatch[2];
234
- let body = lines.slice(1).join('\n').trim();
235
- // Extract the first ### Header
236
- const headerRegex = /^\s*###\s+(.*)$/m;
237
- const headerMatch = body.match(headerRegex);
238
- if (headerMatch) {
239
- this.latestType = headerMatch[1].trim();
240
- // Use substring to remove the header line safely
241
- const startIndex = (headerMatch.index || 0) + headerMatch[0].length;
242
- body = body.substring(startIndex).trim();
243
- }
244
- // Replace remaining ### with bold syntax as requested
245
- body = body.replace(/### (.*)/g, '**$1**');
246
- // Use Marked to parse the content snippet
247
- const marked = new Z();
248
- let htmlContent = await marked.parse(body);
249
- // Reduce margin for bold section headers
250
- this.latestChanges = htmlContent.replace(/<p><strong>(.*?)<\/strong><\/p>/g, '<p style="margin-bottom: 0; margin-top: 1rem;"><strong>$1</strong></p>');
251
- }
252
- }
253
- }
254
- catch (e) {
255
- console.warn('Could not load changelog', e);
256
- }
257
- }
258
- componentDidLoad() {
259
- this.singleBox = this.el.querySelector('#single-select-box');
260
- this.multiBox = this.el.querySelector('#multi-select-box');
261
- // this.triggerHighlight();
262
- }
263
- componentDidUpdate() {
264
- // this.triggerHighlight();
265
- }
266
- triggerHighlight() {
267
- setTimeout(() => {
268
- if (window.hljs) {
269
- this.el.querySelectorAll('pre code').forEach((el) => {
270
- window.hljs.highlightElement(el);
271
- });
272
- }
273
- }, 100);
274
- }
275
- handleSelection(event) {
276
- const detail = event.detail;
277
- const singleBox = this.el.querySelector('#single-select-box');
278
- const multiBox = this.el.querySelector('#multi-select-box');
279
- // Check if it's an empty selection (X button clicked in multi-mode)
280
- const isEmpty = detail === null ||
281
- detail === undefined ||
282
- (Array.isArray(detail) && detail.length === 0) ||
283
- (typeof detail === 'object' && detail !== null && Object.keys(detail).length === 0);
284
- if (isEmpty) {
285
- // Clear the output when deselected
286
- if (event.target === singleBox) {
287
- this.lastSingleSelection = '';
288
- }
289
- else if (event.target === multiBox) {
290
- this.lastMultiSelection = '';
291
- }
292
- return;
293
- }
294
- let json = JSON.stringify(detail, null, 2);
295
- if (event.target === singleBox) {
296
- this.lastSingleSelection = json;
297
- }
298
- else if (event.target === multiBox) {
299
- this.lastMultiSelection = json;
300
- }
301
- }
302
- async loadMarkdown() {
303
- try {
304
- const response = await fetch(`/README.md?t=${new Date().getTime()}`);
305
- if (!response.ok)
306
- throw new Error(`Kunde inte hämta README.md`);
307
- const markdownText = await response.text();
308
- const renderer = {
309
- code(code, lang) {
310
- const text = typeof code === 'string' ? code : (code.text || '');
311
- let language = (typeof code === 'string' ? lang : (code.lang || 'html')) || 'html';
312
- if (language === 'ini')
313
- language = 'bash';
314
- const escapedCode = text
315
- .replace(/&/g, "&amp;")
316
- .replace(/</g, "&lt;")
317
- .replace(/>/g, "&gt;")
318
- .replace(/"/g, "&quot;")
319
- .replace(/'/g, "&#039;");
320
- return `<digi-code-block af-code="${escapedCode}" af-language="${language}" af-variation="dark"></digi-code-block>`;
321
- },
322
- html(html) {
323
- const text = typeof html === 'string' ? html : (html.text || '');
324
- if (text.includes('<!DOCTYPE html>')) {
325
- const escapedCode = text
326
- .replace(/&/g, "&amp;")
327
- .replace(/</g, "&lt;")
328
- .replace(/>/g, "&gt;")
329
- .replace(/"/g, "&quot;")
330
- .replace(/'/g, "&#039;");
331
- return `<digi-code-block af-code="${escapedCode}" af-language="html" af-variation="dark"></digi-code-block>`;
332
- }
333
- return text;
334
- }
335
- };
336
- const marked = new Z({ renderer });
337
- const parsedHtml = await marked.parse(markdownText);
338
- const tempDiv = document.createElement('div');
339
- tempDiv.innerHTML = parsedHtml;
340
- // Rubriker får samma id som på GitLab och npm, så att ankarlänkar fungerar.
341
- tempDiv.querySelectorAll('h1, h2, h3, h4').forEach(heading => {
342
- heading.id = (heading.textContent || '').trim().toLowerCase()
343
- .replace(/[^\p{L}\p{N}\s-]/gu, '')
344
- .replace(/\s+/g, '-');
345
- });
346
- // Länkar ut från sidan öppnas i en ny flik. GitLab och npm går inte att visa i en iframe.
347
- tempDiv.querySelectorAll('a[href]').forEach(link => {
348
- if ((link.getAttribute('href') || '').startsWith('#'))
349
- return;
350
- link.setAttribute('target', '_blank');
351
- link.setAttribute('rel', 'noopener');
352
- });
353
- // Wrap tables in digi-table
354
- const tables = tempDiv.querySelectorAll('table');
355
- tables.forEach(table => {
356
- const wrapper = document.createElement('digi-table');
357
- wrapper.setAttribute('af-variation', 'tertiary');
358
- wrapper.setAttribute('af-size', 'medium');
359
- if (table.parentNode) {
360
- table.parentNode.insertBefore(wrapper, table);
361
- wrapper.appendChild(table);
362
- }
363
- });
364
- // Remove unwanted headings
365
- const headings = tempDiv.querySelectorAll('h1, h2, h3, h4');
366
- headings.forEach(heading => {
367
- if (!heading.textContent)
368
- return;
369
- if (heading.textContent.trim().toLowerCase().includes('innehållsförteckning')) {
370
- const nextSibling = heading.nextElementSibling;
371
- if (nextSibling && (nextSibling.tagName === 'UL' || nextSibling.tagName === 'OL')) {
372
- nextSibling.remove();
373
- }
374
- heading.remove();
375
- }
376
- });
377
- const configEventNodes = [];
378
- const mainNodes = [];
379
- let movingToCodeTab = false;
380
- // Update movingToCodeTabRegex to be robust
381
- const movingToCodeTabRegex = /användning|konfiguration|attribut|händelser|events|programmatisk|tillgänglighet|validering|designsystem|vite/i;
382
- const skipRegex = /^installation|^bidra och release/i;
383
- const resetTabRegex = /^stil/i; // Headers that force 'Overview' tab
384
- let skipMode = false;
385
- Array.from(tempDiv.children).forEach(child => {
386
- const text = (child.textContent || '').toLowerCase();
387
- const tagName = child.tagName.toLowerCase();
388
- if (tagName === 'hr')
389
- return;
390
- if (tagName === 'h1' && text.includes('yrkesväljaren webbkomponent'))
391
- return;
392
- if (tagName === 'p' && text.includes('en robust och intelligent'))
393
- return;
394
- if (tagName.match(/^h[1-6]$/)) {
395
- if (movingToCodeTabRegex.test(text)) {
396
- movingToCodeTab = true;
397
- skipMode = false;
398
- }
399
- else if (skipRegex.test(text)) {
400
- skipMode = true;
401
- movingToCodeTab = false;
402
- }
403
- else if (resetTabRegex.test(text)) {
404
- movingToCodeTab = false;
405
- skipMode = false;
406
- }
407
- }
408
- if (skipMode)
409
- return;
410
- if (movingToCodeTab)
411
- configEventNodes.push(child);
412
- else
413
- mainNodes.push(child);
414
- });
415
- const structureContent = (nodes) => {
416
- const fragment = document.createDocumentFragment();
417
- let currentTextGroup = null;
418
- const closeTextGroup = () => {
419
- if (currentTextGroup) {
420
- const typography = document.createElement('digi-typography');
421
- while (currentTextGroup.firstChild) {
422
- typography.appendChild(currentTextGroup.firstChild);
423
- }
424
- const col = document.createElement('div');
425
- // Explicitly matching legacy classes
426
- col.className = 'digi-layout-column digi-layout-column--12 digi-layout-column--lg-8';
427
- col.appendChild(typography);
428
- fragment.appendChild(col);
429
- currentTextGroup = null;
430
- }
431
- };
432
- const openTextGroup = () => {
433
- if (!currentTextGroup)
434
- currentTextGroup = document.createElement('div');
435
- };
436
- nodes.forEach(child => {
437
- const tagName = child.tagName.toLowerCase();
438
- // Robust check for wide elements
439
- const isWide = tagName === 'digi-code-block' || tagName === 'table' || tagName === 'digi-table' || tagName === 'img';
440
- if (isWide) {
441
- closeTextGroup();
442
- const col = document.createElement('div');
443
- col.className = 'digi-layout-column digi-layout-column--12 digi-layout-column--lg-12';
444
- col.appendChild(child.cloneNode(true));
445
- fragment.appendChild(col);
446
- }
447
- else {
448
- openTextGroup();
449
- if (currentTextGroup)
450
- currentTextGroup.appendChild(child.cloneNode(true));
451
- }
452
- });
453
- closeTextGroup();
454
- const tempWrap = document.createElement('div');
455
- tempWrap.appendChild(fragment);
456
- return tempWrap.innerHTML;
457
- };
458
- this.readmeMainContent = structureContent(mainNodes);
459
- // Wrap the code content in a similar structure to ensure layout consistency
460
- this.readmeCodeContent = [structureContent(configEventNodes)];
461
- // Trigger highlighting
462
- // this.triggerHighlight();
463
- }
464
- catch (error) {
465
- this.readmeMainContent = `<h2>Kunde inte ladda dokumentationen</h2><p>${error.message}</p>`;
466
- }
467
- }
468
- // Kodexempel. Samma delar används i Översikt (ett block) och under Kod (ett block per steg).
469
- getCodeParts(versioned, version) {
470
- const i = ' ';
471
- const attrs = this.getExampleAttributes();
472
- const install = versioned
473
- ? `npm install @arbetsformedlingen/yrkesvaljaren ${this.getExampleDataPackageName()}@${version}`
474
- : `npm install @arbetsformedlingen/yrkesvaljaren`;
475
- let setup;
476
- let usage;
477
- if (this.framework === 'angular') {
478
- setup = [
479
- `// src/main.ts`,
480
- `import { bootstrapApplication } from '@angular/platform-browser';`,
481
- `import { defineCustomElements } from '@arbetsformedlingen/yrkesvaljaren/loader';`,
482
- ...(versioned ? [`import { registerTaxonomy } from '@arbetsformedlingen/yrkesvaljaren';`] : []),
483
- `import { appConfig } from './app/app.config';`,
484
- `import { App } from './app/app';`,
485
- ``,
486
- `async function main() {`,
487
- ...(versioned ? [`${i}// Dynamisk import: datan (cirka 2 MB) hamnar i en egen chunk.`, `${i}const { metadata, taxonomyData } = await import('@arbetsformedlingen/yrkesvaljaren-data');`, `${i}registerTaxonomy({ data: taxonomyData, metadata });`] : []),
488
- `${i}defineCustomElements(window);`,
489
- `${i}await bootstrapApplication(App, appConfig);`,
490
- `}`,
491
- `main().catch((err) => console.error(err));`,
492
- ].join('\n');
493
- usage = [
494
- `// src/app/app.ts`,
495
- `import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';`,
496
- ``,
497
- `@Component({`,
498
- `${i}selector: 'app-root',`,
499
- `${i}// Krävs för webbkomponenter, annars ger Angular felet NG8001.`,
500
- `${i}schemas: [CUSTOM_ELEMENTS_SCHEMA],`,
501
- `${i}template: \``,
502
- `${i}${i}<digi-service-job-selector`,
503
- ...attrs.map(([name, value]) => `${i}${i}${i}${name}="${value}"`),
504
- `${i}${i}${i}(afJobSelected)="onJobSelected($event)"`,
505
- `${i}${i}></digi-service-job-selector>`,
506
- `${i}\`,`,
507
- `})`,
508
- `export class App {`,
509
- `${i}onJobSelected(event: Event) {`,
510
- `${i}${i}console.log((event as CustomEvent).detail);`,
511
- `${i}}`,
512
- `}`,
513
- ].join('\n');
514
- }
515
- else if (this.framework === 'react') {
516
- setup = [
517
- `// src/main.tsx`,
518
- `import { defineCustomElements } from '@arbetsformedlingen/yrkesvaljaren/loader';`,
519
- ...(versioned ? [`import { registerTaxonomy } from '@arbetsformedlingen/yrkesvaljaren';`, `import { taxonomyData, metadata } from '@arbetsformedlingen/yrkesvaljaren-data';`, ``, `registerTaxonomy({ data: taxonomyData, metadata });`] : []),
520
- `defineCustomElements(window);`,
521
- ].join('\n');
522
- usage = [
523
- `import { useEffect, useRef } from 'react';`,
524
- ``,
525
- `export function JobPicker() {`,
526
- `${i}const ref = useRef<HTMLElement>(null);`,
527
- ``,
528
- `${i}// Lyssna på eventet med addEventListener. Det fungerar i alla React-versioner.`,
529
- `${i}useEffect(() => {`,
530
- `${i}${i}const element = ref.current;`,
531
- `${i}${i}const onSelect = (event: Event) => console.log((event as CustomEvent).detail);`,
532
- `${i}${i}element?.addEventListener('afJobSelected', onSelect);`,
533
- `${i}${i}return () => element?.removeEventListener('afJobSelected', onSelect);`,
534
- `${i}}, []);`,
535
- ``,
536
- `${i}return (`,
537
- `${i}${i}<digi-service-job-selector`,
538
- `${i}${i}${i}ref={ref}`,
539
- ...attrs.map(([name, value]) => `${i}${i}${i}${name}="${value}"`),
540
- `${i}${i}/>`,
541
- `${i});`,
542
- `}`,
543
- ].join('\n');
544
- }
545
- else {
546
- const register = versioned ? [`import { registerTaxonomy } from '@arbetsformedlingen/yrkesvaljaren';`, `import { taxonomyData, metadata } from '@arbetsformedlingen/yrkesvaljaren-data';`, ``, `registerTaxonomy({ data: taxonomyData, metadata });`] : [];
547
- setup = [
548
- `<script type="module">`,
549
- `${i}import { defineCustomElements } from '@arbetsformedlingen/yrkesvaljaren/loader';`,
550
- ...register.map(line => line ? `${i}${line}` : line),
551
- `${i}defineCustomElements(window);`,
552
- `</script>`,
553
- ].join('\n');
554
- usage = [
555
- `<digi-service-job-selector`,
556
- ...attrs.map(([name, value]) => `${i}${name}="${value}"`),
557
- `></digi-service-job-selector>`,
558
- ].join('\n');
559
- }
560
- return { install, setup, usage };
561
- }
562
- // digi-code-block saknar grammatik för tsx och jsx och ritar då inte om blocket.
563
- getCodeLanguage() {
564
- return this.framework === 'html' ? 'html' : 'typescript';
565
- }
566
- updateCodeBlock() {
567
- const versioned = this.version !== 'latest';
568
- const { install, setup, usage } = this.getCodeParts(versioned, this.version);
569
- const comment = (text) => this.framework === 'html' ? `<!-- ${text} -->` : `// ${text}`;
570
- this.implementationCode = [
571
- comment(versioned ? `1. Installera Yrkesväljaren och datapaketet för taxonomi v${this.version}` : '1. Installera Yrkesväljaren'),
572
- install,
573
- '',
574
- comment(versioned ? '2. Registrera datan och komponenten' : '2. Registrera komponenten'),
575
- setup,
576
- '',
577
- comment('3. Använd komponenten'),
578
- usage,
579
- ].join('\n');
580
- }
581
- handleVariantChange(e) {
582
- // Robust handling for digi-form-radiogroup event
583
- const val = e.detail && typeof e.detail === 'string' ? e.detail : (e.target && e.target.value);
584
- if (val) {
585
- this.variant = val;
586
- this.updateCodeBlock();
587
- }
588
- }
589
- async handleVersionChange(e) {
590
- console.log('[Demo] Version change event:', e);
591
- // Try all possible ways to get the value from a Digi select event
592
- const val = (e.detail && typeof e.detail === 'string')
593
- ? e.detail
594
- : (e.target && e.target.value)
595
- || (e.detail && e.detail.target && e.detail.target.value)
596
- || (e.detail && e.detail.value);
597
- console.log('[Demo] Extracted version value:', val);
598
- if (val) {
599
- this.version = val;
600
- this.updateCodeBlock();
601
- }
602
- }
603
- handleRequiredChange(e) {
604
- // Check for CustomEvent detail (boolean) or target.checked/afChecked
605
- let isChecked = false;
606
- if (typeof e.detail === 'boolean') {
607
- isChecked = e.detail;
608
- }
609
- else if (e.target && (e.target.afChecked !== undefined)) {
610
- isChecked = e.target.afChecked;
611
- }
612
- else if (e.target && e.target.checked !== undefined) {
613
- isChecked = e.target.checked;
614
- }
615
- this.required = isChecked;
616
- this.updateCodeBlock();
617
- }
618
- handleFreeTextChange(e) {
619
- let isChecked = false;
620
- if (typeof e.detail === 'boolean') {
621
- isChecked = e.detail;
622
- }
623
- else if (e.target && (e.target.afChecked !== undefined)) {
624
- isChecked = e.target.afChecked;
625
- }
626
- else if (e.target && e.target.checked !== undefined) {
627
- isChecked = e.target.checked;
628
- }
629
- this.allowFreeText = isChecked;
630
- this.updateCodeBlock();
631
- }
632
- handleHistoryChange(e) {
633
- let isChecked = true;
634
- if (typeof e.detail === 'boolean') {
635
- isChecked = e.detail;
636
- }
637
- else if (e.target && (e.target.afChecked !== undefined)) {
638
- isChecked = e.target.afChecked;
639
- }
640
- else if (e.target && e.target.checked !== undefined) {
641
- isChecked = e.target.checked;
642
- }
643
- this.history = isChecked;
644
- this.updateCodeBlock();
645
- }
646
- handleSizeChange(e) {
647
- const val = e.detail && typeof e.detail === 'string' ? e.detail : (e.target && e.target.value);
648
- if (val) {
649
- this.size = val;
650
- this.updateCodeBlock();
651
- }
652
- }
653
- handleFrameworkChange(e) {
654
- const val = e.detail && typeof e.detail === 'string' ? e.detail : (e.target && e.target.value);
655
- if (val) {
656
- this.framework = val;
657
- this.updateCodeBlock();
658
- }
659
- }
660
- handleCodeInstallationModeChange(e) {
661
- const val = e.detail && typeof e.detail === 'string' ? e.detail : (e.target && e.target.value);
662
- if (val) {
663
- this.codeInstallationMode = val;
664
- }
665
- }
666
- handleCopyCode() {
667
- navigator.clipboard.writeText(this.implementationCode)
668
- .then(() => console.log('Kopierat!'))
669
- .catch(err => console.error('Fel', err));
670
- }
671
- render() {
672
- return (index.h(index.Host, { key: 'fc8d639c0e6eebef31da28228d355962e7738a92' }, index.h("main", { key: '4ebf9ea5681c348580c7bd72aa4cff888ce3af76' }, !this.afHideHeader && (index.h("digi-layout-container", { key: 'd5329f60484edfe57ae1433c35e38f84b1400a94', "af-margin-top": "true", "af-margin-bottom": "true" }, index.h("digi-typography-heading-jumbo", { key: '8acc25c4e9a4bf7d9cf23211797f2c236825fe4f', "af-text": "Yrkesv\u00E4ljaren", "af-level": "h1" }), index.h("digi-typography", { key: '8769d4d98b1b56d63ebace586b1767912fad84d1' }, index.h("h2", { key: 'fd1e3809922bfbce98e3bf6a8d46b8870a71a9bb', class: "digi-subheading", style: { marginTop: '0', fontWeight: '600', fontSize: '1.5em', color: '#333' } }, "digi-service-job-selector")))), index.h("digi-layout-container", { key: '961819ca21864c08d2baa05f8e7d1f9ba24b6b4e', "af-variation": "static", "af-margin-bottom": "true" }, index.h("digi-tablist", { key: '817c2b962f2da0c1c6d5796de8b09c2e5cf7ee3d', id: "main-tabs", "af-tabs": '[{"id": "oversikt", "title": "\u00D6versikt"}, {"id": "kod", "title": "Kod"}]', "af-aria-label": "Exempel flikar" }, index.h("digi-tablist-panel", { key: 'aaa420d44c830cee696089897f391bfcf6947e16', tab: "oversikt" }, !this.afHidePreamble && (index.h("div", { key: 'ad317bf47cbe6c288cacfda7eae295c025ce7974', style: { marginBottom: '3rem', maxWidth: '800px' } }, index.h("digi-typography-preamble", { key: '307135613f79710f48d9cf1072b0470b8fcd4127' }, "Yrkesv\u00E4ljaren anv\u00E4nds f\u00F6r att s\u00F6ka och v\u00E4lja yrken fr\u00E5n valfri version av Arbetsf\u00F6rmedlingens taxonomi."))), index.h("div", { key: '9b34b73d2384e01f59ea7f10a064aaf53e900d4d', class: "example-container" }, index.h("div", { key: 'e1fb95ebde07dbe5d1a4b46f16a56759e6d39d12', class: "example-main-column" }, index.h("div", { key: 'e666cc4a2751cefbce73bf0b2cef7e021971a897', class: "demo-area" }, index.h("div", { key: '40346b78e4a630378a0ea5cfeadabb01129f7a13', class: "demo-visual-wrapper" }, this.isTaxonomyLoading ? (index.h("div", { style: { padding: '2rem', textAlign: 'center' } }, index.h("digi-loader", { "af-size": "large", "af-text": "Laddar yrkesdata..." }))) : (index.h(index.Fragment, null, index.h("div", { id: "demo-visual-single", style: { display: this.variant === 'single' ? 'block' : 'none' } }, index.h("digi-service-job-selector", { id: "single-select-box", "af-label": "V\u00E4lj yrke", "af-placeholder": "T.ex. m\u00E5lare, florist, kock", "af-size": this.size, "af-required": this.required, "af-manual-input": this.allowFreeText, "af-history": this.history, tabindex: "0" })), index.h("div", { id: "demo-visual-multi", style: { display: this.variant === 'multi' ? 'block' : 'none' } }, index.h("digi-service-job-selector", { id: "multi-select-box", "af-label": "V\u00E4lj yrke", "af-label-description": "Du kan v\u00E4lja mer \u00E4n ett yrke", "af-enable-multiple": true, "af-size": this.size, "af-required": this.required, "af-manual-input": this.allowFreeText, "af-history": this.history, tabindex: "0" }))))), index.h("div", { key: '53fcbd0cf594ed3f35d483b4605565f1f6ebf6b3', class: "demo-live-output", style: { alignSelf: 'flex-start', height: 'fit-content' } }, index.h("digi-form-label", { key: '90ddb778a602b5d0b2b20d89967237bdc6b1ffd1', "af-label": "Output", "af-for": "live-json-block", class: "output-label-external" }), index.h("digi-code-block", { key: '4c83f514e58f9c46f6b8c00defd1b93a0feedc74', id: "live-json-block", class: "digi-code-block-custom", "af-language": "json", "af-variation": "dark", "af-code": this.variant === 'single' ? this.lastSingleSelection : this.lastMultiSelection, "af-hide-toolbar": "true" }))), index.h("div", { key: '8464b1243742946cca533b10b96b107c9b49328e', class: "code-output-container" }, index.h("div", { key: '29bcac704bea0dfee5aa3712b9415ff403675b51', id: "demo-output-codeblock" }, index.h("digi-code-block", { key: '25b24b554f3faeda597641226daa7720f6e3bfd9', id: "implementation-code", class: "digi-code-block-custom", "af-language": this.getCodeLanguage(), "af-variation": "dark", "af-code": this.implementationCode, "af-hide-toolbar": "true" })))), index.h("div", { key: 'b1b8950d9bd48b5ddd4ac1b1d20a5d94b5f562f5', class: "control-panel" }, index.h("div", { key: '6a868e4e9ffc0ee304a746e0aae7940912d0a009', class: "control-panel-section" }, index.h("digi-form-label", { key: '286bf3fedda690b32db63f299cb4ccc2bf91976c', afLabel: "Variant", afFor: "variant-group" }), index.h("digi-form-radiogroup", { key: 'dd5f5ba681231afea67d071d943f4763ab4aca72', afName: "variant", id: "variant-group", afValue: this.variant, afLayout: "vertical", onAfOnGroupChange: (e) => this.handleVariantChange(e) }, index.h("digi-form-radiobutton", { key: '5d65c2ef27c8a7aefc5f34cde9e67d4b03120bb5', afLabel: "Ett valbart yrke", afValue: "single" }), index.h("digi-form-radiobutton", { key: 'b48ecaef13388f378a514fbe367a9bd47b9db74a', afLabel: "Flera valbara yrken", afValue: "multi" }))), index.h("div", { key: '50a130a05f3147040fa070e9f36567247627d850', class: "control-panel-section" }, index.h("digi-form-select", { key: '32e320d77fa1572f734dc1c0311bd30384915f5b', id: "version-select", ref: (el) => {
673
- if (el) {
674
- el.afLabel = "Taxonomiversion";
675
- el.setAttribute('af-label', 'Taxonomiversion');
676
- }
677
- }, afLabel: "Taxonomiversion", afDescription: "Styr vilket datapaket kodexemplet installerar.", afValue: this.version, onAfOnChange: (e) => this.handleVersionChange(e) }, this.availableYvVersions.length > 0 ? (this.availableYvVersions.map(ver => (index.h("option", { value: ver }, "Taxonomi v", ver, " (datapaket)")))) : (index.h("option", { disabled: true }, "Kunde inte h\u00E4mta versionerna")), index.h("option", { key: 'd25ef07e7dce7a381396c5aace2fd4eb1c2f0932', value: "latest" }, "Senaste fr\u00E5n CDN"))), index.h("div", { key: '2616ac6d6f85878c854a72e1af4a7886e153b643', class: "control-panel-section" }, index.h("digi-form-checkbox", { key: '28d99dc8262e986e191667427acc2f87c9dd597d', id: "required-checkbox", afLabel: "Obligatorisk", afDescription: "Kr\u00E4ver att anv\u00E4ndaren g\u00F6r ett val f\u00F6r att f\u00E4ltet ska vara giltigt.", afChecked: this.required, onAfOnChange: (e) => this.handleRequiredChange(e) }), index.h("digi-form-checkbox", { key: '076ea776d8e299ec524205bd1363e5caf44684af', id: "freetext-checkbox", afLabel: "Till\u00E5t fritext", afDescription: "Anv\u00E4ndaren kan ange egna yrkestitlar som inte finns i taxonomin.", afChecked: this.allowFreeText, onAfOnChange: (e) => this.handleFreeTextChange(e) }), index.h("digi-form-checkbox", { key: '67c9dd377277464a9c40ce4b9bacf06b54e69e0f', id: "history-checkbox", afLabel: "Visa historik (rekommenderas)", afDescription: "Sparar anv\u00E4ndarens tidigare val lokalt i webbl\u00E4saren.", afChecked: this.history, onAfOnChange: (e) => this.handleHistoryChange(e) })), index.h("div", { key: '8cb31dabbb29d1b1eb9e786be606aa6f69455f80', class: "control-panel-section" }, index.h("digi-form-label", { key: 'fc40fcaa73192ccc71e870a30629635d2e34e60d', afLabel: "Storlek", afFor: "size-radiogroup" }), index.h("digi-form-radiogroup", { key: '5d868df72fcb7e1071ccc6b14216888bd42fc4f3', afName: "size", afLegend: "Storlek", afOrientation: "horizontal", id: "size-radiogroup", afValue: this.size, onAfOnGroupChange: (e) => this.handleSizeChange(e) }, index.h("digi-form-radiobutton", { key: '890e6ab5ba58bb7d92323e869d4e32150e04e239', afLabel: "Small", afValue: "small" }), index.h("digi-form-radiobutton", { key: '82f0452bc064ff6a8f2c33ef524e9ddc9e05b063', afLabel: "Medium", afValue: "medium" }), index.h("digi-form-radiobutton", { key: 'f5875490600100be5b9a30b82a4d3689f7baffb9', afLabel: "Large", afValue: "large" }))), index.h("div", { key: '25dd8f8e21512748b648250fdce6b1241357b6f5', class: "control-panel-section" }, index.h("digi-form-label", { key: 'c4412d8b207c207bdfb53e6b1f64c4dce1f132d9', afLabel: "Kodspr\u00E5k", afFor: "framework-group" }), index.h("digi-form-radiogroup", { key: '4c062cd3a31cee2dd9dda96e868a12ad67768029', afName: "framework", id: "framework-group", afValue: this.framework, afLayout: "vertical", onAfOnGroupChange: (e) => this.handleFrameworkChange(e) }, index.h("digi-form-radiobutton", { key: 'a6ec58f442842ec1033ce97be04957fe507cbd63', afLabel: "HTML", afValue: "html" }), index.h("digi-form-radiobutton", { key: 'ac3a22ca375d75e6138d886fd85c1c54e780e477', afLabel: "Angular", afValue: "angular" }), index.h("digi-form-radiobutton", { key: 'dcebfb895908f2db59541b5ce2acabcf87e8e5f5', afLabel: "React", afValue: "react" }))), index.h("div", { key: '76b8a0435b7fa329b6bb653888f92d8251e9ba0c', class: "control-panel-section control-panel-section--button" }, index.h("digi-button", { key: '948f8bfa08f34530573d393ee02af65456dcb8cd', id: "copy-button", "af-size": "medium", "af-variation": "function", onAfOnClick: () => this.handleCopyCode() }, index.h("digi-icon-copy", { key: '9dec8dc1507264ec4a3c40d2574c63e368e6b6be', slot: "icon" }), "Kopiera kod")))), index.h("div", { key: '978404234729af2a9ce66f84216b10439720b09d', id: "readme-content", class: "section-spacing readme-content-area", innerHTML: this.readmeMainContent }), index.h("digi-layout-block", { key: '4f11a3a88e82dd060254db8e74d7c6239752d25d', "af-variation": "symbol", class: "digi-docs-home-main-quote-block section-spacing" }, index.h("digi-layout-container", { key: '9ffd68919103e5befaa949fc7c95c29c080e6ee0' }, index.h("div", { key: '8d34f1c3e8beb04a3727c096be96a68633445336', class: "quote-container" }, index.h("digi-quote", { key: 'a2d4af8c9301e79453939d7e982d4051f5521352', "af-type": "default", "af-variation": "transparent", "af-image-position": "left", "af-image-src": "/assets/images/startpage/jesper-kennholt.jpeg", "af-image-alt": "Profilbild p\u00E5 Jesper Kennholt", "af-quote-author-name": "Jesper Kennholt", "af-quote-author-title": "Bed\u00F6ma planera & matcha" }, index.h("p", { key: 'd1fd1ddb8dd7aa58177c8df6660c34a1eba8c722', style: { fontWeight: 'bold', marginBottom: '0.5rem' } }, "Yrkesv\u00E4ljaren var en game changer f\u00F6r oss!"), "V\u00E5ra anv\u00E4ndare hittar nu snabbt r\u00E4tt yrke, och vi f\u00E5r inte l\u00E4ngre klagom\u00E5l & incidenter att hantera i Kompetensprofilen. Och det ger b\u00E4ttre matchning!")))), index.h("div", { key: '4395bc011dfa7256d08a9eef597bdc7968dfc8c2', style: { marginTop: '3rem' } }, index.h("div", { key: 'c55ac920ef8d45806c53cfd0d3ab866075931ad7', class: "footer-cards-container", style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, index.h("digi-info-card", { key: 'ff983c487e5f8ab202467eacc2cd3f9f200f4dd5', "af-heading": this.latestVersion ? `Nytt i version ${this.latestVersion} - ${this.latestDate}` : "Förvaltning", "af-heading-level": "h2", "af-variation": "primary" }, index.h("digi-typography", { key: 'bb5b4c58148d5161cf7e315334d9547c733b8262' }, this.latestVersion && (index.h(index.Fragment, { key: 'dca4d1ea70a5fc249da4c11a542e61d37e194a08' }, index.h("p", { key: '1a20ef8c3f7e56a549287caabd801e699f07375c', style: { marginTop: '0', marginBottom: '0' } }, this.latestType && index.h("strong", { key: '2ed6ba71cb73c78da5a459d4f1e9754f5c4dfc47' }, this.latestType)), index.h("div", { key: '9ca48ddf89c2558bcdd14e1bf36ef291cd58b000', innerHTML: this.latestChanges }), index.h("p", { key: 'fb81370ef30988c8c9c2d6e2c4ad8279886118d6' }, index.h("digi-link", { key: '387e29cd928fb1b03768f6ed93059c761041121a', "af-href": "/CHANGELOG.md", "af-target": "_blank", "af-variation": "primary" }, "L\u00E4s hela \u00E4ndringsloggen", index.h("digi-icon-arrow-forward", { key: '72665e9851b5b588bea0f2fe6c88b90f5102655e', slot: "icon-secondary" }))), index.h("h2", { key: 'd761f3b2c2908c00167ab6836cfbed2953746175', style: { marginTop: '2.5rem' } }, "F\u00F6rvaltning"))), index.h("p", { key: 'a749aba3117c589f38761a45046999c7a1ae9336' }, "Yrkesv\u00E4ljaren f\u00F6rvaltas av teamet bakom taxonomin och \u00E4r \u00F6ppen k\u00E4llkod. Kontakta oss p\u00E5", ' ', index.h("digi-link", { key: 'decbdaaf14bf35892b9c31794caf8b97ad3ec56a', "af-href": "mailto:taxonomy@arbetsformedlingen.se", "af-variation": "primary" }, "taxonomy@arbetsformedlingen.se", index.h("digi-icon-envelope", { key: '0a2d0d322315ac21cd0c851335204a12f99ac54e', slot: "icon-secondary" })), ", eller rapportera buggar och bidra i v\u00E5rt GitLab-repo."), index.h("p", { key: '97c16437c978a4d6de8512f72a7998d5ba1ee28b' }, index.h("digi-link", { key: '2899e1b07d9dbaadf7269c3dcdd8f92f8c17f29a', "af-href": "https://yrkesatlas.arbetsformedlingen.se/", "af-target": "_blank", "af-variation": "primary" }, "Utforska alla yrken i Yrkesatlas", index.h("digi-icon-external-link", { key: '474e38d847ccd8d488c0373f8ce646d7fa2a6261', slot: "icon-secondary" }))), index.h("p", { key: 'eb015327aec5581deb0cd5236a486f428caad595' }, index.h("digi-link", { key: '0dd6818885eabdce44426c8da21b3bfd50d2f5de', "af-href": "https://gitlab.com/arbetsformedlingen/taxonomy-dev/frontend/yrkesvaljaren", "af-target": "_blank", "af-variation": "primary" }, "K\u00E4llkod p\u00E5 GitLab", index.h("digi-icon-external-link", { key: 'cb4f157b58cbc9fd65ad35e3d86b122bc1d7a062', slot: "icon-secondary" })))))))), index.h("digi-tablist-panel", { key: '6cd8756cea9e6bb5020620d81bafe60cb48124f7', tab: "kod" }, index.h("div", { key: '0429bdfb508bf0e09626f08ee8e7cfcd095fa4dc', id: "code-tab-content", class: "digi-layout-grid section-spacing readme-content-area" }, index.h("div", { key: 'b774fa08f9a8bfa8f477b9933636b9be59fbe841', class: "digi-layout-column digi-layout-column--12" }, index.h("h3", { key: '8ff74cf4fd45389442294ea4c5ce1260e77d604a', id: "installation" }, "Installation"), index.h("digi-form-fieldset", { key: '8a6fcd651b2fbfdc070862b921f4b7b0227f340e', "af-legend": "Hur ska komponenten f\u00E5 sin data?", style: { marginTop: '1rem', marginBottom: '1.5rem' } }, index.h("digi-form-radiogroup", { key: '5b2f1cd6b07c26168817cc82b1465d34d62a5cc0', "af-name": "data-version-selection-kod", "af-value": this.codeInstallationMode, onAfOnGroupChange: (e) => this.handleCodeInstallationModeChange(e) }, index.h("digi-form-radiobutton", { key: 'e727d2866f685e3fc1564a2916f2bfbf04713a07', "af-label": this.latestYvDataVersion ? `Datapaket, taxonomi v${this.latestYvDataVersion} (rekommenderas)` : 'Datapaket (rekommenderas)', "af-value": "versioned", "af-checked": this.codeInstallationMode === 'versioned' }), index.h("div", { key: '49c8e19156ef3134c2f5e7fa0cd7ed77bdb6a7f6', class: "radiobutton-description" }, "Datan installeras med npm och byggs in i er app. Ni vet exakt vilken taxonomiversion ni k\u00F6r, och den byts f\u00F6rst n\u00E4r ni uppdaterar paketet."), index.h("digi-form-radiobutton", { key: 'a151fd53877dd6d921048049e64ef71ad9a91809', "af-label": "Senaste fr\u00E5n CDN", "af-value": "latest", "af-checked": this.codeInstallationMode === 'latest' }), index.h("div", { key: '3efac6c91382d57dc117ca322cc15043ceff0786', class: "radiobutton-description" }, "Komponenten h\u00E4mtar den senaste yrkesdatan fr\u00E5n v\u00E5r CDN n\u00E4r sidan laddas. Datan kan \u00E4ndras utan att ni bygger om appen."))), index.h("div", { key: 'bad0f072dec0807ec60ec20ae915d9eff1ebf342', class: "code-output-container", style: { marginTop: '1.5rem', marginBottom: '2rem' } }, [
678
- { title: this.codeInstallationMode === 'versioned' ? '1. Installera Yrkesväljaren och datapaketet' : '1. Installera Yrkesväljaren', code: this.getCodeTabParts().install, language: 'bash' },
679
- { title: this.codeInstallationMode === 'versioned' ? '2. Registrera datan och komponenten' : '2. Registrera komponenten', code: this.getCodeTabParts().setup, language: this.getCodeLanguage() },
680
- { title: '3. Använd komponenten', code: this.getCodeTabParts().usage, language: this.getCodeLanguage() },
681
- ].map((step, index$1) => (index.h("div", { class: "track-code-step", style: index$1 > 0 ? { marginTop: '1rem' } : {} }, index.h("digi-typography", null, index.h("p", { style: { margin: '0' } }, index.h("strong", null, step.title))), index.h("digi-code-block", { class: "digi-code-block-custom", "af-language": step.language, "af-variation": "dark", "af-code": step.code, "af-hide-toolbar": "false" })))))), this.readmeCodeContent.map(nodeHtml => (index.h("div", { innerHTML: nodeHtml }))))))))));
682
- }
683
- getCodeTabParts() {
684
- const versioned = this.codeInstallationMode === 'versioned';
685
- return this.getCodeParts(versioned, versioned ? this.latestYvDataVersion : 'latest');
686
- }
687
- };
688
- YrkesvaljarenDemo.style = jobSelectorDemoCss();
689
-
690
- exports.job_selector_demo = YrkesvaljarenDemo;