@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
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2379,3752],{"./libs/ui/src/lib/_external/mwork-basic-interpreter/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_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"),_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",...(0,file_Users_moja_projects_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:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"external-mwork-basic-interpreter",children:"External: Mwork Basic Interpreter"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<mwork-basic-interpreter>"})," is a Commodore 64 with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"complete BASIC V2 interpreter"})," as a\nframework-agnostic web component (Stencil, from the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"web-components"})," repo). It boots to an\nauthentic ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"READY."})," prompt on a real 40×25 PETSCII screen — click the screen and start typing."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The interpreter core is DOM-free TypeScript (tokenizer → parser → step-machine executor);\nthe component is a thin shell that renders the screen model, maps keyboard events to PETSCII\nand pumps the machine with a statement budget — even ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"10 GOTO 10"})," stays interruptible."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"try-it",children:"Try it"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Click the screen, then type — every statement works in direct mode, just like on real hardware:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"22rem"},children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What happens"})]}),(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:"PRINT 2+3*4"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Full expression engine with authentic precedence (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-2^2"})," = ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-4"}),")."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'10 FOR I=1 TO 5:PRINT "HI";I:NEXT'})," then ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Enter numbered lines to build a program; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LIST"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"NEW"})," manage it."]})]}),(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:"POKE 53280,0"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The border really turns black — VIC registers 53280/53281 are live."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'SAVE "DEMO"'})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD "DEMO"'})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD "$"'})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:['The "datasette" persists programs to localStorage; ',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD "$"'})," lists the directory."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"10 GOTO 10"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"}),", then Escape"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Escape (or the STOP button) is RUN/STOP: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"BREAK IN 10"}),", resume with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"CONT"}),"."]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"language-coverage-basic-v2",children:"Language coverage (BASIC V2)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"12rem"},children:"Area"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Supported"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Statements"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT"})," (with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:";"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:","})," zones, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TAB"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"SPC"}),"),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LET"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"INPUT"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"GET"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"IF..THEN"})," (incl. statement tails),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"GOTO"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"GOSUB"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RETURN"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ON..GOTO/GOSUB"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"FOR/TO/STEP/NEXT"})," (nested, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"NEXT A,B"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DIM"})," (multi-dimensional),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DATA/READ/RESTORE"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DEF FN"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"REM"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"STOP/CONT"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"END"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"CLR"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"NEW"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LIST"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"WAIT"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"POKE/PEEK"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"SYS/USR"})," (stubs),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LOAD/SAVE/VERIFY"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD"$"'})]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Functions"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ABS ASC ATN CHR$ COS EXP FRE INT LEFT$ LEN LOG MID$ PEEK POS RIGHT$ RND SGN SIN\nSPC SQR STR$ TAB TAN USR VAL"})," plus the system variables ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TI"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TI$"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ST"})]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Expressions"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Full precedence chain (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"OR < AND < NOT < relational < + - < * / <\nunary - < ^"}),"), string concatenation and comparison, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"AND/OR/NOT"})," as\n16-bit integer operations, relational results are ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-1"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Variables"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Typed by suffix (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"A"})," float, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"A%"})," int16, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"A$"})," string),\nonly the first two characters are significant (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"VALUE"})," ≡ ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"VA"}),"),\narrays with auto-",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DIM"}),", separate scalar/array namespaces"]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Errors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Authentic messages: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?SYNTAX ERROR IN 10"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?NEXT WITHOUT FOR"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?OUT OF DATA"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?REDO FROM START"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?ILLEGAL QUANTITY"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?TYPE MISMATCH"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?DEVICE NOT PRESENT"}),", …"]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Tokenizer"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["ROM-order keyword crunching without whitespace — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"FORI=1TO10"})," works, and\nvariable names cannot contain keywords (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TOTAL"})," crunches to\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TO TAL"}),"; that quirk is authentic), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?"})," is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT"})]})})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"screen--keyboard",children:"Screen & keyboard"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The 40×25 screen is a real memory model: screen RAM at 1024–2023 (authentic screen codes,\nso ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PEEK"})," works), color RAM at 55296+, border/background via\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"POKE 53280/53281"}),", PETSCII control codes (CLR/HOME, cursor moves, reverse video,\ncolors), scrolling and a blinking cursor. Non-PETSCII unicode printed by scripts renders as\nits own glyph while ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PEEK"})," stays sane. The pixel font is\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Pet Me 64"})," (Kreative Korp, license shipped alongside)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"16rem"},children:"Key"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"PETSCII meaning"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Enter / Backspace"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"RETURN / DEL"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Arrow keys, Home, Shift+Home"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Cursor moves, HOME, CLR"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Ctrl+1 … Ctrl+8"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Text colors (black, white, red, cyan, purple, green, blue, yellow)"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Ctrl+9 / Ctrl+0"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Reverse video on / off"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Escape"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"RUN/STOP (break a running program)"})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h5,{id:"global-hotkeys-of-the-host-page-the-typing-1-breaks-the-editor-problem",children:'Global hotkeys of the host page (the "typing 1 breaks the editor" problem)'}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The screen is a focusable ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"div"}),", not an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"<input>"}),". Host pages\nthat bind global keyboard shortcuts usually only exempt form fields — Storybook, for\nexample, checks ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"focusInInput()"})," (input/textarea/contenteditable) and otherwise\ntreats bare ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"2"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"3"})," as focus shortcuts (sidebar /\npreview / addons panel) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Escape"})," as a UI shortcut. Typing a BASIC line\nnumber like ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"10 PRINT"})," would yank the focus into the sidebar and every further\nkeystroke would land in the host UI — which feels like a crashed editor."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component solves this at the source: every key it handles is swallowed with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"preventDefault()"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"and"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"stopPropagation()"}),", so the\nevent never reaches the host page's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"window"}),"-level listeners. Unmapped keys\n(Tab, function keys) bubble as usual, so focus navigation and browser shortcuts keep\nworking. The toolbar buttons additionally hand the keyboard focus back to the screen after\na click, so you can keep typing right away."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"demo-programs-toolbar-buttons",children:"Demo programs (toolbar buttons)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"12rem"},children:"Demo"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What it shows"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Credits"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Simple PRINT sequence with CHR$(147) screen clear."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Pacman"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Fills all 1000 screen cells with dots via POKE, then eats them in a spiral from the\noutside in (GOSUB routine, TI-clock pacing), blinks at the last dot and vanishes."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Maze"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The classic one-liner ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT CHR$(205.5+RND(1));"})," — stop it with STOP."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Guess"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"INPUT-driven number guessing game — just start typing (the toolbar buttons hand keyboard focus back to the screen)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Cactus"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A small text adventure: cactus Carl searches for his butterfly friend Fridolin across\nfive rooms (commands: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"N S E W"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TAKE"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DIG"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"WATER"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LOOK"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"QUIT"}),"). Fetch the shovel from the\ndune, water from the oasis, loosen the meadow soil, then water the flowers — solvable\nin 8 turns. Shows string INPUT, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ON GOTO"})," room dispatch and GOSUB-based\nmovement."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Colors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Cycles the border through all 16 colors and prints reverse-video bars."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"properties-methods-events",children:"Properties, methods, events"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"16rem"},children:"API"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]}),(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:"print-delay"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Delay in ms after each PRINT statement (typewriter pacing, default 100)."})]}),(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:"load-delay"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Delay in ms between loading a script and its auto-RUN (default 3000)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"src"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"hot-reload"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"polling-interval-ms"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Load a .bas file from a URL, optionally polling it for changes (live hot reload)."})]}),(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:"show-toolbar"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Show the navigation sidebar right of the screen (default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),"): demo buttons\non top, STOP/EXIT pinned to the bottom. It is exactly as tall as the screen frame,\nscrolls vertically when space runs out, and is colored through the active\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"theme"})," palette (and follows ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"POKE 53280/53281"}),")."]})})]}),(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:"theme"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Monitor look: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"color"})," (default), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"green"})," (green phosphor) or\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"bw"})," (black-and-white tube). The monochrome palettes are derived from the\nluminance of the 16 hardware colors, so POKEd colors stay distinguishable."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"run()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"stop()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"loadProgram(text)"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"reset()"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Programmatic control from the embedding app."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"mworkBasicState"})," event"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Machine state changes: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"idle"})," | ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"running"})," | ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"stopped"}),"."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"exit"})," event"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Fired by the EXIT button — lets the embedding app close the C64."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"documented-simplifications",children:"Documented simplifications"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Line-input editing instead of the C64 full-screen editor; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LIST"})," echoes the stored\nsource text (no de-tokenization); device I/O (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"OPEN"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT#"}),"/…) raises\nauthentic errors; no SID sound."]}),"\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:"fast-pacing",children:"Fast pacing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Lower delays for quick experiments:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.FastPacing}),"\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:"without-toolbar",children:"Without toolbar"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["For embeddings that bring their own controls (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'show-toolbar="false"'})," — use the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"run()/stop()/loadProgram()"})," methods and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"exit"})," event instead):"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.WithoutToolbar}),"\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:"monitor-themes",children:"Monitor themes"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'theme="green"'})," — the classic green phosphor monitor:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.GreenMonitor}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'theme="bw"'})," — a black-and-white tube:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.BlackAndWhite})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BlackAndWhite:()=>BlackAndWhite,Default:()=>Default,FastPacing:()=>FastPacing,GreenMonitor:()=>GreenMonitor,WithoutToolbar:()=>WithoutToolbar,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),storybook_actions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/actions");(0,__webpack_require__("../web-components/loader/index.js").u)();const __WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Basic Interpreter",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],argTypes:{printDelay:{control:{type:"range",min:0,max:500,step:5},description:"Delay in ms after each PRINT statement (typewriter pacing)."},loadDelay:{control:{type:"range",min:0,max:1e4,step:100},description:"Delay in ms between loading a script and its auto-RUN."},showToolbar:{control:"boolean",description:"Show the toolbar with the demo/STOP/EXIT buttons."},theme:{control:"radio",options:["color","green","bw"],description:"Monitor look: 'color' (default), 'green' (phosphor) or 'bw' (b/w tube)."},exit:{control:!1,description:"Emitted by the EXIT button."},mworkBasicState:{control:!1,description:"Machine state: idle | running | stopped."}},args:{printDelay:100,loadDelay:3e3,showToolbar:!0,theme:"color"},render:args=>({props:{...args,exit:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("exit"),mworkBasicState:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkBasicState")},template:'\n <div class="flex justify-center p-4">\n <mwork-basic-interpreter\n [attr.print-delay]="printDelay"\n [attr.load-delay]="loadDelay"\n [attr.show-toolbar]="showToolbar"\n [attr.theme]="theme"\n (exit)="exit($event)"\n (mworkBasicState)="mworkBasicState($event)"\n ></mwork-basic-interpreter>\n </div>\n '})},Default={},FastPacing={args:{printDelay:10,loadDelay:500}},WithoutToolbar={args:{showToolbar:!1}},GreenMonitor={args:{theme:"green"}},BlackAndWhite={args:{theme:"bw"}},__namedExportsOrder=["Default","FastPacing","WithoutToolbar","GreenMonitor","BlackAndWhite"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},FastPacing.parameters={...FastPacing.parameters,docs:{...FastPacing.parameters?.docs,source:{originalSource:"{\n args: {\n printDelay: 10,\n loadDelay: 500\n }\n}",...FastPacing.parameters?.docs?.source}}},WithoutToolbar.parameters={...WithoutToolbar.parameters,docs:{...WithoutToolbar.parameters?.docs,source:{originalSource:"{\n args: {\n showToolbar: false\n }\n}",...WithoutToolbar.parameters?.docs?.source}}},GreenMonitor.parameters={...GreenMonitor.parameters,docs:{...GreenMonitor.parameters?.docs,source:{originalSource:"{\n args: {\n theme: 'green'\n }\n}",...GreenMonitor.parameters?.docs?.source}}},BlackAndWhite.parameters={...BlackAndWhite.parameters,docs:{...BlackAndWhite.parameters?.docs,source:{originalSource:"{\n args: {\n theme: 'bw'\n }\n}",...BlackAndWhite.parameters?.docs?.source}}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1365,3260],{"./libs/ui/src/lib/_external/mwork-music-player/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_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"),_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",...(0,file_Users_moja_projects_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:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"external-mwork-music-player",children:"External: Mwork Music Player"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<mwork-music-player>"})," is a minimal music player as a framework-agnostic web component\n(Stencil, from the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"web-components"})," repo, published as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@mojawork/web-components"}),"). It wraps\na native ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<audio>"})," element with playlist buttons, prev/next/play/pause controls and a\nmetadata section that fetches the active track and displays its ID3 tags — title, album,\nartist and embedded cover, plus the full format and generic tag tables (parsed with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"music-metadata"}),", the package's only runtime dependency)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The playlist is fully consumer-provided: the component ships without any built-in URLs.\nThe playlist below is a demo configured in this story."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"14rem"},children:"Property / attribute"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"10rem"},children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"8rem"},children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]}),(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:"tracks"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string[] | string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"[]"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The playlist. As a property a real string array; as an attribute a JSON array string\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'\'["a.mp3","b.mp3"]\''}),") or a comma/newline separated list of URLs."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"show-meta"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"showMeta"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Show the metadata section (cover and tag tables) below the controls."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"events",children:"Events"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"14rem"},children:"Event"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Payload"})]}),(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:"mworkTrackChange"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"{ index: number, url: string }"})," — fired whenever the active\ntrack changes, including the initial track."]})})]}),(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:"mworkMusicMeta"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Essential metadata after a successful parse: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"title"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"track"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"album"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"artist"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"image"})," (base64 data URL of the\ncover) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"url"}),"."]})})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"methods",children:"Methods"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"14rem"},children:"Method"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Effect"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"play()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"pause()"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Start or pause playback of the loaded track."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"prev()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"next()"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Move through the playlist (no-ops at the first/last track)."})]}),(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:"selectTrack(index)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Load and play the track at the given playlist index."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"variants",children:"Variants"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Without the metadata section (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'show-meta="false"'}),"):"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.WithoutMeta}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A single track hides the playlist buttons:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.SingleTrack}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"theming",children:"Theming"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The player is styled exclusively through its own ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-*"})," CSS custom\nproperties, each with a working default — it needs no surrounding design system and stays\nindependent of the ui library. Apps map their tokens onto them; this story maps the ui\ndesign tokens (theme-aware, so it follows light/dark):"]}),"\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:"mwork-music-player {\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.UiThemed}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Additional knobs: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-font-family"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-button-background"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-cover-size"}),"\n(default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"16rem"}),")."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"usage-in-an-app",children:"Usage in an app"}),"\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-bash",children:"npm i @mojawork/web-components\n"})}),"\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-ts",children:"// main.ts — registers all mwork components once\nimport { defineCustomElements } from '@mojawork/web-components/loader';\ndefineCustomElements();\n"})}),"\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:'<mwork-music-player\n tracks=\'["https://moja.work/one.mp3", "https://moja.work/two.mp3"]\'\n></mwork-music-player>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In Angular templates, bind the playlist as a property (requires\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"CUSTOM_ELEMENTS_SCHEMA"}),"): ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'[tracks]="trackUrls"'}),"."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,SingleTrack:()=>SingleTrack,UiThemed:()=>UiThemed,WithoutMeta:()=>WithoutMeta,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),storybook_actions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/actions");(0,__webpack_require__("../web-components/loader/index.js").u)();const DEMO_TRACKS=["https://moja.work/content/_assets/traks/mojawork-v1.mp3","https://moja.work/content/_assets/traks/mojawork-v2.mp3","https://moja.work/content/_assets/traks/mojawork-v3.mp3"],__WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Music Player",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],argTypes:{tracks:{control:"object",description:"Playlist as an array of track URLs (property binding); as attribute also a JSON array string or a comma/newline separated list."},showMeta:{control:"boolean",description:"Show the ID3/format metadata section below the controls."},mworkTrackChange:{control:!1,description:"Emitted when the active track changes: { index, url }."},mworkMusicMeta:{control:!1,description:"Emitted after a successful metadata parse: title, track, album, artist, cover image, url."}},args:{tracks:DEMO_TRACKS,showMeta:!0},render:args=>({props:{...args,mworkTrackChange:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkTrackChange"),mworkMusicMeta:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkMusicMeta")},template:'\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n '})},Default={},WithoutMeta={args:{showMeta:!1}},SingleTrack={args:{tracks:[DEMO_TRACKS[0]]}},UiThemed={render:args=>({props:{...args,mworkTrackChange:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkTrackChange"),mworkMusicMeta:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkMusicMeta")},template:'\n <style>\n .ui-themed-music-player {\n --mwork-player-font-family: inherit;\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n }\n </style>\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="ui-themed-music-player w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n '})},__namedExportsOrder=["Default","WithoutMeta","SingleTrack","UiThemed"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},WithoutMeta.parameters={...WithoutMeta.parameters,docs:{...WithoutMeta.parameters?.docs,source:{originalSource:"{\n args: {\n showMeta: false\n }\n}",...WithoutMeta.parameters?.docs?.source}}},SingleTrack.parameters={...SingleTrack.parameters,docs:{...SingleTrack.parameters?.docs,source:{originalSource:"{\n args: {\n tracks: [DEMO_TRACKS[0]]\n }\n}",...SingleTrack.parameters?.docs?.source}}},UiThemed.parameters={...UiThemed.parameters,docs:{...UiThemed.parameters?.docs,source:{originalSource:'{\n render: args => ({\n props: {\n ...args,\n mworkTrackChange: action(\'mworkTrackChange\'),\n mworkMusicMeta: action(\'mworkMusicMeta\')\n },\n template: `\n <style>\n .ui-themed-music-player {\n --mwork-player-font-family: inherit;\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n }\n </style>\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="ui-themed-music-player w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n `\n })\n}',...UiThemed.parameters?.docs?.source},description:{story:"Maps the ui design tokens onto the component's own `--mwork-player-*`\ncustom properties — the pattern every ui app uses to theme the player.",...UiThemed.parameters?.docs?.description}}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1322,2074],{"./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/atoms/_electrons/form-error-message/form-error-message.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>UiElectronFormErrorMessageComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var form_error_message_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.css?ngResource"),form_error_message_componentngResource_default=__webpack_require__.n(form_error_message_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiElectronFormErrorMessageComponent=class UiElectronFormErrorMessageComponent{errors=(0,core.input)({});variant=(0,core.input)("field");static propDecorators={errors:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"errors",required:!1,transform:void 0}]}],variant:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"variant",required:!1,transform:void 0}]}]}};UiElectronFormErrorMessageComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-form-error-message",template:"@if (errors()['required']) {\n <span\n >{{ 'form.errors.required' | transloco }}\n </span>\n}\n\n@if (errors()['minlength']) {\n <span>\n {{ 'form.errors.minlength' | transloco }}\n {{ errors()['minlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['maxlength']) {\n <span>\n {{ 'form.errors.maxlength' | transloco }}\n {{ errors()['maxlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['min']) {\n <span>\n {{ 'form.errors.min' | transloco }} {{ errors()['min']['min'] }}\n </span>\n}\n@if (errors()['max']) {\n <span>\n {{ 'form.errors.max' | transloco }} {{ errors()['max']['max'] }}\n </span>\n}\n@if (errors()['email']) {\n <span>{{\n 'form.errors.email' | transloco\n }}</span>\n}\n@if (errors()['numberNotValid']) {\n <span>{{\n 'form.errors.numberNotValid' | transloco\n }}</span>\n}\n@if (errors()['hexNotValid']) {\n <span>{{\n 'form.errors.hexNotValid' | transloco\n }}</span>\n}\n@if (errors()['urlInvalid']) {\n <span>{{\n 'form.errors.urlInvalid' | transloco\n }}</span>\n}\n@if (errors()['forbiddenName']) {\n <span>{{\n 'form.errors.forbiddenName' | transloco\n }}</span>\n}\n@if (errors()['uniqueName']) {\n <span>{{\n 'form.errors.uniqueName' | transloco\n }}</span>\n}\n@if (errors()['isbn']) {\n <span>{{\n 'form.errors.isbn' | transloco\n }}</span>\n}\n@if (errors()['integer']) {\n <span>{{\n 'form.errors.integer' | transloco\n }}</span>\n}\n\n@if (\n !errors()['required'] &&\n !errors()['minlength'] &&\n !errors()['maxlength'] &&\n !errors()['min'] &&\n !errors()['max'] &&\n !errors()['email'] &&\n !errors()['numberNotValid'] &&\n !errors()['hexNotValid'] &&\n !errors()['urlInvalid'] &&\n !errors()['forbiddenName'] &&\n !errors()['uniqueName'] &&\n !errors()['isbn'] &&\n !errors()['integer']\n ) {\n <span\n >\n {{ 'form.errors.unknown' | transloco }}\n </span>\n}\n",encapsulation:_debug_node_chunk.gXe.None,host:{"[class.floating]":"variant() === 'floating'"},imports:[ngneat_transloco.Kj],styles:[form_error_message_componentngResource_default()]})],UiElectronFormErrorMessageComponent)},"./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/src/lib/atoms/_electrons/form-error-message/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_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"),_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",...(0,file_Users_moja_projects_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:_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"electron-form-error-message",children:"Electron: Form Error Message"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["An internal building block (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-electron-form-error-message"}),") that renders\nlocalized validation error messages for form fields — one message per active\nkey of an Angular ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ValidationErrors"})," map (required, minlength, email, …,\nwith a fallback for unknown keys). It is not exported for app consumption;\nthe form components (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-input"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-checkbox"}),") embed it in their error\noverlays, coordinated by the shared ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiFormErrorOverlayService"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"args",children:"args"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Input"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"default"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"errors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"ValidationErrors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"{}"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"variant"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'field' | 'floating'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'field'"})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"variant-field",children:"Variant: field"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The default look for text-like fields: full field width, flush against the\nfield's bottom edge and deliberately open at the top — it reads as a seamless\ncontinuation of the input's red error border. Used by ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-input"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Field}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"variant-floating",children:"Variant: floating"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A self-contained box for compact controls: it only fits its text\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fit-content"}),"), carries a full border including the top edge, rounded with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-border-radius"}),", and hovers with a small gap below the control. Used by\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-checkbox"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Floating}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"positioning-contract",children:"Positioning contract"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The electron positions itself absolutely against its nearest relatively\npositioned ancestor — the embedding form component provides that context (in\nthe stories a placeholder box stands in for the field). Long error lists\nscroll inside the box (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"max-height: 12rem"}),"); multiple messages are divided by\nhairlines."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Field:()=>Field,Floating:()=>Floating,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),_form_error_message_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Forms/Electrons/Form Error Message",component:_form_error_message_component__WEBPACK_IMPORTED_MODULE_3__.d,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_1__.b,_form_error_message_component__WEBPACK_IMPORTED_MODULE_3__.d,_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_2__.o]})],argTypes:{variant:{control:"radio",options:["field","floating"],description:"Overlay look: 'field' continues the wrapped input's error border, 'floating' is a self-contained box for compact controls."},errors:{control:"object",description:"Angular ValidationErrors map; one message per active key."}},args:{variant:"field",errors:{required:!0}},parameters:{docs:{canvas:{sourceState:"none"}}},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col p-4 pb-72">\n <div class="relative h-10 w-96">\n <ui-electron-form-error-message\n [errors]="errors"\n [variant]="variant"\n ></ui-electron-form-error-message>\n </div>\n </section>\n '})},Field={args:{errors:{required:!0,minlength:{requiredLength:3}}}},Floating={args:{variant:"floating"}},__namedExportsOrder=["Field","Floating"];Field.parameters={...Field.parameters,docs:{...Field.parameters?.docs,source:{originalSource:"{\n args: {\n errors: {\n required: true,\n minlength: {\n requiredLength: 3\n }\n }\n }\n}",...Field.parameters?.docs?.source}}},Floating.parameters={...Floating.parameters,docs:{...Floating.parameters?.docs,source:{originalSource:"{\n args: {\n variant: 'floating'\n }\n}",...Floating.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()},"./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.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,"@layer ui.base, ui.components;\n@layer ui.components {\nui-electron-form-error-message {\n position: absolute;\n bottom: 0;\n left: 0;\n display: flex;\n flex-flow: column;\n /* Same width as the wrapped input (which is `100% - 0.25·spacer` wide) and\n flush against its bottom edge — reads as a continuation of the field's\n error border (aligned on both sides, no gap, no shadow). */\n width: calc(100% - var(--ui-spacer) * 0.25);\n transform: translateY(100%);\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-top: 0;\n border-radius: 0 0 var(--ui-border-radius) var(--ui-border-radius);\n padding: calc(var(--ui-spacer) * 0.25);\n max-height: 12rem;\n overflow-y: auto;\n z-index: 1;\n span {\n border-bottom: var(--ui-border-width) solid var(--ui-c-fourthly);\n padding-bottom: calc(var(--ui-spacer) * 0.25);\n margin-bottom: calc(var(--ui-spacer) * 0.25);\n\n &:last-of-type {\n border: 0;\n }\n\n &:only-of-type {\n padding-bottom: 0;\n margin-bottom: 0;\n }\n }\n\n /* Self-contained box below compact controls (checkbox): fits its text,\n carries its own full border (incl. top) and hovers with a small gap. */\n &.floating {\n width: fit-content;\n max-width: 100%;\n transform: translateY(calc(100% + var(--ui-spacer) * 0.15));\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-radius: var(--ui-border-radius);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2690,4814],{"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";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){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/src/lib/atoms/_electrons/loader/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_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"),_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,file_Users_moja_projects_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:_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"electron-loader",children:"Electron: Loader"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The turning thing itself (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-electron-loader"}),") — one of three animations, at\nwhatever size it is given, and nothing else. No overlay, no backdrop, no\nservice, no message, no state. It does not know why something is loading, and\nit is not exported for app consumption."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["It exists so the animation exists ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"once"}),". Two components show it and neither\ncarries a copy: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-spinner"})," builds it into the application's global\noverlay, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-inline-spinner"})," puts it in the flow of a page. Before the cut,\nthe keyframes, the conic gradients and the two radial masks lived in the\nglobal spinner's stylesheet; a second spinner would have meant a second copy,\nand two copies drift."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"size",children:"Size"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Geometry is a named hook, never a pinned value:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"variable"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"fallback"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"what it means"})]}),(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)(_components.code,{children:"--ui-spinner-size"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"26rem"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"diameter of the two discs, length of the bar"})]}),(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)(_components.code,{children:"--ui-spinner-stroke"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2rem"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2.4rem"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"0.6rem"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"how thickly the line is drawn — the ring's annulus, the disco ring, the\nbar's height. Three fallbacks because the three visuals were drawn at\nthree weights before the hook existed, and the global spinner had to\nkeep looking exactly as it did."})})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The box takes no size of its own: each variant brings its own shape and the\nhost shrink-wraps whichever one it holds. Sizing the host instead would need a\nrule that asks which variant is inside — a question the box should not have to\nask."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"args",children:"args"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Input"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"description"})]}),(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)(_components.code,{children:"type"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'ring' | 'linear' | 'disco'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'ring'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Which of the three visuals is drawn."})]})]}),"\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:"default",children:"Default"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Default}),"\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:"the-three-visuals",children:"The three visuals"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Types}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"accessibility",children:"Accessibility"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Everything it draws is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-hidden"}),". It is decoration: whatever is loading\nsays so in words elsewhere, and a screen reader has nothing to gain from a\nspinning gradient. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-inline-spinner"})," carries the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'role="status"'})," and the\nlabel above it."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/atoms/_electrons/loader/loader.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Types:()=>Types,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_loader_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Atoms/Electrons/Loader",component:_loader_component__WEBPACK_IMPORTED_MODULE_1__.p,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_loader_component__WEBPACK_IMPORTED_MODULE_1__.p]})],argTypes:{type:{control:"inline-radio",options:["ring","linear","disco"],description:"Which of the three visuals is drawn."}}},Default={args:{type:"ring"},render:args=>({props:{...args},template:'<ui-electron-loader [type]="type" />'})},Types={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div\n class="flex flex-wrap items-center gap-16"\n style="--ui-spinner-size: 6rem; --ui-spinner-stroke: 0.6rem"\n >\n <ui-electron-loader type="ring" />\n <ui-electron-loader type="disco" />\n <ui-electron-loader type="linear" />\n </div>\n '})},__namedExportsOrder=["Default","Types"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n type: 'ring'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `<ui-electron-loader [type]=\"type\" />`\n })\n}",...Default.parameters?.docs?.source},description:{story:"The animation on its own, at the size the global spinner draws it — the\nfallback that applies when nothing sets `--ui-spinner-size`.",...Default.parameters?.docs?.description}}},Types.parameters={...Types.parameters,docs:{...Types.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div\n class="flex flex-wrap items-center gap-16"\n style="--ui-spinner-size: 6rem; --ui-spinner-stroke: 0.6rem"\n >\n <ui-electron-loader type="ring" />\n <ui-electron-loader type="disco" />\n <ui-electron-loader type="linear" />\n </div>\n `\n })\n}',...Types.parameters?.docs?.source},description:{story:"The three visuals, sized down so they fit side by side. Two discs and a\nbar — all three read the same two variables.",...Types.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.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,"@layer ui.base, ui.components;\n@layer ui.components {\n @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2006,4855],{"./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/atoms/background/background.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>uiBackgroundData});const uiBackgroundData=["none","carbon","cube","chess","dot","dot-repeat","heart","heart-repeat","sun","star"]},"./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/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>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_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"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(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)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/atoms/background/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_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"),_background_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/background/background.component.stories.ts"),_background_types__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/atoms/background/background.types.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_background_json__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./libs/ui/guide/ui-background.json");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_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:_background_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"background",children:"Background"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable and customizable background component for Angular."}),"\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-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Paints a decorative pattern — chess, dots, hearts, stars, carbon and the like —\nbehind whatever is projected into it, tinted through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-background-color"}),".\nIt is scenery with a content slot: it has no size of its own beyond what the\nhost and the projected content give it, it takes no clicks, and it does not\narrange what lies in front of it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_6__.Ay,{of:"ui-background",entry:_guide_ui_background_json__WEBPACK_IMPORTED_MODULE_7__}),"\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:"overview",children:"Overview"}),"\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:"UiBackgroundComponent"})," provides a variety of background patterns and allows for custom background colors. It is designed to be easily integrated as a decorative element in any UI layout."]}),"\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:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the background:"}),"\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:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"background"}),": (Input) The type of background pattern to display. See ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiBackgroundType"})," for available options (e.g., 'chess', 'dot', 'star')."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-variables",children:"CSS variables"}),"\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:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-background-color"}),": the fill of the pattern layer. Any CSS color or\ntoken (e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"#ff0000"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"rgba(0,0,0,0.5)"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-primary)"}),"). Unset,\neach pattern keeps its own token default. The story below binds it so the\ncolour you see is the example."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["What that fill ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"is"})," differs by pattern, and the difference is visible:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"dot"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"dot-repeat"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"heart"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"heart-repeat"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"sun"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"star"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"carbon"})," are\na coloured surface cut to shape by a mask, so the tint colours ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"the shapes\nthemselves"}),". ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"chess"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cube"})," draw their figure with gradients on top of\nthat surface, so the tint colours ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"the ground behind the figure"})," while the\nfigure keeps its own tokens. A tint that recoloured both would leave those\ntwo as a single flat rectangle."]}),"\n"]}),"\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:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"In this example, you can interactively change the background pattern and the background color."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_background_component_stories__WEBPACK_IMPORTED_MODULE_4__.Background}),"\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.em,{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:'<ui-background [background]="\'chess\'" style="--ui-background-color: #cfcfff"></ui-background>\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:"pattern-overview",children:"Pattern Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This overview shows all available background patterns."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/atoms-background--background",children:"Open Story"})}),"\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:"component-details",children:"Component Details"}),"\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:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-background"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"})]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component uses ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"}),", which means its styles are applied globally and can affect elements outside the component's scope if not properly scoped."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"types",children:"Types"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"uibackgroundtype",children:"UiBackgroundType"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available patterns, read from the exported ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiBackgroundData"})," list — this\nline cannot fall behind the code because it is the code:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:_background_types__WEBPACK_IMPORTED_MODULE_5__.F.map(type=>`'${type}'`).join(" | ")}),"\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:"sizing",children:"Sizing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The host fills its container (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"100%"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"100%"}),") by default. Give it a fixed size\nwithout a cascade fight through the named hooks ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-background-width"})," and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-background-height"}),":"]}),"\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:'<ui-background style="--ui-background-width: 20rem; --ui-background-height: 20rem"></ui-background>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/atoms/background/background.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Background:()=>Background,BackgroundExample:()=>BackgroundExample,__namedExportsOrder:()=>__namedExportsOrder,default:()=>background_component_stories});var _common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),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 background_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/background/background.component.css?ngResource"),background_componentngResource_default=__webpack_require__.n(background_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiBackgroundComponent=class UiBackgroundComponent{background=(0,core.input)(null);static propDecorators={background:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"background",required:!1,transform:void 0}]}]}};UiBackgroundComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-background",template:'<div class="_pattern" [class]="background()"></div>\n<div class="_content"><ng-content></ng-content></div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[background_componentngResource_default()]})],UiBackgroundComponent);var background_types=__webpack_require__("./libs/ui/src/lib/atoms/background/background.types.ts");const background_component_stories={title:"Atoms/Background",component:UiBackgroundComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,_common_module_chunk.MD,UiBackgroundComponent]})],argTypes:{background:{control:"select",options:background_types.F},color:{control:"color"},backgrounds:{table:{disable:!0},control:!1}},args:{background:"chess",color:"#cfcfff",backgrounds:background_types.F},parameters:{docs:{canvas:{sourceState:"none"}}}},Background={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <h3>{{background}}</h3>\n <div class="flex h-80 w-80 border border-[var(--ui-c-default)]">\n <ui-background [style.--ui-background-color]="color" [background]="background">\n </ui-background>\n </div>\n </section>\n '})},BackgroundExample={parameters:{controls:{disable:!0}},render:args=>({props:{...args,backgrounds:background_types.F},template:'\n <ui-intern-header display onTop theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="flex flex-row flex-wrap items-center [&>*]:mr-8 [&>*]:mb-8">\n @for (value of backgrounds; track value) {\n <div>\n <h3> {{value}}</h3>\n <div class="flex h-80 w-80 border border-[var(--ui-c-default)]">\n <ui-background [background]="value" class="min-h-40"></ui-background>\n </div>\n </div>\n }\n </div>\n </section>\n '})},__namedExportsOrder=["Background","BackgroundExample"];Background.parameters={...Background.parameters,docs:{...Background.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <h3>{{background}}</h3>\n <div class="flex h-80 w-80 border border-[var(--ui-c-default)]">\n <ui-background [style.--ui-background-color]="color" [background]="background">\n </ui-background>\n </div>\n </section>\n `\n };\n }\n}',...Background.parameters?.docs?.source}}},BackgroundExample.parameters={...BackgroundExample.parameters,docs:{...BackgroundExample.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n backgrounds: uiBackgroundData\n },\n template: `\n <ui-intern-header display onTop theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="flex flex-row flex-wrap items-center [&>*]:mr-8 [&>*]:mb-8">\n @for (value of backgrounds; track value) {\n <div>\n <h3> {{value}}</h3>\n <div class="flex h-80 w-80 border border-[var(--ui-c-default)]">\n <ui-background [background]="value" class="min-h-40"></ui-background>\n </div>\n </div>\n }\n </div>\n </section>\n `\n };\n }\n}',...BackgroundExample.parameters?.docs?.source},description:{story:"The full set at a glance. Every tile is bound from the pattern list, not\nfrom the args, so the Controls panel is removed here entirely rather than\nleft standing with dashes in it. Storybook is read by people who do not\nwrite Angular, and a row that offers a setting and then does nothing reads\nas a broken page, not as a disabled control. The interactive one is the\nstory above.",...BackgroundExample.parameters?.docs?.description}}}},"./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()},"./libs/ui/src/lib/atoms/background/background.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,"@layer ui.base, ui.components;\n@layer ui.components {\nui-background {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n position: relative;\n display: flex;\n /* Fills its container by default; the named hooks let a consumer set a fixed\n size without a cascade fight (tickets#241, tickets#251). */\n width: var(--ui-background-width, 100%);\n height: var(--ui-background-height, 100%);\n justify-content: center;\n align-items: center;\n overflow: hidden;\n\n /* Both children fill the host and lie on top of each other. Only the LOWER\n one carries the pattern and its tint; the upper one holds the projected\n content and must stay see-through, or it paints over the pattern it is\n supposed to sit on. That is why the tint is bound here and not on `> div`\n — a shared rule made the content layer opaque and hid every pattern\n (tickets#183). */\n > div {\n position: absolute;\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n > ._content {\n background-color: transparent;\n }\n\n > ._pattern {\n background-color: var(--ui-background-color, transparent);\n\n &._-animate {\n transition: 1.25s;\n }\n\n &.cube {\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n background-image:\n linear-gradient(\n 30deg,\n var(--ui-c-primary) 12%,\n transparent 12.5%,\n transparent 87%,\n var(--ui-c-primary) 87.5%,\n var(--ui-c-primary)\n ),\n linear-gradient(\n 150deg,\n var(--ui-c-primary) 12%,\n transparent 12.5%,\n transparent 87%,\n var(--ui-c-primary) 87.5%,\n var(--ui-c-primary)\n ),\n linear-gradient(\n 30deg,\n var(--ui-c-primary) 12%,\n transparent 12.5%,\n transparent 87%,\n var(--ui-c-primary) 87.5%,\n var(--ui-c-primary)\n ),\n linear-gradient(\n 150deg,\n var(--ui-c-primary) 12%,\n transparent 12.5%,\n transparent 87%,\n var(--ui-c-primary) 87.5%,\n var(--ui-c-primary)\n ),\n linear-gradient(\n 60deg,\n var(--ui-c-background) 25%,\n transparent 25.5%,\n transparent 75%,\n var(--ui-c-background) 75%,\n var(--ui-c-background)\n ),\n linear-gradient(\n 60deg,\n var(--ui-c-background) 25%,\n transparent 25.5%,\n transparent 75%,\n var(--ui-c-background) 75%,\n var(--ui-c-background)\n );\n background-size: 8rem 14rem;\n background-position:\n 0 0,\n 0 0,\n 4rem 7rem,\n 4rem 7rem,\n 0 0,\n 4rem 7rem;\n }\n\n &.chess {\n background-color: var(--ui-background-color, var(--ui-c-background));\n background-size: 4rem 4rem;\n background-position:\n 0 0,\n 2rem 2rem;\n background-image:\n linear-gradient(\n 45deg,\n var(--ui-c-primary) 25%,\n transparent 25%,\n transparent 75%,\n var(--ui-c-primary) 75%,\n var(--ui-c-primary)\n ),\n linear-gradient(\n 45deg,\n var(--ui-c-primary) 25%,\n transparent 25%,\n transparent 75%,\n var(--ui-c-primary) 75%,\n var(--ui-c-primary)\n );\n }\n\n &.dot {\n -webkit-mask-size: cover;\n mask-size: cover;\n -webkit-mask-position: center center;\n mask-position: center center;\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTc1Ljk3MSA1Ny4yMDNhMjAgMjAgMCAwIDAtMi4zOTguMjg2bC0uMDIuMDA0YTIwIDIwIDAgMCAwLTE2LjExIDIzLjI0NEEyMCAyMCAwIDAgMCA4MC42ODUgOTYuODVhMjAgMjAgMCAwIDAgMTYuMTIxLTIzLjIzNCAyMCAyMCAwIDAgMC0yMC44MzQtMTYuNDEzem0uODMgNC45NzFhMTUgMTUgMCAwIDEgMTUuMDg0IDEyLjMzQTE1IDE1IDAgMCAxIDc5Ljc5MyA5MS45M2ExNSAxNSAwIDAgMS0xNy40My0xMi4wODYgMTUgMTUgMCAwIDEgMTIuMDgzLTE3LjQzM2wuMDE1LS4wMDJhMTUgMTUgMCAwIDEgMi4zNC0uMjM1em0tLjAzNSA1LjAwMmExMCAxMCAwIDAgMC0xLjQxOC4xNTJsLS4wMS4wMDJhMTAgMTAgMCAwIDAtOC4wNTQgMTEuNjIzIDEwIDEwIDAgMCAwIDExLjYyIDguMDU3IDEwIDEwIDAgMCAwIDguMDYtMTEuNjE3IDEwIDEwIDAgMCAwLTEwLjE5OC04LjIxN3oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6MS4zNTAzMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM3LjEyNCAtMzcuMTcpIi8+PC9zdmc+');\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTc1Ljk3MSA1Ny4yMDNhMjAgMjAgMCAwIDAtMi4zOTguMjg2bC0uMDIuMDA0YTIwIDIwIDAgMCAwLTE2LjExIDIzLjI0NEEyMCAyMCAwIDAgMCA4MC42ODUgOTYuODVhMjAgMjAgMCAwIDAgMTYuMTIxLTIzLjIzNCAyMCAyMCAwIDAgMC0yMC44MzQtMTYuNDEzem0uODMgNC45NzFhMTUgMTUgMCAwIDEgMTUuMDg0IDEyLjMzQTE1IDE1IDAgMCAxIDc5Ljc5MyA5MS45M2ExNSAxNSAwIDAgMS0xNy40My0xMi4wODYgMTUgMTUgMCAwIDEgMTIuMDgzLTE3LjQzM2wuMDE1LS4wMDJhMTUgMTUgMCAwIDEgMi4zNC0uMjM1em0tLjAzNSA1LjAwMmExMCAxMCAwIDAgMC0xLjQxOC4xNTJsLS4wMS4wMDJhMTAgMTAgMCAwIDAtOC4wNTQgMTEuNjIzIDEwIDEwIDAgMCAwIDExLjYyIDguMDU3IDEwIDEwIDAgMCAwIDguMDYtMTEuNjE3IDEwIDEwIDAgMCAwLTEwLjE5OC04LjIxN3oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6MS4zNTAzMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM3LjEyNCAtMzcuMTcpIi8+PC9zdmc+');\n }\n\n &.dot-repeat {\n -webkit-mask-size: cover;\n mask-size: cover;\n -webkit-mask-position: center center;\n mask-position: center center;\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTc1Ljk3MSA1Ny4yMDNhMjAgMjAgMCAwIDAtMi4zOTguMjg2bC0uMDIuMDA0YTIwIDIwIDAgMCAwLTE2LjExIDIzLjI0NEEyMCAyMCAwIDAgMCA4MC42ODUgOTYuODVhMjAgMjAgMCAwIDAgMTYuMTIxLTIzLjIzNCAyMCAyMCAwIDAgMC0yMC44MzQtMTYuNDEzem0uODMgNC45NzFhMTUgMTUgMCAwIDEgMTUuMDg0IDEyLjMzQTE1IDE1IDAgMCAxIDc5Ljc5MyA5MS45M2ExNSAxNSAwIDAgMS0xNy40My0xMi4wODYgMTUgMTUgMCAwIDEgMTIuMDgzLTE3LjQzM2wuMDE1LS4wMDJhMTUgMTUgMCAwIDEgMi4zNC0uMjM1em0tLjAzNSA1LjAwMmExMCAxMCAwIDAgMC0xLjQxOC4xNTJsLS4wMS4wMDJhMTAgMTAgMCAwIDAtOC4wNTQgMTEuNjIzIDEwIDEwIDAgMCAwIDExLjYyIDguMDU3IDEwIDEwIDAgMCAwIDguMDYtMTEuNjE3IDEwIDEwIDAgMCAwLTEwLjE5OC04LjIxN3oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6MS4zNTAzMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM3LjEyNCAtMzcuMTcpIi8+PC9zdmc+');\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTc1Ljk3MSA1Ny4yMDNhMjAgMjAgMCAwIDAtMi4zOTguMjg2bC0uMDIuMDA0YTIwIDIwIDAgMCAwLTE2LjExIDIzLjI0NEEyMCAyMCAwIDAgMCA4MC42ODUgOTYuODVhMjAgMjAgMCAwIDAgMTYuMTIxLTIzLjIzNCAyMCAyMCAwIDAgMC0yMC44MzQtMTYuNDEzem0uODMgNC45NzFhMTUgMTUgMCAwIDEgMTUuMDg0IDEyLjMzQTE1IDE1IDAgMCAxIDc5Ljc5MyA5MS45M2ExNSAxNSAwIDAgMS0xNy40My0xMi4wODYgMTUgMTUgMCAwIDEgMTIuMDgzLTE3LjQzM2wuMDE1LS4wMDJhMTUgMTUgMCAwIDEgMi4zNC0uMjM1em0tLjAzNSA1LjAwMmExMCAxMCAwIDAgMC0xLjQxOC4xNTJsLS4wMS4wMDJhMTAgMTAgMCAwIDAtOC4wNTQgMTEuNjIzIDEwIDEwIDAgMCAwIDExLjYyIDguMDU3IDEwIDEwIDAgMCAwIDguMDYtMTEuNjE3IDEwIDEwIDAgMCAwLTEwLjE5OC04LjIxN3oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6MS4zNTAzMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM3LjEyNCAtMzcuMTcpIi8+PC9zdmc+');\n -webkit-mask-size: 2.2rem, 2.2rem;\n mask-size: 2.2rem, 2.2rem;\n }\n\n &.heart {\n -webkit-mask-size: cover;\n mask-size: cover;\n -webkit-mask-position: center center;\n mask-position: center center;\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDIxLjE2NyAyMS4xNjciPjxwYXRoIGQ9Ik03LjIxNyAzLjU2NWMtMi41OTctLjAxNi00LjIwOSAyLjE2LTQuMjEgNC43OTcgMCAzLjY2NyA0LjY1MyA4LjAxNyA3LjQxIDkuMjRoLjAzNWMyLjc1Ny0xLjIyMyA3LjQxLTUuNTczIDcuNDA5LTkuMjQgMC0yLjYzNi0xLjYxMi00LjgxMy00LjIxLTQuNzk3LTEuMjgzLjAwOC0yLjM5OC42NjMtMy4yMTYgMS4xNzEtLjgyLS41MDgtMS45MzQtMS4xNjMtMy4yMTgtMS4xN1oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6LjI2NDU4MyIvPjwvc3ZnPg==');\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDIxLjE2NyAyMS4xNjciPjxwYXRoIGQ9Ik03LjIxNyAzLjU2NWMtMi41OTctLjAxNi00LjIwOSAyLjE2LTQuMjEgNC43OTcgMCAzLjY2NyA0LjY1MyA4LjAxNyA3LjQxIDkuMjRoLjAzNWMyLjc1Ny0xLjIyMyA3LjQxLTUuNTczIDcuNDA5LTkuMjQgMC0yLjYzNi0xLjYxMi00LjgxMy00LjIxLTQuNzk3LTEuMjgzLjAwOC0yLjM5OC42NjMtMy4yMTYgMS4xNzEtLjgyLS41MDgtMS45MzQtMS4xNjMtMy4yMTgtMS4xN1oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6LjI2NDU4MyIvPjwvc3ZnPg==');\n }\n\n &.heart-repeat {\n -webkit-mask-size: cover;\n mask-size: cover;\n -webkit-mask-position: center center;\n mask-position: center center;\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDIxLjE2NyAyMS4xNjciPjxwYXRoIGQ9Ik03LjIxNyAzLjU2NWMtMi41OTctLjAxNi00LjIwOSAyLjE2LTQuMjEgNC43OTcgMCAzLjY2NyA0LjY1MyA4LjAxNyA3LjQxIDkuMjRoLjAzNWMyLjc1Ny0xLjIyMyA3LjQxLTUuNTczIDcuNDA5LTkuMjQgMC0yLjYzNi0xLjYxMi00LjgxMy00LjIxLTQuNzk3LTEuMjgzLjAwOC0yLjM5OC42NjMtMy4yMTYgMS4xNzEtLjgyLS41MDgtMS45MzQtMS4xNjMtMy4yMTgtMS4xN1oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6LjI2NDU4MyIvPjwvc3ZnPg==');\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDIxLjE2NyAyMS4xNjciPjxwYXRoIGQ9Ik03LjIxNyAzLjU2NWMtMi41OTctLjAxNi00LjIwOSAyLjE2LTQuMjEgNC43OTcgMCAzLjY2NyA0LjY1MyA4LjAxNyA3LjQxIDkuMjRoLjAzNWMyLjc1Ny0xLjIyMyA3LjQxLTUuNTczIDcuNDA5LTkuMjQgMC0yLjYzNi0xLjYxMi00LjgxMy00LjIxLTQuNzk3LTEuMjgzLjAwOC0yLjM5OC42NjMtMy4yMTYgMS4xNzEtLjgyLS41MDgtMS45MzQtMS4xNjMtMy4yMTgtMS4xN1oiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6LjI2NDU4MyIvPjwvc3ZnPg==');\n -webkit-mask-size: 2.2rem, 2.2rem;\n mask-size: 2.2rem, 2.2rem;\n }\n\n &.sun {\n -webkit-mask-size: cover;\n mask-size: cover;\n -webkit-mask-position: center center;\n mask-position: center center;\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTM3LjEyNCAzNy4xN3YzLjg1bDM3LjgwMiAzNC4zM2EyLjg3NiAyLjgzIDAgMCAwLS40MS42MzlMMzcuMTI0IDU5LjEzN3Y2LjIyN0w3NC4zOCA3Ni4zMzZhMi44NzYgMi44MyAwIDAgMC0uMTI1LjczbC0zNy4xMzItMi4xNnY0Ljk0OGwzNy4xNC0yLjQzNGEyLjg3NiAyLjgzIDAgMCAwIC4wMy4yNTQgMi44NzYgMi44MyAwIDAgMCAuMTgzLjU4NkwzNy4xMjQgOTEuODgxdjkuNzQ0bDM3LjYxNS0yMi44NzlhMi44NzYgMi44MyAwIDAgMCAuMjcxLjM0bC0zNy44ODYgMzQuMjQ4djMuODM2SDQ4LjQ0bDI3LjAxNy0zNy43YTIuODc2IDIuODMgMCAwIDAgMS4wNzUuNDY0bC01LjU4NiAzNy4yMzZoMTIuMjAzbC01Ljc4NS0zNy4xODVhMi44NzYgMi44MyAwIDAgMCAuMjcxLS4wMyAyLjg3NiAyLjgzIDAgMCAwIDEuMzE5LS42MDNsMzQuOSAzNy44MThoMy4yN1Y5Ni41M0w3OS42NTcgNzguNTFhMi44NzYgMi44MyAwIDAgMCAuMzA4LS45MWwzNy4xNTkgNC41MVY2Ny43MDVsLTM3LjIwOCA4LjgyYTIuODc2IDIuODMgMCAwIDAtLjE5Ny0uNTY2bDM3LjQwNS0xNy41MDZ2LTkuNDA2TDc5LjQ1IDc1LjUxMmEyLjg3NiAyLjgzIDAgMCAwLS4yNTItLjI5N2wzNy45MjYtMzMuNzE5VjM3LjE3SDEwNi40OEw3OC43MjUgNzQuODI4YTIuODc2IDIuODMgMCAwIDAtLjM2LS4yMDNMOTYuNjYyIDM3LjE3aC02LjYxOEw3Ny45OTMgNzQuNDhhMi44NzYgMi44MyAwIDAgMC0uNDcxLS4xMDhsNC4wMDQtMzcuMmgtNy45MWwzLjM5NiAzNy4xNzFhMi44NzYgMi44MyAwIDAgMC0uMzk4LjA0M2gtLjAwNGEyLjg3NiAyLjgzIDAgMCAwLS4xNTguMDQxTDY1Ljg4MyAzNy4xN2gtOS45ODhsMjAuMDUgMzcuNDI2YTIuODc2IDIuODMgMCAwIDAtLjc4NC41MDZMNDIuNDI2IDM3LjE3aC01LjMwMnoiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6LjI2NDU4MyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM3LjEyNCAtMzcuMTcpIi8+PC9zdmc+');\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTM3LjEyNCAzNy4xN3YzLjg1bDM3LjgwMiAzNC4zM2EyLjg3NiAyLjgzIDAgMCAwLS40MS42MzlMMzcuMTI0IDU5LjEzN3Y2LjIyN0w3NC4zOCA3Ni4zMzZhMi44NzYgMi44MyAwIDAgMC0uMTI1LjczbC0zNy4xMzItMi4xNnY0Ljk0OGwzNy4xNC0yLjQzNGEyLjg3NiAyLjgzIDAgMCAwIC4wMy4yNTQgMi44NzYgMi44MyAwIDAgMCAuMTgzLjU4NkwzNy4xMjQgOTEuODgxdjkuNzQ0bDM3LjYxNS0yMi44NzlhMi44NzYgMi44MyAwIDAgMCAuMjcxLjM0bC0zNy44ODYgMzQuMjQ4djMuODM2SDQ4LjQ0bDI3LjAxNy0zNy43YTIuODc2IDIuODMgMCAwIDAgMS4wNzUuNDY0bC01LjU4NiAzNy4yMzZoMTIuMjAzbC01Ljc4NS0zNy4xODVhMi44NzYgMi44MyAwIDAgMCAuMjcxLS4wMyAyLjg3NiAyLjgzIDAgMCAwIDEuMzE5LS42MDNsMzQuOSAzNy44MThoMy4yN1Y5Ni41M0w3OS42NTcgNzguNTFhMi44NzYgMi44MyAwIDAgMCAuMzA4LS45MWwzNy4xNTkgNC41MVY2Ny43MDVsLTM3LjIwOCA4LjgyYTIuODc2IDIuODMgMCAwIDAtLjE5Ny0uNTY2bDM3LjQwNS0xNy41MDZ2LTkuNDA2TDc5LjQ1IDc1LjUxMmEyLjg3NiAyLjgzIDAgMCAwLS4yNTItLjI5N2wzNy45MjYtMzMuNzE5VjM3LjE3SDEwNi40OEw3OC43MjUgNzQuODI4YTIuODc2IDIuODMgMCAwIDAtLjM2LS4yMDNMOTYuNjYyIDM3LjE3aC02LjYxOEw3Ny45OTMgNzQuNDhhMi44NzYgMi44MyAwIDAgMC0uNDcxLS4xMDhsNC4wMDQtMzcuMmgtNy45MWwzLjM5NiAzNy4xNzFhMi44NzYgMi44MyAwIDAgMC0uMzk4LjA0M2gtLjAwNGEyLjg3NiAyLjgzIDAgMCAwLS4xNTguMDQxTDY1Ljg4MyAzNy4xN2gtOS45ODhsMjAuMDUgMzcuNDI2YTIuODc2IDIuODMgMCAwIDAtLjc4NC41MDZMNDIuNDI2IDM3LjE3aC01LjMwMnoiIHN0eWxlPSJmaWxsOnJlZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2Utd2lkdGg6LjI2NDU4MyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM3LjEyNCAtMzcuMTcpIi8+PC9zdmc+');\n }\n\n &.star {\n -webkit-mask-size: cover;\n mask-size: cover;\n -webkit-mask-position: center center;\n mask-position: center center;\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTguODg4LTIxLjU5NSAzLjE5NS0yLjI5IDEzLjgzOS44MzhsOC4zNTEtNi4xMjItMTMuMzAyLTE2LjMxem0zNi40ODcgMTYuNzItMTkuOTYuNTQ2Ljc3IDExLjE0IDguMDE2IDUuNjUyTDQ1LjM3NS00Ljg3NXpNMS4xNi4zOThsLTE5LjQ0OSA3LjU0IDE3LjA0MSAxMS42ODUgNi4wNjgtOS4yNzhMMS4xNi4zOTh6bTMzLjA4NCAxNi4yOTEtOS40NSAzLjMxNi0yLjg5IDEwLjAwOCAxOC44NDUgNC45OC02LjUwNS0xOC4zMDR6bS0yMi42NTEgNS41MDJMLjI0IDIyLjExNWwxLjE2MiAyMC43OTdMMTguMDUgMzAuMTExbC02LjQ1Ny03LjkyeiIgc3R5bGU9ImZpbGw6cmVkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS13aWR0aDouNDcyNDU2Oy1pbmtzY2FwZS1zdHJva2U6bm9uZTtzdG9wLWNvbG9yOiMwMDAiIHRyYW5zZm9ybT0icm90YXRlKC03LjQwMyAyNDUuNjE4IC0xODYuNjQ1KSIvPjwvc3ZnPg==');\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBhdGggZD0iTTguODg4LTIxLjU5NSAzLjE5NS0yLjI5IDEzLjgzOS44MzhsOC4zNTEtNi4xMjItMTMuMzAyLTE2LjMxem0zNi40ODcgMTYuNzItMTkuOTYuNTQ2Ljc3IDExLjE0IDguMDE2IDUuNjUyTDQ1LjM3NS00Ljg3NXpNMS4xNi4zOThsLTE5LjQ0OSA3LjU0IDE3LjA0MSAxMS42ODUgNi4wNjgtOS4yNzhMMS4xNi4zOTh6bTMzLjA4NCAxNi4yOTEtOS40NSAzLjMxNi0yLjg5IDEwLjAwOCAxOC44NDUgNC45OC02LjUwNS0xOC4zMDR6bS0yMi42NTEgNS41MDJMLjI0IDIyLjExNWwxLjE2MiAyMC43OTdMMTguMDUgMzAuMTExbC02LjQ1Ny03LjkyeiIgc3R5bGU9ImZpbGw6cmVkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS13aWR0aDouNDcyNDU2Oy1pbmtzY2FwZS1zdHJva2U6bm9uZTtzdG9wLWNvbG9yOiMwMDAiIHRyYW5zZm9ybT0icm90YXRlKC03LjQwMyAyNDUuNjE4IC0xODYuNjQ1KSIvPjwvc3ZnPg==');\n }\n &.carbon {\n -webkit-mask-size: cover;\n mask-size: cover;\n -webkit-mask-position: center center;\n mask-position: center center;\n background-color: var(--ui-background-color, var(--ui-c-secondary));\n -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NCIgaGVpZ2h0PSI0NCI+PHBhdGggZD0ibTM5LjEyMyAzNy4xNyA5Ljk5OSAxMGgyMGwxMC4wMDEtMTB6bS0yIDF2MTkuOTk4bDEwLTkuOTk4LTkuOTk4LTEwem00NCAuMDAyLTEwIDkuOTk4IDkuOTk5IDEwaC4wMDJ6TTQ5LjEyNSA0OS4xN2wtMTAuMDAyIDEwIDkuOTk5IDEwaDIwbDEwLjAwMS0xMC05Ljk5OC0xMHptLTEyLjAwMiAxMXYxOS45OThsMTAtOS45OTgtOS45OTgtMTB6bTQ0IC4wMDItMTAgOS45OTggOS45OTkgMTBoLjAwMnpNNDkuMTI1IDcxLjE3bC0xMC4wMDIgMTBoNDBsLTkuOTk4LTEweiIgc3R5bGU9ImZpbGw6cmVkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS13aWR0aDouMTc5NzY4Oy1pbmtzY2FwZS1zdHJva2U6bm9uZTtzdG9wLWNvbG9yOiMwMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zNy4xMjQgLTM3LjE3KSIvPjwvc3ZnPg==');\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NCIgaGVpZ2h0PSI0NCI+PHBhdGggZD0ibTM5LjEyMyAzNy4xNyA5Ljk5OSAxMGgyMGwxMC4wMDEtMTB6bS0yIDF2MTkuOTk4bDEwLTkuOTk4LTkuOTk4LTEwem00NCAuMDAyLTEwIDkuOTk4IDkuOTk5IDEwaC4wMDJ6TTQ5LjEyNSA0OS4xN2wtMTAuMDAyIDEwIDkuOTk5IDEwaDIwbDEwLjAwMS0xMC05Ljk5OC0xMHptLTEyLjAwMiAxMXYxOS45OThsMTAtOS45OTgtOS45OTgtMTB6bTQ0IC4wMDItMTAgOS45OTggOS45OTkgMTBoLjAwMnpNNDkuMTI1IDcxLjE3bC0xMC4wMDIgMTBoNDBsLTkuOTk4LTEweiIgc3R5bGU9ImZpbGw6cmVkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS13aWR0aDouMTc5NzY4Oy1pbmtzY2FwZS1zdHJva2U6bm9uZTtzdG9wLWNvbG9yOiMwMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zNy4xMjQgLTM3LjE3KSIvPjwvc3ZnPg==');\n -webkit-mask-size: 2.2rem, 2.2rem;\n mask-size: 2.2rem, 2.2rem;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9217,9918],{"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";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){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>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_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"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(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)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/atoms/barcode/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_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"),_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_barcode_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-barcode.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_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:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"barcode",children:"Barcode"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Draws an EAN-13 as an inline SVG — bars and the human-readable digits\nunderneath."}),"\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-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"It draws. Where the code comes from, whether it gets printed, what happens on a\nclick: none of that is a barcode's business. A component that also printed\nwould force anyone wanting a bar somewhere else to take the printing along."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The same line runs through the encoding itself, one step further in.\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ean13Modules"})," answers what a code draws, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ean13FromNumber"})," does the arithmetic\nthat turns a number into one — but ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"which"})," number, and under which prefix, is\nthe application's decision and stays there. An ISBN, a database id, a box on a\nshelf: the norm has no opinion about any of it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-barcode",entry:_guide_ui_barcode_json__WEBPACK_IMPORTED_MODULE_6__}),"\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",children:"Size"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Size comes from the outside, and the SVG fills the width it is given. The\ncomponent brings a default width so it is visible without any styling at all."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A barcode too small to scan is a layout decision; the component cannot prevent\nit and does not try."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__.Sizes}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"a-tailwind-width-reaches-it",children:"A Tailwind width reaches it"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The default is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"width: 14rem"})," in the component's own stylesheet, and a\nconsumer's utility beats it: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'class="w-64"'})," renders 160px, measured in the\nstory above. That is not the barcode's doing but the library's cascade\nlayers — every component style sits in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui.components"}),", below Tailwind's\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"utilities"}),", so a default stays a default. The rule and what it asks of a\nconsumer are on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/styling-layers--docs",children:"Styling page"}),"."]}),"\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:"always-black-on-white",children:"Always black on white"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The label keeps its colours in both themes, on purpose. It is meant to be\nSCANNED, and a scanner has no opinion about dark mode — a barcode that politely\ninverts itself is a barcode that stops working."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__.OnDarkSurface}),"\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:"a-code-it-cannot-use-is-not-drawn",children:"A code it cannot use is not drawn"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two things make a code unusable, and the component checks both: the shape —\nthirteen digits, nothing else — and the check digit, which has to agree with the\nother twelve."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The second one is the reason the first is not enough. A well-formed code with a\nwrong check digit looks perfectly ordinary and no scanner will take it, which is\nthe harder failure to spot: it only shows at the till, after the label has been\nprinted and stuck on."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Both mean the same thing to whoever holds the label, so they share one state and\none sentence. The bars are not drawn — a picture that cannot be scanned is worse\nthan a line of text, because it looks like it works."}),"\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:"code"})," control of the first story carries the second, harder case as\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"4006381333930 (invalid)"})," — the story's own default with its final digit\nchanged, one character away from a code that works."]}),"\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:"an-empty-code-is-not-a-failure",children:"An empty code is not a failure"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Nothing given means nothing was asked. The component says so quietly and reports\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"null"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"}),", so a form does not accuse a field nobody has filled in\nyet."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The text is a statement, not a request: only whoever supplies the code knows what\nis missing, and whether there is a field to type it into at all."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Pick ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"(empty)"})," in the first story's control to see it."]}),"\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:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{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:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("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:"code"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"— (required)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The thirteen digits to draw. Anything else is refused. The first digit\nis never drawn as bars of its own; it only decides the parity pattern of\nthe left half."})})]})})]}),"\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:"outputs",children:"Outputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{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:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("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:"invalidCode"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Whether a code that was given cannot be used — wrong shape or wrong\ncheck digit, the two are not told apart. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})," means nothing\nwas asked of the component: an empty value is not a failure, it is\nsimply nothing to draw."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Not plain ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"invalid"}),": that is a native DOM event, and an\noutput may not borrow one."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["It reports a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"state"}),", not an event, and therefore fires\nonce on init and again on every change — including the one that puts\nthings right. A form bound to a changing code is told when the trouble is\nover as well as when it starts."]})]})]})})]}),"\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:"exported-functions",children:"Exported functions"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{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:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Signature"}),(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:"ean13CheckDigit"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(first12: string) => number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The check digit for the first twelve digits — modulo 10, weights 1 and\n3. Useful for building a code, and for asking whether one is sound."})})]}),(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:"isValidEan13"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(code: string) => boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Shape and check digit in one question, and the one the component asks\nbefore it draws anything."})})]}),(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:"ean13FromNumber"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(value: number, prefix: string) => string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Mints a valid code from a plain number: padded out to the digits the\nprefix leaves free, check digit appended. Throws when the number no\nlonger fits — a number that has outgrown its range is a data problem,\nand it belongs where the number is issued rather than in a quietly wrong\nlabel. See below for the prefix."})})]}),(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:"ean13Modules"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(code: string) => string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The 95-module pattern as a string of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1"}),",\nwhere ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1"})," is a bar: guard, six digits, centre, six digits,\nguard. Throws when the input is not thirteen digits. The check digit is\nnot verified here — that is what ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"isValidEan13"})," is for."]})})]})]})]}),"\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:"turning-a-number-into-a-code",children:"Turning a number into a code"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A shelf, a box, a book without an ISBN: anything that only exists on the\npremises needs a code before it can have a barcode. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ean13FromNumber"})," does the\narithmetic; the prefix stays the caller's decision, because only the caller\nknows what its numbers mean."]}),"\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-ts",children:"[code]=\"ean13FromNumber(12, '201')\" // → 2010000000120\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["GS1 reserves the range ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"20"}),"–",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"29"})," for exactly this: codes that never pass a\nforeign till. Padding with zeros instead would produce a code beginning with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"0"}),", and a scanner reads that as a UPC-A — it works, but it claims an origin\nthat is not true."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The digits a prefix leaves are what limits the numbers: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"201"})," leaves nine, so\n999 999 999 boxes. Different prefixes for different things (boxes, books, …)\nmeans a scan says what was scanned."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/src/lib/atoms/barcode/barcode.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,OnDarkSurface:()=>OnDarkSurface,Sizes:()=>Sizes,__namedExportsOrder:()=>__namedExportsOrder,default:()=>barcode_component_stories});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var barcode_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/barcode/barcode.component.css?ngResource"),barcode_componentngResource_default=__webpack_require__.n(barcode_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");function ean13CheckDigit(first12){return(10-[...first12].reduce((acc,digit,i)=>acc+Number(digit)*(i%2==0?1:3),0)%10)%10}const L_CODES=["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G_CODES=["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R_CODES=["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],PARITY=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];let UiBarcodeComponent=class UiBarcodeComponent{code=core.input.required();invalidCode=(0,core.output)();state=(0,_resource_chunk.EW)(()=>{const code=this.code();return 0===code.length?null:!function isValidEan13(code){return!!/^\d{13}$/.test(code)&&ean13CheckDigit(code.slice(0,12))===Number(code[12])}(code)});bars=(0,_resource_chunk.EW)(()=>{if(!1!==this.state())return[];const modules=function ean13Modules(code){if(!/^\d{13}$/.test(code))throw new Error(`ean13Modules: not a 13-digit code: ${code}`);const digits=[...code].map(Number),parity=PARITY[digits[0]];let modules="101";for(let i=1;i<=6;i++)modules+=("L"===parity[i-1]?L_CODES:G_CODES)[digits[i]];modules+="01010";for(let i=7;i<=12;i++)modules+=R_CODES[digits[i]];return`${modules}101`}(this.code()),bars=[];for(let i=0;i<modules.length;i++){if("1"!==modules[i])continue;const start=i;for(;i+1<modules.length&&"1"===modules[i+1];)i++;bars.push({x:start,width:i-start+1})}return bars});constructor(){(0,_effect_chunk2.QZP)(()=>this.invalidCode.emit(this.state()))}static ctorParameters=()=>[];static propDecorators={code:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"code",required:!0,transform:void 0}]}],invalidCode:[{type:_debug_node_chunk.k7i,args:["invalidCode"]}]}};UiBarcodeComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-barcode",template:'@if (bars().length) {\n \x3c!-- 95 modules wide, 2 user units per module plus an 8-unit quiet zone on\n each side. The viewBox carries the whole geometry, so the rendered size\n is entirely a matter of CSS. --\x3e\n <svg\n [attr.viewBox]="\'0 0 \' + (95 * 2 + 16) + \' 80\'"\n role="img"\n [attr.aria-label]="code()"\n >\n <rect x="0" y="0" [attr.width]="95 * 2 + 16" height="80" fill="#fff" />\n @for (bar of bars(); track bar.x) {\n <rect\n [attr.x]="8 + bar.x * 2"\n y="4"\n [attr.width]="bar.width * 2"\n height="56"\n fill="#000"\n />\n }\n <text\n x="50%"\n y="74"\n text-anchor="middle"\n font-size="12"\n font-family="monospace"\n fill="#000"\n >\n {{ code() }}\n </text>\n </svg>\n} @else if (state()) {\n <p class="_message">{{ \'barcode.invalid\' | transloco }}</p>\n} @else {\n \x3c!-- Nothing was given. A statement, not a request: only whoever supplies the\n code knows what is missing. --\x3e\n <p class="_hint">{{ \'barcode.empty\' | transloco }}</p>\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[barcode_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiBarcodeComponent);const barcode_component_stories={title:"Atoms/Barcode",component:UiBarcodeComponent,argTypes:{code:{control:{type:"select",labels:{4006381333930:"4006381333930 (invalid)","":"(empty)"}},options:["4006381333931","9783462033748","5012345678900","4260000000004","4006381333930",""]}}},Default={args:{code:"4006381333931"},render:args=>({props:{...args},template:'<ui-barcode [code]="code"></ui-barcode>'})},Sizes={args:{code:"4006381333931"},render:args=>({props:{...args},template:'\n <section class="flex flex-col items-start gap-4">\n <ui-barcode class="w-40" [code]="code"></ui-barcode>\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n <ui-barcode class="w-96" [code]="code"></ui-barcode>\n </section>\n '})},OnDarkSurface={args:{code:"4006381333931"},render:args=>({props:{...args},template:'\n <section class="flex gap-4 bg-black p-8">\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n </section>\n '})},__namedExportsOrder=["Default","Sizes","OnDarkSurface"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n code: '4006381333931'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `<ui-barcode [code]=\"code\"></ui-barcode>`\n })\n}",...Default.parameters?.docs?.source},description:{story:"The default: a valid EAN-13 with its digits underneath. Pick another code\nfrom the control to see the pattern change — the first digit is not drawn\nat all, it only decides the parity of the left half.\n\nThe last entry in the list is the one to try: `4006381333930` differs from\nthe first by a single digit and is refused, because the check digit no\nlonger agrees with the other twelve.",...Default.parameters?.docs?.description}}},Sizes.parameters={...Sizes.parameters,docs:{...Sizes.parameters?.docs,source:{originalSource:'{\n args: {\n code: \'4006381333931\'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `\n <section class="flex flex-col items-start gap-4">\n <ui-barcode class="w-40" [code]="code"></ui-barcode>\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n <ui-barcode class="w-96" [code]="code"></ui-barcode>\n </section>\n `\n })\n}',...Sizes.parameters?.docs?.source},description:{story:"Size comes from the outside. The SVG fills the width it is given, and the\nbars stay proportional — a barcode that is too small to scan is a layout\ndecision, not something the component can prevent.\n\nThree plain utilities, no `!`: the component's `width: 14rem` lives in the\n`ui.components` layer below Tailwind's `utilities`, so `w-40`, `w-64` and\n`w-96` render at 100, 160 and 240px (tickets#241). They used to need a `!`\neach, and without it all three stood at 140px — a story that looked fine\nuntil someone measured it.",...Sizes.parameters?.docs?.description}}},OnDarkSurface.parameters={...OnDarkSurface.parameters,docs:{...OnDarkSurface.parameters?.docs,source:{originalSource:'{\n args: {\n code: \'4006381333931\'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `\n <section class="flex gap-4 bg-black p-8">\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n </section>\n `\n })\n}',...OnDarkSurface.parameters?.docs?.source},description:{story:"Black on white in both themes, on purpose. The label is meant to be\nscanned, and a scanner has no opinion about dark mode — a barcode that\ninverts itself politely is a barcode that stops working.",...OnDarkSurface.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/barcode/barcode.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,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-barcode {\n display: block;\n /* A sensible default; override from the outside for anything else. */\n width: 14rem;\n\n svg {\n display: block;\n width: 100%;\n height: auto;\n border-radius: calc(var(--ui-border-radius) / 2);\n }\n\n /* The two states that carry a sentence instead of a picture. They borrow the\n image editor's pair, so a refusal reads the same wherever it appears: what\n went wrong is loud, what is simply absent is quiet. */\n ._message {\n margin: 0;\n padding: calc(var(--ui-spacer) * 0.25) calc(var(--ui-spacer) * 0.5);\n background-color: var(--ui-c-warn);\n color: var(--ui-c-static);\n border-radius: var(--ui-border-radius);\n }\n\n ._hint {\n margin: 0;\n text-align: center;\n color: var(--ui-c-default);\n opacity: 0.75;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);