@semcore/errors 17.1.0 → 17.1.1-prerelease.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/AccessDenied/AccessDenied.js.map +1 -1
  3. package/lib/cjs/AccessDenied/AccessDenied.type.js.map +1 -1
  4. package/lib/cjs/AccessDenied/translations/__intergalactic-dynamic-locales.js.map +1 -1
  5. package/lib/cjs/Error.js +9 -9
  6. package/lib/cjs/Error.js.map +1 -1
  7. package/lib/cjs/Error.type.js.map +1 -1
  8. package/lib/cjs/Maintenance/Maintenance.js.map +1 -1
  9. package/lib/cjs/Maintenance/Maintenance.type.js.map +1 -1
  10. package/lib/cjs/Maintenance/translations/__intergalactic-dynamic-locales.js.map +1 -1
  11. package/lib/cjs/PageError/PageError.js.map +1 -1
  12. package/lib/cjs/PageError/PageError.type.js.map +1 -1
  13. package/lib/cjs/PageError/translations/__intergalactic-dynamic-locales.js.map +1 -1
  14. package/lib/cjs/PageNotFound/PageNotFound.js.map +1 -1
  15. package/lib/cjs/PageNotFound/PageNotFound.type.js.map +1 -1
  16. package/lib/cjs/PageNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
  17. package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +1 -1
  18. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +1 -1
  19. package/lib/cjs/ProjectNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
  20. package/lib/es6/AccessDenied/AccessDenied.js.map +1 -1
  21. package/lib/es6/AccessDenied/AccessDenied.type.js.map +1 -1
  22. package/lib/es6/AccessDenied/translations/__intergalactic-dynamic-locales.js.map +1 -1
  23. package/lib/es6/Error.js +9 -9
  24. package/lib/es6/Error.js.map +1 -1
  25. package/lib/es6/Error.type.js.map +1 -1
  26. package/lib/es6/Maintenance/Maintenance.js.map +1 -1
  27. package/lib/es6/Maintenance/Maintenance.type.js.map +1 -1
  28. package/lib/es6/Maintenance/translations/__intergalactic-dynamic-locales.js.map +1 -1
  29. package/lib/es6/PageError/PageError.js.map +1 -1
  30. package/lib/es6/PageError/PageError.type.js.map +1 -1
  31. package/lib/es6/PageError/translations/__intergalactic-dynamic-locales.js.map +1 -1
  32. package/lib/es6/PageNotFound/PageNotFound.js.map +1 -1
  33. package/lib/es6/PageNotFound/PageNotFound.type.js.map +1 -1
  34. package/lib/es6/PageNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
  35. package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +1 -1
  36. package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +1 -1
  37. package/lib/es6/ProjectNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
  38. package/lib/esm/AccessDenied/AccessDenied.mjs +1 -1
  39. package/lib/esm/Error.mjs +11 -11
  40. package/lib/esm/Maintenance/Maintenance.mjs +1 -1
  41. package/lib/esm/PageError/PageError.mjs +1 -1
  42. package/lib/esm/PageNotFound/PageNotFound.mjs +1 -1
  43. package/lib/esm/ProjectNotFound/ProjectNotFound.mjs +1 -1
  44. package/lib/types/AccessDenied/AccessDenied.d.ts +1 -0
  45. package/lib/types/AccessDenied/AccessDenied.d.ts.map +1 -0
  46. package/lib/types/AccessDenied/AccessDenied.type.d.ts +10 -1
  47. package/lib/types/AccessDenied/AccessDenied.type.d.ts.map +1 -0
  48. package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +2 -0
  49. package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
  50. package/lib/types/Error.d.ts +1 -0
  51. package/lib/types/Error.d.ts.map +1 -0
  52. package/lib/types/Error.type.d.ts +9 -8
  53. package/lib/types/Error.type.d.ts.map +1 -0
  54. package/lib/types/Maintenance/Maintenance.d.ts +1 -0
  55. package/lib/types/Maintenance/Maintenance.d.ts.map +1 -0
  56. package/lib/types/Maintenance/Maintenance.type.d.ts +10 -1
  57. package/lib/types/Maintenance/Maintenance.type.d.ts.map +1 -0
  58. package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +2 -0
  59. package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
  60. package/lib/types/PageError/PageError.d.ts +1 -0
  61. package/lib/types/PageError/PageError.d.ts.map +1 -0
  62. package/lib/types/PageError/PageError.type.d.ts +9 -1
  63. package/lib/types/PageError/PageError.type.d.ts.map +1 -0
  64. package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +2 -0
  65. package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
  66. package/lib/types/PageNotFound/PageNotFound.d.ts +1 -0
  67. package/lib/types/PageNotFound/PageNotFound.d.ts.map +1 -0
  68. package/lib/types/PageNotFound/PageNotFound.type.d.ts +10 -1
  69. package/lib/types/PageNotFound/PageNotFound.type.d.ts.map +1 -0
  70. package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +2 -0
  71. package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
  72. package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +1 -0
  73. package/lib/types/ProjectNotFound/ProjectNotFound.d.ts.map +1 -0
  74. package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +12 -1
  75. package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts.map +1 -0
  76. package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +2 -0
  77. package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
  78. package/lib/types/index.d.ts +1 -0
  79. package/lib/types/index.d.ts.map +1 -0
  80. package/package.json +8 -8
  81. package/vitest.config.mts +17 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [17.1.1] - 2026-06-26
