@mojawork/ui-docs 2.8.1 → 2.8.2

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 (184) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/typewriter.md +4 -3
  3. package/catalog/guide.json +3 -3
  4. package/catalog/manifest.json +3 -3
  5. package/catalog/version.json +2 -2
  6. package/package.json +1 -1
  7. package/storybook/1183.fafda52d.iframe.bundle.js +1 -0
  8. package/storybook/2033.986e1406.iframe.bundle.js +1 -0
  9. package/storybook/2089.d5a3e21e.iframe.bundle.js +1 -0
  10. package/storybook/2127.d7de271b.iframe.bundle.js +2 -0
  11. package/storybook/2228.7013a637.iframe.bundle.js +2 -0
  12. package/storybook/2639.7f497882.iframe.bundle.js +1 -0
  13. package/storybook/2971.036e7a14.iframe.bundle.js +1 -0
  14. package/storybook/3968.3c931220.iframe.bundle.js +1 -0
  15. package/storybook/{4425.368129b3.iframe.bundle.js → 4425.7f753a38.iframe.bundle.js} +2 -2
  16. package/storybook/4476.1b913b82.iframe.bundle.js +1 -0
  17. package/storybook/{4555.e26d162c.iframe.bundle.js → 4555.c83b35c3.iframe.bundle.js} +1 -1
  18. package/storybook/4755.0561bac5.iframe.bundle.js +23 -0
  19. package/storybook/{4755.e4656207.iframe.bundle.js.map → 4755.0561bac5.iframe.bundle.js.map} +1 -1
  20. package/storybook/4935.f88465d9.iframe.bundle.js +1 -0
  21. package/storybook/5568.be85a9aa.iframe.bundle.js +1 -0
  22. package/storybook/6824.4b8f7b0a.iframe.bundle.js +1 -0
  23. package/storybook/8051.dbaf9937.iframe.bundle.js +1 -0
  24. package/storybook/871.5a781df6.iframe.bundle.js +1 -0
  25. package/storybook/8819.8e56201f.iframe.bundle.js +1 -0
  26. package/storybook/9850.5a17be74.iframe.bundle.js +1 -0
  27. package/storybook/9946.6fea16dc.iframe.bundle.js +1 -0
  28. package/storybook/_external-mwork-banner-docs-mdx.f33bbf56.iframe.bundle.js +1 -0
  29. package/storybook/_external-mwork-basic-interpreter-docs-mdx.81168b4c.iframe.bundle.js +1 -0
  30. package/storybook/_external-mwork-music-player-docs-mdx.46f4887e.iframe.bundle.js +1 -0
  31. package/storybook/assets/ui/sounds/type.mp3 +0 -0
  32. package/storybook/atoms-_electrons-form-error-message-docs-mdx.9382b0cb.iframe.bundle.js +1 -0
  33. package/storybook/atoms-_electrons-loader-docs-mdx.e8bb9642.iframe.bundle.js +1 -0
  34. package/storybook/atoms-background-docs-mdx.0e861f2c.iframe.bundle.js +1 -0
  35. package/storybook/atoms-barcode-docs-mdx.78b610dc.iframe.bundle.js +1 -0
  36. package/storybook/atoms-buzzer-docs-mdx.f9daf952.iframe.bundle.js +1 -0
  37. package/storybook/atoms-card-docs-mdx.f8b63920.iframe.bundle.js +1 -0
  38. package/storybook/atoms-chart-docs-mdx.29f10b89.iframe.bundle.js +1 -0
  39. package/storybook/atoms-clock-docs-mdx.6864626c.iframe.bundle.js +1 -0
  40. package/storybook/atoms-copy-value-docs-mdx.fbe168e2.iframe.bundle.js +1 -0
  41. package/storybook/atoms-image-grid-docs-mdx.9df158a9.iframe.bundle.js +1 -0
  42. package/storybook/atoms-image-slider-docs-mdx.4ae341f5.iframe.bundle.js +1 -0
  43. package/storybook/atoms-inline-spinner-docs-mdx.8b942147.iframe.bundle.js +1 -0
  44. package/storybook/atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js +2 -0
  45. package/storybook/atoms-mosaic-docs-mdx.738f012c.iframe.bundle.js +1 -0
  46. package/storybook/atoms-placeholder-docs-mdx.7d376291.iframe.bundle.js +1 -0
  47. package/storybook/atoms-qr-code-docs-mdx.c47f67c9.iframe.bundle.js +1 -0
  48. package/storybook/atoms-rating-docs-mdx.d7df9a29.iframe.bundle.js +1 -0
  49. package/storybook/atoms-reader-doc-docs-mdx.f5375a37.iframe.bundle.js +1 -0
  50. package/storybook/atoms-text-animate-docs-mdx.152fc1bd.iframe.bundle.js +1 -0
  51. package/storybook/atoms-thumb-docs-mdx.525fc046.iframe.bundle.js +1 -0
  52. package/storybook/atoms-timer-docs-mdx.686f0392.iframe.bundle.js +1 -0
  53. package/storybook/atoms-typewriter-docs-mdx.a6c3f6b0.iframe.bundle.js +1 -0
  54. package/storybook/atoms-typewriter-typewriter-component-stories.3a4f5356.iframe.bundle.js +1 -0
  55. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.0aa5b787.iframe.bundle.js +1 -0
  56. package/storybook/cdk-components-table-docs-mdx.74bd247c.iframe.bundle.js +1 -0
  57. package/storybook/examples-docs-mdx.1a9d8db0.iframe.bundle.js +1 -0
  58. package/storybook/examples-image-grid-slider-docs-mdx.e56160ef.iframe.bundle.js +1 -0
  59. package/storybook/examples-layout-docs-mdx.d7d6f90b.iframe.bundle.js +1 -0
  60. package/storybook/examples-table-edit-focus-docs-mdx.55960e55.iframe.bundle.js +1 -0
  61. package/storybook/examples-transloco-docs-mdx.46447d84.iframe.bundle.js +2 -0
  62. package/storybook/forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js +2 -0
  63. package/storybook/forms-autofocus-docs-mdx.ce239261.iframe.bundle.js +1 -0
  64. package/storybook/forms-checkbox-checkbox-component-stories.df3196e5.iframe.bundle.js +1 -0
  65. package/storybook/forms-checkbox-docs-mdx.890972f3.iframe.bundle.js +1 -0
  66. package/storybook/forms-chip-docs-mdx.89a48075.iframe.bundle.js +1 -0
  67. package/storybook/forms-input-docs-mdx.56627297.iframe.bundle.js +1 -0
  68. package/storybook/forms-input-input-component-stories.b68ea104.iframe.bundle.js +1 -0
  69. package/storybook/forms-slider-docs-mdx.68b9e21c.iframe.bundle.js +1 -0
  70. package/storybook/forms-switch-docs-mdx.832228cb.iframe.bundle.js +1 -0
  71. package/storybook/forms-validators-docs-mdx.e11fe615.iframe.bundle.js +1 -0
  72. package/storybook/home-guide-mdx.2f32ffc1.iframe.bundle.js +1 -0
  73. package/storybook/{home-overview-mdx.0e32f57f.iframe.bundle.js → home-overview-mdx.00ee5070.iframe.bundle.js} +1 -1
  74. package/storybook/home-tips-mdx.24dc3e35.iframe.bundle.js +1 -0
  75. package/storybook/iframe.html +2 -2
  76. package/storybook/layout-main-docs-mdx.445bce2a.iframe.bundle.js +1 -0
  77. package/storybook/layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js +2 -0
  78. package/storybook/layout-nav-docs-mdx.92eac076.iframe.bundle.js +1 -0
  79. package/storybook/layout-overlay-docs-mdx.a680859b.iframe.bundle.js +1 -0
  80. package/storybook/layout-overlay-header-docs-mdx.6eb6e326.iframe.bundle.js +1 -0
  81. package/storybook/layout-spinner-docs-mdx.a792dea6.iframe.bundle.js +1 -0
  82. package/storybook/layout-splitter-docs-mdx.6b0e4fd2.iframe.bundle.js +1 -0
  83. package/storybook/layout-tabs-docs-mdx.aad59db3.iframe.bundle.js +1 -0
  84. package/storybook/layout-top-scroll-bottom-docs-mdx.42c18a0d.iframe.bundle.js +1 -0
  85. package/storybook/molecules-image-editor-docs-mdx.dba18ee6.iframe.bundle.js +1 -0
  86. package/storybook/project.json +1 -1
  87. package/storybook/{runtime~main.786a8152.iframe.bundle.js → runtime~main.ec39977b.iframe.bundle.js} +1 -1
  88. package/storybook/styling-colors-docs-mdx.3f513a8d.iframe.bundle.js +1 -0
  89. package/storybook/styling-css-variables-docs-mdx.5a090407.iframe.bundle.js +1 -0
  90. package/storybook/styling-forms-docs-mdx.649ae948.iframe.bundle.js +1 -0
  91. package/storybook/styling-icons-docs-mdx.e3ed5ebd.iframe.bundle.js +1 -0
  92. package/storybook/styling-layers-docs-mdx.d810a2c8.iframe.bundle.js +1 -0
  93. package/storybook/styling-tags-docs-mdx.ce4814c9.iframe.bundle.js +1 -0
  94. package/storybook/styling-ui-tags-docs-mdx.d94258ab.iframe.bundle.js +1 -0
  95. package/storybook/version.json +2 -2
  96. package/version.json +2 -2
  97. package/storybook/1183.da25800b.iframe.bundle.js +0 -1
  98. package/storybook/2033.c705a7ce.iframe.bundle.js +0 -1
  99. package/storybook/2089.32694489.iframe.bundle.js +0 -1
  100. package/storybook/2127.29f153d2.iframe.bundle.js +0 -2
  101. package/storybook/2228.77650ef1.iframe.bundle.js +0 -2
  102. package/storybook/2639.29baa8af.iframe.bundle.js +0 -1
  103. package/storybook/2971.edb202b4.iframe.bundle.js +0 -1
  104. package/storybook/3968.69b812e4.iframe.bundle.js +0 -1
  105. package/storybook/4476.f8e4115f.iframe.bundle.js +0 -1
  106. package/storybook/4755.e4656207.iframe.bundle.js +0 -23
  107. package/storybook/4935.8959522b.iframe.bundle.js +0 -1
  108. package/storybook/5568.c6172f92.iframe.bundle.js +0 -1
  109. package/storybook/6824.f5eb8bb7.iframe.bundle.js +0 -1
  110. package/storybook/8051.719eb790.iframe.bundle.js +0 -1
  111. package/storybook/871.428deceb.iframe.bundle.js +0 -1
  112. package/storybook/8819.220ca21d.iframe.bundle.js +0 -1
  113. package/storybook/9850.28367747.iframe.bundle.js +0 -1
  114. package/storybook/9946.36014b4e.iframe.bundle.js +0 -1
  115. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +0 -1
  116. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +0 -1
  117. package/storybook/_external-mwork-music-player-docs-mdx.3d0f7156.iframe.bundle.js +0 -1
  118. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +0 -1
  119. package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +0 -1
  120. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +0 -1
  121. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +0 -1
  122. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +0 -1
  123. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +0 -1
  124. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +0 -1
  125. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +0 -1
  126. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +0 -1
  127. package/storybook/atoms-image-grid-docs-mdx.8161de39.iframe.bundle.js +0 -1
  128. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +0 -1
  129. package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +0 -1
  130. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +0 -2
  131. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +0 -1
  132. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +0 -1
  133. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +0 -1
  134. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +0 -1
  135. package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +0 -1
  136. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +0 -1
  137. package/storybook/atoms-thumb-docs-mdx.7286b617.iframe.bundle.js +0 -1
  138. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +0 -1
  139. package/storybook/atoms-typewriter-docs-mdx.993bc264.iframe.bundle.js +0 -1
  140. package/storybook/atoms-typewriter-typewriter-component-stories.80f07c89.iframe.bundle.js +0 -1
  141. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +0 -1
  142. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +0 -1
  143. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +0 -1
  144. package/storybook/examples-image-grid-slider-docs-mdx.d3578699.iframe.bundle.js +0 -1
  145. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +0 -1
  146. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +0 -1
  147. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +0 -2
  148. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +0 -2
  149. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +0 -1
  150. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +0 -1
  151. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +0 -1
  152. package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +0 -1
  153. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +0 -1
  154. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +0 -1
  155. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +0 -1
  156. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +0 -1
  157. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +0 -1
  158. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +0 -1
  159. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +0 -1
  160. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +0 -1
  161. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +0 -2
  162. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +0 -1
  163. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +0 -1
  164. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +0 -1
  165. package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +0 -1
  166. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +0 -1
  167. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +0 -1
  168. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +0 -1
  169. package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +0 -1
  170. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +0 -1
  171. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +0 -1
  172. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +0 -1
  173. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +0 -1
  174. package/storybook/styling-layers-docs-mdx.a563260e.iframe.bundle.js +0 -1
  175. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +0 -1
  176. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +0 -1
  177. /package/storybook/{2127.29f153d2.iframe.bundle.js.LICENSE.txt → 2127.d7de271b.iframe.bundle.js.LICENSE.txt} +0 -0
  178. /package/storybook/{2228.77650ef1.iframe.bundle.js.LICENSE.txt → 2228.7013a637.iframe.bundle.js.LICENSE.txt} +0 -0
  179. /package/storybook/{4425.368129b3.iframe.bundle.js.LICENSE.txt → 4425.7f753a38.iframe.bundle.js.LICENSE.txt} +0 -0
  180. /package/storybook/{4755.e4656207.iframe.bundle.js.LICENSE.txt → 4755.0561bac5.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /package/storybook/{atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt → atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js.LICENSE.txt} +0 -0
  182. /package/storybook/{examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt → examples-transloco-docs-mdx.46447d84.iframe.bundle.js.LICENSE.txt} +0 -0
  183. /package/storybook/{forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt → forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js.LICENSE.txt} +0 -0
  184. /package/storybook/{layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt → layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[8092],{"./libs/ui/.storybook/demos/styling/icons/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_icons_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_icons_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-icons",children:"Styling Icons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This documentation describes the use of icons within the UI library. We use ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://fonts.google.com/icons",rel:"nofollow",children:"Google Material Icons"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["To display an icon, apply the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," class to a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<span>"})," or similar inline element. The icon name is passed as text content."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This stays a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"class"}),", not a component, on purpose. A class combines with\nwhatever else is needed — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'class="ui-icon cursor-pointer"'}),", a colour utility, a\ncomponent-local class of your own — and it works in markup that Angular never\nrenders. A component would have to grow an input for each of those, and would\nsay no to the one it does not have yet."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The price is that two things are yours to get right, because no component can\ndo them for you:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"The icon name is text."})," A screen reader reads ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"lock_open"})," out loud unless\nyou tell it not to. A purely decorative icon takes ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'aria-hidden="true"'}),"; an\nicon that carries meaning on its own takes a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"})," or an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-label"})," saying\nwhat it means — not what it is called."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'\x3c!-- decorative: the label next to it already says everything --\x3e\n<span class="ui-icon" aria-hidden="true">home</span>\n\n\x3c!-- carries the meaning by itself --\x3e\n<span class="ui-icon" role="img" aria-label="Unlock">lock_open</span>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"A name that does not exist renders as the word."})," Material Icons draw\nunknown ligatures as plain text, so a typo shows up as a 96px ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"hme"})," rather\nthan as an error."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Here you can see the icons in different sizes in both themes:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_icons_component_stories__WEBPACK_IMPORTED_MODULE_4__.Icons}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"all-available-icons",children:"All Available Icons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Here is a preview of the most common icons available in our Material Design Font."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-icons",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-icons--all-icons",children:"Open Story Icons"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<span class="ui-icon">home</span>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"size-modifiers",children:"Size Modifiers"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Icons can be resized using additional classes."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Class"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-icon"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Default size (1em)"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-icon.x2"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Double size (2rem / 20px)"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-icon.x3"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Triple size (3rem / 30px)"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-icon.x4"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Quadruple size (4rem / 40px)"})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<span class="ui-icon">home</span>\n<span class="ui-icon x2">home</span>\n<span class="ui-icon x3">home</span>\n<span class="ui-icon x4">home</span>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"bringing-your-own-icons",children:"Bringing your own icons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two ways, and the second one costs nothing."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Keep the system, change the drawing."})," Declare your own ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@font-face"})," and\npoint the variable at it:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-css",children:"@font-face { font-family: 'My Icons'; src: url('…') format('woff2'); }\n:root {\n --ui-icon-font: 'My Icons';\n --ui-icon-font-outline: 'My Icons Outlined';\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Both slots are variables, so a swap is not half done — before this, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".outline"}),"\nwould have pulled Material back in wherever it was used."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The catch is the ligature names. The icon name lives as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"text content"})," in the\nelement, and the font turns it into a glyph. A replacement that does not know\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"home"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"lock_open"})," and the rest renders the word instead. Material Symbols\nqualifies; Font Awesome and Phosphor do not, because they address glyphs by\ncodepoint rather than by ligature. So this swaps the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"drawing"})," of the same\nicons, not the icon set."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Two more things the replacement has to bring: ligature support switched on\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"font-feature-settings: 'liga'"}),", which ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," sets), and metrics that fit\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-icon-size"})," — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," pins width and height and carries\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow: hidden"}),", so a differently proportioned font gets clipped."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["Or do not use ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," at all."]})," Bring your own markup — an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<svg>"}),", another\nicon set's class — and the library will not be in your way. And it costs\nnothing: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@font-face"})," only downloads a font when a rule actually uses it.\nMeasured on a page that uses only the outlined variant:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"Material Icons [unloaded]\nMaterial Icons Outlined [loaded]\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The bundled fonts sit in the npm package on disk; in the browser an unused one\nis never fetched."})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[7600],{"./libs/ui/.storybook/demos/styling/layers/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{title:"Styling/Layers"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layers--why-your-class-wins",children:"Layers — why your class wins"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Everything the library ships as CSS sits in one cascade layer, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),", with two\nsublayers:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Layer"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What is in it"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ui.base"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The global stylesheets — tokens, fonts, tags, forms, icons, the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"})," classes. Everything ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"styles/index.css"})," brings."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ui.components"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Every component's own stylesheet, shipped inside the component."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The point of a layer is its place in the order, and the order is this:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"theme < base < cdk-resets < ui < components < utilities < (your unlayered CSS)\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Read from the right: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"whatever you write without a layer beats everything\nthe library ships"}),", however specific the library's rule is. A Tailwind\nutility on a ui tag beats the component's default. Inside the library, a\ncomponent beats the globals. Nothing in this order depends on specificity\nacross the boundary — only inside a layer does specificity decide."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["So a default is a default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-barcode"})," brings ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"width: 14rem"}),", and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'class="w-64"'})," on it renders 160px — measured in the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/atoms-barcode--sizes",children:"Barcode sizes"})," story, which used to need\na ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!"})," on every width."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-asks-of-a-consumer",children:"What it asks of a consumer"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"With Tailwind:"})," declare the order once, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"before"})," the Tailwind import, in\nthe stylesheet that pulls Tailwind in:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-css",children:"@layer theme, base, cdk-resets, ui, components, utilities;\n\n@import 'tailwindcss';\n@import '@mojawork/ui/styles/theme.css';\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Without that first line Tailwind declares its four layers first and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),"\nlands after ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"utilities"})," — which means above it, and the utilities lose\nagain. The line is the whole migration for a Tailwind app."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The theme import beneath it is the second half of the same entry file: it\nmaps the utilities onto the library's tokens and carries no layer statement\nof its own, because an import cannot declare something that has to stand\nbefore it."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Without Tailwind:"})," nothing. Your stylesheets are unlayered and already\nwin; the library's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"preflight.css"})," declares the order for its own sake."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["Why ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-resets"})," is in that line."]})," It is the Angular CDK's own layer: it\nstrips background, border and padding off a drag preview so a consumer can\ngive it a look of its own. A layer nobody names is appended ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"behind"})," every\nnamed one — so an unnamed ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-resets"})," beat the entire library, and every\ndrag preview lost its surface. Naming it puts it where a reset belongs:\nbelow."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-means-for-a-rule-you-write",children:"What it means for a rule you write"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["A utility on a ui tag now does what it says. Remove any ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!"})," you added to\nget through; the barcode story did."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["Your own CSS that previously lost to a component rule on specificity now\nwins. That is what you wanted in almost every case — but a low-specificity\nelement rule in your app (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"button { … }"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"h1 { … }"}),") that a component used\nto override by being more specific now reaches inside the component. If\nsomething changed shape after the update, that is where to look."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["Inside a component stylesheet, nothing changed: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui.components"})," is one\nlayer, and specificity decides within it as before."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["A component-local class must not share a name with a utility. The overlay's\nsize classes were called ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ms-1"}),"…",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ms-5"})," — also Tailwind's\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"margin-inline-start"})," scale — and once utilities stood above the library,\nthe utility's margin beat the component's centering: every centered overlay\nsat hard left. They carry the underscore prefix now (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"._ms-1"}),"), which the\nhouse rule for component-local classes demanded all along."]}),"\n"]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1165,1927],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/demos/styling/tags/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-tags",children:"Styling Tags"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This section demonstrates the base styling of standard HTML tags within the UI library. Most tags receive default styling, while some require a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class for enhanced presentation."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The story linked below shows the visual output of these tags with the\nlibrary's styles applied in both themes."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-tags",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-tags--tags",children:"Open Tags"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"headlines--text",children:"Headlines & Text"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Headlines (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"h1"})," - ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"h6"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"strong"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"em"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"small"}),", and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"p"})," are automatically styled when used within the application's CSS scope."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:"<h1>Main Headline</h1>\n<h2>Sub Headline</h2>\n<p>Standard paragraph text.</p>\n<strong>Bold text</strong>\n<em>Emphasized text</em>\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"lists",children:"Lists"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Ordered (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ol"}),") and unordered (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ul"}),") lists are styled with standard indentation and spacing."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:"<ul>\n <li>First item</li>\n <li>Second item</li>\n</ul>\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"special-elements-ui-class",children:["Special Elements ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:["(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class)"]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Some complex elements like ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"table"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fieldset"})," require the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class to enable the library's specific design."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage Tables:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<table class="ui">\n <tr>\n <th>Header</th>\n </tr>\n <tr>\n <td>Data</td>\n </tr>\n</table>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage Fieldsets:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<fieldset class="ui">\n <legend>Legend Title</legend>\n Content inside the fieldset.\n</fieldset>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Tags:()=>Tags,__namedExportsOrder:()=>__namedExportsOrder,default:()=>tags_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var _debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiExampleStylingTagsComponent=class UiExampleStylingTagsComponent{};UiExampleStylingTagsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-tags",template:'<section class="relative flex flex-col">\n <h1>H1 - Donkey Kong</h1>\n <h2>H2 - Turrican</h2>\n <h3>H3 - Asteroid</h3>\n <h4>H4 - Snake</h4>\n <h5>H5 - Tetris</h5>\n <h6>H6 - Frogger</h6>\n <strong> Strong - Lemmings </strong>\n <hr />\n</section>\n\n<section class="relative flex flex-col">\n <strong>Group content and semantic tags for text</strong>\n <hr class="ui-dotted" />\n <p>paragraph: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>\n <p>paragraph: a b c d e f g h i j k l m n o p q r s t u v w x y z</p>\n <p>paragraph: 1 2 3 4 5 6 7 8 9 0</p>\n <address>address</address>\n <blockquote>blockquote</blockquote>\n <em> em </em>\n <small> small </small>\n <cite> cite </cite>\n <var>var = 123456789 </var>\n <a>a - link</a>\n <hr class="ui-dotted" />\n <ul>\n <li>\n ul - Disordered list\n <ul>\n <li>li - Donkey Kong</li>\n <li>li - Turrican</li>\n <li>li - Asteroid</li>\n </ul>\n </li>\n </ul>\n <hr class="ui-dotted" />\n <ol>\n <li>\n ol - Ordered list\n <ol>\n <li>li - Donkey Kong</li>\n <li>li - Turrican</li>\n <li>li - Asteroid</li>\n </ol>\n </li>\n </ol>\n <hr />\n</section>\n\n<section class="relative flex flex-col">\n <strong>Tables (class="ui")</strong>\n <hr class="ui-dotted" />\n <table class="ui">\n <thead>\n <tr>\n <th style="width: 33.33%">cell 01</th>\n <th style="width: 33.33%">cell 03</th>\n <th style="width: 33.33%">cell 03</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>cell 04</td>\n <td>cell 05</td>\n <td>cell 06</td>\n </tr>\n <tr>\n <td>cell 07</td>\n <td>cell 08</td>\n <td>cell 09</td>\n </tr>\n </tbody>\n <tfoot></tfoot>\n </table>\n <hr>\n</section>\n\n<section class="relative flex flex-col">\n <strong>Fieldset (class="ui")</strong>\n <hr class="ui-dotted" />\n <fieldset class="ui">\n <legend>Description</legend>\n Arcade game has been a name for video games since the 1970s <br />\n Popular arcade classics are e.g. Space Invaders, Pac-Man, Donkey Kong and\n many more\n </fieldset>\n <hr>\n</section>\n\n<section class="relative flex flex-col">\n <strong>figure</strong>\n <hr class="ui-dotted" />\n <figure style="width: 28rem">\n <figcaption>figcaption</figcaption>\n <img src="assets/ui/images/unknown.gif" />\n </figure>\n <hr />\n</section>\n\n<section class="relative flex flex-col">\n <strong>code</strong>\n <hr class="ui-dotted" />\n <code> code </code>\n <hr />\n</section>\n',standalone:!0})],UiExampleStylingTagsComponent);const tags_component_stories={title:"Styling/Tags",component:UiExampleStylingTagsComponent,decorators:[(0,dist.Iz)({imports:[header_component.b,UiExampleStylingTagsComponent]})],argTypes:{},args:{},parameters:{docs:{canvas:{sourceState:"none"},source:{code:null}}}},Tags={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-tags></ui-examples-tags>\n '})},__namedExportsOrder=["Tags"];Tags.parameters={...Tags.parameters,docs:{...Tags.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-tags></ui-examples-tags>\n `\n };\n }\n}",...Tags.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3338,5233],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/demos/styling/ui-tags/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_ui_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_ui_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-ui-tags",children:"Styling Ui-Tags"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This documentation shows the use of special CSS classes for HTML tags within the UI library."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"centered-images-ui-center-image",children:["Centered Images (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-center-image"}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-center-image"})," class on a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<figure>"})," element centers the contained image and provides space for a caption (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<figcaption>"}),")."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-centered-images",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-ui-tags--ui-tags-center-image",children:"Open Centered Images"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" alt="Example image" />\n</figure>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"flex-lists-with-spacers-ui-list-flex-spacer",children:["Flex Lists with Spacers (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-list-flex-spacer"}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This class is applied to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<ol>"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<ul>"})," to style list elements with a flex structure and appropriate spacing. It is ideal for news lists or similar listings."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-flex-lists-with-spacers",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-ui-tags--ui-tags-list-flex-spacer",children:"Open Flex Lists with Spacers"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ol class="ui-list-flex-spacer">\n <li>\n <a href="#" target="_blank">\n <strong>Headline</strong>\n <small>[Date]</small>\n </a>\n <p>Here is a short description of the content.</p>\n </li>\n</ol>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"ordered-list-types-ol-type",children:["Ordered List Types (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'<ol type="…">'}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Ordered lists render with decimal markers by default. The standard HTML ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"type"})," attribute is honoured for alternative numbering: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"I"})," (upper roman) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"A"})," (upper alpha). Lowercase variants are not supported because CSS matches the attribute value case-insensitively in HTML."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-ordered-list-types",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-ui-tags--ui-tags-ordered-list-types",children:"Open Ordered List Types"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ol type="I">\n <li>First section</li>\n <li>Second section</li>\n</ol>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{UiTagsCenterImage:()=>UiTagsCenterImage,UiTagsListFlexSpacer:()=>UiTagsListFlexSpacer,UiTagsOrderedListTypes:()=>UiTagsOrderedListTypes,__namedExportsOrder:()=>__namedExportsOrder,default:()=>ui_tags_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var _debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiExampleStylingUiCenterImageComponent=class UiExampleStylingUiCenterImageComponent{};UiExampleStylingUiCenterImageComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-ui-tags-center-image",template:'<section class="relative flex flex-col">\n <h1>figure ui-center-image</h1>\n <p>add to figure tag: class="ui-center-image w-[26rem] h-[26rem]"</p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>600px * 600px</figcaption>\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>600px * 800px</figcaption>\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n <hr class="ui" />\n</section>\n\n<section class="relative flex flex-col">\n <h1>figure ui-center-image</h1>\n <p>\n add to figure tag: class="ui-center-image rounded-full w-[8rem] h-[8rem]"\n </p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="ui-center-image rounded-full w-[8rem] h-[8rem]">\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="ui-center-image rounded-full w-[8rem] h-[8rem]">\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="ui-center-image rounded-full w-[8rem] h-[8rem]">\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n <hr class="ui" />\n</section>\n\n<section class="relative flex flex-col">\n <h1>figure ui</h1>\n <p>add to figure tag: class="ui w-1/4""</p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="ui w-1/4">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="ui w-1/4">\n <figcaption>600px * 600px</figcaption>\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="ui w-1/4">\n <figcaption>600px * 800px</figcaption>\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n <hr class="ui" />\n</section>\n\n<section class="relative flex flex-col">\n <h1>figure</h1>\n <p>add to figure tag: [default] class="w-1/4""</p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="w-1/4">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="w-1/4">\n <figcaption>600px * 600px</figcaption>\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="w-1/4">\n <figcaption>600px * 800px</figcaption>\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n</section>\n',standalone:!0})],UiExampleStylingUiCenterImageComponent);let UiExampleStylingUiListFlexSpacerComponent=class UiExampleStylingUiListFlexSpacerComponent{};UiExampleStylingUiListFlexSpacerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-ui-tags-list-flex-spacer",template:'<section class="relative flex flex-col">\n <h1>ui-list-flex-spacer</h1>\n <p>add to ol or ul tag: class="ui-list-flex-spacer"</p>\n\n <hr class="ui-dotted" />\n\n <ol class="ui-list-flex-spacer">\n <li value="6">\n <a href="https://moja.work/change-me?e=true" target="_news">\n <strong>mojawork: Change Me</strong>\n <small>[Release - 22.12.23]</small>\n </a>\n <p>A virtual greeting card configurator that generates an individual link that can be copied and forwarded.\n No data is saved in the process.</p>\n </li>\n <li value="5">\n <a href="https://moja.work/storybook" target="_news">\n <strong>mojawork: Storybook</strong>\n <small>[Release - 15.12.23]</small>\n </a>\n </li>\n <li value="4">\n <a\n href="https://www.behance.net/gallery/185861795/Print-and-Paint"\n target="_news"\n >\n <strong>Behance: Print and Paint</strong>\n <small>[Release.02.10.23]</small>\n </a>\n </li>\n <li value="2">\n <a href="https://www.behance.net/gallery/176419419/Keeper" target="_news">\n <strong>Behance: Keeper</strong>\n <small>[Release - 28.07.23]</small>\n </a>\n </li>\n </ol>\n\n</section>\n',standalone:!0})],UiExampleStylingUiListFlexSpacerComponent);let UiExampleStylingUiOrderedListTypesComponent=class UiExampleStylingUiOrderedListTypesComponent{};UiExampleStylingUiOrderedListTypesComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-ui-tags-ordered-list-types",template:'<section class="relative flex flex-col">\n <h1>ordered list types</h1>\n <p>add to ol tag: type="I" (upper roman) or type="A" (upper alpha)</p>\n\n <hr class="ui-dotted" />\n\n <ol type="I">\n <li>First section</li>\n <li>Second section</li>\n <li>Third section</li>\n </ol>\n\n <hr class="ui-dotted" />\n\n <ol type="A">\n <li>First variant</li>\n <li>Second variant</li>\n </ol>\n</section>\n',standalone:!0})],UiExampleStylingUiOrderedListTypesComponent);const ui_tags_component_stories={title:"Styling/Ui-Tags",decorators:[(0,dist.Iz)({imports:[header_component.b,UiExampleStylingUiListFlexSpacerComponent,UiExampleStylingUiCenterImageComponent,UiExampleStylingUiOrderedListTypesComponent]})],argTypes:{},args:{},parameters:{docs:{canvas:{sourceState:"none"},source:{code:null}}}},UiTagsListFlexSpacer={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-ui-tags-list-flex-spacer></ui-examples-ui-tags-list-flex-spacer>\n '})},UiTagsOrderedListTypes={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-ui-tags-ordered-list-types></ui-examples-ui-tags-ordered-list-types>\n '})},UiTagsCenterImage={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-ui-tags-center-image></ui-examples-ui-tags-center-image>\n\n '})},__namedExportsOrder=["UiTagsListFlexSpacer","UiTagsOrderedListTypes","UiTagsCenterImage"];UiTagsListFlexSpacer.parameters={...UiTagsListFlexSpacer.parameters,docs:{...UiTagsListFlexSpacer.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-ui-tags-list-flex-spacer></ui-examples-ui-tags-list-flex-spacer>\n `\n };\n }\n}",...UiTagsListFlexSpacer.parameters?.docs?.source}}},UiTagsOrderedListTypes.parameters={...UiTagsOrderedListTypes.parameters,docs:{...UiTagsOrderedListTypes.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-ui-tags-ordered-list-types></ui-examples-ui-tags-ordered-list-types>\n `\n };\n }\n}",...UiTagsOrderedListTypes.parameters?.docs?.source}}},UiTagsCenterImage.parameters={...UiTagsCenterImage.parameters,docs:{...UiTagsCenterImage.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-ui-tags-center-image></ui-examples-ui-tags-center-image>\n\n `\n };\n }\n}",...UiTagsCenterImage.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "63aafdd5",
