@mojawork/ui-docs 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/bin/serve.mjs +73 -0
- package/catalog/atoms/background.md +130 -0
- package/catalog/atoms/barcode.md +285 -0
- package/catalog/atoms/buzzer.md +210 -0
- package/catalog/atoms/card.md +174 -0
- package/catalog/atoms/chart.md +236 -0
- package/catalog/atoms/clock.md +252 -0
- package/catalog/atoms/copy-value.md +203 -0
- package/catalog/atoms/image-grid.md +208 -0
- package/catalog/atoms/image-slider.md +216 -0
- package/catalog/atoms/lang-selector.md +237 -0
- package/catalog/atoms/mosaic.md +366 -0
- package/catalog/atoms/placeholder.md +157 -0
- package/catalog/atoms/qr-code.md +334 -0
- package/catalog/atoms/rating.md +176 -0
- package/catalog/atoms/reader-doc.md +404 -0
- package/catalog/atoms/text-animate.md +122 -0
- package/catalog/atoms/thumb.md +153 -0
- package/catalog/atoms/timer.md +111 -0
- package/catalog/atoms/typewriter.md +132 -0
- package/catalog/cdk/splitter.md +63 -0
- package/catalog/cdk/table.md +188 -0
- package/catalog/forms/autocomplete.md +304 -0
- package/catalog/forms/checkbox.md +218 -0
- package/catalog/forms/input.md +193 -0
- package/catalog/forms/slider.md +142 -0
- package/catalog/forms/switch.md +188 -0
- package/catalog/guide.json +1209 -0
- package/catalog/layout/header.md +167 -0
- package/catalog/layout/main.md +158 -0
- package/catalog/layout/media-screen.md +163 -0
- package/catalog/layout/nav.md +181 -0
- package/catalog/layout/overlay.md +256 -0
- package/catalog/layout/spinner.md +94 -0
- package/catalog/layout/splitter.md +331 -0
- package/catalog/layout/tabs.md +144 -0
- package/catalog/layout/top-scroll-bottom.md +98 -0
- package/catalog/manifest.json +482 -0
- package/catalog/mcp.json +44 -0
- package/catalog/molecules/image-editor.md +285 -0
- package/catalog/usage.md +137 -0
- package/catalog/version.json +4 -0
- package/package.json +10 -0
- package/storybook/1183.da25800b.iframe.bundle.js +1 -0
- package/storybook/1255.2abec879.iframe.bundle.js +2 -0
- package/storybook/1255.2abec879.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/1516.52d2dae7.iframe.bundle.js +2 -0
- package/storybook/1516.52d2dae7.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/2033.c705a7ce.iframe.bundle.js +1 -0
- package/storybook/2089.32694489.iframe.bundle.js +1 -0
- package/storybook/2096.431fc8f5.iframe.bundle.js +1 -0
- package/storybook/2127.29f153d2.iframe.bundle.js +2 -0
- package/storybook/2127.29f153d2.iframe.bundle.js.LICENSE.txt +7 -0
- package/storybook/2228.77650ef1.iframe.bundle.js +2 -0
- package/storybook/2228.77650ef1.iframe.bundle.js.LICENSE.txt +1 -0
- package/storybook/2249.6e6782ab.iframe.bundle.js +1 -0
- package/storybook/2639.29baa8af.iframe.bundle.js +1 -0
- package/storybook/2844.c9f47654.iframe.bundle.js +1 -0
- package/storybook/2971.edb202b4.iframe.bundle.js +1 -0
- package/storybook/3899.55560628.iframe.bundle.js +2 -0
- package/storybook/3899.55560628.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/3968.69b812e4.iframe.bundle.js +1 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js +111 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js.LICENSE.txt +49 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js.map +1 -0
- package/storybook/4425.368129b3.iframe.bundle.js +2 -0
- package/storybook/4425.368129b3.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/4476.f8e4115f.iframe.bundle.js +1 -0
- package/storybook/4495.d1c8cc8d.iframe.bundle.js +1 -0
- package/storybook/4555.066c242d.iframe.bundle.js +1 -0
- package/storybook/4755.e4656207.iframe.bundle.js +23 -0
- package/storybook/4755.e4656207.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook/4755.e4656207.iframe.bundle.js.map +1 -0
- package/storybook/4935.8959522b.iframe.bundle.js +1 -0
- package/storybook/5568.c6172f92.iframe.bundle.js +1 -0
- package/storybook/5944.810cb147.iframe.bundle.js +1 -0
- package/storybook/6115.7f1470ef.iframe.bundle.js +1 -0
- package/storybook/6169.eaeed989.iframe.bundle.js +2 -0
- package/storybook/6169.eaeed989.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/6202.b8ca0e90.iframe.bundle.js +2 -0
- package/storybook/6202.b8ca0e90.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/660.18f0458e.iframe.bundle.js +1 -0
- package/storybook/6824.f5eb8bb7.iframe.bundle.js +1 -0
- package/storybook/7316.5b024e94.iframe.bundle.js +1 -0
- package/storybook/7749.2a853795.iframe.bundle.js +1 -0
- package/storybook/8051.719eb790.iframe.bundle.js +1 -0
- package/storybook/813.805c1e5f.iframe.bundle.js +1 -0
- package/storybook/8448.1baeb046.iframe.bundle.js +1 -0
- package/storybook/871.428deceb.iframe.bundle.js +1 -0
- package/storybook/8819.220ca21d.iframe.bundle.js +1 -0
- package/storybook/9045.a50616e9.iframe.bundle.js +2 -0
- package/storybook/9045.a50616e9.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/9560.668052f3.iframe.bundle.js +7 -0
- package/storybook/9560.668052f3.iframe.bundle.js.map +1 -0
- package/storybook/973.67f44bb0.iframe.bundle.js +1 -0
- package/storybook/9850.28367747.iframe.bundle.js +1 -0
- package/storybook/9946.36014b4e.iframe.bundle.js +1 -0
- package/storybook/MaterialIcons-Regular.woff2 +0 -0
- package/storybook/MaterialIconsOutlined-Regular.woff2 +0 -0
- package/storybook/PetMe64.ttf +0 -0
- package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-banner-mwork-banner-stories.d44f6917.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-basic-interpreter-mwork-basic-interpreter-stories.3252a9b8.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +1 -0
- package/storybook/assets/fonts/PETME64-LICENSE.txt +20 -0
- package/storybook/assets/fonts/PetMe64.ttf +0 -0
- package/storybook/assets/fonts/icons/MaterialIcons-Regular.woff2 +0 -0
- package/storybook/assets/fonts/icons/MaterialIconsOutlined-Regular.woff2 +0 -0
- package/storybook/assets/ui/documents/demo.pdf +42 -0
- package/storybook/assets/ui/i18n/de-DE.json +1 -0
- package/storybook/assets/ui/i18n/en-EN.json +2 -0
- package/storybook/assets/ui/i18n/ui/de-DE.json +95 -0
- package/storybook/assets/ui/i18n/ui/en-EN.json +95 -0
- package/storybook/assets/ui/images/600x600.png +0 -0
- package/storybook/assets/ui/images/600x800.png +0 -0
- package/storybook/assets/ui/images/800x600.png +0 -0
- package/storybook/assets/ui/images/unknown.gif +0 -0
- package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +1 -0
- package/storybook/atoms-_electrons-form-error-message-form-error-message-component-stories.7f749acc.iframe.bundle.js +1 -0
- package/storybook/atoms-background-background-component-stories.b6b50c0c.iframe.bundle.js +1 -0
- package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +1 -0
- package/storybook/atoms-barcode-barcode-component-stories.dc462559.iframe.bundle.js +1 -0
- package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +1 -0
- package/storybook/atoms-buzzer-buzzer-component-stories.13ee130d.iframe.bundle.js +1 -0
- package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +1 -0
- package/storybook/atoms-card-card-component-stories.065b34e9.iframe.bundle.js +1 -0
- package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +1 -0
- package/storybook/atoms-chart-chart-component-stories.5247b7cb.iframe.bundle.js +1 -0
- package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +1 -0
- package/storybook/atoms-clock-clock-component-stories.d1464731.iframe.bundle.js +1 -0
- package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +1 -0
- package/storybook/atoms-copy-value-copy-value-component-stories.58d3956a.iframe.bundle.js +1 -0
- package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +1 -0
- package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +1 -0
- package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +1 -0
- package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +1 -0
- package/storybook/atoms-image-slider-image-slider-component-stories.484b9c41.iframe.bundle.js +1 -0
- package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +2 -0
- package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js +2 -0
- package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +1 -0
- package/storybook/atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js +1 -0
- package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +1 -0
- package/storybook/atoms-placeholder-placeholder-component-stories.bc221534.iframe.bundle.js +1 -0
- package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +1 -0
- package/storybook/atoms-qr-code-qr-code-component-stories.5018e2b0.iframe.bundle.js +1 -0
- package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +1 -0
- package/storybook/atoms-rating-rating-component-stories.982db47d.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +1 -0
- package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +1 -0
- package/storybook/atoms-text-animate-text-animate-component-stories.8041c0f1.iframe.bundle.js +1 -0
- package/storybook/atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js +1 -0
- package/storybook/atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js +1 -0
- package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +1 -0
- package/storybook/atoms-timer-timer-component-stories.9bee1037.iframe.bundle.js +1 -0
- package/storybook/atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js +1 -0
- package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +1 -0
- package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +1 -0
- package/storybook/cdk-components-drag-and-drop-splitter-splitter-component-stories.286b5171.iframe.bundle.js +1 -0
- package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +1 -0
- package/storybook/cdk-components-table-table-component-stories.db9212fd.iframe.bundle.js +1 -0
- package/storybook/examples-burger-menu-stories.0a083a75.iframe.bundle.js +1 -0
- package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +1 -0
- package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +1 -0
- package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +1 -0
- package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +1 -0
- package/storybook/examples-layout-layout-stories.05cd891f.iframe.bundle.js +1 -0
- package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +1 -0
- package/storybook/examples-table-edit-focus-table-edit-focus-stories.c79e214a.iframe.bundle.js +1 -0
- package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +2 -0
- package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js +2 -0
- package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/favicon-wrapper.svg +46 -0
- package/storybook/favicon.svg +1 -0
- package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js +2 -0
- package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +2 -0
- package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/forms-autofocus-autofocus-stories.2e94d887.iframe.bundle.js +1 -0
- package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +1 -0
- package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +1 -0
- package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +1 -0
- package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +1 -0
- package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +1 -0
- package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +1 -0
- package/storybook/forms-slider-slider-component-stories.058fb9b1.iframe.bundle.js +1 -0
- package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +1 -0
- package/storybook/forms-switch-switch-component-stories.bf67d7c9.iframe.bundle.js +1 -0
- package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +1 -0
- package/storybook/forms-validators-validators-component-stories.9525f97b.iframe.bundle.js +1 -0
- package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +1 -0
- package/storybook/home-overview-mdx.d0cf448a.iframe.bundle.js +1 -0
- package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +1 -0
- package/storybook/home-usage-mdx.7ba89dd0.iframe.bundle.js +1 -0
- package/storybook/iframe.html +558 -0
- package/storybook/index.html +155 -0
- package/storybook/index.json +1 -0
- package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +1 -0
- package/storybook/layout-main-main-component-stories.788c0c54.iframe.bundle.js +1 -0
- package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +2 -0
- package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js +2 -0
- package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +1 -0
- package/storybook/layout-nav-nav-component-stories.766738fc.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-header-header-component-stories.5eaef192.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-overlay-component-stories.01f6cd84.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +1 -0
- package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +1 -0
- package/storybook/layout-splitter-splitter-component-stories.46b8b112.iframe.bundle.js +1 -0
- package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +1 -0
- package/storybook/layout-tabs-tabs-component-stories.8602cefa.iframe.bundle.js +1 -0
- package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +1 -0
- package/storybook/layout-top-scroll-bottom-top-scroll-bottom-component-stories.9ee7055f.iframe.bundle.js +1 -0
- package/storybook/main.2d116a57.iframe.bundle.js +1 -0
- package/storybook/main.a402659c6a0734088d14.css +2101 -0
- package/storybook/mocker-runtime-injected.js +1 -0
- package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +1 -0
- package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +1 -0
- package/storybook/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook/nunito-sans-bold.woff2 +0 -0
- package/storybook/nunito-sans-italic.woff2 +0 -0
- package/storybook/nunito-sans-regular.woff2 +0 -0
- package/storybook/project.json +1 -0
- package/storybook/runtime~main.a9b8ab83.iframe.bundle.js +1 -0
- package/storybook/sb-addons/docs-1/manager-bundle.js +3 -0
- package/storybook/sb-addons/libs-ui-storybook-2/manager-bundle.js +3 -0
- package/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
- package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook/sb-common-assets/favicon.svg +1 -0
- package/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook/sb-manager/globals-runtime.js +76714 -0
- package/storybook/sb-manager/globals.js +24 -0
- package/storybook/sb-manager/manager-stores.js +23 -0
- package/storybook/sb-manager/runtime.js +27451 -0
- package/storybook/sb-preview/globals.js +20 -0
- package/storybook/sb-preview/runtime.js +35491 -0
- package/storybook/styling-colors-colors-component-stories.58031f40.iframe.bundle.js +1 -0
- package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +1 -0
- package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +1 -0
- package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +1 -0
- package/storybook/styling-forms-forms-component-stories.8af76278.iframe.bundle.js +1 -0
- package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +1 -0
- package/storybook/styling-icons-icons-component-stories.2dd8c6f8.iframe.bundle.js +1 -0
- package/storybook/styling-layers-docs-mdx.5039dc45.iframe.bundle.js +1 -0
- package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +1 -0
- package/storybook/styling-tags-tags-component-stories.7a64bd20.iframe.bundle.js +1 -0
- package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +1 -0
- package/storybook/styling-ui-tags-ui-tags-component-stories.2ec3109b.iframe.bundle.js +1 -0
- package/storybook/version.json +4 -0
- package/version.json +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1322],{"./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/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()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[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/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()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9217],{"./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/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()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[7419],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Buzzer:()=>Buzzer,BuzzerAnimate:()=>BuzzerAnimate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>buzzer_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 buzzer_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/buzzer/buzzer.component.css?ngResource"),buzzer_componentngResource_default=__webpack_require__.n(buzzer_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 UiBuzzerComponent=class UiBuzzerComponent{animate=(0,core.input)(null);fillParent=(0,core.input)(!1);static propDecorators={animate:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animate",required:!1,transform:void 0}]}],fillParent:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fillParent",required:!1,transform:void 0}]}]}};UiBuzzerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-buzzer",template:'<button\n class="ui-buzzer"\n [class]="animate() ?? \'\'"\n [class._-fill-parent]="fillParent()"\n>\n <ng-content></ng-content>\n</button>\n',styles:[buzzer_componentngResource_default()]})],UiBuzzerComponent);const buzzer_component_stories={title:"Atoms/Buzzer",component:UiBuzzerComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,_common_module_chunk.MD,UiBuzzerComponent]})],argTypes:{animate:{control:"select",options:["pulse","rotate",null]},fillParent:{control:"boolean"},colors:{table:{disable:!0},control:!1},cssVars:{table:{disable:!0},control:!1},cssVarsGlobal:{table:{disable:!0},control:!1}},args:{animate:null,fillParent:!1},parameters:{docs:{canvas:{sourceState:"none"}}}},data={colors:["#ffcdff","#cfcfff","#cfffcf","#ffcfcf","#cfcfcf"],cssVars:["var(--ui-c-default)","var(--ui-c-default-invert)","var(--ui-c-primary)","var(--ui-c-primary-invert)","var(--ui-c-secondary)","var(--ui-c-thirdly)","var(--ui-c-fourthly)","var(--ui-c-background)"],cssVarsGlobal:["var(--ui-c-success)","var(--ui-c-error)","var(--ui-c-warn)","var(--ui-c-focus)","var(--ui-c-static)","var(--ui-c-static-invert)"]},Buzzer={render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the `fillParent` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n `fillParent` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n '})},BuzzerAnimate={parameters:{controls:{disable:!0}},render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n '})},__namedExportsOrder=["Buzzer","BuzzerAnimate"];Buzzer.parameters={...Buzzer.parameters,docs:{...Buzzer.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the \\`fillParent\\` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n \\`fillParent\\` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n `\n };\n }\n}',...Buzzer.parameters?.docs?.source}}},BuzzerAnimate.parameters={...BuzzerAnimate.parameters,docs:{...BuzzerAnimate.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n `\n };\n }\n}',...BuzzerAnimate.parameters?.docs?.source},description:{story:"Both looping animations side by side. They are named in the template, not\ntaken from the args, so the Controls panel is removed here rather than left\nstanding with settings that move nothing — the interactive one is the story\nabove.",...BuzzerAnimate.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/buzzer/buzzer.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 pulse {\n 0% {\n transform: scale(1);\n }\n\n 10% {\n transform: scale(0.9);\n }\n\n 20% {\n transform: scale(1);\n }\n\n 30% {\n transform: scale(0.9);\n }\n\n 40% {\n transform: scale(1);\n }\n}\n\n@keyframes rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.ui-buzzer {\n display: flex;\n border-radius: 50%;\n min-width: 12rem;\n min-height: 12rem;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n font-size: 2.4rem;\n transition: 0.05s;\n -webkit-appearance: none;\n -moz-appearance: none;\n box-shadow: 0 0 0.25rem 1rem rgba(0, 0, 0, 0.1);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.4) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n /* The tint sits BEHIND the translucent sheen. A CSS variable, not an input:\n it repeats in :active/:focus because their `background:` shorthand resets\n the color, and the tint must survive both states (tickets#183). */\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 0 rgba(255, 255, 255, 0.1);\n &._-fill-parent {\n min-width: 100%;\n min-height: 100%;\n }\n &.pulse,\n &.rotate {\n animation-duration: 2s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n }\n &.pulse {\n animation-name: pulse;\n }\n &.rotate {\n animation-name: rotate;\n }\n}\n\n.ui-buzzer:active {\n box-shadow: 0 0 0.25rem 0.25rem rgba(0, 0, 0, 0.4);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n\n/* `:not(:active)` is load-bearing: the pressed state below sets a tight, dark\n shadow — that is the push-down effect — and a focus rule of equal weight\n sitting later in the file would win over it, so a focused buzzer would stop\n reacting to being pressed. While it IS pressed, the press wins.\n\n `:focus-visible`, not `:focus`: the halo is a keyboard mark. A pointer press\n leaves no lasting focus ring — the buzzer used to blur itself after every\n click to wipe one (tickets#248) — so the keyboard keeps its position and the\n halo appears only for a keyboard focus. */\n.ui-buzzer:focus-visible:not(:active) {\n /* The resting halo STAYS and only changes colour. Two things fight over it:\n the global button rule in forms.css matches `:focus-visible:is([class^='ui'])` —\n and `ui-buzzer` starts with `ui` — replacing the shadow with a hard ring\n at spread 0, which makes the buzzer look flat exactly when it is active.\n A blue halo of the same shape says \"focused\" without taking the depth\n away, and it is the only focus mark left: the global rule also kills the\n outline. */\n border-color: transparent;\n box-shadow: 0 0 0.25rem 1rem rgba(var(--ui-c-focus-value), 0.2);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4320,7419],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/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/buzzer/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"),_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_buzzer_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-buzzer.json");function _createMdxContent(props){const _components={code:"code",em:"em",h3:"h3",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:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"buzzer",children:"Buzzer"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable and customizable buzzer 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:["A big round button that answers a press with shadow, not outlines — optionally\npulsing or rotating, and able to fill its parent. It is a button and nothing\nmore: it shows what is projected into it, its tint comes from\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-buzzer-color"})," rather than an input, and what a press means is decided\nwhere it is used. It carries no label, icon or state of its own."]}),"\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-buzzer",entry:_guide_ui_buzzer_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:"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:"UiBuzzerComponent"})," is an interactive buzzer button with an optional looping animation and the ability to fill its parent; its tint is set through the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-buzzer-color"})," CSS variable. Its focus halo is a keyboard mark (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible"}),"): a pointer press leaves no lasting focus styling, while a keyboard focus keeps its position and its halo."]}),"\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 buzzer:"}),"\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:"animate"}),": (Input) The type of animation to apply. Available options: 'pulse', 'rotate', or null."]}),"\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:"fillParent"}),": (Input) When true, the buzzer takes the size of its parent instead of its own 12rem minimum. The parent needs a size of its own."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-three-states",children:"The three states"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The buzzer answers in shadow, not in outlines — the same halo throughout, only\nits colour and its size change. Measured:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"State"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"box-shadow"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Reads as"})]})}),(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:"resting"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 1rem rgba(0,0,0,0.1)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Sitting above the surface."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"focused (keyboard)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 1rem rgba(var(--ui-c-focus-value), 0.2)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Same shape, tinted — keyboard-focused without losing its depth."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"pressed"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 0.25rem rgba(0,0,0,0.4)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Halo pulled in and darkened: pushed down."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The focus rule carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":not(:active)"}),", and that is not decoration. It sits\nafter the pressed rule at equal specificity, so without it a focused buzzer\nwould keep the focus halo while being pressed and stop reacting to the press\naltogether — which is exactly what happened once."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The halo is the only focus mark there is: the library's global button rule\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"forms.css"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible:is([class^='ui'])"}),") removes the outline, and the\nclass ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-buzzer"})," starts with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),", so it is caught by that rule too. Both rules\nanswer ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible"}),", so the halo shows for a keyboard focus and a pointer\npress leaves nothing behind — the buzzer no longer blurs itself to wipe a ring."]}),"\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:"css-variables",children:"CSS variables"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The tint is a CSS variable, not an input — set it from the outside:"}),"\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:"--ui-buzzer-color"}),": the fill behind the translucent sheen. 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:"var(--ui-c-primary)"}),"). Defaults to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transparent"}),"."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The story below sets it per buzzer (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'[style.--ui-buzzer-color]="…"'}),"), so the\ncolour you see is the example."]}),"\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__.jsxs)(_components.p,{children:["In this example the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"animate"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fillParent"})," controls drive all five buzzers. The\ncolors are fixed — they are the point of this example, and each buzzer sets its\nown through the CSS variable."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Note what ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fillParent"}),' needs to work: a parent with a size of its own. Each buzzer\nhere sits in a cell of a fixed width and height, because "fill the parent" is a\nquestion a parent sized by its own content cannot answer.']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__.Buzzer}),"\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-buzzer style="--ui-buzzer-color: #ffcdff" [animate]="\'pulse\'">0</ui-buzzer>\n\n\x3c!-- fillParent needs a parent that has a size --\x3e\n<div style="width: 18rem; height: 18rem">\n <ui-buzzer [fillParent]="true">0</ui-buzzer>\n</div>\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:"animation-overview",children:"Animation Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This overview shows available buzzer animations."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__.BuzzerAnimate}),"\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-buzzer"})]}),"\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.Emulated"})," (default)"]}),"\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:"type-uibuzzeranimatetypes",children:"Type: UiBuzzerAnimateTypes"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available animations:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'pulse' | 'rotate' | null"})]})]})}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/buzzer/buzzer.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Buzzer:()=>Buzzer,BuzzerAnimate:()=>BuzzerAnimate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>buzzer_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 buzzer_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/buzzer/buzzer.component.css?ngResource"),buzzer_componentngResource_default=__webpack_require__.n(buzzer_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 UiBuzzerComponent=class UiBuzzerComponent{animate=(0,core.input)(null);fillParent=(0,core.input)(!1);static propDecorators={animate:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animate",required:!1,transform:void 0}]}],fillParent:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fillParent",required:!1,transform:void 0}]}]}};UiBuzzerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-buzzer",template:'<button\n class="ui-buzzer"\n [class]="animate() ?? \'\'"\n [class._-fill-parent]="fillParent()"\n>\n <ng-content></ng-content>\n</button>\n',styles:[buzzer_componentngResource_default()]})],UiBuzzerComponent);const buzzer_component_stories={title:"Atoms/Buzzer",component:UiBuzzerComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,_common_module_chunk.MD,UiBuzzerComponent]})],argTypes:{animate:{control:"select",options:["pulse","rotate",null]},fillParent:{control:"boolean"},colors:{table:{disable:!0},control:!1},cssVars:{table:{disable:!0},control:!1},cssVarsGlobal:{table:{disable:!0},control:!1}},args:{animate:null,fillParent:!1},parameters:{docs:{canvas:{sourceState:"none"}}}},data={colors:["#ffcdff","#cfcfff","#cfffcf","#ffcfcf","#cfcfcf"],cssVars:["var(--ui-c-default)","var(--ui-c-default-invert)","var(--ui-c-primary)","var(--ui-c-primary-invert)","var(--ui-c-secondary)","var(--ui-c-thirdly)","var(--ui-c-fourthly)","var(--ui-c-background)"],cssVarsGlobal:["var(--ui-c-success)","var(--ui-c-error)","var(--ui-c-warn)","var(--ui-c-focus)","var(--ui-c-static)","var(--ui-c-static-invert)"]},Buzzer={render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the `fillParent` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n `fillParent` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n '})},BuzzerAnimate={parameters:{controls:{disable:!0}},render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n '})},__namedExportsOrder=["Buzzer","BuzzerAnimate"];Buzzer.parameters={...Buzzer.parameters,docs:{...Buzzer.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the \\`fillParent\\` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n \\`fillParent\\` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n `\n };\n }\n}',...Buzzer.parameters?.docs?.source}}},BuzzerAnimate.parameters={...BuzzerAnimate.parameters,docs:{...BuzzerAnimate.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n `\n };\n }\n}',...BuzzerAnimate.parameters?.docs?.source},description:{story:"Both looping animations side by side. They are named in the template, not\ntaken from the args, so the Controls panel is removed here rather than left\nstanding with settings that move nothing — the interactive one is the story\nabove.",...BuzzerAnimate.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/buzzer/buzzer.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 pulse {\n 0% {\n transform: scale(1);\n }\n\n 10% {\n transform: scale(0.9);\n }\n\n 20% {\n transform: scale(1);\n }\n\n 30% {\n transform: scale(0.9);\n }\n\n 40% {\n transform: scale(1);\n }\n}\n\n@keyframes rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.ui-buzzer {\n display: flex;\n border-radius: 50%;\n min-width: 12rem;\n min-height: 12rem;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n font-size: 2.4rem;\n transition: 0.05s;\n -webkit-appearance: none;\n -moz-appearance: none;\n box-shadow: 0 0 0.25rem 1rem rgba(0, 0, 0, 0.1);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.4) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n /* The tint sits BEHIND the translucent sheen. A CSS variable, not an input:\n it repeats in :active/:focus because their `background:` shorthand resets\n the color, and the tint must survive both states (tickets#183). */\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 0 rgba(255, 255, 255, 0.1);\n &._-fill-parent {\n min-width: 100%;\n min-height: 100%;\n }\n &.pulse,\n &.rotate {\n animation-duration: 2s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n }\n &.pulse {\n animation-name: pulse;\n }\n &.rotate {\n animation-name: rotate;\n }\n}\n\n.ui-buzzer:active {\n box-shadow: 0 0 0.25rem 0.25rem rgba(0, 0, 0, 0.4);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n\n/* `:not(:active)` is load-bearing: the pressed state below sets a tight, dark\n shadow — that is the push-down effect — and a focus rule of equal weight\n sitting later in the file would win over it, so a focused buzzer would stop\n reacting to being pressed. While it IS pressed, the press wins.\n\n `:focus-visible`, not `:focus`: the halo is a keyboard mark. A pointer press\n leaves no lasting focus ring — the buzzer used to blur itself after every\n click to wipe one (tickets#248) — so the keyboard keeps its position and the\n halo appears only for a keyboard focus. */\n.ui-buzzer:focus-visible:not(:active) {\n /* The resting halo STAYS and only changes colour. Two things fight over it:\n the global button rule in forms.css matches `:focus-visible:is([class^='ui'])` —\n and `ui-buzzer` starts with `ui` — replacing the shadow with a hard ring\n at spread 0, which makes the buzzer look flat exactly when it is active.\n A blue halo of the same shape says \"focused\" without taking the depth\n away, and it is the only focus mark left: the global rule also kills the\n outline. */\n border-color: transparent;\n box-shadow: 0 0 0.25rem 1rem rgba(var(--ui-c-focus-value), 0.2);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4947],{"./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/card/card.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>UiCardComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var card_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.css?ngResource"),card_componentngResource_default=__webpack_require__.n(card_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 UiCardComponent=class UiCardComponent{headline=(0,core.input)(null);icon=(0,core.input)(null);iconSize=(0,core.input)(null);static propDecorators={headline:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"headline",required:!1,transform:void 0}]}],icon:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"icon",required:!1,transform:void 0}]}],iconSize:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"iconSize",required:!1,transform:void 0}]}]}};UiCardComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-card",template:'<div>\n <div class="_wrapper">\n @if (icon()) {\n \x3c!-- The ligature name is text content, so a screen reader would read out\n "lock_open" or "shopping_cart". The card offers a `headline` right\n next to it, which is where the meaning belongs — the icon here is\n decoration and says so. --\x3e\n <div\n class="ui-icon"\n aria-hidden="true"\n [class.x1]="iconSize() === \'x1\'"\n [class.x2]="iconSize() === \'x2\'"\n [class.x3]="iconSize() === \'x3\'"\n [class.x4]="iconSize() === \'x4\' || !iconSize()"\n >\n {{ icon() }}\n </div>\n }\n @if (headline()) {\n <div class="ui-h4">\n <strong>{{ headline() }}</strong>\n </div>\n }\n <ng-content></ng-content>\n </div>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[card_componentngResource_default()]})],UiCardComponent)},"./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/card/card.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Card:()=>Card,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_forms__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),_card_component__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Atoms/Card",component:_card_component__WEBPACK_IMPORTED_MODULE_4__.O,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({providers:[],imports:[_angular_forms__WEBPACK_IMPORTED_MODULE_0__.YN,_card_component__WEBPACK_IMPORTED_MODULE_4__.O,_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__.b,_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_3__.o]})],argTypes:{headline:{control:"text"},icon:{control:"select",options:["home","lock","visibility","mail","delete"]},iconFont:{control:"select",options:["Material Icons","Material Icons Outlined"]},textColor:{control:"color"},iconSize:{control:"select",options:["x1","x2","x3","x4"]}},args:{headline:"Card Headline",icon:"home",iconFont:"Material Icons",textColor:"var(--ui-c-default)",iconSize:"x4"},parameters:{docs:{canvas:{sourceState:"none"}}}},Card={render:args=>({props:{...args,colors:["#ffcdff","#cfcfff","#cfffcf","#ffcfcf","#cfcfcf"]},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr_1fr]">\n @for (item of colors; track item; let i = $index) {\n <ui-card\n [style.--ui-card-bg]="item"\n [style.--ui-card-text]="textColor"\n [style.--ui-icon-font]="iconFont"\n [headline]="headline"\n [icon]="icon"\n [iconSize]="iconSize">\n <span>Content {{i}}</span>\n </ui-card>\n }\n </div>\n </section>\n '})},__namedExportsOrder=["Card"];Card.parameters={...Card.parameters,docs:{...Card.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n colors: [\'#ffcdff\', \'#cfcfff\', \'#cfffcf\', \'#ffcfcf\', \'#cfcfcf\']\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr_1fr]">\n @for (item of colors; track item; let i = $index) {\n <ui-card\n [style.--ui-card-bg]="item"\n [style.--ui-card-text]="textColor"\n [style.--ui-icon-font]="iconFont"\n [headline]="headline"\n [icon]="icon"\n [iconSize]="iconSize">\n <span>Content {{i}}</span>\n </ui-card>\n }\n </div>\n </section>\n `\n };\n }\n}',...Card.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/card/card.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-card {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n\n /* `display: contents` is deliberate: the inner div below is what joins the\n consumer's grid, not this tag. The consequence is that the tag generates\n NO BOX — measured 0x0 — so it can neither be positioned, nor clip, nor be\n sized from outside; a width set on `ui-card` changes the computed value\n and moves no layout. It used to carry `position: relative` and\n `overflow: hidden`, and both were inert for exactly that reason. They are\n gone rather than moved onto the inner div: moving them would START\n clipping content that is not clipped today, and apps arrange cards across\n a seam (see the note on selector weight below). Size the card through the\n cell you place it in. */\n display: contents;\n\n /* The card surface. ui-card is display:contents, so this div is the box the\n app's grid places directly, and it takes the full cell. */\n > div {\n display: flex;\n width: 100%;\n height: 100%;\n padding: calc(var(--ui-spacer) * 0.5);\n justify-content: center;\n align-items: center;\n border-radius: var(--ui-border-radius);\n filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07))\n drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));\n /* Colours are CSS variables, not inline styles: no `[style]` binding from\n the component means the consumer's cascade wins (tickets#183). */\n background-color: var(--ui-card-bg, transparent);\n color: var(--ui-card-text, var(--ui-c-default));\n }\n\n /* Deliberately NOT nested inside the block above. Nesting would raise the\n selector weight beyond the layouts apps place on the grid from outside\n (media's start page arranges icon and label side by side and mirrors them\n across a seam), so a library detail would silently overrule a consumer.\n Kept flat at `ui-card ._wrapper`, lighter than anything an app writes to\n address the same element. */\n ._wrapper {\n position: relative;\n display: grid;\n width: 100%;\n height: 100%;\n /* The single column must be allowed to fall below its content width,\n or the ellipsis on the headline never gets a chance to trigger. */\n grid-template-columns: minmax(0, 1fr);\n grid-gap: calc(var(--ui-spacer) * 0.25);\n justify-content: center;\n text-align: center;\n > * {\n display: flex;\n align-self: center;\n justify-self: center;\n text-align: center;\n outline-style: none;\n }\n\n /* Text color for icon and headline; the `--ui-card-text` variable overrides\n it, the token is the default. */\n > .ui-icon,\n > .ui-h4 {\n color: var(--ui-card-text, var(--ui-c-default));\n }\n\n /* A headline longer than the card is cut, not spilled. The host carries\n `display: contents`, so its `overflow: hidden` never applies — it\n produces no box to clip against. And `justify-self: center` above\n sizes this cell to its text, so a long word simply grew past the card\n and overlapped its neighbours (icon names are the honest test case).\n\n Stretching the cell hands it the column width, `min-width: 0` lets it\n shrink below the intrinsic width of its content — without it a grid\n item refuses to go narrower than its longest word — and the ellipsis\n does the rest. */\n > .ui-h4 {\n justify-self: stretch;\n justify-content: center;\n min-width: 0;\n\n strong {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|