6
+
7
+ ### Fixed
8
+
9
+ - Incorrect processing of oklch values.
10
+
5
11
  ## [17.1.0] - 2026-05-13
6
12
 
7
13
  ### Added
@@ -1 +1 @@
1
- {"version":3,"file":"AccessDenied.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootAccessDenied","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied) as NSAccessDenied.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAA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,OAAA,EA7BKT,gBAAgB,iBAIC,cAAc;AAAA,IAAAuB,gBAAA,CAAAd,OAAA,EAJ/BT,gBAAgB,aAKH,CAAC,IAAAwB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAd,OAAA,EAL7CT,gBAAgB,kBAME;EACpB0B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,eAAe,CAAC;EAClCrB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAsB,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAmBY,IAAAuB,qBAAe,EAAChC,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"AccessDenied.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootAccessDenied","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance,\n {},\n {},\n {},\n NSAccessDenied.DefaultProps\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n } as const;\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent<\n NSAccessDenied.Component,\n typeof RootAccessDenied\n>(RootAccessDenied);\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAGA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,gBAAgB,SAASC,eAAS,CAOtC;EAWAC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAClE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAAcC,cAAK,MAAApB,KAAA,CAAAqB,WAAA,MAAAT,IAAA,gBACjBP,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACI,KAAK;MAACC,GAAG,EAAEN;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACM,WAAW;MAACC,IAAI,EAAC;IAAO,GAAEV,WAAW,CAAC,MAAM,CAAqB,CAAC,eACzEV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZT,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACQ,QAAQ,qBACbrB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACjB,OAAA,CAAAgB,OAAM;MAACK,GAAG,EAAC,GAAG;MAACI,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEf;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAiB,gBAAA,CAAAd,OAAA,EAjCKT,gBAAgB,iBAQC,cAAc;AAAA,IAAAuB,gBAAA,CAAAd,OAAA,EAR/BT,gBAAgB,aASH,CAAC,IAAAwB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAd,OAAA,EAT7CT,gBAAgB,kBAUE;EACpB0B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,eAAe,CAAC;EAClCrB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAsB,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAmBY,IAAAuB,qBAAe,EAG5BhC,gBAAgB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSAccessDenied {\n type Props = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSAccessDenied {\n type Props = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n homeLink: '/';\n icon: string;\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/AccessDenied/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/AccessDenied/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
package/lib/cjs/Error.js CHANGED
@@ -11,17 +11,17 @@ var _baseComponents = require("@semcore/base-components");
11
11
  var _illustration = require("@semcore/illustration");
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
  /*!__reshadow-styles__:"./style/errors.shadow.css"*/
14
- const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SError_2esbc_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_2esbc_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_2esbc_gg_ .___SControls_2esbc_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_2esbc_gg_ .___SInner_2esbc_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_2esbc_gg_ .___SInner_2esbc_gg_{flex-direction:column}}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImageWrapper_2esbc_gg_,.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImage_2esbc_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImageWrapper_2esbc_gg_,.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImage_2esbc_gg_{width:200px;height:200px}}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImageWrapper_2esbc_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SWrapper_2esbc_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___STitle_2esbc_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SDescription_2esbc_gg_{display:block;font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin:0 0 var(--intergalactic-spacing-6x, 24px)0}", /*__inner_css_end__*/"2esbc_gg_"),
14
+ const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SError_1oauk_gg_{padding:var(--intergalactic-spacing-20x,80px) var(--intergalactic-spacing-6x,24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_1oauk_gg_{padding:var(--intergalactic-spacing-10x,40px) var(--intergalactic-spacing-5x,20px) var(--intergalactic-spacing-20x,80px)}}.___SError_1oauk_gg_ .___SControls_1oauk_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x,12px);align-items:center}.___SError_1oauk_gg_ .___SInner_1oauk_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_1oauk_gg_ .___SInner_1oauk_gg_{flex-direction:column}}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ :is(.___SImageWrapper_1oauk_gg_,.___SImage_1oauk_gg_){width:260px;height:260px}@media (max-width:647px){.___SError_1oauk_gg_ .___SInner_1oauk_gg_ :is(.___SImageWrapper_1oauk_gg_,.___SImage_1oauk_gg_){width:200px;height:200px}}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___SImageWrapper_1oauk_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x,40px)}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___SWrapper_1oauk_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x,32px)}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___STitle_1oauk_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700,36px);line-height:var(--intergalactic-lh-700,110%);color:var(--intergalactic-text-primary,oklch(.1 .03 137/.899));font-weight:var(--intergalactic-semi-bold,600);margin:0 0 var(--intergalactic-spacing-4x,16px) 0}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___SDescription_1oauk_gg_{display:block;font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%);color:var(--intergalactic-text-primary,oklch(.1 .03 137/.899));margin:0 0 var(--intergalactic-spacing-6x,24px) 0}", /*__inner_css_end__*/"1oauk_gg_"),
15
15
  /*__reshadow_css_end__*/
