@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.
Files changed (340) hide show
  1. package/dist/components/ui/AuthorWithImage/AuthorWithImage.css +1 -1
  2. package/dist/components/ui/DelegateFilterDropDown/DelegateFilterDropDown.css +1 -1
  3. package/dist/components/ui/GroupCodeExemptionFilterDropDown/GroupCodeExemptionFilterDropDown.css +1 -1
  4. package/dist/index.cjs177.js +1 -1
  5. package/dist/index.cjs177.js.map +1 -1
  6. package/dist/index.cjs178.js +1 -1
  7. package/dist/index.cjs178.js.map +1 -1
  8. package/dist/index.cjs182.js +1 -1
  9. package/dist/index.cjs182.js.map +1 -1
  10. package/dist/index.cjs191.js +1 -1
  11. package/dist/index.cjs191.js.map +1 -1
  12. package/dist/index.cjs195.js +1 -1
  13. package/dist/index.cjs195.js.map +1 -1
  14. package/dist/index.cjs200.js +1 -1
  15. package/dist/index.cjs207.js +1 -1
  16. package/dist/index.cjs229.js +1 -1
  17. package/dist/index.cjs236.js +1 -1
  18. package/dist/index.cjs246.js +1 -1
  19. package/dist/index.cjs253.js +1 -1
  20. package/dist/index.cjs260.js +1 -1
  21. package/dist/index.cjs265.js +1 -1
  22. package/dist/index.cjs272.js +1 -1
  23. package/dist/index.cjs280.js +1 -1
  24. package/dist/index.cjs318.js +1 -1
  25. package/dist/index.cjs34.js +1 -1
  26. package/dist/index.cjs34.js.map +1 -1
  27. package/dist/index.cjs346.js +1 -1
  28. package/dist/index.cjs347.js +1 -1
  29. package/dist/index.cjs356.js +3 -12
  30. package/dist/index.cjs356.js.map +1 -1
  31. package/dist/index.cjs357.js +27 -1
  32. package/dist/index.cjs357.js.map +1 -1
  33. package/dist/index.cjs358.js +1 -2
  34. package/dist/index.cjs358.js.map +1 -1
  35. package/dist/index.cjs359.js +1 -27
  36. package/dist/index.cjs359.js.map +1 -1
  37. package/dist/index.cjs360.js +1 -1
  38. package/dist/index.cjs360.js.map +1 -1
  39. package/dist/index.cjs361.js +2 -1
  40. package/dist/index.cjs361.js.map +1 -1
  41. package/dist/index.cjs367.js +1 -1
  42. package/dist/index.cjs368.js +1 -1
  43. package/dist/index.cjs369.js +1 -1
  44. package/dist/index.cjs370.js +1 -1
  45. package/dist/index.cjs372.js +1 -1
  46. package/dist/index.cjs372.js.map +1 -1
  47. package/dist/index.cjs375.js +1 -1
  48. package/dist/index.cjs375.js.map +1 -1
  49. package/dist/index.cjs376.js +1 -1
  50. package/dist/index.cjs376.js.map +1 -1
  51. package/dist/index.cjs377.js +1 -1
  52. package/dist/index.cjs377.js.map +1 -1
  53. package/dist/index.cjs378.js +1 -1
  54. package/dist/index.cjs378.js.map +1 -1
  55. package/dist/index.cjs379.js +1 -1
  56. package/dist/index.cjs379.js.map +1 -1
  57. package/dist/index.cjs380.js +1 -1
  58. package/dist/index.cjs380.js.map +1 -1
  59. package/dist/index.cjs381.js +1 -1
  60. package/dist/index.cjs381.js.map +1 -1
  61. package/dist/index.cjs382.js +1 -1
  62. package/dist/index.cjs382.js.map +1 -1
  63. package/dist/index.cjs383.js +1 -1
  64. package/dist/index.cjs383.js.map +1 -1
  65. package/dist/index.cjs384.js +1 -1
  66. package/dist/index.cjs384.js.map +1 -1
  67. package/dist/index.cjs385.js +1 -1
  68. package/dist/index.cjs385.js.map +1 -1
  69. package/dist/index.cjs386.js +1 -1
  70. package/dist/index.cjs386.js.map +1 -1
  71. package/dist/index.cjs387.js +1 -1
  72. package/dist/index.cjs387.js.map +1 -1
  73. package/dist/index.cjs388.js +1 -1
  74. package/dist/index.cjs388.js.map +1 -1
  75. package/dist/index.cjs389.js +1 -1
  76. package/dist/index.cjs389.js.map +1 -1
  77. package/dist/index.cjs390.js +2 -0
  78. package/dist/index.cjs390.js.map +1 -0
  79. package/dist/index.cjs391.js +1 -1
  80. package/dist/index.cjs391.js.map +1 -1
  81. package/dist/index.cjs392.js +1 -1
  82. package/dist/index.cjs392.js.map +1 -1
  83. package/dist/index.cjs393.js +1 -1
  84. package/dist/index.cjs393.js.map +1 -1
  85. package/dist/index.cjs394.js +1 -1
  86. package/dist/index.cjs394.js.map +1 -1
  87. package/dist/index.cjs395.js +1 -1
  88. package/dist/index.cjs395.js.map +1 -1
  89. package/dist/index.cjs396.js +1 -1
  90. package/dist/index.cjs396.js.map +1 -1
  91. package/dist/index.cjs397.js +1 -1
  92. package/dist/index.cjs397.js.map +1 -1
  93. package/dist/index.cjs398.js +1 -4
  94. package/dist/index.cjs398.js.map +1 -1
  95. package/dist/index.cjs407.js +1 -1
  96. package/dist/index.cjs407.js.map +1 -1
  97. package/dist/index.cjs408.js +1 -1
  98. package/dist/index.cjs408.js.map +1 -1
  99. package/dist/index.cjs409.js +2 -0
  100. package/dist/index.cjs409.js.map +1 -0
  101. package/dist/index.cjs410.js +5 -0
  102. package/dist/index.cjs410.js.map +1 -0
  103. package/dist/index.cjs411.js +1 -1
  104. package/dist/index.cjs411.js.map +1 -1
  105. package/dist/index.cjs412.js +1 -1
  106. package/dist/index.cjs412.js.map +1 -1
  107. package/dist/index.cjs413.js +1 -1
  108. package/dist/index.cjs413.js.map +1 -1
  109. package/dist/{index.cjs402.js → index.cjs414.js} +1 -1
  110. package/dist/{index.cjs402.js.map → index.cjs414.js.map} +1 -1
  111. package/dist/{index.cjs404.js → index.cjs422.js} +2 -2
  112. package/dist/{index.cjs404.js.map → index.cjs422.js.map} +1 -1
  113. package/dist/{index.cjs405.js → index.cjs423.js} +2 -2
  114. package/dist/{index.cjs405.js.map → index.cjs423.js.map} +1 -1
  115. package/dist/{index.cjs406.js → index.cjs424.js} +2 -2
  116. package/dist/{index.cjs406.js.map → index.cjs424.js.map} +1 -1
  117. package/dist/index.cjs425.js +1 -1
  118. package/dist/index.cjs425.js.map +1 -1
  119. package/dist/index.cjs426.js +1 -1
  120. package/dist/index.cjs426.js.map +1 -1
  121. package/dist/index.cjs427.js +1 -1
  122. package/dist/index.cjs427.js.map +1 -1
  123. package/dist/index.cjs428.js +1 -1
  124. package/dist/index.cjs428.js.map +1 -1
  125. package/dist/index.cjs429.js +2 -0
  126. package/dist/index.cjs429.js.map +1 -0
  127. package/dist/index.cjs430.js +2 -0
  128. package/dist/index.cjs430.js.map +1 -0
  129. package/dist/index.cjs431.js +2 -0
  130. package/dist/index.cjs431.js.map +1 -0
  131. package/dist/index.cjs432.js +2 -0
  132. package/dist/index.cjs432.js.map +1 -0
  133. package/dist/index.cjs435.js +1 -1
  134. package/dist/index.cjs438.js +1 -1
  135. package/dist/index.cjs441.js +1 -1
  136. package/dist/index.cjs445.js +1 -1
  137. package/dist/index.cjs446.js +1 -1
  138. package/dist/index.cjs446.js.map +1 -1
  139. package/dist/index.cjs447.js +1 -1
  140. package/dist/index.cjs447.js.map +1 -1
  141. package/dist/index.cjs448.js +1 -1
  142. package/dist/index.cjs448.js.map +1 -1
  143. package/dist/index.cjs449.js +1 -1
  144. package/dist/index.cjs449.js.map +1 -1
  145. package/dist/index.cjs450.js +5 -1
  146. package/dist/index.cjs450.js.map +1 -1
  147. package/dist/index.cjs451.js +1 -5
  148. package/dist/index.cjs451.js.map +1 -1
  149. package/dist/index.cjs452.js +1 -1
  150. package/dist/index.cjs452.js.map +1 -1
  151. package/dist/index.cjs453.js +1 -1
  152. package/dist/index.cjs453.js.map +1 -1
  153. package/dist/index.cjs459.js +1 -1
  154. package/dist/index.cjs459.js.map +1 -1
  155. package/dist/index.cjs460.js +1 -1
  156. package/dist/index.cjs460.js.map +1 -1
  157. package/dist/index.d.ts +1 -2
  158. package/dist/index.es177.js +76 -71
  159. package/dist/index.es177.js.map +1 -1
  160. package/dist/index.es178.js +11 -1
  161. package/dist/index.es178.js.map +1 -1
  162. package/dist/index.es182.js +63 -58
  163. package/dist/index.es182.js.map +1 -1
  164. package/dist/index.es191.js +29 -26
  165. package/dist/index.es191.js.map +1 -1
  166. package/dist/index.es195.js +18 -15
  167. package/dist/index.es195.js.map +1 -1
  168. package/dist/index.es200.js +1 -1
  169. package/dist/index.es207.js +2 -2
  170. package/dist/index.es229.js +1 -1
  171. package/dist/index.es236.js +3 -3
  172. package/dist/index.es246.js +1 -1
  173. package/dist/index.es253.js +8 -8
  174. package/dist/index.es260.js +1 -1
  175. package/dist/index.es265.js +1 -1
  176. package/dist/index.es272.js +1 -1
  177. package/dist/index.es280.js +2 -2
  178. package/dist/index.es318.js +1 -1
  179. package/dist/index.es34.js +80 -91
  180. package/dist/index.es34.js.map +1 -1
  181. package/dist/index.es346.js +2 -2
  182. package/dist/index.es347.js +3 -3
  183. package/dist/index.es356.js +146 -307
  184. package/dist/index.es356.js.map +1 -1
  185. package/dist/index.es357.js +3674 -5
  186. package/dist/index.es357.js.map +1 -1
  187. package/dist/index.es358.js +5 -520
  188. package/dist/index.es358.js.map +1 -1
  189. package/dist/index.es359.js +2 -3675
  190. package/dist/index.es359.js.map +1 -1
  191. package/dist/index.es360.js +5 -5
  192. package/dist/index.es360.js.map +1 -1
  193. package/dist/index.es361.js +521 -2
  194. package/dist/index.es361.js.map +1 -1
  195. package/dist/index.es367.js +1 -1
  196. package/dist/index.es368.js +1 -1
  197. package/dist/index.es369.js +13 -13
  198. package/dist/index.es370.js +1 -1
  199. package/dist/index.es372.js +15 -53
  200. package/dist/index.es372.js.map +1 -1
  201. package/dist/index.es375.js +10 -124
  202. package/dist/index.es375.js.map +1 -1
  203. package/dist/index.es376.js +51 -13
  204. package/dist/index.es376.js.map +1 -1
  205. package/dist/index.es377.js +41 -130
  206. package/dist/index.es377.js.map +1 -1
  207. package/dist/index.es378.js +7 -217
  208. package/dist/index.es378.js.map +1 -1
  209. package/dist/index.es379.js +124 -13
  210. package/dist/index.es379.js.map +1 -1
  211. package/dist/index.es380.js +13 -67
  212. package/dist/index.es380.js.map +1 -1
  213. package/dist/index.es381.js +127 -170
  214. package/dist/index.es381.js.map +1 -1
  215. package/dist/index.es382.js +217 -49
  216. package/dist/index.es382.js.map +1 -1
  217. package/dist/index.es383.js +12 -7
  218. package/dist/index.es383.js.map +1 -1
  219. package/dist/index.es384.js +68 -3
  220. package/dist/index.es384.js.map +1 -1
  221. package/dist/index.es385.js +177 -11
  222. package/dist/index.es385.js.map +1 -1
  223. package/dist/index.es386.js +48 -203
  224. package/dist/index.es386.js.map +1 -1
  225. package/dist/index.es387.js +8 -21
  226. package/dist/index.es387.js.map +1 -1
  227. package/dist/index.es388.js +4 -25
  228. package/dist/index.es388.js.map +1 -1
  229. package/dist/index.es389.js +5 -392
  230. package/dist/index.es389.js.map +1 -1
  231. package/dist/index.es390.js +28 -0
  232. package/dist/index.es390.js.map +1 -0
  233. package/dist/index.es391.js +11 -24
  234. package/dist/index.es391.js.map +1 -1
  235. package/dist/index.es392.js +204 -28
  236. package/dist/index.es392.js.map +1 -1
  237. package/dist/index.es393.js +22 -5
  238. package/dist/index.es393.js.map +1 -1
  239. package/dist/index.es394.js +390 -12
  240. package/dist/index.es394.js.map +1 -1
  241. package/dist/index.es395.js +25 -5
  242. package/dist/index.es395.js.map +1 -1
  243. package/dist/index.es396.js +29 -3
  244. package/dist/index.es396.js.map +1 -1
  245. package/dist/index.es397.js +5 -24
  246. package/dist/index.es397.js.map +1 -1
  247. package/dist/index.es398.js +12 -107
  248. package/dist/index.es398.js.map +1 -1
  249. package/dist/index.es407.js +5 -14
  250. package/dist/index.es407.js.map +1 -1
  251. package/dist/index.es408.js +3 -62
  252. package/dist/index.es408.js.map +1 -1
  253. package/dist/index.es409.js +27 -0
  254. package/dist/index.es409.js.map +1 -0
  255. package/dist/index.es410.js +113 -0
  256. package/dist/index.es410.js.map +1 -0
  257. package/dist/index.es411.js +15 -3
  258. package/dist/index.es411.js.map +1 -1
  259. package/dist/index.es412.js +519 -19
  260. package/dist/index.es412.js.map +1 -1
  261. package/dist/index.es413.js +126 -14
  262. package/dist/index.es413.js.map +1 -1
  263. package/dist/{index.es402.js → index.es414.js} +1 -1
  264. package/dist/{index.es402.js.map → index.es414.js.map} +1 -1
  265. package/dist/{index.es404.js → index.es422.js} +2 -2
  266. package/dist/{index.es404.js.map → index.es422.js.map} +1 -1
  267. package/dist/{index.es405.js → index.es423.js} +4 -4
  268. package/dist/{index.es405.js.map → index.es423.js.map} +1 -1
  269. package/dist/{index.es406.js → index.es424.js} +2 -2
  270. package/dist/{index.es406.js.map → index.es424.js.map} +1 -1
  271. package/dist/index.es425.js +14 -23
  272. package/dist/index.es425.js.map +1 -1
  273. package/dist/index.es426.js +61 -12
  274. package/dist/index.es426.js.map +1 -1
  275. package/dist/index.es427.js +3 -27
  276. package/dist/index.es427.js.map +1 -1
  277. package/dist/index.es428.js +23 -5
  278. package/dist/index.es428.js.map +1 -1
  279. package/dist/index.es429.js +16 -0
  280. package/dist/index.es429.js.map +1 -0
  281. package/dist/index.es430.js +31 -0
  282. package/dist/index.es430.js.map +1 -0
  283. package/dist/index.es431.js +8 -0
  284. package/dist/index.es431.js.map +1 -0
  285. package/dist/index.es432.js +26 -0
  286. package/dist/index.es432.js.map +1 -0
  287. package/dist/index.es435.js +2 -2
  288. package/dist/index.es438.js +2 -2
  289. package/dist/index.es441.js +1 -1
  290. package/dist/index.es445.js +5 -5
  291. package/dist/index.es446.js +12 -2
  292. package/dist/index.es446.js.map +1 -1
  293. package/dist/index.es447.js +176 -8
  294. package/dist/index.es447.js.map +1 -1
  295. package/dist/index.es448.js +3 -177
  296. package/dist/index.es448.js.map +1 -1
  297. package/dist/index.es449.js +131 -2
  298. package/dist/index.es449.js.map +1 -1
  299. package/dist/index.es450.js +36 -129
  300. package/dist/index.es450.js.map +1 -1
  301. package/dist/index.es451.js +2 -40
  302. package/dist/index.es451.js.map +1 -1
  303. package/dist/index.es452.js +2 -2
  304. package/dist/index.es452.js.map +1 -1
  305. package/dist/index.es453.js +2 -4
  306. package/dist/index.es453.js.map +1 -1
  307. package/dist/index.es459.js +3 -82
  308. package/dist/index.es459.js.map +1 -1
  309. package/dist/index.es460.js +82 -3
  310. package/dist/index.es460.js.map +1 -1
  311. package/package.json +1 -1
  312. package/dist/index.cjs371.js +0 -2
  313. package/dist/index.cjs371.js.map +0 -1
  314. package/dist/index.cjs373.js +0 -2
  315. package/dist/index.cjs373.js.map +0 -1
  316. package/dist/index.cjs374.js +0 -2
  317. package/dist/index.cjs374.js.map +0 -1
  318. package/dist/index.cjs399.js +0 -2
  319. package/dist/index.cjs399.js.map +0 -1
  320. package/dist/index.cjs400.js +0 -2
  321. package/dist/index.cjs400.js.map +0 -1
  322. package/dist/index.cjs401.js +0 -2
  323. package/dist/index.cjs401.js.map +0 -1
  324. package/dist/index.cjs403.js +0 -2
  325. package/dist/index.cjs403.js.map +0 -1
  326. package/dist/index.es371.js +0 -14
  327. package/dist/index.es371.js.map +0 -1
  328. package/dist/index.es373.js +0 -49
  329. package/dist/index.es373.js.map +0 -1
  330. package/dist/index.es374.js +0 -11
  331. package/dist/index.es374.js.map +0 -1
  332. package/dist/index.es399.js +0 -19
  333. package/dist/index.es399.js.map +0 -1
  334. package/dist/index.es400.js +0 -526
  335. package/dist/index.es400.js.map +0 -1
  336. package/dist/index.es401.js +0 -130
  337. package/dist/index.es401.js.map +0 -1
  338. package/dist/index.es403.js +0 -9
  339. package/dist/index.es403.js.map +0 -1
  340. /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -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;AAAA,EACjB,kBAAAC,IAAmB;AAAA,EACnB,oBAAAC,IAAqB;AAAA,EACrB,gBAAAC,IAAiB;AAAA,EACjB,YAAAC,IAAa;AAAA,EACb,eAAAC,IAAgB;AAAA,EAChB,iBAAAC,IAAkB;AAAA,EAClB,WAAAC,IAAY;AACd,MAA4B;;AAC1B,QAAM,EAAE,iBAAAC,GAAiB,UAAAC,EAAS,IAAIC,EAA8B,GAC9D,EAAE,WAAAC,EAAU,IAAIC,EAAe,GAC/BC,IAAiBC,EAAQ,MACxBnB,KAAA,QAAAA,EAAS,YACPoB;AAAA,IACLpB,EAAQ,UAAU,QAAQ;AAAA,IAC1BA,EAAQ,UAAU,WAAW;AAAA,E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,KAAA,gBAAAA,EAAS,cAAT,gBAAAoC,EAAoB,IAAI,KAAIC,IAAArC,KAAA,gBAAAA,EAAS,cAAT,gBAAAqC,EAAoB,OAAO,KAC1D;AAAA,UAEN,QAAQ,EAAE,UAAUnB,EAAe;AAAA,UACnC,gBAAAb;AAAA,UACA,eACEiC,EAA2BtC,EAAQ,aAAa,IAAI,IAAI,KAAK;AAAA,UAE/D,kBAAAM;AAAA,UACA,kBAAkBmB;AAAA,UAClB,oBAAAlB;AAAA,QAAA;AAAA,MACF;AAAA,6BACCuB,GAAI,EAAA,IAAI,OAAO,KAAK,MAAM,WAAW,eACpC,UAAA;AAAA,QAAAD,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;"}
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,IAAgB;AAAA,EAChB,iBAAAC,IAAkB;AAAA,EAClB,WAAAC,IAAY;AACd,MAA4B;;AAC1B,QAAM,EAAE,iBAAAC,GAAiB,UAAAC,EAAS,IAAIC,EAA8B,GAC9D,EAAE,WAAAC,EAAU,IAAIC,EAAe,GAC/BC,IAAiBC,EAAQ,MACxBlB,KAAA,QAAAA,EAAS,YACPmB;AAAA,IACLnB,EAAQ,UAAU,QAAQ;AAAA,IAC1BA,EAAQ,UAAU,WAAW;AAAA,EAC/B,IAJgC,KAK/B,CAACA,EAAQ,SAAS,CAAC,GAEhB,CAACoB,GAAgBC,CAAe,IAAIH,EAAQ,MAAM;;AACtD,WAAIlB,EAAQ,oBACHsB,GAA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AA,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;"}
@@ -1,5 +1,5 @@
1
- import { c as w } from "./index.es447.js";
2
- import { m as l } from "./index.es448.js";
1
+ import { c as w } from "./index.es446.js";
2
+ import { m as l } from "./index.es447.js";
3
3
  function N(x) {
4
4
  let {
5
5
  swiper: a,
@@ -1,6 +1,6 @@
1
- import { c as $ } from "./index.es449.js";
2
- import { c as F } from "./index.es447.js";
3
- import { m, a as E, f as T, h as S } from "./index.es448.js";
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,
@@ -1,5 +1,5 @@
1
- import { __exports as _ } from "./index.es363.js";
2
- import we from "react";
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 ue;
13
- function he() {
14
- return ue ? _ : (ue = 1, process.env.NODE_ENV !== "production" && function() {
15
- function s(e) {
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 === me ? null : e.displayName || e.name || null;
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 j:
21
+ case m:
22
22
  return "Fragment";
23
- case de:
24
- return "Portal";
25
- case K:
23
+ case $:
26
24
  return "Profiler";
27
- case H:
25
+ case W:
28
26
  return "StrictMode";
29
- case A:
27
+ case z:
30
28
  return "Suspense";
31
- case R:
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 q:
38
+ case F:
39
+ return "Portal";
40
+ case U:
39
41
  return (e.displayName || "Context") + ".Provider";
40
- case X:
42
+ case L:
41
43
  return (e._context.displayName || "Context") + ".Consumer";
42
- case S:
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 k:
46
- return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
47
- case p:
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 s(e(r));
52
+ return l(e(r));
51
53
  } catch {
52
54
  }
53
55
  }
54
56
  return null;
55
57
  }
56
- function M(e) {
58
+ function T(e) {
57
59
  return "" + e;
58
60
  }
59
- function W(e) {
61
+ function v(e) {
60
62
  try {
61
- M(e);
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 o = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
69
- return o.call(
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
- ), M(e);
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 y(e) {
117
- if (x === void 0)
118
- try {
119
- throw Error();
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 u = {
137
- DetermineComponentFrameRoot: function() {
138
- try {
139
- if (r) {
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 = E.A;
90
+ var e = b.A;
258
91
  return e === null ? null : e.getOwner();
259
92
  }
260
- function ce(e) {
261
- if (J.call(e, "key")) {
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 se(e, r) {
268
- function o() {
269
- oe || (oe = !0, console.error(
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
- o.isReactWarning = !0, Object.defineProperty(e, "key", {
275
- get: o,
110
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
111
+ get: t,
276
112
  configurable: !0
277
113
  });
278
114
  }
279
- function ie() {
280
- var e = s(this.type);
281
- return te[e] || (te[e] = !0, console.error(
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 Ee(e, r, o, n, u, a) {
286
- return o = a.ref, e = {
287
- $$typeof: O,
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: a,
291
- _owner: u
292
- }, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
126
+ props: o,
127
+ _owner: c
128
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
293
129
  enumerable: !1,
294
- get: ie
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 z(e, r, o, n, u, a) {
308
- if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ge || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
309
- var t = r.children;
310
- if (t !== void 0)
311
- if (n)
312
- if (N(t)) {
313
- for (n = 0; n < t.length; n++)
314
- V(t[n], e);
315
- Object.freeze && Object.freeze(t);
316
- } else
317
- console.error(
318
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
319
- );
320
- else V(t, e);
321
- } else
322
- t = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (t += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", t = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
323
- "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
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 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[t + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
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
- t,
341
- f,
342
- t
343
- ), ne[t + n] = !0);
179
+ a,
180
+ s,
181
+ a
182
+ ), j[a + n] = !0);
344
183
  }
345
- if (t = null, o !== void 0 && (W(o), t = "" + o), ce(r) && (W(r.key), t = "" + r.key), "key" in r) {
346
- o = {};
347
- for (var d in r)
348
- d !== "key" && (o[d] = r[d]);
349
- } else o = r;
350
- return t && se(
351
- o,
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
- ), Ee(e, t, a, u, C(), o);
354
- }
355
- function V(e, r) {
356
- if (typeof e == "object" && e && e.$$typeof !== ye) {
357
- if (N(e))
358
- for (var o = 0; o < e.length; o++) {
359
- var n = e[o];
360
- h(n) && G(n, r);
361
- }
362
- else if (h(e))
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 h(e) {
370
- return typeof e == "object" && e !== null && e.$$typeof === O;
203
+ function k(e) {
204
+ typeof e == "object" && e !== null && e.$$typeof === g && e._store && (e._store.validated = 1);
371
205
  }
372
- function G(e, r) {
373
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = ve(r), !ae[r])) {
374
- ae[r] = !0;
375
- var o = "";
376
- e && e._owner != null && e._owner !== C() && (o = null, typeof e._owner.tag == "number" ? o = s(e._owner.type) : typeof e._owner.name == "string" && (o = e._owner.name), o = " It was passed a child from " + o + ".");
377
- var n = E.getCurrentStack;
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
- he as __require
246
+ Q as __require
408
247
  };
409
248
  //# sourceMappingURL=index.es356.js.map