@anoki/fse-ui 1.0.611 → 1.0.613
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/components/ui/AuthorWithImage/AuthorWithImage.css +1 -1
- package/dist/components/ui/DelegateFilterDropDown/DelegateFilterDropDown.css +1 -1
- package/dist/components/ui/GroupCodeExemptionFilterDropDown/GroupCodeExemptionFilterDropDown.css +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs177.js.map +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs178.js.map +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs356.js +3 -12
- package/dist/index.cjs356.js.map +1 -1
- package/dist/index.cjs357.js +27 -1
- package/dist/index.cjs357.js.map +1 -1
- package/dist/index.cjs358.js +1 -2
- package/dist/index.cjs358.js.map +1 -1
- package/dist/index.cjs359.js +1 -27
- package/dist/index.cjs359.js.map +1 -1
- package/dist/index.cjs360.js +1 -1
- package/dist/index.cjs360.js.map +1 -1
- package/dist/index.cjs361.js +2 -1
- package/dist/index.cjs361.js.map +1 -1
- package/dist/index.cjs367.js +1 -1
- package/dist/index.cjs368.js +1 -1
- package/dist/index.cjs369.js +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs372.js +1 -1
- package/dist/index.cjs372.js.map +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs375.js.map +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs376.js.map +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs379.js +1 -1
- package/dist/index.cjs379.js.map +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs380.js.map +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs382.js.map +1 -1
- package/dist/index.cjs383.js +1 -1
- package/dist/index.cjs383.js.map +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs387.js.map +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs388.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs390.js +2 -0
- package/dist/index.cjs390.js.map +1 -0
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs395.js.map +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs398.js +1 -4
- package/dist/index.cjs398.js.map +1 -1
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs407.js.map +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs408.js.map +1 -1
- package/dist/index.cjs409.js +2 -0
- package/dist/index.cjs409.js.map +1 -0
- package/dist/index.cjs410.js +5 -0
- package/dist/index.cjs410.js.map +1 -0
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs413.js.map +1 -1
- package/dist/{index.cjs402.js → index.cjs414.js} +1 -1
- package/dist/{index.cjs402.js.map → index.cjs414.js.map} +1 -1
- package/dist/{index.cjs404.js → index.cjs422.js} +2 -2
- package/dist/{index.cjs404.js.map → index.cjs422.js.map} +1 -1
- package/dist/{index.cjs405.js → index.cjs423.js} +2 -2
- package/dist/{index.cjs405.js.map → index.cjs423.js.map} +1 -1
- package/dist/{index.cjs406.js → index.cjs424.js} +2 -2
- package/dist/{index.cjs406.js.map → index.cjs424.js.map} +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs425.js.map +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs426.js.map +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs428.js.map +1 -1
- package/dist/index.cjs429.js +2 -0
- package/dist/index.cjs429.js.map +1 -0
- package/dist/index.cjs430.js +2 -0
- package/dist/index.cjs430.js.map +1 -0
- package/dist/index.cjs431.js +2 -0
- package/dist/index.cjs431.js.map +1 -0
- package/dist/index.cjs432.js +2 -0
- package/dist/index.cjs432.js.map +1 -0
- package/dist/index.cjs435.js +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.cjs450.js +5 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -5
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.es177.js +76 -71
- package/dist/index.es177.js.map +1 -1
- package/dist/index.es178.js +11 -1
- package/dist/index.es178.js.map +1 -1
- package/dist/index.es182.js +63 -58
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es191.js +29 -26
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es195.js +18 -15
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es200.js +1 -1
- package/dist/index.es207.js +2 -2
- package/dist/index.es229.js +1 -1
- package/dist/index.es236.js +3 -3
- package/dist/index.es246.js +1 -1
- package/dist/index.es253.js +8 -8
- package/dist/index.es260.js +1 -1
- package/dist/index.es265.js +1 -1
- package/dist/index.es272.js +1 -1
- package/dist/index.es280.js +2 -2
- package/dist/index.es318.js +1 -1
- package/dist/index.es34.js +80 -91
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es346.js +2 -2
- package/dist/index.es347.js +3 -3
- package/dist/index.es356.js +146 -307
- package/dist/index.es356.js.map +1 -1
- package/dist/index.es357.js +3674 -5
- package/dist/index.es357.js.map +1 -1
- package/dist/index.es358.js +5 -520
- package/dist/index.es358.js.map +1 -1
- package/dist/index.es359.js +2 -3675
- package/dist/index.es359.js.map +1 -1
- package/dist/index.es360.js +5 -5
- package/dist/index.es360.js.map +1 -1
- package/dist/index.es361.js +521 -2
- package/dist/index.es361.js.map +1 -1
- package/dist/index.es367.js +1 -1
- package/dist/index.es368.js +1 -1
- package/dist/index.es369.js +13 -13
- package/dist/index.es370.js +1 -1
- package/dist/index.es372.js +15 -53
- package/dist/index.es372.js.map +1 -1
- package/dist/index.es375.js +10 -124
- package/dist/index.es375.js.map +1 -1
- package/dist/index.es376.js +51 -13
- package/dist/index.es376.js.map +1 -1
- package/dist/index.es377.js +41 -130
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +7 -217
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es379.js +124 -13
- package/dist/index.es379.js.map +1 -1
- package/dist/index.es380.js +13 -67
- package/dist/index.es380.js.map +1 -1
- package/dist/index.es381.js +127 -170
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es382.js +217 -49
- package/dist/index.es382.js.map +1 -1
- package/dist/index.es383.js +12 -7
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es384.js +68 -3
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +177 -11
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +48 -203
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es387.js +8 -21
- package/dist/index.es387.js.map +1 -1
- package/dist/index.es388.js +4 -25
- package/dist/index.es388.js.map +1 -1
- package/dist/index.es389.js +5 -392
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es390.js +28 -0
- package/dist/index.es390.js.map +1 -0
- package/dist/index.es391.js +11 -24
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +204 -28
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +22 -5
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +390 -12
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es395.js +25 -5
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es396.js +29 -3
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +5 -24
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es398.js +12 -107
- package/dist/index.es398.js.map +1 -1
- package/dist/index.es407.js +5 -14
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es408.js +3 -62
- package/dist/index.es408.js.map +1 -1
- package/dist/index.es409.js +27 -0
- package/dist/index.es409.js.map +1 -0
- package/dist/index.es410.js +113 -0
- package/dist/index.es410.js.map +1 -0
- package/dist/index.es411.js +15 -3
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es412.js +519 -19
- package/dist/index.es412.js.map +1 -1
- package/dist/index.es413.js +126 -14
- package/dist/index.es413.js.map +1 -1
- package/dist/{index.es402.js → index.es414.js} +1 -1
- package/dist/{index.es402.js.map → index.es414.js.map} +1 -1
- package/dist/{index.es404.js → index.es422.js} +2 -2
- package/dist/{index.es404.js.map → index.es422.js.map} +1 -1
- package/dist/{index.es405.js → index.es423.js} +4 -4
- package/dist/{index.es405.js.map → index.es423.js.map} +1 -1
- package/dist/{index.es406.js → index.es424.js} +2 -2
- package/dist/{index.es406.js.map → index.es424.js.map} +1 -1
- package/dist/index.es425.js +14 -23
- package/dist/index.es425.js.map +1 -1
- package/dist/index.es426.js +61 -12
- package/dist/index.es426.js.map +1 -1
- package/dist/index.es427.js +3 -27
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es428.js +23 -5
- package/dist/index.es428.js.map +1 -1
- package/dist/index.es429.js +16 -0
- package/dist/index.es429.js.map +1 -0
- package/dist/index.es430.js +31 -0
- package/dist/index.es430.js.map +1 -0
- package/dist/index.es431.js +8 -0
- package/dist/index.es431.js.map +1 -0
- package/dist/index.es432.js +26 -0
- package/dist/index.es432.js.map +1 -0
- package/dist/index.es435.js +2 -2
- package/dist/index.es438.js +2 -2
- package/dist/index.es441.js +1 -1
- package/dist/index.es445.js +5 -5
- package/dist/index.es446.js +12 -2
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +176 -8
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +3 -177
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +131 -2
- package/dist/index.es449.js.map +1 -1
- package/dist/index.es450.js +36 -129
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +2 -40
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +2 -2
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +2 -4
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es459.js +3 -82
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +82 -3
- package/dist/index.es460.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs371.js +0 -2
- package/dist/index.cjs371.js.map +0 -1
- package/dist/index.cjs373.js +0 -2
- package/dist/index.cjs373.js.map +0 -1
- package/dist/index.cjs374.js +0 -2
- package/dist/index.cjs374.js.map +0 -1
- package/dist/index.cjs399.js +0 -2
- package/dist/index.cjs399.js.map +0 -1
- package/dist/index.cjs400.js +0 -2
- package/dist/index.cjs400.js.map +0 -1
- package/dist/index.cjs401.js +0 -2
- package/dist/index.cjs401.js.map +0 -1
- package/dist/index.cjs403.js +0 -2
- package/dist/index.cjs403.js.map +0 -1
- package/dist/index.es371.js +0 -14
- package/dist/index.es371.js.map +0 -1
- package/dist/index.es373.js +0 -49
- package/dist/index.es373.js.map +0 -1
- package/dist/index.es374.js +0 -11
- package/dist/index.es374.js.map +0 -1
- package/dist/index.es399.js +0 -19
- package/dist/index.es399.js.map +0 -1
- package/dist/index.es400.js +0 -526
- package/dist/index.es400.js.map +0 -1
- package/dist/index.es401.js +0 -130
- package/dist/index.es401.js.map +0 -1
- package/dist/index.es403.js +0 -9
- package/dist/index.es403.js.map +0 -1
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es34.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es34.js","sources":["../src/components/ui/AuthorWithImage/index.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { AuthorBlock } from \"../AuthorBlock\";\nimport \"./AuthorWithImage.scss\";\nimport { fromISODateToDateFormatted } from \"@/utils/dates\";\nimport { useCopyToClipboardCurrentPage } from \"@/hooks/useCopyToClipboardCurrentPage\";\nimport { useAlertDialog } from \"@/hooks/useAlert\";\nimport { getFullNameInitials } from \"@/utils/getFullNameInitials\";\nimport { Row } from \"../Row\";\nimport { CopyLink, ShareLink } from \"@/icons\";\nimport { splitInTwo } from \"@/utils/splitInTwo\";\nimport { ActionIconText } from \"../ActionIconText\";\nimport { CardCategory, Col } from \"@/components\";\nimport { Tags } from \"@/sections\";\n\nexport type VariantType = \"service\" | \"event\" | \"insight\";\n\ninterface AuthorWithImageProps {\n service: {\n name: string;\n previewImageUrl?: string;\n previewImageTitle?: string;\n updatedBy?: {\n name?: string;\n surname?: string;\n };\n updatedAt?: string;\n readingTime?: string;\n eventTitle?: string;\n eventDescription?: string;\n eventDescriptionTitle?: string;\n tags?: string[];\n };\n publishedLabel?: string;\n readingTimeLabel?: string;\n readingMinuteLabel?: string;\n tagsLabelTitle?: string;\n shareLabel?: string;\n copyLinkLabel?: string;\n copiedTextLabel?: string;\n ImageComponent?: \"img\" | React.ComponentType<any>;\n imageProps?: Record<string, any>;\n imagePropsCard?: Record<string, any>;\n variant?: VariantType;\n isPreview?: boolean;\n}\n\nexport const AuthorWithImage = ({\n service,\n ImageComponent = \"img\",\n imageProps = {},\n imagePropsCard = {},\n variant = \"service\",\n publishedLabel = \"Pubblicato\",\n readingTimeLabel = \"Tempo di lettura\",\n readingMinuteLabel = \"min\",\n tagsLabelTitle = \"Argomenti trattati\",\n shareLabel = \"Condividi\",\n copyLinkLabel = \"Copia link\",\n copiedTextLabel = \"Link copiato\",\n isPreview = false,\n}: AuthorWithImageProps) => {\n const { copyToClipboard, isCopied } = useCopyToClipboardCurrentPage();\n const { openAlert } = useAlertDialog();\n const avatarInitials = useMemo(() => {\n if (!service?.updatedBy) return \"-\";\n return getFullNameInitials(\n service.updatedBy.name ?? \"\",\n service.updatedBy.surname ?? \"\",\n );\n }, [service.updatedBy]);\n\n const [firstTitleLine, secondTitleLine] = useMemo(() => {\n if (service.previewImageTitle) {\n return splitInTwo(service.previewImageTitle?.toUpperCase());\n }\n return [\"\", \"\"];\n }, [service]);\n\n const readingTimeInMinutes = useMemo(() => {\n const readingTime = service.readingTime ?? \"0\";\n return Math.ceil(Number(readingTime) / 60)?.toString() || \"0\";\n }, [service]);\n\n const renderImage = () => {\n if (!service.previewImageUrl) return null;\n\n if (variant === \"event\") {\n return (\n <div\n className={\n isPreview ? \"service-detail-image\" : \"event-image-container\"\n }\n >\n <ImageComponent\n alt={`Evento ${service.name} background`}\n src={service.previewImageUrl}\n className=\"event-image\"\n style={{ aspectRatio: 21 / 9 }}\n {...imageProps}\n />\n <div className={\"event-content-overlay w-full\"}>\n <Row gap={\"x24\"} alignItems={\"end\"}>\n <ImageComponent\n src={service.previewImageUrl}\n alt={`Evento ${service.name}`}\n width={668}\n height={351}\n {...imagePropsCard}\n />\n <div style={{ width: \"437px\" }}>\n <Col gap={\"x32\"}>\n <CardCategory\n title={service.eventTitle ?? \"-\"}\n className={\"w-full\"}\n description={service.eventDescriptionTitle ?? \"-\"}\n description2={service.eventDescription ?? \"-\"}\n classNameTitle={\"text-slate-20 fs-5 md-fs-custom-2\"}\n classNameDescriptionTitle={\n \"text-slate-28 fw-bold fs-6 md-fs-custom\"\n }\n />\n <Tags title={tagsLabelTitle} items={service.tags ?? []} />\n </Col>\n </div>\n </Row>\n </div>\n </div>\n );\n }\n\n return (\n <div\n className={\n isPreview ? \"service-detail-image\" : \"fullscreen-image-container\"\n }\n >\n <ImageComponent\n alt={`Service ${service.name} image`}\n src={service.previewImageUrl}\n style={{ aspectRatio: 21 / 9 }}\n {...imageProps}\n />\n <p className={\"short-title\"}>\n <span>{firstTitleLine}</span>\n <span>{secondTitleLine}</span>\n </p>\n </div>\n );\n };\n\n return (\n <>\n <div className={\"action-author\"}>\n <AuthorBlock\n authorName={\n service?.updatedBy?.name\n ? `${service?.updatedBy?.name} ${service?.updatedBy?.surname}`\n : \"-\"\n }\n avatar={{ initials: avatarInitials }}\n publishedLabel={publishedLabel}\n publishedDate={\n fromISODateToDateFormatted(service.updatedAt ?? \"\", \"it\") ?? \"-\"\n }\n readingTimeLabel={readingTimeLabel}\n readingTimeValue={readingTimeInMinutes}\n readingMinuteLabel={readingMinuteLabel}\n />\n <Row pb={\"x16\"} gap={\"x8\"} className={\"action-link\"}>\n <ActionIconText\n textLabel={shareLabel}\n icon={<ShareLink />}\n handleAction={openAlert}\n classNameText={\"fw-bold\"}\n />\n <div className={\"share-divider\"}>\n <ActionIconText\n textLabel={isCopied ? copiedTextLabel : copyLinkLabel}\n icon={<CopyLink />}\n handleAction={copyToClipboard}\n classNameText={\"fw-bold\"}\n />\n </div>\n </Row>\n </div>\n\n {renderImage()}\n </>\n );\n};\n"],"names":["AuthorWithImage","service","ImageComponent","imageProps","imagePropsCard","variant","publishedLabel","readingTimeLabel","readingMinuteLabel","tagsLabelTitle","shareLabel","copyLinkLabel","copiedTextLabel","isPreview","copyToClipboard","isCopied","useCopyToClipboardCurrentPage","openAlert","useAlertDialog","avatarInitials","useMemo","getFullNameInitials","firstTitleLine","secondTitleLine","splitInTwo","_a","readingTimeInMinutes","readingTime","renderImage","jsxs","jsx","Row","Col","CardCategory","Tags","Fragment","AuthorBlock","_b","_c","fromISODateToDateFormatted","ActionIconText","ShareLink","CopyLink"],"mappings":";;;;;;;;;;;;;;;;AA8CO,MAAMA,KAAkB,CAAC;AAAA,EAC9B,SAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,YAAAC,IAAa,CAAC;AAAA,EACd,gBAAAC,IAAiB,CAAC;AAAA,EAClB,SAAAC,IAAU;AAAA,EACV,gBAAAC,IAAiB;AA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nB,CAAA;AAAA,MAAA,EACF,CAAA;AAAA,IAAA,GACF;AAAA,IAECc,EAAY;AAAA,EAAA,GACf;AAEJ;"}
|
1
|
+
{"version":3,"file":"index.es34.js","sources":["../src/components/ui/AuthorWithImage/index.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { AuthorBlock } from \"../AuthorBlock\";\nimport \"./AuthorWithImage.scss\";\nimport { fromISODateToDateFormatted } from \"@/utils/dates\";\nimport { useCopyToClipboardCurrentPage } from \"@/hooks/useCopyToClipboardCurrentPage\";\nimport { useAlertDialog } from \"@/hooks/useAlert\";\nimport { getFullNameInitials } from \"@/utils/getFullNameInitials\";\nimport { Row } from \"../Row\";\nimport { CopyLink, ShareLink } from \"@/icons\";\nimport { splitInTwo } from \"@/utils/splitInTwo\";\nimport { ActionIconText } from \"../ActionIconText\";\nimport { CardCategory, Col } from \"@/components\";\nimport { Tags } from \"@/sections\";\n\nexport type VariantType = \"service\" | \"event\" | \"insight\";\n\ninterface AuthorWithImageProps {\n service: {\n name: string;\n previewImageUrl?: string;\n previewImageTitle?: string;\n updatedBy?: {\n name?: string;\n surname?: string;\n };\n updatedAt?: string;\n readingTime?: string;\n eventTitle?: string;\n eventDescription?: string;\n eventDescriptionTitle?: string;\n tags?: string[];\n };\n publishedLabel?: string;\n readingTimeLabel?: string;\n readingMinuteLabel?: string;\n tagsLabelTitle?: string;\n shareLabel?: string;\n copyLinkLabel?: string;\n copiedTextLabel?: string;\n ImageComponent?: \"img\" | React.ComponentType<any>;\n imageProps?: Record<string, any>;\n variant?: VariantType;\n isPreview?: boolean;\n}\n\nexport const AuthorWithImage = ({\n service,\n ImageComponent = \"img\",\n imageProps = {},\n variant = \"service\",\n publishedLabel = \"Pubblicato\",\n readingTimeLabel = \"Tempo di lettura\",\n readingMinuteLabel = \"min\",\n tagsLabelTitle = \"Argomenti trattati\",\n shareLabel = \"Condividi\",\n copyLinkLabel = \"Copia link\",\n copiedTextLabel = \"Link copiato\",\n isPreview = false,\n}: AuthorWithImageProps) => {\n const { copyToClipboard, isCopied } = useCopyToClipboardCurrentPage();\n const { openAlert } = useAlertDialog();\n const avatarInitials = useMemo(() => {\n if (!service?.updatedBy) return \"-\";\n return getFullNameInitials(\n service.updatedBy.name ?? \"\",\n service.updatedBy.surname ?? \"\",\n );\n }, [service.updatedBy]);\n\n const [firstTitleLine, secondTitleLine] = useMemo(() => {\n if (service.previewImageTitle) {\n return splitInTwo(service.previewImageTitle?.toUpperCase());\n }\n return [\"\", \"\"];\n }, [service]);\n\n const readingTimeInMinutes = useMemo(() => {\n const readingTime = service.readingTime ?? \"0\";\n return Math.ceil(Number(readingTime) / 60)?.toString() || \"0\";\n }, [service]);\n\n const renderImage = () => {\n if (!service.previewImageUrl) return null;\n\n if (variant === \"event\") {\n return (\n <div className={isPreview ? \"event-preview\" : \"event-image-container\"}>\n <img\n className=\"event-background\"\n src={service.previewImageUrl}\n alt={`Evento ${service.name}`}\n />\n\n <div className=\"event-content-overlay\">\n <img\n className=\"event-main-image\"\n src={service.previewImageUrl}\n alt={`Evento ${service.name}`}\n />\n\n <div className=\"event-card-container\">\n <Col gap={\"x32\"}>\n <CardCategory\n title={service.eventTitle ?? \"-\"}\n className={\"w-full\"}\n description={service.eventDescriptionTitle ?? \"-\"}\n description2={service.eventDescription ?? \"-\"}\n classNameTitle={\"text-slate-20 fs-5 md-fs-custom-2\"}\n classNameDescriptionTitle={\n \"text-slate-28 fw-bold fs-6 md-fs-custom\"\n }\n />\n <Tags title={tagsLabelTitle} items={service.tags ?? []} />\n </Col>\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <div\n className={\n isPreview ? \"service-detail-image\" : \"fullscreen-image-container\"\n }\n >\n <ImageComponent\n alt={`Service ${service.name} image`}\n src={service.previewImageUrl}\n style={{ aspectRatio: 21 / 9 }}\n {...imageProps}\n />\n <p className={\"short-title\"}>\n <span>{firstTitleLine}</span>\n <span>{secondTitleLine}</span>\n </p>\n </div>\n );\n };\n\n return (\n <>\n <div className={\"action-author\"}>\n <AuthorBlock\n authorName={\n service?.updatedBy?.name\n ? `${service?.updatedBy?.name} ${service?.updatedBy?.surname}`\n : \"-\"\n }\n avatar={{ initials: avatarInitials }}\n publishedLabel={publishedLabel}\n publishedDate={\n fromISODateToDateFormatted(service.updatedAt ?? \"\", \"it\") ?? \"-\"\n }\n readingTimeLabel={readingTimeLabel}\n readingTimeValue={readingTimeInMinutes}\n readingMinuteLabel={readingMinuteLabel}\n />\n <Row pb={\"x16\"} gap={\"x8\"} className={\"action-link\"}>\n <ActionIconText\n textLabel={shareLabel}\n icon={<ShareLink />}\n handleAction={openAlert}\n classNameText={\"fw-bold\"}\n />\n <div className={\"share-divider\"}>\n <ActionIconText\n textLabel={isCopied ? copiedTextLabel : copyLinkLabel}\n icon={<CopyLink />}\n handleAction={copyToClipboard}\n classNameText={\"fw-bold\"}\n />\n </div>\n </Row>\n </div>\n\n {renderImage()}\n </>\n );\n};\n"],"names":["AuthorWithImage","service","ImageComponent","imageProps","variant","publishedLabel","readingTimeLabel","readingMinuteLabel","tagsLabelTitle","shareLabel","copyLinkLabel","copiedTextLabel","isPreview","copyToClipboard","isCopied","useCopyToClipboardCurrentPage","openAlert","useAlertDialog","avatarInitials","useMemo","getFullNameInitials","firstTitleLine","secondTitleLine","splitInTwo","_a","readingTimeInMinutes","readingTime","renderImage","jsxs","jsx","Col","CardCategory","Tags","Fragment","AuthorBlock","_b","_c","fromISODateToDateFormatted","Row","ActionIconText","ShareLink","CopyLink"],"mappings":";;;;;;;;;;;;;;;;AA6CO,MAAMA,KAAkB,CAAC;AAAA,EAC9B,SAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,YAAAC,IAAa,CAAC;AAAA,EACd,SAAAC,IAAU;AAAA,EACV,gBAAAC,IAAiB;AAAA,EACjB,kBAAAC,IAAmB;AAAA,EACnB,oBAAAC,IAAqB;AAAA,EACrB,gBAAAC,IAAiB;AAAA,EACjB,YAAAC,IAAa;AAAA,EACb,eAAAC,I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AA,UACC,aACEV,IAAAvB,KAAA,gBAAAA,EAAS,cAAT,QAAAuB,EAAoB,OAChB,IAAGW,IAAAlC,KAAA,gBAAAA,EAAS,cAAT,gBAAAkC,EAAoB,IAAI,KAAIC,IAAAnC,KAAA,gBAAAA,EAAS,cAAT,gBAAAmC,EAAoB,OAAO,KAC1D;AAAA,UAEN,QAAQ,EAAE,UAAUlB,EAAe;AAAA,UACnC,gBAAAb;AAAA,UACA,eACEgC,EAA2BpC,EAAQ,aAAa,IAAI,IAAI,KAAK;AAAA,UAE/D,kBAAAK;AAAA,UACA,kBAAkBmB;AAAA,UAClB,oBAAAlB;AAAA,QAAA;AAAA,MACF;AAAA,6BACC+B,GAAI,EAAA,IAAI,OAAO,KAAK,MAAM,WAAW,eACpC,UAAA;AAAA,QAAAT,gBAAAA,EAAA;AAAA,UAACU;AAAA,UAAA;AAAA,YACC,WAAW9B;AAAA,YACX,4BAAO+B,GAAU,EAAA;AAAA,YACjB,cAAcxB;AAAA,YACd,eAAe;AAAA,UAAA;AAAA,QACjB;AAAA,QACAa,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAW,iBACd,UAAAA,gBAAAA,EAAA;AAAA,UAACU;AAAA,UAAA;AAAA,YACC,WAAWzB,IAAWH,IAAkBD;AAAA,YACxC,4BAAO+B,GAAS,EAAA;AAAA,YAChB,cAAc5B;AAAA,YACd,eAAe;AAAA,UAAA;AAAA,QAAA,EAEnB,CAAA;AAAA,MAAA,EACF,CAAA;AAAA,IAAA,GACF;AAAA,IAECc,EAAY;AAAA,EAAA,GACf;AAEJ;"}
|
package/dist/index.es346.js
CHANGED
package/dist/index.es347.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { c as $ } from "./index.
|
2
|
-
import { c as F } from "./index.
|
3
|
-
import { m, a as E, f as T, h as S } from "./index.
|
1
|
+
import { c as $ } from "./index.es448.js";
|
2
|
+
import { c as F } from "./index.es446.js";
|
3
|
+
import { m, a as E, f as T, h as S } from "./index.es447.js";
|
4
4
|
function N(I) {
|
5
5
|
let {
|
6
6
|
swiper: e,
|
package/dist/index.es356.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { __exports as
|
2
|
-
import
|
1
|
+
import { __exports as u } from "./index.es363.js";
|
2
|
+
import B from "react";
|
3
3
|
/**
|
4
4
|
* @license React
|
5
5
|
* react-jsx-runtime.development.js
|
@@ -9,289 +9,125 @@ import we from "react";
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
11
11
|
*/
|
12
|
-
var
|
13
|
-
function
|
14
|
-
return
|
15
|
-
function
|
12
|
+
var N;
|
13
|
+
function Q() {
|
14
|
+
return N ? u : (N = 1, process.env.NODE_ENV !== "production" && function() {
|
15
|
+
function l(e) {
|
16
16
|
if (e == null) return null;
|
17
17
|
if (typeof e == "function")
|
18
|
-
return e.$$typeof ===
|
18
|
+
return e.$$typeof === q ? null : e.displayName || e.name || null;
|
19
19
|
if (typeof e == "string") return e;
|
20
20
|
switch (e) {
|
21
|
-
case
|
21
|
+
case m:
|
22
22
|
return "Fragment";
|
23
|
-
case
|
24
|
-
return "Portal";
|
25
|
-
case K:
|
23
|
+
case $:
|
26
24
|
return "Profiler";
|
27
|
-
case
|
25
|
+
case W:
|
28
26
|
return "StrictMode";
|
29
|
-
case
|
27
|
+
case z:
|
30
28
|
return "Suspense";
|
31
|
-
case
|
29
|
+
case V:
|
32
30
|
return "SuspenseList";
|
31
|
+
case X:
|
32
|
+
return "Activity";
|
33
33
|
}
|
34
34
|
if (typeof e == "object")
|
35
35
|
switch (typeof e.tag == "number" && console.error(
|
36
36
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
37
37
|
), e.$$typeof) {
|
38
|
-
case
|
38
|
+
case F:
|
39
|
+
return "Portal";
|
40
|
+
case U:
|
39
41
|
return (e.displayName || "Context") + ".Provider";
|
40
|
-
case
|
42
|
+
case L:
|
41
43
|
return (e._context.displayName || "Context") + ".Consumer";
|
42
|
-
case
|
44
|
+
case M:
|
43
45
|
var r = e.render;
|
44
46
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
45
|
-
case
|
46
|
-
return r = e.displayName || null, r !== null ? r :
|
47
|
-
case
|
47
|
+
case G:
|
48
|
+
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
49
|
+
case A:
|
48
50
|
r = e._payload, e = e._init;
|
49
51
|
try {
|
50
|
-
return
|
52
|
+
return l(e(r));
|
51
53
|
} catch {
|
52
54
|
}
|
53
55
|
}
|
54
56
|
return null;
|
55
57
|
}
|
56
|
-
function
|
58
|
+
function T(e) {
|
57
59
|
return "" + e;
|
58
60
|
}
|
59
|
-
function
|
61
|
+
function v(e) {
|
60
62
|
try {
|
61
|
-
|
63
|
+
T(e);
|
62
64
|
var r = !1;
|
63
65
|
} catch {
|
64
66
|
r = !0;
|
65
67
|
}
|
66
68
|
if (r) {
|
67
69
|
r = console;
|
68
|
-
var
|
69
|
-
return
|
70
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
71
|
+
return t.call(
|
70
72
|
r,
|
71
73
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
72
74
|
n
|
73
|
-
),
|
74
|
-
}
|
75
|
-
}
|
76
|
-
function $() {
|
77
|
-
}
|
78
|
-
function le() {
|
79
|
-
if (g === 0) {
|
80
|
-
Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
|
81
|
-
var e = {
|
82
|
-
configurable: !0,
|
83
|
-
enumerable: !0,
|
84
|
-
value: $,
|
85
|
-
writable: !0
|
86
|
-
};
|
87
|
-
Object.defineProperties(console, {
|
88
|
-
info: e,
|
89
|
-
log: e,
|
90
|
-
warn: e,
|
91
|
-
error: e,
|
92
|
-
group: e,
|
93
|
-
groupCollapsed: e,
|
94
|
-
groupEnd: e
|
95
|
-
});
|
96
|
-
}
|
97
|
-
g++;
|
98
|
-
}
|
99
|
-
function fe() {
|
100
|
-
if (g--, g === 0) {
|
101
|
-
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
102
|
-
Object.defineProperties(console, {
|
103
|
-
log: v({}, e, { value: Z }),
|
104
|
-
info: v({}, e, { value: F }),
|
105
|
-
warn: v({}, e, { value: I }),
|
106
|
-
error: v({}, e, { value: L }),
|
107
|
-
group: v({}, e, { value: Q }),
|
108
|
-
groupCollapsed: v({}, e, { value: D }),
|
109
|
-
groupEnd: v({}, e, { value: ee })
|
110
|
-
});
|
75
|
+
), T(e);
|
111
76
|
}
|
112
|
-
0 > g && console.error(
|
113
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
114
|
-
);
|
115
77
|
}
|
116
|
-
function
|
117
|
-
if (
|
118
|
-
|
119
|
-
|
120
|
-
} catch (o) {
|
121
|
-
var r = o.stack.trim().match(/\n( *(at )?)/);
|
122
|
-
x = r && r[1] || "", re = -1 < o.stack.indexOf(`
|
123
|
-
at`) ? " (<anonymous>)" : -1 < o.stack.indexOf("@") ? "@unknown:0:0" : "";
|
124
|
-
}
|
125
|
-
return `
|
126
|
-
` + x + e + re;
|
127
|
-
}
|
128
|
-
function U(e, r) {
|
129
|
-
if (!e || P) return "";
|
130
|
-
var o = Y.get(e);
|
131
|
-
if (o !== void 0) return o;
|
132
|
-
P = !0, o = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
133
|
-
var n = null;
|
134
|
-
n = E.H, E.H = null, le();
|
78
|
+
function f(e) {
|
79
|
+
if (e === m) return "<>";
|
80
|
+
if (typeof e == "object" && e !== null && e.$$typeof === A)
|
81
|
+
return "<...>";
|
135
82
|
try {
|
136
|
-
var
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
var i = function() {
|
141
|
-
throw Error();
|
142
|
-
};
|
143
|
-
if (Object.defineProperty(i.prototype, "props", {
|
144
|
-
set: function() {
|
145
|
-
throw Error();
|
146
|
-
}
|
147
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
148
|
-
try {
|
149
|
-
Reflect.construct(i, []);
|
150
|
-
} catch (c) {
|
151
|
-
var w = c;
|
152
|
-
}
|
153
|
-
Reflect.construct(e, [], i);
|
154
|
-
} else {
|
155
|
-
try {
|
156
|
-
i.call();
|
157
|
-
} catch (c) {
|
158
|
-
w = c;
|
159
|
-
}
|
160
|
-
e.call(i.prototype);
|
161
|
-
}
|
162
|
-
} else {
|
163
|
-
try {
|
164
|
-
throw Error();
|
165
|
-
} catch (c) {
|
166
|
-
w = c;
|
167
|
-
}
|
168
|
-
(i = e()) && typeof i.catch == "function" && i.catch(function() {
|
169
|
-
});
|
170
|
-
}
|
171
|
-
} catch (c) {
|
172
|
-
if (c && w && typeof c.stack == "string")
|
173
|
-
return [c.stack, w.stack];
|
174
|
-
}
|
175
|
-
return [null, null];
|
176
|
-
}
|
177
|
-
};
|
178
|
-
u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
179
|
-
var a = Object.getOwnPropertyDescriptor(
|
180
|
-
u.DetermineComponentFrameRoot,
|
181
|
-
"name"
|
182
|
-
);
|
183
|
-
a && a.configurable && Object.defineProperty(
|
184
|
-
u.DetermineComponentFrameRoot,
|
185
|
-
"name",
|
186
|
-
{ value: "DetermineComponentFrameRoot" }
|
187
|
-
);
|
188
|
-
var t = u.DetermineComponentFrameRoot(), f = t[0], d = t[1];
|
189
|
-
if (f && d) {
|
190
|
-
var l = f.split(`
|
191
|
-
`), b = d.split(`
|
192
|
-
`);
|
193
|
-
for (t = a = 0; a < l.length && !l[a].includes(
|
194
|
-
"DetermineComponentFrameRoot"
|
195
|
-
); )
|
196
|
-
a++;
|
197
|
-
for (; t < b.length && !b[t].includes(
|
198
|
-
"DetermineComponentFrameRoot"
|
199
|
-
); )
|
200
|
-
t++;
|
201
|
-
if (a === l.length || t === b.length)
|
202
|
-
for (a = l.length - 1, t = b.length - 1; 1 <= a && 0 <= t && l[a] !== b[t]; )
|
203
|
-
t--;
|
204
|
-
for (; 1 <= a && 0 <= t; a--, t--)
|
205
|
-
if (l[a] !== b[t]) {
|
206
|
-
if (a !== 1 || t !== 1)
|
207
|
-
do
|
208
|
-
if (a--, t--, 0 > t || l[a] !== b[t]) {
|
209
|
-
var m = `
|
210
|
-
` + l[a].replace(
|
211
|
-
" at new ",
|
212
|
-
" at "
|
213
|
-
);
|
214
|
-
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
|
215
|
-
}
|
216
|
-
while (1 <= a && 0 <= t);
|
217
|
-
break;
|
218
|
-
}
|
219
|
-
}
|
220
|
-
} finally {
|
221
|
-
P = !1, E.H = n, fe(), Error.prepareStackTrace = o;
|
222
|
-
}
|
223
|
-
return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
|
224
|
-
}
|
225
|
-
function T(e) {
|
226
|
-
if (e == null) return "";
|
227
|
-
if (typeof e == "function") {
|
228
|
-
var r = e.prototype;
|
229
|
-
return U(
|
230
|
-
e,
|
231
|
-
!(!r || !r.isReactComponent)
|
232
|
-
);
|
233
|
-
}
|
234
|
-
if (typeof e == "string") return y(e);
|
235
|
-
switch (e) {
|
236
|
-
case A:
|
237
|
-
return y("Suspense");
|
238
|
-
case R:
|
239
|
-
return y("SuspenseList");
|
83
|
+
var r = l(e);
|
84
|
+
return r ? "<" + r + ">" : "<...>";
|
85
|
+
} catch {
|
86
|
+
return "<...>";
|
240
87
|
}
|
241
|
-
if (typeof e == "object")
|
242
|
-
switch (e.$$typeof) {
|
243
|
-
case S:
|
244
|
-
return e = U(e.render, !1), e;
|
245
|
-
case k:
|
246
|
-
return T(e.type);
|
247
|
-
case p:
|
248
|
-
r = e._payload, e = e._init;
|
249
|
-
try {
|
250
|
-
return T(e(r));
|
251
|
-
} catch {
|
252
|
-
}
|
253
|
-
}
|
254
|
-
return "";
|
255
88
|
}
|
256
89
|
function C() {
|
257
|
-
var e =
|
90
|
+
var e = b.A;
|
258
91
|
return e === null ? null : e.getOwner();
|
259
92
|
}
|
260
|
-
function
|
261
|
-
|
93
|
+
function p() {
|
94
|
+
return Error("react-stack-top-frame");
|
95
|
+
}
|
96
|
+
function x(e) {
|
97
|
+
if (S.call(e, "key")) {
|
262
98
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
263
99
|
if (r && r.isReactWarning) return !1;
|
264
100
|
}
|
265
101
|
return e.key !== void 0;
|
266
102
|
}
|
267
|
-
function
|
268
|
-
function
|
269
|
-
|
103
|
+
function Y(e, r) {
|
104
|
+
function t() {
|
105
|
+
w || (w = !0, console.error(
|
270
106
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
271
107
|
r
|
272
108
|
));
|
273
109
|
}
|
274
|
-
|
275
|
-
get:
|
110
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
111
|
+
get: t,
|
276
112
|
configurable: !0
|
277
113
|
});
|
278
114
|
}
|
279
|
-
function
|
280
|
-
var e =
|
281
|
-
return
|
115
|
+
function I() {
|
116
|
+
var e = l(this.type);
|
117
|
+
return P[e] || (P[e] = !0, console.error(
|
282
118
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
283
119
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
284
120
|
}
|
285
|
-
function
|
286
|
-
return
|
287
|
-
$$typeof:
|
121
|
+
function D(e, r, t, n, c, o, E, _) {
|
122
|
+
return t = o.ref, e = {
|
123
|
+
$$typeof: g,
|
288
124
|
type: e,
|
289
125
|
key: r,
|
290
|
-
props:
|
291
|
-
_owner:
|
292
|
-
}, (
|
126
|
+
props: o,
|
127
|
+
_owner: c
|
128
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
293
129
|
enumerable: !1,
|
294
|
-
get:
|
130
|
+
get: I
|
295
131
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
296
132
|
configurable: !1,
|
297
133
|
enumerable: !1,
|
@@ -302,34 +138,37 @@ function he() {
|
|
302
138
|
enumerable: !1,
|
303
139
|
writable: !0,
|
304
140
|
value: null
|
141
|
+
}), Object.defineProperty(e, "_debugStack", {
|
142
|
+
configurable: !1,
|
143
|
+
enumerable: !1,
|
144
|
+
writable: !0,
|
145
|
+
value: E
|
146
|
+
}), Object.defineProperty(e, "_debugTask", {
|
147
|
+
configurable: !1,
|
148
|
+
enumerable: !1,
|
149
|
+
writable: !0,
|
150
|
+
value: _
|
305
151
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
306
152
|
}
|
307
|
-
function
|
308
|
-
|
309
|
-
|
310
|
-
if (
|
311
|
-
if (
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
n,
|
325
|
-
t
|
326
|
-
);
|
327
|
-
if (J.call(r, "key")) {
|
328
|
-
t = s(e);
|
329
|
-
var f = Object.keys(r).filter(function(l) {
|
330
|
-
return l !== "key";
|
153
|
+
function O(e, r, t, n, c, o, E, _) {
|
154
|
+
var a = r.children;
|
155
|
+
if (a !== void 0)
|
156
|
+
if (n)
|
157
|
+
if (K(a)) {
|
158
|
+
for (n = 0; n < a.length; n++)
|
159
|
+
k(a[n]);
|
160
|
+
Object.freeze && Object.freeze(a);
|
161
|
+
} else
|
162
|
+
console.error(
|
163
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
164
|
+
);
|
165
|
+
else k(a);
|
166
|
+
if (S.call(r, "key")) {
|
167
|
+
a = l(e);
|
168
|
+
var s = Object.keys(r).filter(function(J) {
|
169
|
+
return J !== "key";
|
331
170
|
});
|
332
|
-
n = 0 <
|
171
|
+
n = 0 < s.length ? "{key: someKey, " + s.join(": ..., ") + ": ...}" : "{key: someKey}", j[a + n] || (s = 0 < s.length ? "{" + s.join(": ..., ") + ": ...}" : "{}", console.error(
|
333
172
|
`A props object containing a "key" prop is being spread into JSX:
|
334
173
|
let props = %s;
|
335
174
|
<%s {...props} />
|
@@ -337,73 +176,73 @@ React keys must be passed directly to JSX without using spread:
|
|
337
176
|
let props = %s;
|
338
177
|
<%s key={someKey} {...props} />`,
|
339
178
|
n,
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
),
|
179
|
+
a,
|
180
|
+
s,
|
181
|
+
a
|
182
|
+
), j[a + n] = !0);
|
344
183
|
}
|
345
|
-
if (
|
346
|
-
|
347
|
-
for (var
|
348
|
-
|
349
|
-
} else
|
350
|
-
return
|
351
|
-
|
184
|
+
if (a = null, t !== void 0 && (v(t), a = "" + t), x(r) && (v(r.key), a = "" + r.key), "key" in r) {
|
185
|
+
t = {};
|
186
|
+
for (var R in r)
|
187
|
+
R !== "key" && (t[R] = r[R]);
|
188
|
+
} else t = r;
|
189
|
+
return a && Y(
|
190
|
+
t,
|
352
191
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
353
|
-
),
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
e._store && (e._store.validated = 1);
|
364
|
-
else if (e === null || typeof e != "object" ? o = null : (o = B && e[B] || e["@@iterator"], o = typeof o == "function" ? o : null), typeof o == "function" && o !== e.entries && (o = o.call(e), o !== e))
|
365
|
-
for (; !(e = o.next()).done; )
|
366
|
-
h(e.value) && G(e.value, r);
|
367
|
-
}
|
192
|
+
), D(
|
193
|
+
e,
|
194
|
+
a,
|
195
|
+
o,
|
196
|
+
c,
|
197
|
+
C(),
|
198
|
+
t,
|
199
|
+
E,
|
200
|
+
_
|
201
|
+
);
|
368
202
|
}
|
369
|
-
function
|
370
|
-
|
203
|
+
function k(e) {
|
204
|
+
typeof e == "object" && e !== null && e.$$typeof === g && e._store && (e._store.validated = 1);
|
371
205
|
}
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
E.getCurrentStack = function() {
|
379
|
-
var u = T(e.type);
|
380
|
-
return n && (u += n() || ""), u;
|
381
|
-
}, console.error(
|
382
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
383
|
-
r,
|
384
|
-
o
|
385
|
-
), E.getCurrentStack = n;
|
206
|
+
var i = B, g = Symbol.for("react.transitional.element"), F = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), V = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), b = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, S = Object.prototype.hasOwnProperty, K = Array.isArray, d = console.createTask ? console.createTask : function() {
|
207
|
+
return null;
|
208
|
+
};
|
209
|
+
i = {
|
210
|
+
"react-stack-bottom-frame": function(e) {
|
211
|
+
return e();
|
386
212
|
}
|
387
|
-
}
|
388
|
-
function ve(e) {
|
389
|
-
var r = "", o = C();
|
390
|
-
return o && (o = s(o.type)) && (r = `
|
391
|
-
|
392
|
-
Check the render method of \`` + o + "`."), r || (e = s(e)) && (r = `
|
393
|
-
|
394
|
-
Check the top-level render call using <` + e + ">."), r;
|
395
|
-
}
|
396
|
-
var be = we, O = Symbol.for("react.transitional.element"), de = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ge = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), E = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, v = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, g = 0, Z, F, I, L, Q, D, ee;
|
397
|
-
$.__reactDisabledLog = !0;
|
398
|
-
var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), oe, te = {}, ne = {}, ae = {};
|
399
|
-
_.Fragment = j, _.jsx = function(e, r, o, n, u) {
|
400
|
-
return z(e, r, o, !1, n, u);
|
401
|
-
}, _.jsxs = function(e, r, o, n, u) {
|
402
|
-
return z(e, r, o, !0, n, u);
|
403
213
|
};
|
404
|
-
|
214
|
+
var w, P = {}, y = i["react-stack-bottom-frame"].bind(
|
215
|
+
i,
|
216
|
+
p
|
217
|
+
)(), h = d(f(p)), j = {};
|
218
|
+
u.Fragment = m, u.jsx = function(e, r, t, n, c) {
|
219
|
+
var o = 1e4 > b.recentlyCreatedOwnerStacks++;
|
220
|
+
return O(
|
221
|
+
e,
|
222
|
+
r,
|
223
|
+
t,
|
224
|
+
!1,
|
225
|
+
n,
|
226
|
+
c,
|
227
|
+
o ? Error("react-stack-top-frame") : y,
|
228
|
+
o ? d(f(e)) : h
|
229
|
+
);
|
230
|
+
}, u.jsxs = function(e, r, t, n, c) {
|
231
|
+
var o = 1e4 > b.recentlyCreatedOwnerStacks++;
|
232
|
+
return O(
|
233
|
+
e,
|
234
|
+
r,
|
235
|
+
t,
|
236
|
+
!0,
|
237
|
+
n,
|
238
|
+
c,
|
239
|
+
o ? Error("react-stack-top-frame") : y,
|
240
|
+
o ? d(f(e)) : h
|
241
|
+
);
|
242
|
+
};
|
243
|
+
}(), u);
|
405
244
|
}
|
406
245
|
export {
|
407
|
-
|
246
|
+
Q as __require
|
408
247
|
};
|
409
248
|
//# sourceMappingURL=index.es356.js.map
|