16
16
  {
17
- "__SError": "___SError_2esbc_gg_",
18
- "__SControls": "___SControls_2esbc_gg_",
19
- "__SInner": "___SInner_2esbc_gg_",
20
- "__SImageWrapper": "___SImageWrapper_2esbc_gg_",
21
- "__SImage": "___SImage_2esbc_gg_",
22
- "__SWrapper": "___SWrapper_2esbc_gg_",
23
- "__STitle": "___STitle_2esbc_gg_",
24
- "__SDescription": "___SDescription_2esbc_gg_"
17
+ "__SError": "___SError_1oauk_gg_",
18
+ "__SControls": "___SControls_1oauk_gg_",
19
+ "__SInner": "___SInner_1oauk_gg_",
20
+ "__SImageWrapper": "___SImageWrapper_1oauk_gg_",
21
+ "__SImage": "___SImage_1oauk_gg_",
22
+ "__SWrapper": "___SWrapper_1oauk_gg_",
23
+ "__STitle": "___STitle_1oauk_gg_",
24
+ "__SDescription": "___SDescription_1oauk_gg_"
25
25
  });
26
26
  const getIconPath = name => (0, _illustration.getIllustrationPath)(name);
27
27
  exports.getIconPath = getIconPath;
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","names":["_core","require","_baseComponents","_illustration","_react","_interopRequireDefault","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","RootError","Component","render","_ref","asProps","_ref5","SError","Flex","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","default","createElement","cn","assignProps","_defineProperty2","Title","props","_ref2","arguments[0]","_ref6","STitle","Box","Description","_ref3","_ref7","SDescription","Controls","_ref4","_ref8","SControls","Error","createComponent","_default"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { NSErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: NSErrors.IconName) => getIllustrationPath(name);\n\nclass RootError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSErrors.Component>\n> {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Title.Component>) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Description.Component>) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Controls.Component>) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nconst Error = createComponent(RootError, {\n Title,\n Description,\n Controls,\n}) as NSErrors.Component;\n\nexport default Error;\n"],"mappings":";;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,eAAA,GAAAD,OAAA;AAGA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAA0B;AAAA,MAAAK,KAAA,8BAAAN,KAAA,CAAAO,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAKnB,MAAMC,WAAW,GAAIC,IAAuB,IAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAElF,MAAMI,SAAS,SAASC,eAAS,CAE/B;EAIAC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMC,oBAAI;IANtB,MAAM;MAAEC,QAAQ;MAAEC,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACN,OAAO;IAC/C,MAAMO,MAAM,GAAG,KAAK;IACpB,MAAMC,aAAa,GAAG,KAAK;IAC3B,MAAMC,QAAQ,GAAG,KAAK;IACtB,MAAMC,MAAM,G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AI,KAAA;EAAA,EAAE,CAAC;AACjF;AAEA,SAASK,WAAWA,CAACN,KAAwF,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC7G,MAAMC,YAAY,GACiCJ,mBAAG;EAAtD,OAAAG,KAAA,GAAO,IAAAnC,aAAO,EAAC2B,KAAK,CAACZ,MAAM,CAAC,eAAClB,MAAA,CAAAwB,OAAA,CAAAC,aAAA,CAACc,YAAY,EAAAD,KAAA,CAAAZ,EAAA;IAAA,OAAA9B,KAAA,CAAA+B,WAAA;MAAA,OAAkB;IAAG,GAAAU,KAAA;EAAA,EAAE,CAAC;AACpE;AAEA,SAASG,QAAQA,CAACV,KAAqF,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EACvG,MAAMC,SAAS,GACiCR,mBAAG;EAAnD,OAAAO,KAAA,GAAO,IAAAvC,aAAO,EAAC2B,KAAK,CAACZ,MAAM,CAAC,eAAClB,MAAA,CAAAwB,OAAA,CAAAC,aAAA,CAACkB,SAAS,EAAAD,KAAA,CAAAhB,EAAA;IAAA,OAAA9B,KAAA,CAAA+B,WAAA,MAAAc,KAAA;EAAA,EAAe,CAAC;AACzD;AAEA,MAAMG,KAAK,GAAG,IAAAC,qBAAe,EAACpC,SAAS,EAAE;EACvCoB,KAAK;EACLO,WAAW;EACXI;AACF,CAAC,CAAuB;AAAC,IAAAM,QAAA,GAAAtC,OAAA,CAAAgB,OAAA,GAEVoB,KAAK","ignoreList":[]}
1
+ {"version":3,"file":"Error.js","names":["_core","require","_baseComponents","_illustration","_react","_interopRequireDefault","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","RootError","Component","render","_ref","asProps","_ref5","SError","Flex","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","default","createElement","cn","assignProps","_defineProperty2","Title","props","_ref2","arguments[0]","_ref6","STitle","Box","Description","_ref3","_ref7","SDescription","Controls","_ref4","_ref8","SControls","Error","createComponent","_default"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { NSErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: NSErrors.IconName) => getIllustrationPath(name);\n\nclass RootError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSErrors.Component>\n> {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Title.Component>) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Description.Component>) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Controls.Component>) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nconst Error = createComponent<\n NSErrors.Component,\n typeof RootError\n>(RootError, {\n Title,\n Description,\n Controls,\n});\n\nexport default Error;\n"],"mappings":";;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,eAAA,GAAAD,OAAA;AAGA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAA0B;AAAA,MAAAK,KAAA,8BAAAN,KAAA,C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AA9B,KAAA,CAAA+B,WAAA,MAAAc,KAAA;EAAA,EAAe,CAAC;AACzD;AAEA,MAAMG,KAAK,GAAG,IAAAC,qBAAe,EAG3BpC,SAAS,EAAE;EACXoB,KAAK;EACLO,WAAW;EACXI;AACF,CAAC,CAAC;AAAC,IAAAM,QAAA,GAAAtC,OAAA,CAAAgB,OAAA,GAEYoB,KAAK","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n namespace Controls {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v18. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { NSBox, NSFlex } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = NSFlex.Props & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = NSBox.Component;\n }\n\n namespace Description {\n type Component = NSBox.Component;\n }\n\n namespace Controls {\n type Component = NSBox.Component;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v19. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v19. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v19. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Maintenance.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootMaintenance","Component","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance) as NSMaintenance.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,eAAe,SAASC,eAAS,CAGrC;EAWAC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACL,OAAO;IAE5E,oBACER,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAAcC,cAAK,MAAArB,KAAA,CAAAsB,WAAA,MAAAV,IAAA,gBACjBP,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAa,OAAK,CAACI,KAAK;MAACC,GAAG,EAAEN;IAAS,GAAE,GAAGD,QAAQ,IAAIF,WAAW,CAAC,OAAO,CAAC,EAAgB,CAAC,eACjFV,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAa,OAAK,CAACM,WAAW,QAAEV,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DV,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACN,QAAQ,MAAE,CAAC,eACZT,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAa,OAAK,CAACO,QAAQ,qBACbrB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAAClB,OAAA,CAAAiB,OAAM;MAACK,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEf;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAiB,gBAAA,CAAAb,OAAA,EA9BKV,eAAe,iBAIE,aAAa;AAAA,IAAAuB,gBAAA,CAAAb,OAAA,EAJ9BV,eAAe,aAKF,CAAC,IAAAwB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAb,OAAA,EAL7CV,eAAe,kBAMG;EACpB0B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,aAAa,CAAC;EAChCpB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAAChC,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Maintenance.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootMaintenance","Component","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance,\n {},\n {},\n {},\n NSMaintenance.DefaultProps\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n } as const;\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent<\n NSMaintenance.Component,\n typeof RootMaintenance\n>(RootMaintenance);\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,eAAe,SAASC,eAAS,CAOrC;EAWAC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW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pB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAG5BhC,eAAe,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSMaintenance {\n type Props = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSMaintenance {\n type Props = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n homeLink: '/';\n icon: string;\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/Maintenance/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/Maintenance/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"PageError.js","names":["_core","require","_button","_interopRequireDefault","_assignProps2","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","Component","constructor","args","_defineProperty2","default","canUseDOM","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageError) as NSPageError.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GA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AK,CAACiB,QAAQ,qBACb1B,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACzB,OAAA,CAAAc,OAAM;MACLS,OAAO,EAAE,IAAAS,kCAAoB,EAACT,OAAO,EAAE,IAAI,CAACU,YAAY,CAAE;MAC1DC,IAAI,EAAC,GAAG;MACRC,GAAG,EAAC,SAAS;MACbC,KAAK,EAAC;IAAM,GAEXd,WAAW,CAAC,UAAU,CACjB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAT,gBAAA,CAAAC,OAAA,EAxCKL,aAAa,iBAII,WAAW;AAAA,IAAAI,gBAAA,CAAAC,OAAA,EAJ5BL,aAAa,aAKA,CAAC,IAAA4B,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAzB,gBAAA,CAAAC,OAAA,EAL7CL,aAAa,kBAMK;EACpB8B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,YAAY,CAAC;EAC/BlB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAmB,QAAA,GAAAC,OAAA,CAAA9B,OAAA,GA+BY,IAAA+B,qBAAe,EAACpC,aAAa,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"PageError.js","names":["_core","require","_button","_interopRequireDefault","_assignProps2","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","Component","constructor","args","_defineProperty2","default","canUseDOM","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance,\n {},\n {},\n {},\n NSPageError.DefaultProps\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n } as const;\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent<\n NSPageError.Component,\n typeof RootPageError\n>(RootPageError);\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,YAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAEA,IAAAO,MAAA,GAAAC,uBAAA,CAAAR,OAAA;AAEA,IAAAS,4BAAA,GAAAT,OAAA;AACA,MAAMU,aAAa,SAASC,eAAS,CAOnC;EAAAC,YAAA,GAAAC,I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,aAAa,iBAQI,WAAW;AAAA,IAAAI,gBAAA,CAAAC,OAAA,EAR5BL,aAAa,aASA,CAAC,IAAA4B,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAzB,gBAAA,CAAAC,OAAA,EAT7CL,aAAa,kBAUK;EACpB8B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,YAAY,CAAC;EAC/BlB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAmB,QAAA,GAAAC,OAAA,CAAA9B,OAAA,GA+BY,IAAA+B,qBAAe,EAG5BpC,aAAa,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageError {\n type Props = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSPageError {\n type Props = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n icon: string;\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/PageError/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/PageError/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"PageNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageNotFound","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageNotFound/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageNotFound } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageNotFound.Component>,\n typeof RootPageNotFound.enhance\n> {\n static displayName = 'PageNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageN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AChB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAgB,gBAAA,CAAAb,OAAA,EA9BKT,gBAAgB,iBAIC,cAAc;AAAA,IAAAsB,gBAAA,CAAAb,OAAA,EAJ/BT,gBAAgB,aAKH,CAAC,IAAAuB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAb,OAAA,EAL7CT,gBAAgB,kBAME;EACpByB,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,gBAAgB,CAAC;EACnCrB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAAC/B,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"PageNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageNotFound","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageNotFound/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageNotFound } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageNotFound.Component>,\n typeof RootPageNotFound.enhance,\n {},\n {},\n {},\n NSPageNotFound.DefaultProps\n> {\n static displayName = 'PageNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n } as const;\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent<\n NSPageNotFound.Component,\n typeof RootPageNotFound\n>(RootPageNotFound);\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,gBAAgB,SAASC,eAAS,CAOtC;EAWAC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAElE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAAcC,cAAK,MAAApB,KAAA,CAAAqB,WAAA,MAAAT,IAAA,gBACjBP,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACI,KAAK;MAACC,GAAG,EAAEN;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACM,WAAW,QAAET,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZT,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACO,QAAQ,qBACbpB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACjB,OAAA,CAAAgB,OAAM;MAACK,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEd;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAgB,gBAAA,CAAAb,OAAA,EAlCKT,gBAAgB,iBAQC,cAAc;AAAA,IAAAsB,gBAAA,CAAAb,OAAA,EAR/BT,gBAAgB,aASH,CAAC,IAAAuB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAb,OAAA,EAT7CT,gBAAgB,kBAUE;EACpByB,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,gBAAgB,CAAC;EACnCrB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAG5B/B,gBAAgB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageNotFound {\n type Props = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageNotFoundProps = NSPageNotFound.Props;\n\nexport type { NSPageNotFound };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSPageNotFound {\n type Props = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n icon: string;\n homeLink: '/';\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type PageNotFoundProps = NSPageNotFound.Props;\n\nexport type { NSPageNotFound };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/PageNotFound/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/PageNotFound/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_typography","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootProjectNotFound","Component","render","_ref","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","default","createElement","ul","li","supportLink","href","Error","assignProps","Title","tag","Description","Text","formatTags","size","Controls","type","use","theme","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSProjectNotFound } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSProjectNotFound.Component>,\n typeof RootProjectNotFound.enhance\n> {\n static displayName = 'ProjectNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/company/contacts',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } = this.asProps;\n const text = getI18nText('text', {\n p: (chunk: string) => <p>{chunk}</p>,\n ul: (chunk: string) => <ul>{chunk}</ul>,\n li: (chunk: string) => <li>{chunk}</li>,\n supportLink: (chunk: string) => <a href={supportTeamLink}>{chunk}</a>,\n });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={Text} formatTags={true} size={300}>\n {text}\n </Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={projectsLink}>\n {getI18nText('btnProjects')}\n </Button>\n <Button size='l' tag='a' type='none' href={contactsLink}>\n {getI18nText('btnContacts')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound) as NSProjectNotFound.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AAEA,IAAAQ,4BAAA,GAAAR,OAAA;AAEA,MAAMS,mBAAmB,SAASC,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AAkB,OAAA,CAAAC,aAAA,CAACvB,OAAA,CAAAsB,OAAM;MAACS,GAAG,EAAC,GAAG;MAACM,IAAI,EAAC,MAAM;MAACF,IAAI,EAAC,GAAG;MAACG,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACZ,IAAI,EAAEZ;IAAa,GAChFD,WAAW,CAAC,aAAa,CACpB,CAAC,eACTV,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAACvB,OAAA,CAAAsB,OAAM;MAACa,IAAI,EAAC,GAAG;MAACJ,GAAG,EAAC,GAAG;MAACM,IAAI,EAAC,MAAM;MAACV,IAAI,EAAEX;IAAa,GACrDF,WAAW,CAAC,aAAa,CACpB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAA0B,gBAAA,CAAAlB,OAAA,EA1CKd,mBAAmB,iBAIF,iBAAiB;AAAA,IAAAgC,gBAAA,CAAAlB,OAAA,EAJlCd,mBAAmB,aAKN,CAAC,IAAAiC,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAlB,OAAA,EAL7Cd,mBAAmB,kBAMD;EACpBmC,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,mBAAmB,CAAC;EACtC/B,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAA6B,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GA8BY,IAAA2B,qBAAe,EAACzC,mBAAmB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"ProjectNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_typography","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootProjectNotFound","Component","render","_ref","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","default","createElement","ul","li","supportLink","href","Error","assignProps","Title","tag","Description","Text","formatTags","size","Controls","type","use","theme","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSProjectNotFound } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSProjectNotFound.Component>,\n typeof RootProjectNotFound.enhance,\n {},\n {},\n {},\n NSProjectNotFound.DefaultProps\n> {\n static displayName = 'ProjectNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/company/contacts',\n titleTag: 'h2',\n } as const;\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } = this.asProps;\n const text = getI18nText('text', {\n p: (chunk: string) => <p>{chunk}</p>,\n ul: (chunk: string) => <ul>{chunk}</ul>,\n li: (chunk: string) => <li>{chunk}</li>,\n supportLink: (chunk: string) => <a href={supportTeamLink}>{chunk}</a>,\n });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={Text} formatTags={true} size={300}>\n {text}\n </Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={projectsLink}>\n {getI18nText('btnProjects')}\n </Button>\n <Button size='l' tag='a' type='none' href={contactsLink}>\n {getI18nText('btnContacts')}\n </Button>\n </Error.Controls>\n </Root>\n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E,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAA6B,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GA8BY,IAAA2B,qBAAe,EAG5BzC,mBAAmB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSProjectNotFound {\n type Props = WithI18nEnhanceProps & {\n /**\n * URL for the \"Go to Projects\" button\n * @default /projects\n */\n projectsLink?: string;\n /**\n * URL for the \"Contact us\" button\n * @default /company/contacts\n */\n contactsLink?: string;\n /**\n * URL for the \"Support Team\" link\n * @default /company/contacts\n */\n supportTeamLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ProjectNotFoundProps = NSProjectNotFound.Props;\n\nexport type { NSProjectNotFound };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSProjectNotFound {\n type Props = WithI18nEnhanceProps & {\n /**\n * URL for the \"Go to Projects\" button\n * @default /projects\n */\n projectsLink?: string;\n /**\n * URL for the \"Contact us\" button\n * @default /company/contacts\n */\n contactsLink?: string;\n /**\n * URL for the \"Support Team\" link\n * @default /company/contacts\n */\n supportTeamLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n icon: string;\n projectsLink: '/projects';\n contactsLink: '/company/contacts';\n supportTeamLink: '/company/contacts';\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type ProjectNotFoundProps = NSProjectNotFound.Props;\n\nexport type { NSProjectNotFound };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/ProjectNotFound/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/ProjectNotFound/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AccessDenied.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootAccessDenied","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\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CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAL7CpB,gBAAgB,kBAME;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,eAAe,CAAC;EAClCS,QAAQ,EAAE;AACZ,CAAC;AAmBH,eAAef,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"AccessDenied.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootAccessDenied","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance,\n {},\n {},\n {},\n NSAccessDenied.DefaultProps\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n } as const;\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent<\n NSAccessDenied.Component,\n typeof RootAccessDenied\n>(RootAccessDenied);\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAGzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,gBAAgB,SAASP,SAAS,CAOtC;EAWAQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAClE,oBACEP,KAAA,CAAAY,aAAA,CAAcX,KAAK,EAAAY,YAAA,KAAAP,IAAA,gBACjBN,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACa,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChET,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACe,WAAW;MAACC,IAAI,EAAC;IAAO,GAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eACzET,KAAA,CAAAY,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACiB,QAAQ,qBACblB,KAAA,CAAAY,aAAA,CAACjB,MAAM;MAACoB,GAAG,EAAC,GAAG;MAACI,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEb;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACe,eAAA,CAjCKpB,gBAAgB,iBAQC,cAAc;AAAAoB,eAAA,CAR/BpB,gBAAgB,aASH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAT7CpB,gBAAgB,kBAUE;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,eAAe,CAAC;EAClCS,QAAQ,EAAE;AACZ,CAAC;AAmBH,eAAef,eAAe,CAG5BQ,gBAAgB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSAccessDenied {\n type Props = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSAccessDenied {\n type Props = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n homeLink: '/';\n icon: string;\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/AccessDenied/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/AccessDenied/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
package/lib/es6/Error.js CHANGED
@@ -9,17 +9,17 @@ import { createComponent, Root, Component, sstyled } from '@semcore/core';
9
9
  import { getIllustrationPath } from '@semcore/illustration';
10
10
  import React from 'react';
11
11
  /*!__reshadow-styles__:"./style/errors.shadow.css"*/
12
- const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SError_2esbc_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_2esbc_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_2esbc_gg_ .___SControls_2esbc_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_2esbc_gg_ .___SInner_2esbc_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_2esbc_gg_ .___SInner_2esbc_gg_{flex-direction:column}}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImageWrapper_2esbc_gg_,.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImage_2esbc_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImageWrapper_2esbc_gg_,.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImage_2esbc_gg_{width:200px;height:200px}}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SImageWrapper_2esbc_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SWrapper_2esbc_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___STitle_2esbc_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_2esbc_gg_ .___SInner_2esbc_gg_ .___SDescription_2esbc_gg_{display:block;font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin:0 0 var(--intergalactic-spacing-6x, 24px)0}", /*__inner_css_end__*/"2esbc_gg_"),
12
+ const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SError_1oauk_gg_{padding:var(--intergalactic-spacing-20x,80px) var(--intergalactic-spacing-6x,24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_1oauk_gg_{padding:var(--intergalactic-spacing-10x,40px) var(--intergalactic-spacing-5x,20px) var(--intergalactic-spacing-20x,80px)}}.___SError_1oauk_gg_ .___SControls_1oauk_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x,12px);align-items:center}.___SError_1oauk_gg_ .___SInner_1oauk_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_1oauk_gg_ .___SInner_1oauk_gg_{flex-direction:column}}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ :is(.___SImageWrapper_1oauk_gg_,.___SImage_1oauk_gg_){width:260px;height:260px}@media (max-width:647px){.___SError_1oauk_gg_ .___SInner_1oauk_gg_ :is(.___SImageWrapper_1oauk_gg_,.___SImage_1oauk_gg_){width:200px;height:200px}}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___SImageWrapper_1oauk_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x,40px)}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___SWrapper_1oauk_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x,32px)}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___STitle_1oauk_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700,36px);line-height:var(--intergalactic-lh-700,110%);color:var(--intergalactic-text-primary,oklch(.1 .03 137/.899));font-weight:var(--intergalactic-semi-bold,600);margin:0 0 var(--intergalactic-spacing-4x,16px) 0}.___SError_1oauk_gg_ .___SInner_1oauk_gg_ .___SDescription_1oauk_gg_{display:block;font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%);color:var(--intergalactic-text-primary,oklch(.1 .03 137/.899));margin:0 0 var(--intergalactic-spacing-6x,24px) 0}", /*__inner_css_end__*/"1oauk_gg_"),
13
13
  /*__reshadow_css_end__*/
