keycloak-d4science-spi-parent/keycloak-d4science-theme/src/main/resources/theme/d4science/account/resources/assets/PersonalInfo-5w_t768h.js.map

1 line
21 KiB
Plaintext
Raw Normal View History

{"version":3,"file":"PersonalInfo-5w_t768h.js","sources":["../../../../node_modules/.pnpm/@patternfly+react-styles@4.92.8/node_modules/@patternfly/react-styles/css/components/ExpandableSection/expandable-section.mjs","../../../../node_modules/.pnpm/@patternfly+react-tokens@4.94.7/node_modules/@patternfly/react-tokens/dist/esm/c_expandable_section_m_truncate__content_LineClamp.js","../../../../node_modules/.pnpm/@patternfly+react-core@4.278.0_react-dom@18.2.0_react@18.2.0/node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js","../../src/personal-info/PersonalInfo.tsx"],"sourcesContent":["import './expandable-section.css';\nexport default {\n \"expandableSection\": \"pf-c-expandable-section\",\n \"expandableSectionContent\": \"pf-c-expandable-section__content\",\n \"expandableSectionToggle\": \"pf-c-expandable-section__toggle\",\n \"expandableSectionToggleIcon\": \"pf-c-expandable-section__toggle-icon\",\n \"expandableSectionToggleText\": \"pf-c-expandable-section__toggle-text\",\n \"modifiers\": {\n \"expanded\": \"pf-m-expanded\",\n \"detached\": \"pf-m-detached\",\n \"truncate\": \"pf-m-truncate\",\n \"limitWidth\": \"pf-m-limit-width\",\n \"displayLg\": \"pf-m-display-lg\",\n \"indented\": \"pf-m-indented\",\n \"active\": \"pf-m-active\",\n \"expandTop\": \"pf-m-expand-top\",\n \"overpassFont\": \"pf-m-overpass-font\"\n }\n};","export const c_expandable_section_m_truncate__content_LineClamp = {\n \"name\": \"--pf-c-expandable-section--m-truncate__content--LineClamp\",\n \"value\": \"3\",\n \"var\": \"var(--pf-c-expandable-section--m-truncate__content--LineClamp)\"\n};\nexport default c_expandable_section_m_truncate__content_LineClamp;","import { __rest } from \"tslib\";\nimport * as React from 'react';\nimport styles from '@patternfly/react-styles/css/components/ExpandableSection/expandable-section';\nimport { css } from '@patternfly/react-styles';\nimport lineClamp from '@patternfly/react-tokens/dist/esm/c_expandable_section_m_truncate__content_LineClamp';\nimport AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';\nimport { debounce } from '../../helpers/util';\nimport { getResizeObserver } from '../../helpers/resizeObserver';\nexport var ExpandableSectionVariant;\n(function (ExpandableSectionVariant) {\n ExpandableSectionVariant[\"default\"] = \"default\";\n ExpandableSectionVariant[\"truncate\"] = \"truncate\";\n})(ExpandableSectionVariant || (ExpandableSectionVariant = {}));\nconst setLineClamp = (lines, element) => {\n if (!element || lines < 1) {\n return;\n }\n element.style.setProperty(lineClamp.name, lines.toString());\n};\nexport class ExpandableSection extends React.Component {\n constructor(props) {\n super(props);\n this.expandableContentRef = React.createRef();\n this.observer = () => { };\n this.checkToggleVisibility = () => {\n var _a;\n if ((_a = this.expandableContentRef) === null || _a === void 0 ? void 0 : _a.current) {\n const maxLines = this.props.truncateMaxLines || parseInt(lineClamp.value);\n const totalLines = this.expandableContentRef.current.scrollHeight /\n parseInt(getComputedStyle(this.expandableContentRef.current).lineHeight);\n this.setState({\n hasToggle: totalLines > maxLines\n });\n }\n };\n this.resize = () => {\n const { offsetWidth } = this.expandableContentRef.current;\n if (this.state.previousWidth !== offsetWidth) {\n this.setState({ previousWidth: offsetWidth });\n this.checkToggleVisibility();\n }\n };\n this.handleResize = debounce(this.resize, 250);\n this.state = {\n isExpanded: props.isExpanded,\n hasToggle: true,\n previousWidth: undefined\n };\n }\n calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded)