@egov3/system-design 1.3.219 → 1.3.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/baseComponents/LoadingSkeleton/LoadingSkeleton.module.css.js +2 -2
- package/dist/cjs/baseComponents/LoadingSkeleton/index.js +2 -2
- package/dist/cjs/baseComponents/LoadingSkeleton/index.js.map +1 -1
- package/dist/cjs/baseComponents/TextWithAction/index.js +2 -1
- package/dist/cjs/baseComponents/TextWithAction/index.js.map +1 -1
- package/dist/cjs/components/ErrorModal/index.js +2 -1
- package/dist/cjs/components/ErrorModal/index.js.map +1 -1
- package/dist/cjs/components/Profile/ProfileHealthGeneral/index.js +1 -1
- package/dist/cjs/components/Profile/ProfileHealthGeneral/index.js.map +1 -1
- package/dist/esm/baseComponents/LoadingSkeleton/LoadingSkeleton.module.css.js +2 -2
- package/dist/esm/baseComponents/LoadingSkeleton/index.js +2 -2
- package/dist/esm/baseComponents/LoadingSkeleton/index.js.map +1 -1
- package/dist/esm/baseComponents/TextWithAction/index.js +2 -1
- package/dist/esm/baseComponents/TextWithAction/index.js.map +1 -1
- package/dist/esm/components/ErrorModal/index.js +2 -1
- package/dist/esm/components/ErrorModal/index.js.map +1 -1
- package/dist/esm/components/Profile/ProfileHealthGeneral/index.js +1 -1
- package/dist/esm/components/Profile/ProfileHealthGeneral/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css_248z = ".LoadingSkeleton-module_sectionWrap__voDrd {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n align-self: stretch;\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U {\n width: 48px;\n height: 12px;\n margin: 6px 0;\n overflow: hidden;\n background: var(--surface-surface-1);\n}\n\n.LoadingSkeleton-module_cardWrapper__WGXVj {\n display:
|
|
6
|
-
var styles = {"sectionWrap":"LoadingSkeleton-module_sectionWrap__voDrd","skeletonTitle":"LoadingSkeleton-module_skeletonTitle__paz-U","cardWrapper":"LoadingSkeleton-module_cardWrapper__WGXVj","skeletonCard":"LoadingSkeleton-module_skeletonCard__nR3Q3","skeletonIcon":"LoadingSkeleton-module_skeletonIcon__PlLYn","skeletonText":"LoadingSkeleton-module_skeletonText__T3XEY","skeletonTextWrapper":"LoadingSkeleton-module_skeletonTextWrapper__PY9j1","skeletonTextRow":"LoadingSkeleton-module_skeletonTextRow__QicSG","
|
|
5
|
+
var css_248z = ".LoadingSkeleton-module_sectionWrap__voDrd {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n align-self: stretch;\n}\n\n.LoadingSkeleton-module_label__ywsVA {\n display: flex;\n align-items: flex-start;\n gap: 4px;\n width: 100%;\n border-radius: 12px 12px 0 0;\n background: var(--surface-surface-2);\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U {\n width: 48px;\n height: 12px;\n margin: 6px 0;\n overflow: hidden;\n background: var(--surface-surface-1);\n}\n\n.LoadingSkeleton-module_cardWrapper__WGXVj {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n width: 100%;\n min-height: 288px;\n}\n\n.LoadingSkeleton-module_skeletonCard__nR3Q3 {\n display: flex;\n width: 100%;\n flex-shrink: 0;\n align-items: center;\n gap: 12px;\n padding: 16px;\n border-radius: 12px;\n background: var(--surface-surface-1);\n box-sizing: border-box;\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U,\n.LoadingSkeleton-module_skeletonIcon__PlLYn,\n.LoadingSkeleton-module_skeletonText__T3XEY {\n position: relative;\n overflow: hidden;\n}\n\n.LoadingSkeleton-module_skeletonIcon__PlLYn {\n width: 48px;\n height: 48px;\n flex-shrink: 0;\n border-radius: 32px;\n background: var(--surface-surface-3);\n}\n\n.LoadingSkeleton-module_skeletonTextWrapper__PY9j1 {\n display: flex;\n flex: 1;\n min-width: 0;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n gap: 4px;\n}\n\n.LoadingSkeleton-module_skeletonTextRow__QicSG {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n height: 20px;\n}\n\n.LoadingSkeleton-module_skeletonText__T3XEY {\n width: 96px;\n height: 12px;\n background: var(--surface-surface-3);\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U::after,\n.LoadingSkeleton-module_skeletonIcon__PlLYn::after,\n.LoadingSkeleton-module_skeletonText__T3XEY::after {\n position: absolute;\n animation: LoadingSkeleton-module_skeleton-loading__ABiff 1.2s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(255, 255, 255, 0.55),\n transparent\n );\n content: \"\";\n inset: 0;\n transform: translateX(-100%);\n}\n\n.LoadingSkeleton-module_withoutShimmer__DfdsY::after {\n display: none;\n}\n\n@keyframes LoadingSkeleton-module_skeleton-loading__ABiff {\n 100% {\n transform: translateX(100%);\n }\n}\n";
|
|
6
|
+
var styles = {"sectionWrap":"LoadingSkeleton-module_sectionWrap__voDrd","label":"LoadingSkeleton-module_label__ywsVA","skeletonTitle":"LoadingSkeleton-module_skeletonTitle__paz-U","cardWrapper":"LoadingSkeleton-module_cardWrapper__WGXVj","skeletonCard":"LoadingSkeleton-module_skeletonCard__nR3Q3","skeletonIcon":"LoadingSkeleton-module_skeletonIcon__PlLYn","skeletonText":"LoadingSkeleton-module_skeletonText__T3XEY","skeletonTextWrapper":"LoadingSkeleton-module_skeletonTextWrapper__PY9j1","skeletonTextRow":"LoadingSkeleton-module_skeletonTextRow__QicSG","withoutShimmer":"LoadingSkeleton-module_withoutShimmer__DfdsY"};
|
|
7
7
|
function styleInject(css, options) {
|
|
8
8
|
if (typeof document === 'undefined') return;
|
|
9
9
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -5,10 +5,10 @@ var joinClasses = require('../../utils/joinClasses.js');
|
|
|
5
5
|
var index = require('../Typography/index.js');
|
|
6
6
|
var LoadingSkeleton_module = require('./LoadingSkeleton.module.css.js');
|
|
7
7
|
|
|
8
|
-
const LoadingSkeleton = ({ cardsCount =
|
|
8
|
+
const LoadingSkeleton = ({ cardsCount = 1, isShimmerVisible = true, isTitleLoading = true, title, }) => {
|
|
9
9
|
const skeletonItems = Array.from({ length: cardsCount }, (_, item) => `skeleton-card-${item + 1}`);
|
|
10
10
|
const shimmerClassName = !isShimmerVisible && LoadingSkeleton_module.default.withoutShimmer;
|
|
11
|
-
return (jsxRuntime.jsxs("div", { className: LoadingSkeleton_module.default.sectionWrap, "data-testid": "SectionLoadingSkeleton", children: [title && !isTitleLoading && (jsxRuntime.jsx(index.Typography, { "aria-label": title, "data-testid": "SectionLoadingSkeleton_TITLE", fontClass: "body1Medium", tag: "h3", children: title })), isTitleLoading && (jsxRuntime.jsx("div", { "aria-hidden": "true", className: joinClasses.joinClasses(LoadingSkeleton_module.default.skeletonTitle, shimmerClassName), "data-testid": "SectionLoadingSkeleton_TITLE" })), jsxRuntime.jsx("div", { className: LoadingSkeleton_module.default.cardWrapper, "data-testid": "SectionLoadingSkeleton_CARDS", children: skeletonItems.map((item) => (jsxRuntime.jsxs("div", { "aria-hidden": "true", className: LoadingSkeleton_module.default.skeletonCard, "data-testid": "SectionLoadingSkeleton_ITEM", children: [jsxRuntime.jsx("div", { className: joinClasses.joinClasses(LoadingSkeleton_module.default.skeletonIcon, shimmerClassName), "data-testid": "SectionLoadingSkeleton_ICON" }), jsxRuntime.
|
|
11
|
+
return (jsxRuntime.jsxs("div", { className: LoadingSkeleton_module.default.sectionWrap, "data-testid": "SectionLoadingSkeleton", children: [(title || isTitleLoading) && (jsxRuntime.jsxs("div", { className: LoadingSkeleton_module.default.label, children: [title && !isTitleLoading && (jsxRuntime.jsx(index.Typography, { "aria-label": title, "data-testid": "SectionLoadingSkeleton_TITLE", fontClass: "body1Medium", tag: "h3", children: title })), isTitleLoading && (jsxRuntime.jsx("div", { "aria-hidden": "true", className: joinClasses.joinClasses(LoadingSkeleton_module.default.skeletonTitle, shimmerClassName), "data-testid": "SectionLoadingSkeleton_TITLE" }))] })), jsxRuntime.jsx("div", { className: LoadingSkeleton_module.default.cardWrapper, "data-testid": "SectionLoadingSkeleton_CARDS", children: skeletonItems.map((item) => (jsxRuntime.jsxs("div", { "aria-hidden": "true", className: LoadingSkeleton_module.default.skeletonCard, "data-testid": "SectionLoadingSkeleton_ITEM", children: [jsxRuntime.jsx("div", { className: joinClasses.joinClasses(LoadingSkeleton_module.default.skeletonIcon, shimmerClassName), "data-testid": "SectionLoadingSkeleton_ICON" }), jsxRuntime.jsx("div", { className: LoadingSkeleton_module.default.skeletonTextWrapper, "data-testid": "SectionLoadingSkeleton_TEXT_WRAPPER", children: jsxRuntime.jsx("div", { className: LoadingSkeleton_module.default.skeletonTextRow, "data-testid": "SectionLoadingSkeleton_TEXT_ROW", children: jsxRuntime.jsx("div", { className: joinClasses.joinClasses(LoadingSkeleton_module.default.skeletonText, shimmerClassName), "data-testid": "SectionLoadingSkeleton_TEXT" }) }) })] }, item))) })] }));
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.LoadingSkeleton = LoadingSkeleton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/LoadingSkeleton/index.tsx"],"sourcesContent":[null],"names":["styles","_jsxs","_jsx","Typography","joinClasses"],"mappings":";;;;;;;MAYa,eAAe,GAAG,CAAC,EAC9B,UAAU,GAAG,CAAC,EACd,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/LoadingSkeleton/index.tsx"],"sourcesContent":[null],"names":["styles","_jsxs","_jsx","Typography","joinClasses"],"mappings":";;;;;;;MAYa,eAAe,GAAG,CAAC,EAC9B,UAAU,GAAG,CAAC,EACd,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,IAAI,EACrB,KAAK,GACiB,KAAI;IAC1B,MAAM,aAAa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ACE,SAAS,EAAEF,8BAAM,CAAC,mBAAmB,EAAA,aAAA,EACzB,qCAAqC,EAAA,QAAA,EAEjDE,cAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEF,8BAAM,CAAC,eAAe,iBACrB,iCAAiC,EAAA,QAAA,EAE7CE,cAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEE,uBAAW,CAACJ,8BAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC,EAAA,aAAA,EACjD,6BAA6B,EAAA,CACzC,EAAA,CACE,EAAA,CACF,CAAA,EAAA,EAnBD,IAAI,CAoBL,CACP,CAAC,EAAA,CACE,CAAA,EAAA,CACF;AAEV;;;;"}
|
|
@@ -5,7 +5,8 @@ var buildWordSegments = require('../../utils/string/buildWordSegments.js');
|
|
|
5
5
|
var index = require('../Typography/index.js');
|
|
6
6
|
var TextWithAction_module = require('./TextWithAction.module.css.js');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const EMPTY_ACTIONS = [];
|
|
9
|
+
const TextWithAction = ({ textTemplate, actions = EMPTY_ACTIONS, fontClass = "body2Regular", className, }) => (jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: fontClass, className: className, "data-testid": "TextWithAction_WRAPPER", children: buildWordSegments.buildWordSegments(textTemplate, actions).map((segment) => segment.onClick ? (jsxRuntime.jsx("button", { type: "button", className: TextWithAction_module.default.action, "data-testid": "TextWithAction_ACTION", onClick: segment.onClick, children: segment.text }, segment.key)) : (jsxRuntime.jsx("span", { "data-testid": "TextWithAction_PLAIN_TEXT", children: segment.text }, segment.key))) }));
|
|
9
10
|
|
|
10
11
|
exports.TextWithAction = TextWithAction;
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/TextWithAction/index.tsx"],"sourcesContent":[null],"names":["_jsx","Typography","buildWordSegments","styles"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/TextWithAction/index.tsx"],"sourcesContent":[null],"names":["_jsx","Typography","buildWordSegments","styles"],"mappings":";;;;;;;AAYA,MAAM,aAAa,GAAmB,EAAE;MAE3B,cAAc,GAAG,CAAC,EAC7B,YAAY,EACZ,OAAO,GAAG,aAAa,EACvB,SAAS,GAAG,cAAc,EAC1B,SAAS,GACY,MACrBA,cAAA,CAACC,gBAAU,EAAA,EACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EAAA,aAAA,EACR,wBAAwB,EAAA,QAAA,EAEnCC,mCAAiB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,KACpD,OAAO,CAAC,OAAO,IACbF,2BACE,IAAI,EAAC,QAAQ,EAEb,SAAS,EAAEG,6BAAM,CAAC,MAAM,EAAA,aAAA,EACZ,uBAAuB,EACnC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAA,QAAA,EAEvB,OAAO,CAAC,IAAI,EAAA,EALR,OAAO,CAAC,GAAG,CAMT,KAETH,cAAA,CAAA,MAAA,EAAA,EAAA,aAAA,EAAoC,2BAA2B,EAAA,QAAA,EAC5D,OAAO,CAAC,IAAI,EAAA,EADJ,OAAO,CAAC,GAAG,CAEf,CACR,CACF,EAAA,CACU;;;;"}
|
|
@@ -49,7 +49,8 @@ require('../../baseComponents/TextWithAction/TextWithAction.module.css.js');
|
|
|
49
49
|
var index$2 = require('../../baseComponents/Title/index.js');
|
|
50
50
|
var ErrorModal_module = require('./ErrorModal.module.css.js');
|
|
51
51
|
|
|
52
|
-
const
|
|
52
|
+
const EMPTY_FOOTER_BUTTONS = [];
|
|
53
|
+
const ErrorModal = ({ status, message, title, illustration, lang, isOpen, onClose, footerButtons = EMPTY_FOOTER_BUTTONS, }) => {
|
|
53
54
|
const isAuthError = status === 401;
|
|
54
55
|
const langDic = index$1.i18n.ErrorModal;
|
|
55
56
|
const langDicMsg = message ?? (isAuthError ? langDic.NotAuthorizedMessage[lang] : "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsx","Modal","_jsxs","styles","EgovIcon","CloseIcon","VerificationIllustration","InternetNotAvailableIllustration","Title","Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsx","Modal","_jsxs","styles","EgovIcon","CloseIcon","VerificationIllustration","InternetNotAvailableIllustration","Title","Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,oBAAoB,GAAyB,EAAE;AAE9C,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GAAG,oBAAoB,GACnB,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAGA,YAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAEpE,QACEC,cAAA,CAACC,WAAK,EAAA,EACJ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,KAAK,EAAA,QAAA,EAEtBC,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,yBAAM,CAAC,OAAO,EAAA,aAAA,EAAc,oBAAoB,EAAA,QAAA,EAAA,CAC9DD,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,yBAAM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nC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,MACtBH,cAAA,CAACS,cAAM,EAAA,EAAA,YAAA,EACO,IAAI,CAAC,IAAI,EAAA,aAAA,EACR,IAAI,CAAC,UAAU,EAC5B,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EAErB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,OAAO,EAAA,QAAA,EAEpB,IAAI,CAAC,IAAI,EAAA,EAJL,IAAI,CAAC,UAAU,CAKb,CACV,CAAC,EAAA,CACE,CACP,CAAA,EAAA,CACG,CAAA,EAAA,CACF,EAAA,CACA;AAEZ;;;;"}
|
|
@@ -51,7 +51,7 @@ var ProfileHealthGeneral_module = require('./ProfileHealthGeneral.module.css.js'
|
|
|
51
51
|
|
|
52
52
|
const ProfileHealthGeneral = ({ lang, attachedClinic, compulsoryHealthInsurance, }) => {
|
|
53
53
|
const langDic = index$1.i18n.ProfileHealthGeneral;
|
|
54
|
-
return (jsxRuntime.jsxs("div", { className: ProfileHealthGeneral_module.default.wrap, "data-testid": "ProfileHealth_GENERAL", children: [jsxRuntime.jsxs("div", { "data-testid": "ProfileHealth_INFO", children: [jsxRuntime.jsx(index.Typography, { tag: "span", "data-testid": "ProfileHealth_HEADER", className: ProfileHealthGeneral_module.default.header, "aria-label": langDic.HealthInfo[lang], fontClass: "body2Medium", children: langDic.HealthInfo[lang] }), jsxRuntime.jsx("div", { className: ProfileHealthGeneral_module.default.content, "data-testid": "ProfileHealthAttached_CONTENT", children: attachedClinic.map((content
|
|
54
|
+
return (jsxRuntime.jsxs("div", { className: ProfileHealthGeneral_module.default.wrap, "data-testid": "ProfileHealth_GENERAL", children: [jsxRuntime.jsxs("div", { "data-testid": "ProfileHealth_INFO", children: [jsxRuntime.jsx(index.Typography, { tag: "span", "data-testid": "ProfileHealth_HEADER", className: ProfileHealthGeneral_module.default.header, "aria-label": langDic.HealthInfo[lang], fontClass: "body2Medium", children: langDic.HealthInfo[lang] }), jsxRuntime.jsx("div", { className: ProfileHealthGeneral_module.default.content, "data-testid": "ProfileHealthAttached_CONTENT", children: attachedClinic.map((content) => (jsxRuntime.jsxs("div", { className: ProfileHealthGeneral_module.default.block, "data-testid": "ProfileHealthAttached_BLOCK", children: [jsxRuntime.jsx(index.Typography, { tag: "span", "data-testid": "ProfileHealthContent_VALUE", className: ProfileHealthGeneral_module.default.description, "aria-label": content.value, fontClass: "body2Regular", children: content.value }), jsxRuntime.jsx(index.Typography, { tag: "span", "data-testid": "ProfileHealthContent_TITLE", className: ProfileHealthGeneral_module.default.title, "aria-label": content.title, fontClass: "caption1Regular", children: content.title })] }, `attached-${content.title}-${content.value}`))) }), jsxRuntime.jsx("hr", { className: ProfileHealthGeneral_module.default.line, "data-testid": "ProfileHealth_LINE" })] }), jsxRuntime.jsxs("div", { "data-testid": "ProfileHealth_INSURANCE", children: [jsxRuntime.jsx(index.Typography, { tag: "span", "data-testid": "ProfileHealth_HEADER", className: ProfileHealthGeneral_module.default.header, "aria-label": langDic.HealthInsurance[lang], fontClass: "body2Medium", children: langDic.HealthInsurance[lang] }), jsxRuntime.jsx("div", { className: ProfileHealthGeneral_module.default.content, "data-testid": "ProfileHealthInsurance_CONTENT", children: compulsoryHealthInsurance.map((content) => (jsxRuntime.jsxs("div", { className: ProfileHealthGeneral_module.default.block, "data-testid": "ProfileHealthInsurance_BLOCK", children: [jsxRuntime.jsx(index.Typography, { tag: "span", "data-testid": "ProfileHealthInsurance_VALUE", className: ProfileHealthGeneral_module.default.description, "aria-label": content.value, fontClass: "body2Regular", children: content.value }), jsxRuntime.jsx(index.Typography, { tag: "span", "data-testid": "ProfileHealthInsurance_TITLE", className: ProfileHealthGeneral_module.default.title, "aria-label": content.title, fontClass: "caption1Regular", children: content.title })] }, `insurance-${content.title}-${content.value}`))) }), jsxRuntime.jsx("hr", { className: ProfileHealthGeneral_module.default.line, "data-testid": "ProfileHealth_LINE" })] })] }));
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
exports.ProfileHealthGeneral = ProfileHealthGeneral;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/ProfileHealthGeneral/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsxs","styles","_jsx","Typography"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/ProfileHealthGeneral/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsxs","styles","_jsx","Typography"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,MAAM,oBAAoB,GAAG,CAAC,EACnC,IAAI,EACJ,cAAc,EACd,yBAAyB,GACH,KAAI;AAC1B,IAAA,MAAM,OAAO,GAAGA,YAAI,CAAC,oBAAoB;AACzC,IAAA,QACEC,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,mCAAM,CAAC,IAAI,EAAA,aAAA,EAAc,uBAAuB,aAC9DD,eAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,oBAAoB,EAAA,QAAA,EAAA,CACnCE,cAAA,CAACC,gBAAU,EAAA,EACT,GAAG,EAAC,MAAM,EAAA,aAAA,EACE,sBAAsB,EAClC,SAAS,EAAEF,mCAAM,CAAC,MAAM,EAAA,YAAA,EACZ,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EACpC,SAAS,EAAC,aAAa,EAAA,QAAA,EAEtB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAA,CACd,EACbC,wBACE,SAAS,EAAED,mCAAM,CAAC,OAAO,EAAA,aAAA,EACb,+BAA+B,EAAA,QAAA,EAE1C,cAAc,CAAC,GAAG,CAAC,CAAC,OAAO,MAC1BD,yBAEE,SAAS,EAAEC,mCAAM,CAAC,KAAK,EAAA,aAAA,EACX,6BAA6B,EAAA,QAAA,EAAA,CAEzCC,cAAA,CAACC,gBAAU,EAAA,EACT,GAAG,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8B,aAE1CC,cAAA,CAACC,gBAAU,EAAA,EACT,GAAG,EAAC,MAAM,EAAA,aAAA,EACE,8BAA8B,EAC1C,SAAS,EAAEF,mCAAM,CAAC,WAAW,EAAA,YAAA,EACjB,OAAO,CAAC,KAAK,EACzB,SAAS,EAAC,cAAc,EAAA,QAAA,EAEvB,OAAO,CAAC,KAAK,EAAA,CACH,EACbC,cAAA,CAACC,gBAAU,EAAA,EACT,GAAG,EAAC,MAAM,EAAA,aAAA,EACE,8BAA8B,EAC1C,SAAS,EAAEF,mCAAM,CAAC,KAAK,gBACX,OAAO,CAAC,KAAK,EACzB,SAAS,EAAC,iBAAiB,EAAA,QAAA,EAE1B,OAAO,CAAC,KAAK,EAAA,CACH,CAAA,EAAA,EArBR,aAAa,OAAO,CAAC,KAAK,CAAA,CAAA,EAAI,OAAO,CAAC,KAAK,CAAA,CAAE,CAsB9C,CACP,CAAC,EAAA,CACE,EACNC,cAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAED,mCAAM,CAAC,IAAI,iBAAc,oBAAoB,EAAA,CAAG,CAAA,EAAA,CAC3D,CAAA,EAAA,CACF;AAEV;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".LoadingSkeleton-module_sectionWrap__voDrd {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n align-self: stretch;\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U {\n width: 48px;\n height: 12px;\n margin: 6px 0;\n overflow: hidden;\n background: var(--surface-surface-1);\n}\n\n.LoadingSkeleton-module_cardWrapper__WGXVj {\n display:
|
|
2
|
-
var styles = {"sectionWrap":"LoadingSkeleton-module_sectionWrap__voDrd","skeletonTitle":"LoadingSkeleton-module_skeletonTitle__paz-U","cardWrapper":"LoadingSkeleton-module_cardWrapper__WGXVj","skeletonCard":"LoadingSkeleton-module_skeletonCard__nR3Q3","skeletonIcon":"LoadingSkeleton-module_skeletonIcon__PlLYn","skeletonText":"LoadingSkeleton-module_skeletonText__T3XEY","skeletonTextWrapper":"LoadingSkeleton-module_skeletonTextWrapper__PY9j1","skeletonTextRow":"LoadingSkeleton-module_skeletonTextRow__QicSG","
|
|
1
|
+
var css_248z = ".LoadingSkeleton-module_sectionWrap__voDrd {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n align-self: stretch;\n}\n\n.LoadingSkeleton-module_label__ywsVA {\n display: flex;\n align-items: flex-start;\n gap: 4px;\n width: 100%;\n border-radius: 12px 12px 0 0;\n background: var(--surface-surface-2);\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U {\n width: 48px;\n height: 12px;\n margin: 6px 0;\n overflow: hidden;\n background: var(--surface-surface-1);\n}\n\n.LoadingSkeleton-module_cardWrapper__WGXVj {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n width: 100%;\n min-height: 288px;\n}\n\n.LoadingSkeleton-module_skeletonCard__nR3Q3 {\n display: flex;\n width: 100%;\n flex-shrink: 0;\n align-items: center;\n gap: 12px;\n padding: 16px;\n border-radius: 12px;\n background: var(--surface-surface-1);\n box-sizing: border-box;\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U,\n.LoadingSkeleton-module_skeletonIcon__PlLYn,\n.LoadingSkeleton-module_skeletonText__T3XEY {\n position: relative;\n overflow: hidden;\n}\n\n.LoadingSkeleton-module_skeletonIcon__PlLYn {\n width: 48px;\n height: 48px;\n flex-shrink: 0;\n border-radius: 32px;\n background: var(--surface-surface-3);\n}\n\n.LoadingSkeleton-module_skeletonTextWrapper__PY9j1 {\n display: flex;\n flex: 1;\n min-width: 0;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n gap: 4px;\n}\n\n.LoadingSkeleton-module_skeletonTextRow__QicSG {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n height: 20px;\n}\n\n.LoadingSkeleton-module_skeletonText__T3XEY {\n width: 96px;\n height: 12px;\n background: var(--surface-surface-3);\n}\n\n.LoadingSkeleton-module_skeletonTitle__paz-U::after,\n.LoadingSkeleton-module_skeletonIcon__PlLYn::after,\n.LoadingSkeleton-module_skeletonText__T3XEY::after {\n position: absolute;\n animation: LoadingSkeleton-module_skeleton-loading__ABiff 1.2s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(255, 255, 255, 0.55),\n transparent\n );\n content: \"\";\n inset: 0;\n transform: translateX(-100%);\n}\n\n.LoadingSkeleton-module_withoutShimmer__DfdsY::after {\n display: none;\n}\n\n@keyframes LoadingSkeleton-module_skeleton-loading__ABiff {\n 100% {\n transform: translateX(100%);\n }\n}\n";
|
|
2
|
+
var styles = {"sectionWrap":"LoadingSkeleton-module_sectionWrap__voDrd","label":"LoadingSkeleton-module_label__ywsVA","skeletonTitle":"LoadingSkeleton-module_skeletonTitle__paz-U","cardWrapper":"LoadingSkeleton-module_cardWrapper__WGXVj","skeletonCard":"LoadingSkeleton-module_skeletonCard__nR3Q3","skeletonIcon":"LoadingSkeleton-module_skeletonIcon__PlLYn","skeletonText":"LoadingSkeleton-module_skeletonText__T3XEY","skeletonTextWrapper":"LoadingSkeleton-module_skeletonTextWrapper__PY9j1","skeletonTextRow":"LoadingSkeleton-module_skeletonTextRow__QicSG","withoutShimmer":"LoadingSkeleton-module_withoutShimmer__DfdsY"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -3,10 +3,10 @@ import { joinClasses } from '../../utils/joinClasses.js';
|
|
|
3
3
|
import { Typography } from '../Typography/index.js';
|
|
4
4
|
import styles from './LoadingSkeleton.module.css.js';
|
|
5
5
|
|
|
6
|
-
const LoadingSkeleton = ({ cardsCount =
|
|
6
|
+
const LoadingSkeleton = ({ cardsCount = 1, isShimmerVisible = true, isTitleLoading = true, title, }) => {
|
|
7
7
|
const skeletonItems = Array.from({ length: cardsCount }, (_, item) => `skeleton-card-${item + 1}`);
|
|
8
8
|
const shimmerClassName = !isShimmerVisible && styles.withoutShimmer;
|
|
9
|
-
return (jsxs("div", { className: styles.sectionWrap, "data-testid": "SectionLoadingSkeleton", children: [title && !isTitleLoading && (jsx(Typography, { "aria-label": title, "data-testid": "SectionLoadingSkeleton_TITLE", fontClass: "body1Medium", tag: "h3", children: title })), isTitleLoading && (jsx("div", { "aria-hidden": "true", className: joinClasses(styles.skeletonTitle, shimmerClassName), "data-testid": "SectionLoadingSkeleton_TITLE" })), jsx("div", { className: styles.cardWrapper, "data-testid": "SectionLoadingSkeleton_CARDS", children: skeletonItems.map((item) => (jsxs("div", { "aria-hidden": "true", className: styles.skeletonCard, "data-testid": "SectionLoadingSkeleton_ITEM", children: [jsx("div", { className: joinClasses(styles.skeletonIcon, shimmerClassName), "data-testid": "SectionLoadingSkeleton_ICON" }),
|
|
9
|
+
return (jsxs("div", { className: styles.sectionWrap, "data-testid": "SectionLoadingSkeleton", children: [(title || isTitleLoading) && (jsxs("div", { className: styles.label, children: [title && !isTitleLoading && (jsx(Typography, { "aria-label": title, "data-testid": "SectionLoadingSkeleton_TITLE", fontClass: "body1Medium", tag: "h3", children: title })), isTitleLoading && (jsx("div", { "aria-hidden": "true", className: joinClasses(styles.skeletonTitle, shimmerClassName), "data-testid": "SectionLoadingSkeleton_TITLE" }))] })), jsx("div", { className: styles.cardWrapper, "data-testid": "SectionLoadingSkeleton_CARDS", children: skeletonItems.map((item) => (jsxs("div", { "aria-hidden": "true", className: styles.skeletonCard, "data-testid": "SectionLoadingSkeleton_ITEM", children: [jsx("div", { className: joinClasses(styles.skeletonIcon, shimmerClassName), "data-testid": "SectionLoadingSkeleton_ICON" }), jsx("div", { className: styles.skeletonTextWrapper, "data-testid": "SectionLoadingSkeleton_TEXT_WRAPPER", children: jsx("div", { className: styles.skeletonTextRow, "data-testid": "SectionLoadingSkeleton_TEXT_ROW", children: jsx("div", { className: joinClasses(styles.skeletonText, shimmerClassName), "data-testid": "SectionLoadingSkeleton_TEXT" }) }) })] }, item))) })] }));
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { LoadingSkeleton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/LoadingSkeleton/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;MAYa,eAAe,GAAG,CAAC,EAC9B,UAAU,GAAG,CAAC,EACd,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/LoadingSkeleton/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;MAYa,eAAe,GAAG,CAAC,EAC9B,UAAU,GAAG,CAAC,EACd,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,IAAI,EACrB,KAAK,GACiB,KAAI;IAC1B,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAC9B,EAAE,MAAM,EAAE,UAAU,EAAE,EACtB,CAAC,CAAC,EAAE,IAAI,KAAK,CAAA,cAAA,EAAiB,IAAI,GAAG,CAAC,CAAA,CAAE,CACzC;IACD,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC,cAAc;AAEnE,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAA,aAAA,EAAc,wBAAwB,EAAA,QAAA,EAAA,CACrE,CAAC,KAAK,IAAI,cAAc,MACvBA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,QAAA,EAAA,CACzB,KAAK,IAAI,CAAC,cAAc,KACvBC,IAAC,UAAU,EAAA,EAAA,YAAA,EACG,KAAK,EAAA,aAAA,EACL,8BAA8B,EAC1C,SAAS,EAAC,aAAa,EACvB,GAAG,EAAC,IAAI,EAAA,QAAA,EAEP,KAAK,EAAA,CACK,CACd,EACA,cAAc,KACbA,GAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EACc,MAAM,EAClB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,iBAClD,8BAA8B,EAAA,CAC1C,CACH,CAAA,EAAA,CACG,CACP,EACDA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,WAAW,EAAA,aAAA,EACjB,8BAA8B,EAAA,QAAA,EAEzC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,MACtBD,6BACc,MAAM,EAClB,SAAS,EAAE,MAAM,CAAC,YAAY,EAAA,aAAA,EAClB,6BAA6B,aAGzCC,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC,EAAA,aAAA,EACjD,6BAA6B,EAAA,CACzC,EACFA,aACE,SAAS,EAAE,MAAM,CAAC,mBAAmB,EAAA,aAAA,EACzB,qCAAqC,EAAA,QAAA,EAEjDA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,eAAe,iBACrB,iCAAiC,EAAA,QAAA,EAE7CA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC,EAAA,aAAA,EACjD,6BAA6B,EAAA,CACzC,EAAA,CACE,EAAA,CACF,CAAA,EAAA,EAnBD,IAAI,CAoBL,CACP,CAAC,EAAA,CACE,CAAA,EAAA,CACF;AAEV;;;;"}
|
|
@@ -3,7 +3,8 @@ import { buildWordSegments } from '../../utils/string/buildWordSegments.js';
|
|
|
3
3
|
import { Typography } from '../Typography/index.js';
|
|
4
4
|
import styles from './TextWithAction.module.css.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const EMPTY_ACTIONS = [];
|
|
7
|
+
const TextWithAction = ({ textTemplate, actions = EMPTY_ACTIONS, fontClass = "body2Regular", className, }) => (jsx(Typography, { tag: "span", fontClass: fontClass, className: className, "data-testid": "TextWithAction_WRAPPER", children: buildWordSegments(textTemplate, actions).map((segment) => segment.onClick ? (jsx("button", { type: "button", className: styles.action, "data-testid": "TextWithAction_ACTION", onClick: segment.onClick, children: segment.text }, segment.key)) : (jsx("span", { "data-testid": "TextWithAction_PLAIN_TEXT", children: segment.text }, segment.key))) }));
|
|
7
8
|
|
|
8
9
|
export { TextWithAction };
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/TextWithAction/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/TextWithAction/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;AAYA,MAAM,aAAa,GAAmB,EAAE;MAE3B,cAAc,GAAG,CAAC,EAC7B,YAAY,EACZ,OAAO,GAAG,aAAa,EACvB,SAAS,GAAG,cAAc,EAC1B,SAAS,GACY,MACrBA,GAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EAAA,aAAA,EACR,wBAAwB,EAAA,QAAA,EAEnC,iBAAiB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,KACpD,OAAO,CAAC,OAAO,IACbA,gBACE,IAAI,EAAC,QAAQ,EAEb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAA,aAAA,EACZ,uBAAuB,EACnC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAA,QAAA,EAEvB,OAAO,CAAC,IAAI,EAAA,EALR,OAAO,CAAC,GAAG,CAMT,KAETA,GAAA,CAAA,MAAA,EAAA,EAAA,aAAA,EAAoC,2BAA2B,EAAA,QAAA,EAC5D,OAAO,CAAC,IAAI,EAAA,EADJ,OAAO,CAAC,GAAG,CAEf,CACR,CACF,EAAA,CACU;;;;"}
|
|
@@ -47,7 +47,8 @@ import '../../baseComponents/TextWithAction/TextWithAction.module.css.js';
|
|
|
47
47
|
import { Title } from '../../baseComponents/Title/index.js';
|
|
48
48
|
import styles from './ErrorModal.module.css.js';
|
|
49
49
|
|
|
50
|
-
const
|
|
50
|
+
const EMPTY_FOOTER_BUTTONS = [];
|
|
51
|
+
const ErrorModal = ({ status, message, title, illustration, lang, isOpen, onClose, footerButtons = EMPTY_FOOTER_BUTTONS, }) => {
|
|
51
52
|
const isAuthError = status === 401;
|
|
52
53
|
const langDic = i18n.ErrorModal;
|
|
53
54
|
const langDicMsg = message ?? (isAuthError ? langDic.NotAuthorizedMessage[lang] : "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,oBAAoB,GAAyB,EAAE;AAE9C,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GAAG,oBAAoB,GACnB,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAEpE,QACEA,GAAA,CAAC,KAAK,EAAA,EACJ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB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AC,KAAK,CAAC,IAAI,CAAC,EACnC,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,UAAU,EAAA,CACnB,EAED,aAAa,CAAC,MAAM,GAAG,CAAC,KACvBA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,aAAa,EAAA,aAAA,EACnB,wBAAwB,EAAA,QAAA,EAEnC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,MACtBA,GAAA,CAAC,MAAM,EAAA,EAAA,YAAA,EACO,IAAI,CAAC,IAAI,EAAA,aAAA,EACR,IAAI,CAAC,UAAU,EAC5B,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EAErB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,OAAO,EAAA,QAAA,EAEpB,IAAI,CAAC,IAAI,EAAA,EAJL,IAAI,CAAC,UAAU,CAKb,CACV,CAAC,EAAA,CACE,CACP,CAAA,EAAA,CACG,CAAA,EAAA,CACF,EAAA,CACA;AAEZ;;;;"}
|
|
@@ -49,7 +49,7 @@ import styles from './ProfileHealthGeneral.module.css.js';
|
|
|
49
49
|
|
|
50
50
|
const ProfileHealthGeneral = ({ lang, attachedClinic, compulsoryHealthInsurance, }) => {
|
|
51
51
|
const langDic = i18n.ProfileHealthGeneral;
|
|
52
|
-
return (jsxs("div", { className: styles.wrap, "data-testid": "ProfileHealth_GENERAL", children: [jsxs("div", { "data-testid": "ProfileHealth_INFO", children: [jsx(Typography, { tag: "span", "data-testid": "ProfileHealth_HEADER", className: styles.header, "aria-label": langDic.HealthInfo[lang], fontClass: "body2Medium", children: langDic.HealthInfo[lang] }), jsx("div", { className: styles.content, "data-testid": "ProfileHealthAttached_CONTENT", children: attachedClinic.map((content
|
|
52
|
+
return (jsxs("div", { className: styles.wrap, "data-testid": "ProfileHealth_GENERAL", children: [jsxs("div", { "data-testid": "ProfileHealth_INFO", children: [jsx(Typography, { tag: "span", "data-testid": "ProfileHealth_HEADER", className: styles.header, "aria-label": langDic.HealthInfo[lang], fontClass: "body2Medium", children: langDic.HealthInfo[lang] }), jsx("div", { className: styles.content, "data-testid": "ProfileHealthAttached_CONTENT", children: attachedClinic.map((content) => (jsxs("div", { className: styles.block, "data-testid": "ProfileHealthAttached_BLOCK", children: [jsx(Typography, { tag: "span", "data-testid": "ProfileHealthContent_VALUE", className: styles.description, "aria-label": content.value, fontClass: "body2Regular", children: content.value }), jsx(Typography, { tag: "span", "data-testid": "ProfileHealthContent_TITLE", className: styles.title, "aria-label": content.title, fontClass: "caption1Regular", children: content.title })] }, `attached-${content.title}-${content.value}`))) }), jsx("hr", { className: styles.line, "data-testid": "ProfileHealth_LINE" })] }), jsxs("div", { "data-testid": "ProfileHealth_INSURANCE", children: [jsx(Typography, { tag: "span", "data-testid": "ProfileHealth_HEADER", className: styles.header, "aria-label": langDic.HealthInsurance[lang], fontClass: "body2Medium", children: langDic.HealthInsurance[lang] }), jsx("div", { className: styles.content, "data-testid": "ProfileHealthInsurance_CONTENT", children: compulsoryHealthInsurance.map((content) => (jsxs("div", { className: styles.block, "data-testid": "ProfileHealthInsurance_BLOCK", children: [jsx(Typography, { tag: "span", "data-testid": "ProfileHealthInsurance_VALUE", className: styles.description, "aria-label": content.value, fontClass: "body2Regular", children: content.value }), jsx(Typography, { tag: "span", "data-testid": "ProfileHealthInsurance_TITLE", className: styles.title, "aria-label": content.title, fontClass: "caption1Regular", children: content.title })] }, `insurance-${content.title}-${content.value}`))) }), jsx("hr", { className: styles.line, "data-testid": "ProfileHealth_LINE" })] })] }));
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export { ProfileHealthGeneral };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/ProfileHealthGeneral/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,MAAM,oBAAoB,GAAG,CAAC,EACnC,IAAI,EACJ,cAAc,EACd,yBAAyB,GACH,KAAI;AAC1B,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB;AACzC,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,aAAA,EAAc,uBAAuB,aAC9DA,IAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,oBAAoB,EAAA,QAAA,EAAA,CACnCC,GAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAC,MAAM,EAAA,aAAA,EACE,sBAAsB,EAClC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAA,YAAA,EACZ,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EACpC,SAAS,EAAC,aAAa,EAAA,QAAA,EAEtB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAA,CACd,EACbA,aACE,SAAS,EAAE,MAAM,CAAC,OAAO,EAAA,aAAA,EACb,+BAA+B,EAAA,QAAA,EAE1C,cAAc,CAAC,GAAG,CAAC,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/ProfileHealthGeneral/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,MAAM,oBAAoB,GAAG,CAAC,EACnC,IAAI,EACJ,cAAc,EACd,yBAAyB,GACH,KAAI;AAC1B,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB;AACzC,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,aAAA,EAAc,uBAAuB,aAC9DA,IAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,oBAAoB,EAAA,QAAA,EAAA,CACnCC,GAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAC,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