14
14
  {
15
- "__SError": "___SError_2esbc_gg_",
16
- "__SControls": "___SControls_2esbc_gg_",
17
- "__SInner": "___SInner_2esbc_gg_",
18
- "__SImageWrapper": "___SImageWrapper_2esbc_gg_",
19
- "__SImage": "___SImage_2esbc_gg_",
20
- "__SWrapper": "___SWrapper_2esbc_gg_",
21
- "__STitle": "___STitle_2esbc_gg_",
22
- "__SDescription": "___SDescription_2esbc_gg_"
15
+ "__SError": "___SError_1oauk_gg_",
16
+ "__SControls": "___SControls_1oauk_gg_",
17
+ "__SInner": "___SInner_1oauk_gg_",
18
+ "__SImageWrapper": "___SImageWrapper_1oauk_gg_",
19
+ "__SImage": "___SImage_1oauk_gg_",
20
+ "__SWrapper": "___SWrapper_1oauk_gg_",
21
+ "__STitle": "___STitle_1oauk_gg_",
22
+ "__SDescription": "___SDescription_1oauk_gg_"
23
23
  });
24
24
  export const getIconPath = name => getIllustrationPath(name);
25
25
  class RootError extends Component {
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","names":["Box","Flex","createComponent","Root","Component","sstyled","getIllustrationPath","React","style","_sstyled","insert","getIconPath","name","RootError","render","_ref","asProps","_ref5","SError","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref6","STitle","_assignProps2","Description","_ref3","_ref7","SDescription","_assignProps3","Controls","_ref4","_ref8","SControls","_assignProps4","Error"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { NSErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: NSErrors.IconName) => getIllustrationPath(name);\n\nclass RootError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSErrors.Component>\n> {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Title.Component>) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Description.Component>) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Controls.Component>) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nconst Error = createComponent(RootError, {\n Title,\n Description,\n Controls,\n}) as NSErrors.Component;\n\nexport default Error;\n"],"mappings":";;;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AAEpD,SAASC,eAAe,EAAEC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAK1B,OAAO,MAAMC,WAAW,GAAIC,IAAuB,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAEjF,MAAMC,SAAS,SAAST,SAAS,CAE/B;EAIAU,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMjB,IAAI;IANtB,MAAM;MAAEkB,QAAQ;MAAEC,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACL,OAAO;IAC/C,MAAMM,MAAM,GAAG,KAAK;IACpB,MAAMC,aAAa,GAAG,KAAK;IAC3B,MAAMC,QAAQ,GAAG,KAAK;IACtB,MAAMC,MAAM,GAAG,KAAK;IACpB,OAAAR,KAAA,GAAOZ,OAAO,CAACe,MAAM,CAAC,eACpBb,KAAA,CAAAmB,aAAA,CAACR,MAAM,EAAAD,KAAA,CAAAU,EAAA;MAAA,GAAAC,YAAA,KAAAb,IAAA;IAAA,iBACLR,KAAA,CAAAmB,aAAA,CAACJ,MAAM,EAAAL,KAAA,CAAAU,EAAA,gBACJN,IAAI,iBACHd,KAAA,CAAAmB,aAAA,CAACH,aAAa,EAAAN,KAAA,CAAAU,EAAA,uBACX,OAAON,IAAI,KAAK,QAAQ,gBAAGd,KAAA,CAAAmB,aAAA,CA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CAAAmB,aAAA,CAACmB,SAAS,EAAAD,KAAA,CAAAjB,EAAA;IAAA,GAAAmB,aAAA,KAAAH,KAAA;EAAA,EAAe,CAAC;AACzD;AAEA,MAAMI,KAAK,GAAG7C,eAAe,CAACW,SAAS,EAAE;EACvCiB,KAAK;EACLO,WAAW;EACXK;AACF,CAAC,CAAuB;AAExB,eAAeK,KAAK","ignoreList":[]}
1
+ {"version":3,"file":"Error.js","names":["Box","Flex","createComponent","Root","Component","sstyled","getIllustrationPath","React","style","_sstyled","insert","getIconPath","name","RootError","render","_ref","asProps","_ref5","SError","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref6","STitle","_assignProps2","Description","_ref3","_ref7","SDescription","_assignProps3","Controls","_ref4","_ref8","SControls","_assignProps4","Error"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { NSErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: NSErrors.IconName) => getIllustrationPath(name);\n\nclass RootError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSErrors.Component>\n> {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Title.Component>) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Description.Component>) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Controls.Component>) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nconst Error = createComponent<\n NSErrors.Component,\n typeof RootError\n>(RootError, {\n Title,\n Description,\n Controls,\n});\n\nexport default Error;\n"],"mappings":";;;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AAEpD,SAASC,eAAe,EAAEC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAK1B,OAAO,MAAMC,WAAW,GAAIC,IAAuB,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAEjF,MAAMC,SAAS,SAAST,SAAS,CAE/B;EAIAU,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMjB,IAAI;IANtB,MAAM;MAAEkB,QAAQ;MAAEC,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACL,OAAO;IAC/C,MAAMM,MAAM,GAAG,KAAK;IACpB,MAAMC,aAAa,GAAG,KAAK;IAC3B,MAAMC,QAAQ,GAAG,KAAK;IACtB,MAAMC,MAAM,GAAG,KAAK;IACpB,OAAAR,KAAA,GAAOZ,OAAO,CAACe,MAAM,CAAC,eACpBb,KAAA,CAAAmB,aAAA,CAACR,MAAM,EAAAD,KAAA,CAAAU,EAAA;MAAA,GAAAC,YAAA,KAAA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;EAAA,EAAE,CAAC;AACpE;AAEA,SAASI,QAAQA,CAACX,KAAqF,EAAE;EAAA,IAAAY,KAAA,GAAAV,YAAA;IAAAW,KAAA;EACvG,MAAMC,SAAS,GACiC7C,GAAG;EAAnD,OAAA4C,KAAA,GAAOvC,OAAO,CAAC0B,KAAK,CAACX,MAAM,CAAC,eAACb,KAAA,CAAAmB,aAAA,CAACmB,SAAS,EAAAD,KAAA,CAAAjB,EAAA;IAAA,GAAAmB,aAAA,KAAAH,KAAA;EAAA,EAAe,CAAC;AACzD;AAEA,MAAMI,KAAK,GAAG7C,eAAe,CAG3BW,SAAS,EAAE;EACXiB,KAAK;EACLO,WAAW;EACXK;AACF,CAAC,CAAC;AAEF,eAAeK,KAAK","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n namespace Controls {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v18. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { NSBox, NSFlex } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = NSFlex.Props & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = NSBox.Component;\n }\n\n namespace Description {\n type Component = NSBox.Component;\n }\n\n namespace Controls {\n type Component = NSBox.Component;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v19. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v19. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v19. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Maintenance.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootMaintenance","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance) as NSMaintenance.Component;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,eAAe,SAASP,SAAS,CAGrC;EAWAQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACL,OAAO;IAE5E,oBACEP,KAAA,CAAAa,aAAA,CAAcZ,KAAK,EAAAa,YAAA,KAAAR,IAAA,gBACjBN,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACc,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAE,GAAGD,QAAQ,IAAIF,WAAW,CAAC,OAAO,CAAC,EAAgB,CAAC,eACjFT,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACgB,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DT,KAAA,CAAAa,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACiB,QAAQ,qBACblB,KAAA,CAAAa,aAAA,CAAClB,MAAM;MAACqB,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEb;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACe,eAAA,CA9BKpB,eAAe,iBAIE,aAAa;AAAAoB,eAAA,CAJ9BpB,eAAe,aAKF,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAL7CpB,eAAe,kBAMG;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,aAAa,CAAC;EAChCU,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAehB,eAAe,CAACQ,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Maintenance.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootMaintenance","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance,\n {},\n {},\n {},\n NSMaintenance.DefaultProps\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n } as const;\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent<\n NSMaintenance.Component,\n typeof RootMaintenance\n>(RootMaintenance);\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,eAAe,SAASP,SAAS,CAOrC;EAWAQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACL,OAAO;IAE5E,oBACEP,KAAA,CAAAa,aAAA,CAAcZ,KAAK,EAAAa,YAAA,KAAAR,IAAA,gBACjBN,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACc,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAE,GAAGD,QAAQ,IAAIF,WAAW,CAAC,OAAO,CAAC,EAAgB,CAAC,eACjFT,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACgB,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DT,KAAA,CAAAa,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACiB,QAAQ,qBACblB,KAAA,CAAAa,aAAA,CAAClB,MAAM;MAACqB,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEb;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACe,eAAA,CAlCKpB,eAAe,iBAQE,aAAa;AAAAoB,eAAA,CAR9BpB,eAAe,aASF,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAT7CpB,eAAe,kBAUG;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,aAAa,CAAC;EAChCU,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAehB,eAAe,CAG5BQ,eAAe,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSMaintenance {\n type Props = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSMaintenance {\n type Props = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n homeLink: '/';\n icon: string;\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/Maintenance/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/Maintenance/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"PageError.js","names":["Button","createComponent","Component","Root","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","constructor","args","_defineProperty","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","_assignProps","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageError) as NSPageError.Component;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,OAAOC,SAAS,MAAM,mCAAmC;AACzD,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAClF,MAAMC,aAAa,SAAST,SAAS,CAGnC;EAAAU,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,uBAUe,MAAM;MACnB,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E;AACZ,CAAC;AA+BH,eAAetB,eAAe,CAACU,aAAa,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"PageError.js","names":["Button","createComponent","Component","Root","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","constructor","args","_defineProperty","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","_assignProps","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance,\n {},\n {},\n {},\n NSPageError.DefaultProps\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n } as const;\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createCompon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,MAAM;MACLsB,OAAO,EAAElB,oBAAoB,CAACkB,OAAO,EAAE,IAAI,CAACQ,YAAY,CAAE;MAC1DC,IAAI,EAAC,GAAG;MACRC,GAAG,EAAC,SAAS;MACbC,KAAK,EAAC;IAAM,GAEXZ,WAAW,CAAC,UAAU,CACjB,CACM,CACZ,CAAC;EAEX;AACF;AAACP,eAAA,CA5CKH,aAAa,iBAQI,WAAW;AAAAG,eAAA,CAR5BH,aAAa,aASA,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAI,eAAA,CAT7CH,aAAa,kBAUK;EACpBuB,IAAI,EAAExB,iBAAiB;EACvByB,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE3B,WAAW,CAAC,YAAY,CAAC;EAC/Bc,QAAQ,EAAE;AACZ,CAAC;AA+BH,eAAetB,eAAe,CAG5BU,aAAa,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageError {\n type Props = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSPageError {\n type Props = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n icon: string;\n titleTag: 'h2';\n };\n\n type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}