3
- "uiVersion": "2.8.1"
2
+ "commit": "e7e0359f",
3
+ "uiVersion": "2.8.2"
4
4
  }
package/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "uiVersion": "2.8.1",
3
- "commit": "63aafdd5"
2
+ "uiVersion": "2.8.2",
3
+ "commit": "e7e0359f"
4
4
  }
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1183],{"./node_modules/css-loader/dist/runtime/api.js"(module){module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){module.exports=function(i){return i[1]}},"./node_modules/marked/lib/marked.esm.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A4:()=>P,Dz:()=>Z});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");function C(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function j(l){R=l}var z={exec:()=>null};function A(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="string"==typeof l?l:l.source,n={replace:(s,r)=>{let i="string"==typeof r?r:r.source;return i=i.replace(m.caret,"$1"),t=t.replace(s,i),n},getRegex:()=>new RegExp(t,e)};return n}var Te=((l="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+l)}catch{return!1}})(),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})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:A(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)),hrRegex:A(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:A(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:A(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:A(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:A(l=>new RegExp(`^ {0,${l}}>`))},q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\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]+)*)/,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]*?(?:-->|$))/,Me=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[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\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]/),Ee=le(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),J={blockquote:k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ee).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:$e,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:q,html:Me,lheading:ae,list:Le,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ze,table:z,text:/^[^\n]+/},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}\t)[^\\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(),Ae={...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()},Ie={...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} *[^\n]").replace("lheading",ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},pe=/^( {2,}|\\)\n(?!\s*$)/,_=/[\p{P}\p{S}]/u,I=/[\s\p{P}\p{S}]/u,v=/[^\s\p{P}\p{S}]/u,ve=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I).getRegex(),ue=/(?!~)[\p{P}\p{S}]/u,Qe=k(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Te?"(?<!`)()":"(^^|[^`])").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,ue).getRegex(),Ue=k(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,/[\p{Pi}\p{Ps}"']/u).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,I).replace(/punct/g,_).getRegex(),We=k(he,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,ue).getRegex(),Je=k("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),Ve=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),et=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),tt=k(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_).getRegex(),rt=k("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).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("(?:--\x3e|$)","--\x3e").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(),de=k(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",W).getRegex(),ke=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",W).getRegex(),ie=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,V={_backpedal:z,anyPunctuation:st,autolink:it,blockSkip:Qe,br:pe,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:z,delLDelim:z,delRDelim:z,emStrongLDelim:Ne,emStrongRDelimAst:Ke,emStrongRDelimUnd:Ve,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:lt,nolink:ke,punctuation:ve,reflink:de,reflinkSearch:k("reflink|nolink(?!\\()","g").replace("reflink",de).replace("nolink",ke).getRegex(),tag:at,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:z},ut={...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(pe).replace("{2,}","*").getRegex(),text:k(F.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},H={normal:J,gfm:Ae,pedantic:Ie},B={normal:V,gfm:F,breaks:ct,pedantic:ut},ht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ge=l=>ht[l];function O(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 n=l.replace(m.findPipe,(r,i,o)=>{let p=!1,a=i;for(;--a>=0&&"\\"===o[a];)p=!p;return p?"|":" |"}).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(0===n)return"";let s=0;for(;s<n;){let r=l.charAt(n-s-1);if(r!==e||t){if(r===e||!t)break;s++}else s++}return l.slice(0,n-s)}function te(l){let e=l.split("\n"),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("\n")}function me(l,e=0){let t=e,n="";for(let s of l)if("\t"===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");n.state.inLink=!0;let p={type:"!"===l[0].charAt(0)?"image":"link",raw:t,href:r,title:i,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,p}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=function dt(l,e,t){let n=l.match(t.other.indentCodeCompensation);if(null===n)return e;let s=n[1];return e.split("\n").map(r=>{let i=r.match(t.other.beginningSpace);if(null===i)return r;let[o]=i;return o.length>=s.length?r.slice(s.length):r}).join("\n")}(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],"\n"),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],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=$(t[0],"\n").split("\n"),s="",r="",i=[];for(;n.length>0;){let a,o=!1,p=[];for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))p.push(n[a]),o=!0;else{if(o)break;p.push(n[a])}n=n.slice(a);let u=p.join("\n"),c=u.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}\n${u}`:u,r=r?`${r}\n${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=h,0===n.length)break;let d=i.at(-1);if("code"===d?.type)break;if("blockquote"===d?.type){let T=d,g=n.join("\n"),w=T.raw+"\n"+g.replace(this.rules.other.blockquoteSetextReplace2,""),M=this.blockquote(w);i[i.length-1]=M,s=`${s}\n${g}`,r=r.substring(0,r.length-T.text.length)+M.text;break}if("list"===d?.type){let T=d,g=T.raw+"\n"+n.join("\n"),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-T.raw.length)+w.raw,n=g.substring(i.at(-1).raw.length).split("\n");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:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;e;){let a=!1,u="",c="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=me(t[2].split("\n",1)[0],t[1].length),d=e.split("\n",1)[0],T=!h.trim(),g=0;if(this.options.pedantic?(g=2,c=h.trimStart()):T?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),T&&this.rules.other.blankLine.test(d)&&(u+=d+"\n",e=e.substring(d.length+1),a=!0),!a){let w=this.rules.other.nextBulletRegex(g),M=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 D,N=e.split("\n",1)[0];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)||M.test(d))break;if(D.search(this.rules.other.nonSpaceChar)>=g||!d.trim())c+="\n"+D.slice(g);else{if(T||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ne.test(h)||re.test(h)||M.test(h))break;c+="\n"+d}T=!d.trim(),u+=N+"\n",e=e.substring(N.length+1),h=D.slice(g)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0)),r.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),r.raw+=u}let p=r.items.at(-1);if(!p)return;p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd(),r.raw=r.raw.trimEnd();for(let a of r.items){this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]);let u=a.tokens[0];if(!a.task||"text"!==u?.type&&"paragraph"!==u?.type)a.task&&(a.task=!1);else{a.text=a.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.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)}}if(!r.loose){let c=a.tokens.filter(d=>"space"===d.type),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));r.loose=h}}if(r.loose)for(let a of r.items){a.loose=!0;for(let u of a.tokens)"text"===u.type&&(u.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:!0,raw:n,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],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],"\n"),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("\n"):[],i={type:"table",raw:$(t[0],"\n"),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:!0,align:i.align[o]});for(let o of r)i.rows.push(ee(o,i.header.length).map((p,a)=>({text:p,tokens:this.lexer.inline(p),header:!1,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],"\n"),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="\n"===t[1].charAt(t[1].length-1)?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=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,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=function fe(l,e){if(-1===l.indexOf(e[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}(t[2],"()");if(-2===i)return;if(i>-1){let p=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,p).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)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s.slice(1):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 r=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").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))&&(!s[1]&&!s[3]||!n||this.rules.inline.punctuation.exec(n))){let o,p,i=[...s[0]].length-1,a=i,u=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);null!==(s=d.exec(t));){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(p=[...o].length,s[3]||s[4]){a+=p;continue}if(s[5]||s[6]){if(i%3&&!((i+p)%3)){u+=p;continue}if(h)break}if(a-=p,a>0)continue;p=Math.min(p,p+a+u);let T=[...s[0]][0].length,g=e.slice(0,i+s.index+T+p);if(Math.min(i,p)%2){let M=g.slice(1,-1);return{type:"em",raw:g,text:M,tokens:this.lexer.inlineTokens(M)}}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&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let o,p,i=[...s[0]].length-1,a=i,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+i);null!==(s=u.exec(t));){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o||(p=[...o].length,p!==i))continue;if(s[3]||s[4]){a+=p;continue}if(a-=p,a>0)continue;p=Math.min(p,p+a);let c=[...s[0]][0].length,h=e.slice(0,i+s.index+c+p),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],s="www."===t[1]?"http://"+t[0]: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}}}},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:!1,inRawBlock:!1,top:!0};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,"\n"),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=!1){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)){this.infiniteLoopError(e.charCodeAt(0));break}let r;if(s=e.length,this.options.extensions?.block?.some(o=>!!(r=o.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let o=t.at(-1);1===r.raw.length&&void 0!==o?o.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let o=t.at(-1);"paragraph"===o?.type||"text"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+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);"paragraph"===o?.type||"text"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+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 a,o=1/0,p=e.slice(1);this.options.extensions.startBlock.forEach(u=>{a=u.call({lexer:this},p),"number"==typeof a&&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&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+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);"text"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+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=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let o=Object.keys(this.tokens.links);o.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,p=>o.includes(p.slice(p.lastIndexOf("[")+1,-1))?"["+"a".repeat(p.length-2)+"]":p))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(o,p,a)=>{let u=a?a.length:0;return o.slice(0,u)+"["+"a".repeat(o.length-u-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let s=!1,r="",i=1/0;for(;e;){if(!(e.length<i)){this.infiniteLoopError(e.charCodeAt(0));break}let o;if(i=e.length,s||(r=""),s=!1,this.options.extensions?.inline?.some(a=>!!(o=a.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))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);"text"===o.type&&"text"===a?.type?(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 p=e;if(this.options.extensions?.startInline){let c,a=1/0,u=e.slice(1);this.options.extensions.startInline.forEach(h=>{c=h.call({lexer:this},u),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(p=e.substring(0,a+1))}if(o=this.tokenizer.inlineText(p)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(r=o.raw.slice(-1)),s=!0;let a=t.at(-1);"text"===a?.type?(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)throw new Error(t);console.error(t)}},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,"")+"\n";return s?'<pre><code class="language-'+O(s)+'">'+(n?r:O(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:O(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,s="";for(let o=0;o<e.items.length;o++){let p=e.items[o];s+=this.listitem(p)}let r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+s+"</"+r+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}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>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}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>${O(e,!0)}</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(null===r)return s;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+O(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(null===r)return O(n);let i=`<img src="${e=r}" alt="${O(n)}"`;return t&&(i+=` title="${O(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:O(e.text)}},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}},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(!1!==o||!["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(!1!==o||!["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":case"text":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;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}},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}},Z=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);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||!1,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];t.renderers[r.name]=i?function(...o){let p=r.renderer.apply(this,o);return!1===p&&(p=i.apply(this,o)),p}:r.renderer}if("tokenizer"in r){if(!r.level||"block"!==r.level&&"inline"!==r.level)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&&("block"===r.level?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:"inline"===r.level&&(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,p=n.renderer[o],a=r[o];r[o]=(...u)=>{let c=p.apply(r,u);return!1===c&&(c=a.apply(r,u)),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,p=n.tokenizer[o],a=r[o];r[o]=(...u)=>{let c=p.apply(r,u);return!1===c&&(c=a.apply(r,u)),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,p=n.hooks[o],a=r[o];S.passThroughHooks.has(i)?r[o]=u=>{if(this.defaults.async&&S.passThroughHooksRespectAsync.has(i))return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){let h=yield p.call(r,u);return a.call(r,h)})();let c=p.call(r,u);return a.call(r,c)}:r[o]=(...u)=>{if(this.defaults.async)return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){let h=yield p.apply(r,u);return!1===h&&(h=yield a.apply(r,u)),h})();let c=p.apply(r,u);return!1===c&&(c=a.apply(r,u)),c}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;s.walkTokens=function(o){let p=[];return p.push(i.call(this,o)),r&&(p=p.concat(r.call(this,o))),p}}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){var _this=this;return(n,s)=>{let r={...s},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)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"||null===n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)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(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){let p=i.hooks?yield i.hooks.preprocess(n):n,u=yield(i.hooks?yield i.hooks.provideLexer(e):e?x.lex:x.lexInline)(p,i),c=i.hooks?yield i.hooks.processAllTokens(u):u;i.walkTokens&&(yield Promise.all(_this.walkTokens(c,i.walkTokens)));let d=yield(i.hooks?yield i.hooks.provideParser(e):e?b.parse:b.parseInline)(c,i);return i.hooks?yield 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(p){return o(p)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let s="<p>An error occurred:</p><pre>"+O(n.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}},E=new Z;function f(l,e){return E.parse(l,e)}f.options=f.setOptions=function(l){return E.setOptions(l),f.defaults=E.defaults,j(f.defaults),f},f.getDefaults=C,f.defaults=R,f.use=function kt(...l){return E.use(...l),f.defaults=E.defaults,j(f.defaults),f},f.walkTokens=function(l,e){return E.walkTokens(l,e)},f.parseInline=E.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;f.options,f.setOptions,f.walkTokens,f.parseInline,b.parse,x.lex}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2033],{"../web-components/dist/esm/AiffParser-CvaU7D3t.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AIFFParser:()=>AIFFParser});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../web-components/dist/esm/mwork-banner.mwork-basic-interpreter.mwork-music-player-CKnbZ8Ik.js"),_ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../web-components/dist/esm/ID3v2Parser-DLpVzYcQ.js");__webpack_require__("../web-components/dist/esm/index-BCPpAKCl.js");const compressionTypes={NONE:"not compressed\tPCM\tApple Computer",sowt:"PCM (byte swapped)",fl32:"32-bit floating point IEEE 32-bit float",fl64:"64-bit floating point IEEE 64-bit float\tApple Computer",alaw:"ALaw 2:1\t8-bit ITU-T G.711 A-law",ulaw:"µLaw 2:1\t8-bit ITU-T G.711 µ-law\tApple Computer",ULAW:"CCITT G.711 u-law 8-bit ITU-T G.711 µ-law",ALAW:"CCITT G.711 A-law 8-bit ITU-T G.711 A-law",FL32:"Float 32\tIEEE 32-bit float "};class AiffContentError extends((0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.m)("AIFF")){}class Common{constructor(header,isAifc){this.isAifc=isAifc;const minimumChunkSize=isAifc?22:18;if(header.chunkSize<minimumChunkSize)throw new AiffContentError(`COMMON CHUNK size should always be at least ${minimumChunkSize}`);this.len=header.chunkSize}get(buf,off){const shift=_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.a.get(buf,off+8)-16398,baseSampleRate=_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.a.get(buf,off+8+2),res={numChannels:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.a.get(buf,off),numSampleFrames:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.U.get(buf,off+2),sampleSize:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.a.get(buf,off+6),sampleRate:shift<0?baseSampleRate>>Math.abs(shift):baseSampleRate<<shift};if(this.isAifc){if(res.compressionType=_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F.get(buf,off+18),this.len>22){const strLen=_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.b.get(buf,off+22);if(strLen>0){if(23+strLen+(strLen+1)%2!==this.len)throw new AiffContentError("Illegal pstring length");res.compressionName=new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(strLen,"latin1").get(buf,off+23)}else res.compressionName=void 0}}else res.compressionName="PCM";return res}}const Header={len:8,get:(buf,off)=>({chunkID:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F.get(buf,off),chunkSize:Number(BigInt(_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.U.get(buf,off+4)))})},debug=(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.c)("music-metadata:parser:aiff");class AIFFParser extends _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.B{constructor(){super(...arguments),this.isCompressed=null}parse(){var _this=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){if("FORM"!==(yield _this.tokenizer.readToken(Header)).chunkID)throw new AiffContentError("Invalid Chunk-ID, expected 'FORM'");const type=yield _this.tokenizer.readToken(_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F);switch(type){case"AIFF":_this.metadata.setFormat("container",type),_this.isCompressed=!1;break;case"AIFC":_this.metadata.setFormat("container","AIFF-C"),_this.isCompressed=!0;break;default:throw new AiffContentError(`Unsupported AIFF type: ${type}`)}_this.metadata.setFormat("lossless",!_this.isCompressed),_this.metadata.setAudioOnly();try{for(;!_this.tokenizer.fileInfo.size||_this.tokenizer.fileInfo.size-_this.tokenizer.position>=Header.len;){debug(`Reading AIFF chunk at offset=${_this.tokenizer.position}`);const chunkHeader=yield _this.tokenizer.readToken(Header),nextChunk=2*Math.round(chunkHeader.chunkSize/2),bytesRead=yield _this.readData(chunkHeader);yield _this.tokenizer.ignore(nextChunk-bytesRead)}}catch(err){if(!(err instanceof _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.E))throw err;debug("End-of-stream")}})()}readData(header){var _this2=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){switch(header.chunkID){case"COMM":{if(null===_this2.isCompressed)throw new AiffContentError("Failed to parse AIFF.COMM chunk when compression type is unknown");const common=yield _this2.tokenizer.readToken(new Common(header,_this2.isCompressed));return _this2.metadata.setFormat("bitsPerSample",common.sampleSize),_this2.metadata.setFormat("sampleRate",common.sampleRate),_this2.metadata.setFormat("numberOfChannels",common.numChannels),_this2.metadata.setFormat("numberOfSamples",common.numSampleFrames),_this2.metadata.setFormat("duration",common.numSampleFrames/common.sampleRate),(common.compressionName||common.compressionType)&&_this2.metadata.setFormat("codec",common.compressionName??compressionTypes[common.compressionType]),header.chunkSize}case"ID3 ":{const id3_data=yield _this2.tokenizer.readToken(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.d(header.chunkSize)),rst=(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.n)(id3_data);return yield(new _ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_2__.I).parse(_this2.metadata,rst,_this2.options),header.chunkSize}case"SSND":return _this2.metadata.format.duration&&_this2.metadata.setFormat("bitrate",8*header.chunkSize/_this2.metadata.format.duration),0;case"NAME":case"AUTH":case"(c) ":case"ANNO":return _this2.readTextChunk(header);default:return debug(`Ignore chunk id=${header.chunkID}, size=${header.chunkSize}`),0}})()}readTextChunk(header){var _this3=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){const values=(yield _this3.tokenizer.readToken(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(header.chunkSize,"ascii"))).split("\0").map(v=>v.trim()).filter(v=>v?.length);return yield Promise.all(values.map(v=>_this3.metadata.addTag("AIFF",header.chunkID,v))),header.chunkSize})()}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2089],{"../web-components/dist/esm/WavPackParser-DgrtLYck.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{WavPackContentError:()=>WavPackContentError,WavPackParser:()=>WavPackParser});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../web-components/dist/esm/mwork-banner.mwork-basic-interpreter.mwork-music-player-CKnbZ8Ik.js");__webpack_require__("../web-components/dist/esm/index-BCPpAKCl.js");const SampleRates=[6e3,8e3,9600,11025,12e3,16e3,22050,24e3,32e3,44100,48e3,64e3,88200,96e3,192e3,-1],BlockHeaderToken={len:32,get:(buf,off)=>{const flags=_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+24),res={BlockID:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F.get(buf,off),blockSize:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+4),version:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(buf,off+8),totalSamples:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+12),blockIndex:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+16),blockSamples:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+20),flags:{bitsPerSample:8*(1+getBitAllignedNumber(flags,0,2)),isMono:isBitSet(flags,2),isHybrid:isBitSet(flags,3),isJointStereo:isBitSet(flags,4),crossChannel:isBitSet(flags,5),hybridNoiseShaping:isBitSet(flags,6),floatingPoint:isBitSet(flags,7),samplingRate:SampleRates[getBitAllignedNumber(flags,23,4)],isDSD:isBitSet(flags,31)},crc:new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.d(4).get(buf,off+28)};return res.flags.isDSD&&(res.totalSamples*=8),res}},MetadataIdToken={len:1,get:(buf,off)=>({functionId:getBitAllignedNumber(buf[off],0,6),isOptional:isBitSet(buf[off],5),isOddSize:isBitSet(buf[off],6),largeBlock:isBitSet(buf[off],7)})};function isBitSet(flags,bitOffset){return 1===getBitAllignedNumber(flags,bitOffset,1)}function getBitAllignedNumber(flags,bitOffset,len){return flags>>>bitOffset&4294967295>>>32-len}const debug=(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.c)("music-metadata:parser:WavPack");class WavPackContentError extends((0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.m)("WavPack")){}class WavPackParser extends _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.B{constructor(){super(...arguments),this.audioDataSize=0}parse(){var _this=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){return _this.metadata.setAudioOnly(),_this.audioDataSize=0,yield _this.parseWavPackBlocks(),(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.J)(_this.metadata,_this.tokenizer,_this.options)})()}parseWavPackBlocks(){var _this2=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){do{if("wvpk"!==(yield _this2.tokenizer.peekToken(_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F)))break;const header=yield _this2.tokenizer.readToken(BlockHeaderToken);if("wvpk"!==header.BlockID)throw new WavPackContentError("Invalid WavPack Block-ID");debug(`WavPack header blockIndex=${header.blockIndex}, len=${BlockHeaderToken.len}`),0!==header.blockIndex||_this2.metadata.format.container||(_this2.metadata.setFormat("container","WavPack"),_this2.metadata.setFormat("lossless",!header.flags.isHybrid),_this2.metadata.setFormat("bitsPerSample",header.flags.bitsPerSample),header.flags.isDSD||(_this2.metadata.setFormat("sampleRate",header.flags.samplingRate),_this2.metadata.setFormat("duration",header.totalSamples/header.flags.samplingRate)),_this2.metadata.setFormat("numberOfChannels",header.flags.isMono?1:2),_this2.metadata.setFormat("numberOfSamples",header.totalSamples),_this2.metadata.setFormat("codec",header.flags.isDSD?"DSD":"PCM"));const ignoreBytes=header.blockSize-(BlockHeaderToken.len-8);yield 0===header.blockIndex?_this2.parseMetadataSubBlock(header,ignoreBytes):_this2.tokenizer.ignore(ignoreBytes),header.blockSamples>0&&(_this2.audioDataSize+=header.blockSize)}while(!_this2.tokenizer.fileInfo.size||_this2.tokenizer.fileInfo.size-_this2.tokenizer.position>=BlockHeaderToken.len);_this2.metadata.format.duration&&_this2.metadata.setFormat("bitrate",8*_this2.audioDataSize/_this2.metadata.format.duration)})()}parseMetadataSubBlock(header,remainingLength){var _this3=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){let remaining=remainingLength;for(;remaining>MetadataIdToken.len;){const id=yield _this3.tokenizer.readToken(MetadataIdToken),dataSizeInWords=yield _this3.tokenizer.readNumber(id.largeBlock?_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.N:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.b),data=new Uint8Array(2*dataSizeInWords-(id.isOddSize?1:0));switch(yield _this3.tokenizer.readBuffer(data),debug(`Metadata Sub-Blocks functionId=0x${id.functionId.toString(16)}, id.largeBlock=${id.largeBlock},data-size=${data.length}`),id.functionId){case 0:break;case 14:{debug("ID_DSD_BLOCK");const mp=1<<_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.b.get(data,0),samplingRate=header.flags.samplingRate*mp*8;if(!header.flags.isDSD)throw new WavPackContentError("Only expect DSD block if DSD-flag is set");_this3.metadata.setFormat("sampleRate",samplingRate),_this3.metadata.setFormat("duration",header.totalSamples/samplingRate);break}case 36:debug("ID_ALT_TRAILER: trailer for non-wav files");break;case 38:_this3.metadata.setFormat("audioMD5",data);break;case 47:debug(`ID_BLOCK_CHECKSUM: checksum=${(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.D)(data)}`);break;default:debug(`Ignore unsupported meta-sub-block-id functionId=0x${id.functionId.toString(16)}`)}remaining-=MetadataIdToken.len+(id.largeBlock?_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.N.len:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.b.len)+2*dataSizeInWords,debug(`remainingLength=${remaining}`),id.isOddSize&&_this3.tokenizer.ignore(1)}if(0!==remaining)throw new WavPackContentError("metadata-sub-block should fit it remaining length")})()}}}}]);