sass-template-common 0.1.37 → 0.1.39
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/AutorComponent.js +1 -1
- package/dist/AutorComponent.umd.cjs +1 -1
- package/dist/AutorHeader1.js +1 -1
- package/dist/AutorHeader1.umd.cjs +1 -1
- package/dist/AutorHeader2.js +1 -1
- package/dist/AutorHeader2.umd.cjs +1 -1
- package/dist/BannerAdvertising.js +1 -1
- package/dist/BannerAdvertising.umd.cjs +1 -1
- package/dist/BannerAdvertisingMiddle.js +1 -2
- package/dist/BannerAdvertisingMiddle.umd.cjs +1 -1
- package/dist/CarrouselCSR.js +1 -1
- package/dist/CarrouselCSR.umd.cjs +1 -1
- package/dist/CarrouselIRS.js +2 -2
- package/dist/CarrouselIRS.umd.cjs +1 -1
- package/dist/CarruselCard.js +1 -1
- package/dist/CarruselCard.umd.cjs +1 -1
- package/dist/CarruselOpinion.js +1 -1
- package/dist/CarruselOpinion.umd.cjs +1 -1
- package/dist/ContactInfoServer.js +1 -1
- package/dist/ContactInfoServer.umd.cjs +1 -1
- package/dist/ContactInput.js +1 -1
- package/dist/ContactInput.umd.cjs +1 -1
- package/dist/ContactSelect.js +1 -1
- package/dist/ContactSelect.umd.cjs +1 -1
- package/dist/ContactTextarea.js +1 -1
- package/dist/ContactTextarea.umd.cjs +1 -1
- package/dist/ContentLayoutTema.js +1 -1
- package/dist/ContentLayoutTema.umd.cjs +1 -1
- package/dist/DestacadoNoticias.js +1 -1
- package/dist/DestacadoNoticias.umd.cjs +1 -1
- package/dist/DestacadoVideos.js +1 -1
- package/dist/DestacadoVideos.umd.cjs +1 -1
- package/dist/DynamicComponents-CAua5xWx.cjs +1 -0
- package/dist/DynamicComponents-g01hPNe8.js +58 -0
- package/dist/DynamicComponents.js +1 -1
- package/dist/DynamicComponents.umd.cjs +1 -1
- package/dist/DynamicMainSlot.js +1 -2
- package/dist/DynamicMainSlot.umd.cjs +1 -2
- package/dist/DynamicSlot.js +1 -2
- package/dist/DynamicSlot.umd.cjs +1 -2
- package/dist/EditorialBlock.js +1 -1
- package/dist/EditorialBlock.umd.cjs +1 -1
- package/dist/ErrorComponent.js +1 -1
- package/dist/ErrorComponent.umd.cjs +1 -1
- package/dist/Footer.js +1 -1
- package/dist/Footer.umd.cjs +1 -1
- package/dist/Header.js +1 -1
- package/dist/Header.umd.cjs +1 -1
- package/dist/ImageOffline.js +1 -1
- package/dist/ImageOffline.umd.cjs +1 -1
- package/dist/JournalistArticule2.js +1 -1
- package/dist/JournalistArticule2.umd.cjs +1 -1
- package/dist/JournalistGroup.js +1 -1
- package/dist/JournalistGroup.umd.cjs +1 -1
- package/dist/LayoutNewsComponent.js +1 -1
- package/dist/LayoutNewsComponent.umd.cjs +1 -1
- package/dist/LiveBlogHeader.js +1 -1
- package/dist/LiveBlogHeader.umd.cjs +1 -1
- package/dist/Location.js +1 -1
- package/dist/Location.umd.cjs +1 -1
- package/dist/MiddleSection.js +1 -1
- package/dist/MiddleSection.umd.cjs +1 -1
- package/dist/Modulo1x3.js +1 -1
- package/dist/Modulo1x3.umd.cjs +1 -1
- package/dist/Modulo1x3Card.js +1 -1
- package/dist/Modulo1x3Card.umd.cjs +1 -1
- package/dist/Modulo1x4.js +1 -1
- package/dist/Modulo1x4.umd.cjs +1 -1
- package/dist/Modulo1x5.js +1 -1
- package/dist/Modulo1x5.umd.cjs +1 -1
- package/dist/Modulo2Columnas.js +1 -1
- package/dist/Modulo2Columnas.umd.cjs +1 -1
- package/dist/Modulo3Columnas.js +1 -1
- package/dist/Modulo3Columnas.umd.cjs +1 -1
- package/dist/ModuloNewsletter.js +1 -1
- package/dist/ModuloNewsletter.umd.cjs +1 -1
- package/dist/ModuloOpinion.js +1 -1
- package/dist/ModuloOpinion.umd.cjs +1 -1
- package/dist/NewsComponent.js +1 -1
- package/dist/NewsComponent.umd.cjs +1 -1
- package/dist/NewsContent.js +1 -1
- package/dist/NewsContent.umd.cjs +1 -1
- package/dist/NextPrev.js +1 -1
- package/dist/NextPrev.umd.cjs +1 -1
- package/dist/Readest.js +1 -1
- package/dist/Readest.umd.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/SearchSection.umd.cjs +1 -1
- package/dist/Section.js +1 -2
- package/dist/Section.umd.cjs +1 -2
- package/dist/SectionCard.js +1 -1
- package/dist/SectionCard.umd.cjs +1 -1
- package/dist/SectionCard2.js +1 -1
- package/dist/SectionCard2.umd.cjs +1 -1
- package/dist/SectionServerComponent.js +1 -1
- package/dist/SectionServerComponent.umd.cjs +1 -1
- package/dist/SubscribeColumn.js +1 -1
- package/dist/SubscribeColumn.umd.cjs +1 -1
- package/dist/SubscribeRow.js +1 -1
- package/dist/SubscribeRow.umd.cjs +1 -1
- package/dist/SubscribeWhatsAppColumn.js +1 -1
- package/dist/SubscribeWhatsAppColumn.umd.cjs +1 -1
- package/dist/TagComponent.js +1 -1
- package/dist/TagComponent.umd.cjs +1 -1
- package/dist/TagSection.js +1 -1
- package/dist/TagSection.umd.cjs +1 -1
- package/dist/TimeLine.js +1 -1
- package/dist/TimeLine.umd.cjs +1 -1
- package/dist/VideoBlock3.js +1 -1
- package/dist/VideoBlock3.umd.cjs +1 -1
- package/dist/VideoBlock4.js +1 -1
- package/dist/VideoBlock4.umd.cjs +1 -1
- package/dist/VideoSection.js +1 -1
- package/dist/VideoSection.umd.cjs +1 -1
- package/dist/{comments-tFoMbyqo.js → comments-CnOBAekK.js} +207 -209
- package/dist/{comments-DB8EFXt7.cjs → comments-vw6ZqDan.cjs} +3 -3
- package/dist/date-format-CZUf6krO.js +515 -0
- package/dist/date-format-JqOZCdHW.cjs +1 -0
- package/dist/{dynamicMainSlot-BQxEis6R.js → dynamicMainSlot-CWY6CjB7.js} +16 -19
- package/dist/dynamicMainSlot-fqHTjgoU.cjs +1 -0
- package/dist/{dynamicSlot-CIjuUYqf.js → dynamicSlot-DL19jW8L.js} +33 -36
- package/dist/dynamicSlot-Dj0VsU9z.cjs +1 -0
- package/dist/image-offline.client-094B6Vbc.cjs +1 -0
- package/dist/{image-offline.client-DCUZPh4N.js → image-offline.client-D_VOV4DF.js} +1 -1
- package/dist/index-01sxU_nQ.cjs +1 -0
- package/dist/{index-DsROBB-B.js → index-1nRlmYma.js} +26 -30
- package/dist/{index-CSWDcw6Z.js → index-206HWYfY.js} +1 -1
- package/dist/{index-CV_41-9o.js → index-2xLsJpig.js} +1 -1
- package/dist/index-6nGoIas0.cjs +1 -0
- package/dist/{index-Dnne9WW_.js → index-6xbgjlTE.js} +4 -5
- package/dist/index-79scsK_s.cjs +1 -0
- package/dist/index-8AIZcUFg.cjs +1 -0
- package/dist/index-B11FU2xn.cjs +1 -0
- package/dist/index-B3_gGLoj.cjs +1 -0
- package/dist/{index-CUXrzzoy.js → index-B8BHCE2p.js} +11 -15
- package/dist/index-B8izkNKr.cjs +1 -0
- package/dist/{index-BeNL3KGf.js → index-B9jhBtiE.js} +7 -8
- package/dist/index-BASp9Rw7.js +39 -0
- package/dist/index-BC_qZuA8.cjs +1 -0
- package/dist/{index-uH8io09z.js → index-BF1Iiz49.js} +3 -4
- package/dist/{index-DhvwHZnW.js → index-BJWUECgU.js} +1 -1
- package/dist/index-BM4EmmWC.cjs +1 -0
- package/dist/{index-BoFi5oPI.js → index-BMIGe0k3.js} +1 -1
- package/dist/index-BT2xJxik.cjs +1 -0
- package/dist/index-BT8DDIgu.cjs +1 -0
- package/dist/{index-DNEl0P1w.js → index-BURxnRp9.js} +1 -1
- package/dist/index-BVDmj2-u.cjs +1 -0
- package/dist/index-BVzh76v-.cjs +1 -0
- package/dist/{index-CbuyKJUC.js → index-BWvzK8By.js} +1 -1
- package/dist/index-BeX3dr5Y.cjs +1 -0
- package/dist/index-BfMDHQVZ.cjs +1 -0
- package/dist/{index-MriZ0V8v.js → index-Bj5wiOtg.js} +14 -17
- package/dist/index-BjQxKMZV.cjs +1 -0
- package/dist/{index-BHoAVWni.js → index-BnCIkyjy.js} +1 -1
- package/dist/index-BrzzDteW.cjs +1 -0
- package/dist/{index-B4Wbmicc.js → index-BuFCv_ZK.js} +2 -2
- package/dist/index-Bvv8KLeV.cjs +1 -0
- package/dist/{index-D5HwU9w8.js → index-BymofdAP.js} +3 -3
- package/dist/index-BziV6H04.js +44 -0
- package/dist/index-C09PzuZV.cjs +1 -0
- package/dist/{index-B6nzUpBy.js → index-C0T6q1l6.js} +3 -4
- package/dist/index-C1eIq6sq.cjs +1 -0
- package/dist/{index-BQ0VlH1P.js → index-C3a-esGw.js} +1 -1
- package/dist/{index-rPdT1G5L.js → index-C4wV7YpT.js} +1 -1
- package/dist/index-C5ddOOVA.cjs +1 -0
- package/dist/{index-D6GrBLX4.js → index-C8jv6y2S.js} +11 -11
- package/dist/index-C9RSUrx6.cjs +1 -0
- package/dist/{index-1VBX2e-a.js → index-CC0Up8mz.js} +1 -1
- package/dist/{index-BD2BnqMo.js → index-CF0dbpBz.js} +5 -5
- package/dist/index-CFtQUkHA.cjs +1 -0
- package/dist/index-CGvv6Mz4.cjs +1 -0
- package/dist/{index-CSP0gw9M.js → index-CMvT-wav.js} +3 -4
- package/dist/{index-DIFedwog.js → index-CQK9ULhe.js} +12 -13
- package/dist/index-CRCuuj2w.cjs +1 -0
- package/dist/index-CWaNsBNE.cjs +1 -0
- package/dist/{index-CEyZh6GH.js → index-CXLoOs8-.js} +10 -12
- package/dist/index-Cha1B0OE.cjs +1 -0
- package/dist/index-ClXVoyxi.cjs +1 -0
- package/dist/index-CuGk1qLi.cjs +1 -0
- package/dist/{index-D4XJVuVa.js → index-CuXn2KNK.js} +5 -9
- package/dist/index-CvIjAQpP.cjs +1 -0
- package/dist/{index-B5h1k3BF.js → index-CwhtEO0_.js} +2 -2
- package/dist/{index-IYXqzMg6.js → index-CzwqIqRa.js} +2 -3
- package/dist/{index-DSiIjU39.js → index-D0ijvW_Z.js} +11 -11
- package/dist/index-D13w3ohD.cjs +1 -0
- package/dist/index-D2rzdhRp.cjs +1 -0
- package/dist/index-D4G63Cmc.js +16 -0
- package/dist/{index-BXzwZS88.js → index-D50ReVGb.js} +3 -3
- package/dist/{index-D8_NxegM.js → index-D5SEzUHu.js} +1 -1
- package/dist/index-D5sbe8cc.cjs +1 -0
- package/dist/index-DIbgvdRF.cjs +1 -0
- package/dist/{index-Bludp5ia.js → index-DJDV_9DI.js} +4 -4
- package/dist/index-DOKkCePN.cjs +1 -0
- package/dist/index-DcEW6J_8.js +64 -0
- package/dist/{index-0q5UW-os.js → index-DdqfhkBq.js} +14 -15
- package/dist/{index-BFlPL3-o.js → index-DfxT97ME.js} +5 -5
- package/dist/{index-_9wK_nki.js → index-DmgMBpJx.js} +3 -4
- package/dist/index-DnIMib6U.cjs +1 -0
- package/dist/{index-DPhvZRyf.js → index-Do1AIOsH.js} +1 -1
- package/dist/{index-DDfRRjFd.js → index-DoyvTwqo.js} +1 -1
- package/dist/index-Dp5yTP4L.cjs +1 -0
- package/dist/index-DpNeJc2k.cjs +1 -0
- package/dist/{index-C3_EDVyC.js → index-DqtiXHWZ.js} +3 -3
- package/dist/index-Dt1KF0y9.cjs +1 -0
- package/dist/index-Dw11uZRk.cjs +1 -0
- package/dist/{index-DqY93RSP.js → index-DwDCC2st.js} +1 -1
- package/dist/{index-F6olW6lY.js → index-DyCbgkPT.js} +1 -1
- package/dist/index-DzxCd_Lw.cjs +1 -0
- package/dist/index-E-bijVAm.cjs +1 -0
- package/dist/{index-ByzlJRal.js → index-EgaojWqy.js} +1 -1
- package/dist/index-FHGXNMMw.cjs +1 -0
- package/dist/{index-DQM3eD37.js → index-HmI2Ty6Z.js} +2 -2
- package/dist/index-IuGcJ86k.cjs +1 -0
- package/dist/index-Kkux9VTu.cjs +1 -0
- package/dist/{index-BAkw1JP_.js → index-KmESlap_.js} +4 -4
- package/dist/index-MFdRBVph.cjs +1 -0
- package/dist/index-XVuBbMF3.cjs +1 -0
- package/dist/index-XWcvMYgt.cjs +1 -0
- package/dist/{index-CrlWjr_z.js → index-ZvFtGSr-.js} +1 -1
- package/dist/index-hUYWRY65.cjs +1 -0
- package/dist/{index-DyBYLT8G.js → index-jbOOF6ba.js} +2 -2
- package/dist/index-k-7uO50f.cjs +1 -0
- package/dist/index-mYUGtZGn.js +10 -0
- package/dist/index-n7tqaTGB.cjs +1 -0
- package/dist/{index-BctcLaJ3.js → index-nWQFVTYn.js} +2 -2
- package/dist/{index-DVvcQR8S.js → index-nmL6Djl5.js} +1 -1
- package/dist/{index-BrR8dqqY.js → index-t891F8AX.js} +11 -15
- package/dist/{index-BCeqfRUa.js → index-tqTHg0yi.js} +1 -1
- package/dist/{index-CBBiNLd8.js → index-v7G2hPSn.js} +3 -4
- package/dist/index-vaHN-n9C.cjs +1 -0
- package/dist/index-vp0fZr_A.cjs +1 -0
- package/dist/{index-CzWMETLY.js → index-xDIiU7BB.js} +10 -10
- package/dist/index-xLfu4_aj.cjs +1 -0
- package/dist/index-xynEpeyX.cjs +1 -0
- package/dist/{index-BVctif39.js → index-yDSNW_-4.js} +7 -8
- package/dist/index-zO225IHl.cjs +1 -0
- package/dist/sass-template-common.js +1021 -1012
- package/dist/sass-template-common.umd.cjs +3 -4
- package/dist/{section.card.server-B99ARPky.js → section.card.server-BUfTTZSi.js} +3 -3
- package/dist/section.card.server-UGrsIo_p.cjs +1 -0
- package/dist/shareButtons.js +1 -1
- package/dist/shareButtons.umd.cjs +1 -1
- package/package.json +14 -11
- package/dist/DynamicComponents-CMeItNDk.js +0 -62
- package/dist/DynamicComponents-DYjDE9AS.cjs +0 -1
- package/dist/GenerateHead.d.ts +0 -1
- package/dist/GenerateHead.js +0 -1
- package/dist/GenerateHead.umd.cjs +0 -1
- package/dist/PreloadImage-CnJUVuFd.cjs +0 -1
- package/dist/PreloadImage-DU0y-qQS.js +0 -530
- package/dist/dynamicMainSlot-7gASyhub.cjs +0 -1
- package/dist/dynamicSlot-6TFhTtis.cjs +0 -1
- package/dist/image-offline.client-r9irG9ar.cjs +0 -1
- package/dist/index-8ydwCXM2.cjs +0 -1
- package/dist/index-AOhQz8B7.cjs +0 -1
- package/dist/index-B44ONT01.cjs +0 -1
- package/dist/index-BFJwjTEG.cjs +0 -1
- package/dist/index-BMVOVUqe.cjs +0 -1
- package/dist/index-BQ4m8CSd.cjs +0 -1
- package/dist/index-BSUmhtjV.cjs +0 -1
- package/dist/index-BTATfxw3.cjs +0 -1
- package/dist/index-BTXm1q5D.cjs +0 -1
- package/dist/index-BUqygcci.cjs +0 -1
- package/dist/index-BVxIjyTu.cjs +0 -1
- package/dist/index-BWnZC_6p.cjs +0 -1
- package/dist/index-BbpSaTTa.cjs +0 -1
- package/dist/index-BdWZsDM5.js +0 -17
- package/dist/index-BhJcbgps.cjs +0 -1
- package/dist/index-BiDQeLSe.cjs +0 -1
- package/dist/index-BvxjhgQy.cjs +0 -1
- package/dist/index-ByqRcrmr.cjs +0 -1
- package/dist/index-C0V-2Y3F.cjs +0 -1
- package/dist/index-C1b9RnKU.cjs +0 -1
- package/dist/index-C1yrpXf6.cjs +0 -1
- package/dist/index-C731eubZ.cjs +0 -1
- package/dist/index-CVZ6pe_v.cjs +0 -1
- package/dist/index-CZnJNr_-.cjs +0 -1
- package/dist/index-CaKVjYQx.cjs +0 -1
- package/dist/index-CbzRRNeZ.cjs +0 -1
- package/dist/index-Cfw-z8xA.cjs +0 -1
- package/dist/index-CkEGKGNq.cjs +0 -1
- package/dist/index-Cm1R7NCc.cjs +0 -1
- package/dist/index-CrRmOv9N.cjs +0 -1
- package/dist/index-Crk9bWh-.cjs +0 -1
- package/dist/index-CrqMIuml.cjs +0 -1
- package/dist/index-CuvdSdAB.js +0 -46
- package/dist/index-D4aYrwX5.cjs +0 -1
- package/dist/index-D4cVrh_r.cjs +0 -1
- package/dist/index-D7OPcLbW.cjs +0 -1
- package/dist/index-DAQF8x39.cjs +0 -1
- package/dist/index-DFl5LOA2.cjs +0 -1
- package/dist/index-DOKV7mWM.cjs +0 -1
- package/dist/index-DYFMfLMT.cjs +0 -1
- package/dist/index-Da7jky-o.cjs +0 -1
- package/dist/index-DaYUh_52.cjs +0 -1
- package/dist/index-Db6FA9IG.js +0 -15
- package/dist/index-Dhy8tDFP.cjs +0 -1
- package/dist/index-DiRNYGIB.cjs +0 -1
- package/dist/index-DnO4uJnf.js +0 -43
- package/dist/index-DqOsfxCq.cjs +0 -1
- package/dist/index-DqoL7iqu.cjs +0 -1
- package/dist/index-DvWa7T7x.cjs +0 -1
- package/dist/index-Dw3nrCgB.cjs +0 -1
- package/dist/index-E63jFk_r.cjs +0 -1
- package/dist/index-QIsNurJj.js +0 -69
- package/dist/index-V-J_R5-M.cjs +0 -1
- package/dist/index-Z58tQL2j.cjs +0 -1
- package/dist/index-acARkfKm.cjs +0 -1
- package/dist/index-awsHS_US.cjs +0 -1
- package/dist/index-d8nN15g8.cjs +0 -1
- package/dist/index-pTs46L3d.cjs +0 -1
- package/dist/index-t7y5omIk.cjs +0 -1
- package/dist/index-ulfDPRWe.cjs +0 -1
- package/dist/index-w8Wp4avx.cjs +0 -1
- package/dist/section.card.server-D4OCsd_w.cjs +0 -1
- /package/dist/{carrousel.css → assets/carrousel.css} +0 -0
- /package/dist/{comments.css → assets/comments.css} +0 -0
- /package/dist/{dynamicMainSlot.css → assets/dynamicMainSlot.css} +0 -0
- /package/dist/{dynamicSlot.css → assets/dynamicSlot.css} +0 -0
- /package/dist/{image-offline.css → assets/image-offline.css} +0 -0
- /package/dist/{index.css → assets/index.css} +0 -0
- /package/dist/{index10.css → assets/index10.css} +0 -0
- /package/dist/{index25.css → assets/index11.css} +0 -0
- /package/dist/{index26.css → assets/index12.css} +0 -0
- /package/dist/{index27.css → assets/index13.css} +0 -0
- /package/dist/{index28.css → assets/index14.css} +0 -0
- /package/dist/{index29.css → assets/index15.css} +0 -0
- /package/dist/{index30.css → assets/index16.css} +0 -0
- /package/dist/{index31.css → assets/index17.css} +0 -0
- /package/dist/{index11.css → assets/index18.css} +0 -0
- /package/dist/{banner.css → assets/index19.css} +0 -0
- /package/dist/{index2.css → assets/index2.css} +0 -0
- /package/dist/{index12.css → assets/index20.css} +0 -0
- /package/dist/{index13.css → assets/index21.css} +0 -0
- /package/dist/{index14.css → assets/index22.css} +0 -0
- /package/dist/{index15.css → assets/index23.css} +0 -0
- /package/dist/{index16.css → assets/index24.css} +0 -0
- /package/dist/{index17.css → assets/index25.css} +0 -0
- /package/dist/{index18.css → assets/index26.css} +0 -0
- /package/dist/{index19.css → assets/index27.css} +0 -0
- /package/dist/{index20.css → assets/index28.css} +0 -0
- /package/dist/{index21.css → assets/index29.css} +0 -0
- /package/dist/{index3.css → assets/index3.css} +0 -0
- /package/dist/{index22.css → assets/index30.css} +0 -0
- /package/dist/{index23.css → assets/index31.css} +0 -0
- /package/dist/{index24.css → assets/index32.css} +0 -0
- /package/dist/{index33.css → assets/index33.css} +0 -0
- /package/dist/{index34.css → assets/index34.css} +0 -0
- /package/dist/{index32.css → assets/index35.css} +0 -0
- /package/dist/{index35.css → assets/index36.css} +0 -0
- /package/dist/{index40.css → assets/index37.css} +0 -0
- /package/dist/{index41.css → assets/index38.css} +0 -0
- /package/dist/{index37.css → assets/index39.css} +0 -0
- /package/dist/{index4.css → assets/index4.css} +0 -0
- /package/dist/{index36.css → assets/index40.css} +0 -0
- /package/dist/{index38.css → assets/index41.css} +0 -0
- /package/dist/{index39.css → assets/index42.css} +0 -0
- /package/dist/{index42.css → assets/index43.css} +0 -0
- /package/dist/{index43.css → assets/index44.css} +0 -0
- /package/dist/{index44.css → assets/index45.css} +0 -0
- /package/dist/{index45.css → assets/index46.css} +0 -0
- /package/dist/{index46.css → assets/index47.css} +0 -0
- /package/dist/{index47.css → assets/index48.css} +0 -0
- /package/dist/{index48.css → assets/index49.css} +0 -0
- /package/dist/{index5.css → assets/index5.css} +0 -0
- /package/dist/{index49.css → assets/index50.css} +0 -0
- /package/dist/{index6.css → assets/index6.css} +0 -0
- /package/dist/{index7.css → assets/index7.css} +0 -0
- /package/dist/{index8.css → assets/index8.css} +0 -0
- /package/dist/{index9.css → assets/index9.css} +0 -0
- /package/dist/{sass-template-common.css → assets/sass-template-common.css} +0 -0
- /package/dist/{section.card.css → assets/section.card.css} +0 -0
|
@@ -1,99 +1,96 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { G as zt } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
1
|
+
import { g as q } from "./config-aAufvvYO.js";
|
|
2
|
+
import { i as so } from "./config-aAufvvYO.js";
|
|
3
|
+
import { C as jt } from "./Comscore-Bq6K5xi3.js";
|
|
4
|
+
import { d as Dt, G as zt } from "./GA4-2trwkmRz.js";
|
|
5
|
+
import { G as Bt } from "./GTM-BYKEijOo.js";
|
|
6
|
+
import { M as Ft } from "./Marfeel-B7k-2klo.js";
|
|
7
|
+
import { jsx as o, Fragment as H, jsxs as v } from "react/jsx-runtime";
|
|
8
|
+
import { D as co } from "./index-DfxT97ME.js";
|
|
9
|
+
import { M as uo } from "./index-CuXn2KNK.js";
|
|
10
|
+
import { M as mo } from "./index-BASp9Rw7.js";
|
|
11
|
+
import { M as ho } from "./index-t891F8AX.js";
|
|
12
|
+
import { D as yo } from "./index-CQK9ULhe.js";
|
|
13
|
+
import { b as Xe } from "./index-DJDV_9DI.js";
|
|
14
|
+
import { M as wo } from "./index-DJDV_9DI.js";
|
|
15
|
+
import { C as _o } from "./index-BziV6H04.js";
|
|
16
|
+
import { C as So } from "./index-Bj5wiOtg.js";
|
|
17
|
+
import { M as Eo } from "./index-D50ReVGb.js";
|
|
18
|
+
import { E as To } from "./index-HmI2Ty6Z.js";
|
|
19
|
+
import { M as Lo } from "./index-nWQFVTYn.js";
|
|
20
|
+
import { M as Io } from "./index-mYUGtZGn.js";
|
|
21
|
+
import { m as Oo } from "./index-DcEW6J_8.js";
|
|
22
|
+
import { S as $o } from "./index-B8BHCE2p.js";
|
|
23
|
+
import { C as Mo } from "./index-ZvFtGSr-.js";
|
|
24
|
+
import { C as le, a as de } from "./comments-CnOBAekK.js";
|
|
25
|
+
import { G as Do, N as zo, S as Bo } from "./comments-CnOBAekK.js";
|
|
26
|
+
import { T as qo } from "./index-B9jhBtiE.js";
|
|
27
|
+
import { S as Vo } from "./index-DyCbgkPT.js";
|
|
28
|
+
import { A as Wo } from "./index-1nRlmYma.js";
|
|
29
|
+
import { V as Zo } from "./index-D0ijvW_Z.js";
|
|
30
|
+
import { S as Ko } from "./section.card.server-BUfTTZSi.js";
|
|
18
31
|
import * as Qe from "react";
|
|
19
|
-
import ae, { useEffect as he, useMemo as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { C as Oo } from "./index-DVvcQR8S.js";
|
|
27
|
-
import { M as Le } from "./index-DPhvZRyf.js";
|
|
28
|
-
import { B as ke } from "./index-IYXqzMg6.js";
|
|
29
|
-
import { R as Ao } from "./index-B4Wbmicc.js";
|
|
30
|
-
import { S as Mo } from "./index-DNEl0P1w.js";
|
|
31
|
-
import { S as Do } from "./index-BCeqfRUa.js";
|
|
32
|
-
import { S as Bo } from "./index-CSWDcw6Z.js";
|
|
33
|
-
import { F as qo } from "./index-CV_41-9o.js";
|
|
34
|
-
import { S as Vo } from "./index-CbuyKJUC.js";
|
|
35
|
-
import { V as Wo } from "./index-BD2BnqMo.js";
|
|
36
|
-
import { N as Zo } from "./index-1VBX2e-a.js";
|
|
37
|
-
import { N as Ko } from "./index-ByzlJRal.js";
|
|
38
|
-
import { s as tt } from "./index-D5HwU9w8.js";
|
|
39
|
-
import { S as Qo } from "./index-D5HwU9w8.js";
|
|
40
|
-
import { S as ts } from "./index-CEyZh6GH.js";
|
|
41
|
-
import { C as ns } from "./index-BHoAVWni.js";
|
|
42
|
-
import { E as os } from "./index-DhvwHZnW.js";
|
|
43
|
-
import { C as is } from "./index-BQ0VlH1P.js";
|
|
44
|
-
import { C as ls } from "./index-BoFi5oPI.js";
|
|
45
|
-
import { C as us } from "./index-DDfRRjFd.js";
|
|
46
|
-
import { L as ms } from "./index-B5h1k3BF.js";
|
|
47
|
-
import { T as hs } from "./index-BAkw1JP_.js";
|
|
48
|
-
import { s as ce } from "./image-offline.client-DCUZPh4N.js";
|
|
49
|
-
import { I as ys } from "./image-offline.client-DCUZPh4N.js";
|
|
50
|
-
import { A as ws } from "./index-uH8io09z.js";
|
|
51
|
-
import { A as _s } from "./index-CSP0gw9M.js";
|
|
52
|
-
import { L as Ss } from "./index-DyBYLT8G.js";
|
|
53
|
-
import { V as Es } from "./index-0q5UW-os.js";
|
|
54
|
-
import { S as Gt } from "./index-DqY93RSP.js";
|
|
55
|
-
import { C as Zt } from "./index-_9wK_nki.js";
|
|
56
|
-
import { H as Ts } from "./index-_9wK_nki.js";
|
|
57
|
-
import { T as Ls } from "./index-BdWZsDM5.js";
|
|
58
|
-
import { J as Is } from "./index-Dnne9WW_.js";
|
|
59
|
-
import { J as Os } from "./index-BVctif39.js";
|
|
60
|
-
import { D as As } from "./index-BFlPL3-o.js";
|
|
61
|
-
import { M as Ms } from "./index-D4XJVuVa.js";
|
|
62
|
-
import { M as Ds } from "./index-DnO4uJnf.js";
|
|
63
|
-
import { M as Bs } from "./index-BrR8dqqY.js";
|
|
64
|
-
import { D as qs } from "./index-DIFedwog.js";
|
|
65
|
-
import { b as rt } from "./index-Bludp5ia.js";
|
|
66
|
-
import { M as Vs } from "./index-Bludp5ia.js";
|
|
67
|
-
import { C as Ws } from "./index-CuvdSdAB.js";
|
|
68
|
-
import { C as Zs } from "./index-MriZ0V8v.js";
|
|
69
|
-
import { M as Ks } from "./index-BXzwZS88.js";
|
|
70
|
-
import { E as Qs } from "./index-DQM3eD37.js";
|
|
71
|
-
import { M as ti } from "./index-BctcLaJ3.js";
|
|
72
|
-
import { M as ni } from "./index-Db6FA9IG.js";
|
|
73
|
-
import { m as oi } from "./index-QIsNurJj.js";
|
|
74
|
-
import { S as ii } from "./index-CUXrzzoy.js";
|
|
75
|
-
import { C as li } from "./index-CrlWjr_z.js";
|
|
76
|
-
import { T as ui } from "./index-BeNL3KGf.js";
|
|
77
|
-
import { S as mi } from "./index-F6olW6lY.js";
|
|
78
|
-
import { A as hi } from "./index-DsROBB-B.js";
|
|
79
|
-
import { V as yi } from "./index-DSiIjU39.js";
|
|
80
|
-
import { S as wi } from "./section.card.server-B99ARPky.js";
|
|
81
|
-
import { n as te } from "./index-CzWMETLY.js";
|
|
82
|
-
import { P as Jt } from "./Play-mVECew4T.js";
|
|
32
|
+
import ae, { useEffect as he, useMemo as qt, useState as M, useCallback as vt, forwardRef as Ht, createElement as et, Component as Vt, useRef as Yt } from "react";
|
|
33
|
+
import { s as tt } from "./index-BymofdAP.js";
|
|
34
|
+
import { S as Qo } from "./index-BymofdAP.js";
|
|
35
|
+
import { n as te } from "./index-xDIiU7BB.js";
|
|
36
|
+
import { s as ce } from "./image-offline.client-D_VOV4DF.js";
|
|
37
|
+
import { I as ts } from "./image-offline.client-D_VOV4DF.js";
|
|
38
|
+
import { P as Wt } from "./Play-mVECew4T.js";
|
|
83
39
|
import { L as xe } from "./Link-BZyN_6rI.js";
|
|
84
|
-
import {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
40
|
+
import { c as Gt } from "./cut-string-Bmt-tKWG.js";
|
|
41
|
+
import { d as fe, f as wt, g as bt } from "./date-format-CZUf6krO.js";
|
|
42
|
+
import { c as ns, b as as, a as os } from "./date-format-CZUf6krO.js";
|
|
43
|
+
import { C as Zt } from "./index-DmgMBpJx.js";
|
|
44
|
+
import { H as is } from "./index-DmgMBpJx.js";
|
|
45
|
+
import { C as Ve } from "./Close-IzObL1Y8.js";
|
|
46
|
+
import { a as rt, b as Jt } from "./image-environtment-DvN02hR9.js";
|
|
47
|
+
import { g as ls } from "./image-environtment-DvN02hR9.js";
|
|
48
|
+
import { S as Kt } from "./index-DwDCC2st.js";
|
|
49
|
+
import { D as us } from "./dynamicSlot-DL19jW8L.js";
|
|
50
|
+
import { S as ms } from "./staticSlotWrapper-VRNBG2M8.js";
|
|
51
|
+
import { D as Le } from "./dynamicMainSlot-CWY6CjB7.js";
|
|
52
|
+
import { D as hs } from "./DynamicComponents-g01hPNe8.js";
|
|
53
|
+
import { M as ke } from "./index-Do1AIOsH.js";
|
|
54
|
+
import { B as Ie } from "./index-CzwqIqRa.js";
|
|
55
|
+
import { c as ys } from "./compileStyleProps-C3Ic-G8F.js";
|
|
56
|
+
import { L as ws } from "./index-C4wV7YpT.js";
|
|
57
|
+
import { C as _s } from "./index-BBaoMr4J.js";
|
|
58
|
+
import { S as Ss } from "./index-DEDd6D4W.js";
|
|
59
|
+
import { C as Es } from "./CarrouselCSR-CJYbRwia.js";
|
|
60
|
+
import { C as Ts } from "./index-nmL6Djl5.js";
|
|
61
|
+
import { b as _t } from "./index-C0T6q1l6.js";
|
|
62
|
+
import { B as Ls } from "./index-C0T6q1l6.js";
|
|
63
|
+
import { R as Is } from "./index-BuFCv_ZK.js";
|
|
64
|
+
import { S as Os } from "./index-BURxnRp9.js";
|
|
65
|
+
import { S as $s } from "./index-tqTHg0yi.js";
|
|
66
|
+
import { S as Ms } from "./index-206HWYfY.js";
|
|
67
|
+
import { F as Ds } from "./index-2xLsJpig.js";
|
|
68
|
+
import { S as Bs } from "./index-BWvzK8By.js";
|
|
69
|
+
import { V as qs } from "./index-CF0dbpBz.js";
|
|
70
|
+
import { N as Vs } from "./index-CC0Up8mz.js";
|
|
71
|
+
import { N as Ws } from "./index-EgaojWqy.js";
|
|
72
|
+
import { S as Zs } from "./index-CXLoOs8-.js";
|
|
73
|
+
import { C as Ks } from "./index-BnCIkyjy.js";
|
|
74
|
+
import { E as Qs } from "./index-BJWUECgU.js";
|
|
75
|
+
import { C as ti } from "./index-C3a-esGw.js";
|
|
76
|
+
import { C as ni } from "./index-BMIGe0k3.js";
|
|
77
|
+
import { C as oi } from "./index-DoyvTwqo.js";
|
|
78
|
+
import { L as ii } from "./index-CwhtEO0_.js";
|
|
79
|
+
import { T as li } from "./index-KmESlap_.js";
|
|
80
|
+
import { A as ui } from "./index-BF1Iiz49.js";
|
|
81
|
+
import { A as mi } from "./index-CMvT-wav.js";
|
|
82
|
+
import { L as hi } from "./index-jbOOF6ba.js";
|
|
83
|
+
import { V as yi } from "./index-DdqfhkBq.js";
|
|
84
|
+
import { T as wi } from "./index-D4G63Cmc.js";
|
|
85
|
+
import { J as _i } from "./index-6xbgjlTE.js";
|
|
86
|
+
import { J as Si } from "./index-yDSNW_-4.js";
|
|
87
|
+
import { b as Ei } from "./become-video-object-CgIYzHRq.js";
|
|
88
|
+
import { b as Ti } from "./build-tag-url-BggBzzek.js";
|
|
92
89
|
import { c as Li, s as ki } from "./SocialIcons-Df5cb5eG.js";
|
|
93
|
-
function
|
|
90
|
+
import './assets/sass-template-common.css';function Xt(e) {
|
|
94
91
|
return e && e.status === "fulfilled" ? e.value.data : null;
|
|
95
92
|
}
|
|
96
|
-
function
|
|
93
|
+
function Qt(e) {
|
|
97
94
|
return e && e.status === "fulfilled" ? e.value : null;
|
|
98
95
|
}
|
|
99
96
|
function Da(e) {
|
|
@@ -102,9 +99,9 @@ function Da(e) {
|
|
|
102
99
|
);
|
|
103
100
|
if (!t) return r;
|
|
104
101
|
for (const n of t) {
|
|
105
|
-
const a = [],
|
|
106
|
-
if (
|
|
107
|
-
for (const i of
|
|
102
|
+
const a = [], s = n.match(/data-src=["']([^"']+)["']/gi);
|
|
103
|
+
if (s)
|
|
104
|
+
for (const i of s) {
|
|
108
105
|
const c = i.replace(/data-src=["']([^"']+)["']/, "$1");
|
|
109
106
|
a.push(c);
|
|
110
107
|
}
|
|
@@ -112,9 +109,9 @@ function Da(e) {
|
|
|
112
109
|
}
|
|
113
110
|
return r;
|
|
114
111
|
}
|
|
115
|
-
const
|
|
112
|
+
const er = (e, r) => {
|
|
116
113
|
if (!e) return {};
|
|
117
|
-
const { PUBLIC_ASSETS_URL: t, PUBLIC_API_FRONT: n } =
|
|
114
|
+
const { PUBLIC_ASSETS_URL: t, PUBLIC_API_FRONT: n } = q(), a = Ct(e.keywords) ?? "", s = e?.preview?.sizes ? e?.preview?.sizes[0]?.url : "", i = (t !== "false" ? t : n) ?? "";
|
|
118
115
|
return {
|
|
119
116
|
title: (e?.main?.title?.seo ?? e?.main?.title?.article) + " | " + r.name,
|
|
120
117
|
robots: "index, follow, max-image-preview:large",
|
|
@@ -134,7 +131,7 @@ const Qt = (e, r) => {
|
|
|
134
131
|
description: e?.social?.description ?? e?.main?.subtitle?.striped ?? "",
|
|
135
132
|
images: [
|
|
136
133
|
{
|
|
137
|
-
url: i + (e?.social?.images?.facebook ??
|
|
134
|
+
url: i + (e?.social?.images?.facebook ?? s),
|
|
138
135
|
width: r.landscapeLogo.width,
|
|
139
136
|
height: r.landscapeLogo.height
|
|
140
137
|
}
|
|
@@ -148,17 +145,17 @@ const Qt = (e, r) => {
|
|
|
148
145
|
description: e?.main?.subtitle?.striped ?? "",
|
|
149
146
|
images: [
|
|
150
147
|
{
|
|
151
|
-
url: i + (e?.social?.images?.twitter ??
|
|
148
|
+
url: i + (e?.social?.images?.twitter ?? s),
|
|
152
149
|
width: r.twitterSummaryCard.width,
|
|
153
150
|
height: r.twitterSummaryCard.height
|
|
154
151
|
}
|
|
155
152
|
]
|
|
156
153
|
}
|
|
157
154
|
};
|
|
158
|
-
},
|
|
155
|
+
}, Ct = (e) => !e || !e?.tags || e?.tags?.length === 0 ? "" : e?.tags?.map((r) => r.name).join(", ").replaceAll('"', "'").replaceAll("`", "'"), tr = (e) => {
|
|
159
156
|
const r = e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);
|
|
160
157
|
return r ? { slug: r[1] ?? "", path: r[2] ?? "" } : { slug: "", path: "" };
|
|
161
|
-
},
|
|
158
|
+
}, rr = (e) => e.replaceAll("/", "").replaceAll("_", "").replace(".html", ""), nr = {
|
|
162
159
|
description: { attr: "name", value: "description" },
|
|
163
160
|
robots: { attr: "name", value: "robots" },
|
|
164
161
|
keywords: { attr: "name", value: "keywords" },
|
|
@@ -173,14 +170,14 @@ const Qt = (e, r) => {
|
|
|
173
170
|
"twitter.description": { attr: "name", value: "twitter:description" },
|
|
174
171
|
"twitter.site": { attr: "name", value: "twitter:site" },
|
|
175
172
|
"twitter.creator": { attr: "name", value: "twitter:creator" }
|
|
176
|
-
},
|
|
173
|
+
}, ar = (e) => {
|
|
177
174
|
const r = [];
|
|
178
175
|
let t = 0;
|
|
179
176
|
const n = (i) => r.push(i);
|
|
180
|
-
return e.title && typeof e.title == "string" && n(/* @__PURE__ */
|
|
177
|
+
return e.title && typeof e.title == "string" && n(/* @__PURE__ */ o("title", { children: e.title }, `title-${t++}`)), Object.entries(nr).forEach(([i, c]) => {
|
|
181
178
|
const d = i.split(".").reduce((l, p) => l?.[p], e);
|
|
182
179
|
d && n(
|
|
183
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ o(
|
|
184
181
|
"meta",
|
|
185
182
|
{
|
|
186
183
|
[c.attr]: c.value,
|
|
@@ -191,7 +188,7 @@ const Qt = (e, r) => {
|
|
|
191
188
|
);
|
|
192
189
|
}), (e.openGraph?.images ? Array.isArray(e.openGraph.images) ? e.openGraph.images : [e.openGraph.images] : []).forEach((i) => {
|
|
193
190
|
i && (typeof i == "string" ? n(
|
|
194
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ o(
|
|
195
192
|
"meta",
|
|
196
193
|
{
|
|
197
194
|
property: "og:image",
|
|
@@ -200,7 +197,7 @@ const Qt = (e, r) => {
|
|
|
200
197
|
`og-img-${t++}`
|
|
201
198
|
)
|
|
202
199
|
) : (i.url && n(
|
|
203
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ o(
|
|
204
201
|
"meta",
|
|
205
202
|
{
|
|
206
203
|
property: "og:image",
|
|
@@ -209,7 +206,7 @@ const Qt = (e, r) => {
|
|
|
209
206
|
`og-img-${t++}`
|
|
210
207
|
)
|
|
211
208
|
), i.width && n(
|
|
212
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ o(
|
|
213
210
|
"meta",
|
|
214
211
|
{
|
|
215
212
|
property: "og:image:width",
|
|
@@ -218,7 +215,7 @@ const Qt = (e, r) => {
|
|
|
218
215
|
`og-img-w-${t++}`
|
|
219
216
|
)
|
|
220
217
|
), i.height && n(
|
|
221
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ o(
|
|
222
219
|
"meta",
|
|
223
220
|
{
|
|
224
221
|
property: "og:image:height",
|
|
@@ -230,7 +227,7 @@ const Qt = (e, r) => {
|
|
|
230
227
|
}), (e.twitter?.images ? Array.isArray(e.twitter.images) ? e.twitter.images : [e.twitter.images] : []).forEach((i) => {
|
|
231
228
|
const c = typeof i == "string" ? i : i.url;
|
|
232
229
|
c && n(
|
|
233
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ o(
|
|
234
231
|
"meta",
|
|
235
232
|
{
|
|
236
233
|
name: "twitter:image",
|
|
@@ -240,7 +237,7 @@ const Qt = (e, r) => {
|
|
|
240
237
|
)
|
|
241
238
|
);
|
|
242
239
|
}), e.alternates?.canonical && n(
|
|
243
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ o(
|
|
244
241
|
"link",
|
|
245
242
|
{
|
|
246
243
|
rel: "canonical",
|
|
@@ -249,7 +246,7 @@ const Qt = (e, r) => {
|
|
|
249
246
|
`link-${t++}`
|
|
250
247
|
)
|
|
251
248
|
), e.manifest && n(
|
|
252
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ o(
|
|
253
250
|
"link",
|
|
254
251
|
{
|
|
255
252
|
rel: "manifest",
|
|
@@ -259,7 +256,7 @@ const Qt = (e, r) => {
|
|
|
259
256
|
)
|
|
260
257
|
), e.alternates?.types && Object.entries(e.alternates.types).forEach(([i, c]) => {
|
|
261
258
|
typeof c == "string" && n(
|
|
262
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ o(
|
|
263
260
|
"link",
|
|
264
261
|
{
|
|
265
262
|
rel: "alternate",
|
|
@@ -273,7 +270,7 @@ const Qt = (e, r) => {
|
|
|
273
270
|
...e.icons?.icon ?? [],
|
|
274
271
|
...e.icons?.other ?? []
|
|
275
272
|
].forEach((c) => {
|
|
276
|
-
c && n(typeof c == "string" ? /* @__PURE__ */
|
|
273
|
+
c && n(typeof c == "string" ? /* @__PURE__ */ o("link", { rel: "icon", href: c }, `icon-${t++}`) : /* @__PURE__ */ o(
|
|
277
274
|
"link",
|
|
278
275
|
{
|
|
279
276
|
rel: c.rel || "icon",
|
|
@@ -285,7 +282,7 @@ const Qt = (e, r) => {
|
|
|
285
282
|
));
|
|
286
283
|
}), e.other && Object.entries(e.other).forEach(([i, c]) => {
|
|
287
284
|
c && n(
|
|
288
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ o(
|
|
289
286
|
"meta",
|
|
290
287
|
{
|
|
291
288
|
name: i,
|
|
@@ -295,17 +292,17 @@ const Qt = (e, r) => {
|
|
|
295
292
|
)
|
|
296
293
|
);
|
|
297
294
|
}), r;
|
|
298
|
-
},
|
|
299
|
-
const r = e.banners.find((
|
|
295
|
+
}, St = (e) => {
|
|
296
|
+
const r = e.banners.find((s) => s.key === e.name);
|
|
300
297
|
if (!r || !r.show) return null;
|
|
301
|
-
const t =
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
const c =
|
|
298
|
+
const t = _t(r.value || "", e.replaces), n = /<script([^>]*)>([\s\S]*?)<\/script\s*>/gi, a = [...t.matchAll(n)];
|
|
299
|
+
return /* @__PURE__ */ o(H, { children: a.map((s, i) => {
|
|
300
|
+
const c = s[1] || "", d = s[2]?.trim() || "", l = c.match(/src=["']([^"']+)["']/i);
|
|
304
301
|
if (l) {
|
|
305
302
|
const p = l[1];
|
|
306
|
-
return /* @__PURE__ */
|
|
303
|
+
return /* @__PURE__ */ o("script", { src: p, async: !0 }, i);
|
|
307
304
|
} else
|
|
308
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ o(
|
|
309
306
|
"script",
|
|
310
307
|
{
|
|
311
308
|
id: e.name,
|
|
@@ -314,11 +311,11 @@ const Qt = (e, r) => {
|
|
|
314
311
|
i
|
|
315
312
|
);
|
|
316
313
|
}) });
|
|
317
|
-
},
|
|
314
|
+
}, or = (e) => {
|
|
318
315
|
const r = e.banners.find((a) => a.key === e.name);
|
|
319
316
|
if (!r || !r.show) return null;
|
|
320
|
-
const n =
|
|
321
|
-
return /* @__PURE__ */
|
|
317
|
+
const n = _t(r.value || "", e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);
|
|
318
|
+
return /* @__PURE__ */ o(H, { children: n.map((a, s) => {
|
|
322
319
|
const i = a.match(
|
|
323
320
|
/<script([^>]*)>([\s\S]*?)<\/script\s*>/i
|
|
324
321
|
);
|
|
@@ -326,41 +323,53 @@ const Qt = (e, r) => {
|
|
|
326
323
|
const c = i[1] || "", d = i[2]?.trim() || "", l = c.match(/src=["']([^"']+)["']/i);
|
|
327
324
|
if (l) {
|
|
328
325
|
const p = l[1];
|
|
329
|
-
return /* @__PURE__ */
|
|
326
|
+
return /* @__PURE__ */ o("script", { src: p, async: !0 }, s);
|
|
330
327
|
} else
|
|
331
|
-
return /* @__PURE__ */
|
|
328
|
+
return /* @__PURE__ */ o(
|
|
332
329
|
"script",
|
|
333
330
|
{
|
|
334
331
|
id: e.name,
|
|
335
332
|
dangerouslySetInnerHTML: { __html: d }
|
|
336
333
|
},
|
|
337
|
-
|
|
334
|
+
s
|
|
338
335
|
);
|
|
339
336
|
} else if (a.trim())
|
|
340
|
-
return /* @__PURE__ */
|
|
337
|
+
return /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: a } }, s);
|
|
341
338
|
return null;
|
|
342
339
|
}) });
|
|
343
340
|
}, ve = (e, r, t) => {
|
|
344
341
|
let n = e.siteUrl;
|
|
345
|
-
return r.forEach((a,
|
|
346
|
-
|
|
342
|
+
return r.forEach((a, s) => {
|
|
343
|
+
s > 0 && (n += `/${a}`);
|
|
347
344
|
}), `${n}/page/${t + 1}`;
|
|
348
345
|
}, we = (e, r, t) => {
|
|
349
346
|
let n = e.siteUrl;
|
|
350
|
-
return r.forEach((a,
|
|
351
|
-
|
|
347
|
+
return r.forEach((a, s) => {
|
|
348
|
+
s > 0 && (n += `/${a}`);
|
|
352
349
|
}), `${n}/page/${t - 1}`;
|
|
353
350
|
};
|
|
354
351
|
function za(e) {
|
|
355
352
|
const r = e.length;
|
|
356
353
|
return r > 1 && e.charCodeAt(r - 1) === 47 ? e.slice(0, r - 1) : e;
|
|
357
354
|
}
|
|
358
|
-
const
|
|
359
|
-
const { PUBLIC_ASSETS_URL: e } =
|
|
360
|
-
return e && e !== "false" && /* @__PURE__ */
|
|
361
|
-
},
|
|
355
|
+
const sr = () => {
|
|
356
|
+
const { PUBLIC_ASSETS_URL: e } = q();
|
|
357
|
+
return e && e !== "false" && /* @__PURE__ */ o("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
|
|
358
|
+
}, { PUBLIC_ASSETS_URL: Re } = q(), ir = Re && Re !== "false" ? Re : "", nt = ({ images: e }) => /* @__PURE__ */ o(H, { children: e.map(
|
|
359
|
+
(r, t) => r.href !== "" && /* @__PURE__ */ o(
|
|
360
|
+
"link",
|
|
361
|
+
{
|
|
362
|
+
rel: "preload",
|
|
363
|
+
href: ir + r.href,
|
|
364
|
+
media: r.media ?? "",
|
|
365
|
+
as: "image",
|
|
366
|
+
fetchPriority: r.fetchPriority ?? "high"
|
|
367
|
+
},
|
|
368
|
+
t
|
|
369
|
+
)
|
|
370
|
+
) }), cr = (e, r) => {
|
|
362
371
|
if (!e) return {};
|
|
363
|
-
const { PUBLIC_API_FRONT: t } =
|
|
372
|
+
const { PUBLIC_API_FRONT: t } = q();
|
|
364
373
|
return {
|
|
365
374
|
title: e?.main?.title + " | " + r.name,
|
|
366
375
|
robots: "index, follow, max-image-preview:large",
|
|
@@ -401,13 +410,13 @@ const or = () => {
|
|
|
401
410
|
}, Ba = (e) => {
|
|
402
411
|
let r = "";
|
|
403
412
|
if (e.params.news.match(/.*t[0-9]*.html/g)) {
|
|
404
|
-
const t = e.params.news.split("-"), n = t[t.length - 1] ?? "", a = n.substring(1, 9),
|
|
405
|
-
r = `/listas/${fe(a).format("YYYY/MM/DD")}/lista_${
|
|
413
|
+
const t = e.params.news.split("-"), n = t[t.length - 1] ?? "", a = n.substring(1, 9), s = n.substring(9, 13);
|
|
414
|
+
r = `/listas/${fe(a).format("YYYY/MM/DD")}/lista_${s}.html`;
|
|
406
415
|
} else if (e.params.news.match(/.*lb[0-9]*.html/g)) {
|
|
407
|
-
const t = e.params.news.split("-"), n = t[t.length - 1] ?? "", a = n.substring(2, 10),
|
|
416
|
+
const t = e.params.news.split("-"), n = t[t.length - 1] ?? "", a = n.substring(2, 10), s = n.substring(10, 14);
|
|
408
417
|
r = `/liveblog/${fe(a).format(
|
|
409
418
|
"YYYY/MM/DD"
|
|
410
|
-
)}/liveblog_${
|
|
419
|
+
)}/liveblog_${s}.html`;
|
|
411
420
|
} else {
|
|
412
421
|
const n = e.params.news.replace(/\.html$/g, "").split("-");
|
|
413
422
|
Array.isArray(n) && (r = `/contenidos/${fe(n[n.length - 2]).format(
|
|
@@ -417,67 +426,67 @@ const or = () => {
|
|
|
417
426
|
return e.config.servicePrefix + r;
|
|
418
427
|
};
|
|
419
428
|
function Fa(e) {
|
|
420
|
-
const r = e.split("-"), t = r[r.length - 1]?.split("."), n = t && t[0] ? t[0] : "", a = n.substring(0, 2),
|
|
429
|
+
const r = e.split("-"), t = r[r.length - 1]?.split("."), n = t && t[0] ? t[0] : "", a = n.substring(0, 2), s = n.substring(2, 10), i = n.substring(10);
|
|
421
430
|
return { path: {
|
|
422
|
-
vy: (d) => `/videos/video-youtube/${fe(
|
|
431
|
+
vy: (d) => `/videos/video-youtube/${fe(s).format(
|
|
423
432
|
"YYYY/MM/DD"
|
|
424
433
|
)}/videoYouTube_${d}.lnk`,
|
|
425
|
-
ve: (d) => `/videos/video-embedded/${fe(
|
|
434
|
+
ve: (d) => `/videos/video-embedded/${fe(s).format(
|
|
426
435
|
"YYYY/MM/DD"
|
|
427
436
|
)}/videoEmbedded_${d}.lnk`,
|
|
428
|
-
vf: (d) => `/videos/video-flash/${fe(
|
|
437
|
+
vf: (d) => `/videos/video-flash/${fe(s).format("YYYY/MM/DD")}/${r[0]}.${d}`
|
|
429
438
|
}[a]?.(i) ?? "", op: a };
|
|
430
439
|
}
|
|
431
440
|
const qa = (e) => {
|
|
432
441
|
const { AssetsPrefix: r = "", AssetsPath: t = "src", isDev: n = !1 } = e;
|
|
433
442
|
return n ? "src" : r + t;
|
|
434
|
-
},
|
|
443
|
+
}, lr = { prerender: [
|
|
435
444
|
{ where: { and: [
|
|
436
445
|
{ href_matches: "/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html" },
|
|
437
446
|
{ not: { selector_matches: "[rel~=nofollow]" } }
|
|
438
447
|
] }, eagerness: "immediate" }
|
|
439
|
-
] },
|
|
448
|
+
] }, dr = { prerender: [
|
|
440
449
|
{ where: { and: [
|
|
441
450
|
{ href_matches: "/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html" },
|
|
442
451
|
{ not: { selector_matches: "[rel~=nofollow]" } }
|
|
443
452
|
] }, eagerness: "immediate" },
|
|
444
453
|
{ eagerness: "immediate", urls: ["/"] }
|
|
445
|
-
] },
|
|
446
|
-
Home:
|
|
447
|
-
Common:
|
|
448
|
-
},
|
|
454
|
+
] }, ur = {
|
|
455
|
+
Home: lr,
|
|
456
|
+
Common: dr
|
|
457
|
+
}, pr = ({ active: e, type: r, customSpeculation: t }) => e && /* @__PURE__ */ o(
|
|
449
458
|
"script",
|
|
450
459
|
{
|
|
451
460
|
type: "speculationrules",
|
|
452
461
|
dangerouslySetInnerHTML: {
|
|
453
|
-
__html: JSON.stringify(t ??
|
|
462
|
+
__html: JSON.stringify(t ?? ur[r])
|
|
454
463
|
}
|
|
455
464
|
}
|
|
456
|
-
),
|
|
465
|
+
), Ye = async (e, r, t) => {
|
|
457
466
|
if (!t) return;
|
|
458
467
|
const n = r === "/news-breadcrumb" ? { ...e, prefixtag: "/tema" } : e;
|
|
459
468
|
return t.get(`/schemas${r}`, { params: n }).catch((a) => {
|
|
460
469
|
console.log(`[/schemas${r}] Error: ${a.message}`);
|
|
461
470
|
});
|
|
462
|
-
},
|
|
471
|
+
}, mr = {
|
|
463
472
|
autor: "autor",
|
|
464
473
|
seccion: "seccion",
|
|
465
474
|
tema: "claves",
|
|
466
475
|
"ultimas-noticias": "seccion"
|
|
467
|
-
},
|
|
476
|
+
}, fr = async ({
|
|
468
477
|
config: e,
|
|
469
478
|
axiosApi: r,
|
|
470
479
|
pathname: t,
|
|
471
480
|
ROUTE: n
|
|
472
481
|
}) => {
|
|
473
482
|
let a = [];
|
|
474
|
-
const
|
|
483
|
+
const s = t === "/" || t === "/index.html" ? void 0 : br(_r[n]({ pathname: t, config: e })), i = mr[n] ?? void 0, c = {
|
|
475
484
|
newstype: e.newsType,
|
|
476
485
|
publication: "35",
|
|
477
|
-
...
|
|
486
|
+
...s && i ? { query: `${i}:('${s}')` } : {}
|
|
478
487
|
};
|
|
479
488
|
try {
|
|
480
|
-
const d = await
|
|
489
|
+
const d = await Ye(c, "/news-list-summary", r);
|
|
481
490
|
d?.data?.data ? a = d.data.data : console.warn(
|
|
482
491
|
"getSchemas responded but did not contain expected data:",
|
|
483
492
|
d
|
|
@@ -485,7 +494,7 @@ const qa = (e) => {
|
|
|
485
494
|
} catch (d) {
|
|
486
495
|
console.log("Error fetching schemas:", d);
|
|
487
496
|
}
|
|
488
|
-
return Object.keys(a).length > 0 && /* @__PURE__ */
|
|
497
|
+
return Object.keys(a).length > 0 && /* @__PURE__ */ o(
|
|
489
498
|
"script",
|
|
490
499
|
{
|
|
491
500
|
id: "webSiteItemListSchema",
|
|
@@ -496,13 +505,13 @@ const qa = (e) => {
|
|
|
496
505
|
}
|
|
497
506
|
);
|
|
498
507
|
};
|
|
499
|
-
function
|
|
500
|
-
const { PUBLIC_ASSETS_URL: r } =
|
|
508
|
+
function xt(e) {
|
|
509
|
+
const { PUBLIC_ASSETS_URL: r } = q();
|
|
501
510
|
if (!r || r === "false") return e;
|
|
502
511
|
const t = r.replace(/\/+$/, ""), n = /https?:\/\/[^/\s]+\/(arte|__export)\//g;
|
|
503
|
-
return e.replace(n, (a,
|
|
512
|
+
return e.replace(n, (a, s) => `${t}/${s}/`);
|
|
504
513
|
}
|
|
505
|
-
const
|
|
514
|
+
const hr = async ({
|
|
506
515
|
realPath: e,
|
|
507
516
|
config: r,
|
|
508
517
|
BASE_URL: t,
|
|
@@ -510,10 +519,10 @@ const mr = async ({
|
|
|
510
519
|
}) => {
|
|
511
520
|
let a = [];
|
|
512
521
|
try {
|
|
513
|
-
const
|
|
522
|
+
const s = r.socialBlockLogo?.url ? new URL(r.socialBlockLogo.url).pathname : void 0, i = r.landscapeLogo?.url ? new URL(r.landscapeLogo.url).pathname : void 0, c = {
|
|
514
523
|
path: e,
|
|
515
524
|
image: i,
|
|
516
|
-
logo:
|
|
525
|
+
logo: s,
|
|
517
526
|
url: r.siteUrl,
|
|
518
527
|
name: r.name,
|
|
519
528
|
logow: r.socialBlockLogo?.width,
|
|
@@ -521,22 +530,22 @@ const mr = async ({
|
|
|
521
530
|
authorurl: t + "/autor/"
|
|
522
531
|
}, d = e.split("/")[1], l = d == "liveblogs" || d == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"];
|
|
523
532
|
a = (await Promise.all(
|
|
524
|
-
l.map(async (u) => await
|
|
533
|
+
l.map(async (u) => await Ye(c, u, n))
|
|
525
534
|
)).map((u) => u?.data?.data ?? []);
|
|
526
|
-
} catch (
|
|
527
|
-
console.log("Error fetching schemas:",
|
|
535
|
+
} catch (s) {
|
|
536
|
+
console.log("Error fetching schemas:", s);
|
|
528
537
|
}
|
|
529
|
-
return a.map((
|
|
538
|
+
return a.map((s, i) => /* @__PURE__ */ o(
|
|
530
539
|
"script",
|
|
531
540
|
{
|
|
532
541
|
type: "application/ld+json",
|
|
533
542
|
dangerouslySetInnerHTML: {
|
|
534
|
-
__html:
|
|
543
|
+
__html: xt(JSON.stringify(s))
|
|
535
544
|
}
|
|
536
545
|
},
|
|
537
546
|
i
|
|
538
547
|
));
|
|
539
|
-
},
|
|
548
|
+
}, gr = ({ config: e, socials: r }) => {
|
|
540
549
|
const t = {
|
|
541
550
|
"@context": "https://schema.org",
|
|
542
551
|
"@type": "NewsMediaOrganization",
|
|
@@ -547,7 +556,7 @@ const mr = async ({
|
|
|
547
556
|
logo: e.squareLogo.url,
|
|
548
557
|
sameAs: Object.keys(r).filter((n) => r[n]?.show).map((n) => r[n]?.url)
|
|
549
558
|
};
|
|
550
|
-
return (!e.description || e.description === "") && delete t.description, /* @__PURE__ */
|
|
559
|
+
return (!e.description || e.description === "") && delete t.description, /* @__PURE__ */ o(
|
|
551
560
|
"script",
|
|
552
561
|
{
|
|
553
562
|
id: "WebsiteOrgListSchema",
|
|
@@ -555,7 +564,7 @@ const mr = async ({
|
|
|
555
564
|
dangerouslySetInnerHTML: { __html: JSON.stringify(t) }
|
|
556
565
|
}
|
|
557
566
|
);
|
|
558
|
-
},
|
|
567
|
+
}, yr = ({ config: e }) => {
|
|
559
568
|
const r = {
|
|
560
569
|
"@context": "https://schema.org",
|
|
561
570
|
"@type": "WebSite",
|
|
@@ -567,7 +576,7 @@ const mr = async ({
|
|
|
567
576
|
"query-input": "required name=search_term_string"
|
|
568
577
|
}
|
|
569
578
|
};
|
|
570
|
-
return /* @__PURE__ */
|
|
579
|
+
return /* @__PURE__ */ o(
|
|
571
580
|
"script",
|
|
572
581
|
{
|
|
573
582
|
id: "WebsiteListSchema",
|
|
@@ -575,7 +584,7 @@ const mr = async ({
|
|
|
575
584
|
dangerouslySetInnerHTML: { __html: JSON.stringify(r) }
|
|
576
585
|
}
|
|
577
586
|
);
|
|
578
|
-
},
|
|
587
|
+
}, vr = async ({ realPath: e, config: r, axiosApi: t }) => {
|
|
579
588
|
try {
|
|
580
589
|
const n = {
|
|
581
590
|
path: e,
|
|
@@ -586,18 +595,18 @@ const mr = async ({
|
|
|
586
595
|
logow: r.socialBlockLogo?.width,
|
|
587
596
|
logoh: r.socialBlockLogo?.height,
|
|
588
597
|
authorurl: `${r.siteUrl}/autor/`
|
|
589
|
-
},
|
|
590
|
-
return
|
|
598
|
+
}, s = (await Ye(n, "/videos", t))?.data.data;
|
|
599
|
+
return s ? /* @__PURE__ */ o(
|
|
591
600
|
"script",
|
|
592
601
|
{
|
|
593
602
|
type: "application/ld+json",
|
|
594
|
-
dangerouslySetInnerHTML: { __html:
|
|
603
|
+
dangerouslySetInnerHTML: { __html: xt(JSON.stringify(s)) }
|
|
595
604
|
}
|
|
596
605
|
) : void 0;
|
|
597
606
|
} catch (n) {
|
|
598
607
|
return console.error("Error fetching video schemas:", n), null;
|
|
599
608
|
}
|
|
600
|
-
},
|
|
609
|
+
}, wr = ({ config: e }) => {
|
|
601
610
|
const r = `@font-face {
|
|
602
611
|
font-family: '${e.fontName}';
|
|
603
612
|
font-style: normal;
|
|
@@ -607,8 +616,8 @@ const mr = async ({
|
|
|
607
616
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
608
617
|
}
|
|
609
618
|
`;
|
|
610
|
-
return /* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */
|
|
619
|
+
return /* @__PURE__ */ o(H, { children: e.useS3Font ? /* @__PURE__ */ v(H, { children: [
|
|
620
|
+
/* @__PURE__ */ o(
|
|
612
621
|
"link",
|
|
613
622
|
{
|
|
614
623
|
rel: "preload",
|
|
@@ -618,15 +627,15 @@ const mr = async ({
|
|
|
618
627
|
crossOrigin: "anonymous"
|
|
619
628
|
}
|
|
620
629
|
),
|
|
621
|
-
/* @__PURE__ */
|
|
622
|
-
] }) : /* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ o("style", { dangerouslySetInnerHTML: { __html: r } })
|
|
631
|
+
] }) : /* @__PURE__ */ o(
|
|
623
632
|
"link",
|
|
624
633
|
{
|
|
625
634
|
rel: "stylesheet",
|
|
626
635
|
href: `https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=swap`
|
|
627
636
|
}
|
|
628
637
|
) });
|
|
629
|
-
},
|
|
638
|
+
}, Et = {
|
|
630
639
|
404: () => {
|
|
631
640
|
},
|
|
632
641
|
home: () => ({
|
|
@@ -644,8 +653,8 @@ const mr = async ({
|
|
|
644
653
|
news: (e) => ({
|
|
645
654
|
"[author_replace]": e.currentNew?.authors[0]?.name ?? "",
|
|
646
655
|
"[section_replace]": e.currentNew?.info?.section?.slug ?? "",
|
|
647
|
-
"[tag_replace]":
|
|
648
|
-
"[url_replace]":
|
|
656
|
+
"[tag_replace]": Ct(e.currentNew?.keywords),
|
|
657
|
+
"[url_replace]": rr(e.internalPath ?? "")
|
|
649
658
|
}),
|
|
650
659
|
seccion: (e) => ({
|
|
651
660
|
"[author_replace]": "",
|
|
@@ -707,15 +716,15 @@ const mr = async ({
|
|
|
707
716
|
"[tag_replace]": "",
|
|
708
717
|
"[url_replace]": ""
|
|
709
718
|
})
|
|
710
|
-
},
|
|
719
|
+
}, br = (e) => {
|
|
711
720
|
if (e.search("/page/") === -1) return e.replace("/", "");
|
|
712
721
|
const r = e.split("/"), t = r.indexOf("page") - 1;
|
|
713
722
|
return t < 0 ? e : (r[t] ?? "").replace("/", "");
|
|
714
|
-
},
|
|
723
|
+
}, _r = {
|
|
715
724
|
404: () => "404",
|
|
716
725
|
home: () => "home",
|
|
717
726
|
slug: (e) => e.pathname.replace("/", ""),
|
|
718
|
-
news: (e) =>
|
|
727
|
+
news: (e) => tr(e.pathname)?.slug,
|
|
719
728
|
seccion: (e) => e.pathname.split("/seccion/")[1] ?? "",
|
|
720
729
|
tema: (e) => e.pathname.split("/tema/")[1] ?? "",
|
|
721
730
|
pages: (e) => e.pathname.split("/pages/")[1] ?? "",
|
|
@@ -856,14 +865,14 @@ class Va {
|
|
|
856
865
|
section: a,
|
|
857
866
|
news: []
|
|
858
867
|
};
|
|
859
|
-
const
|
|
868
|
+
const s = await this.GetByOptions[a](t);
|
|
860
869
|
return {
|
|
861
870
|
section: a,
|
|
862
|
-
news:
|
|
871
|
+
news: s.data
|
|
863
872
|
};
|
|
864
873
|
}
|
|
865
874
|
}
|
|
866
|
-
class
|
|
875
|
+
class Cr extends le {
|
|
867
876
|
getBlockSass = async (r) => {
|
|
868
877
|
const t = await this.props?.axiosApi.get("/config/blocks-saas", {
|
|
869
878
|
params: {
|
|
@@ -873,7 +882,7 @@ class br extends le {
|
|
|
873
882
|
});
|
|
874
883
|
if (!t || !t.data || !t.data.data || t.data.data.length === 0 || !t.data.data[0]?.value || !t.data.data[0].block || !this.props?.imgSizes[t.data.data[0].block])
|
|
875
884
|
return { blockSass: t ? t.data.data : void 0 };
|
|
876
|
-
const n = t.data.data[0] ?? [], a = n?.value.split("="),
|
|
885
|
+
const n = t.data.data[0] ?? [], a = n?.value.split("="), s = a[0] ?? "", i = a[1] ?? "", c = n?.block, d = {
|
|
877
886
|
videos: async () => {
|
|
878
887
|
const l = await this.getvideoListAdvanced({
|
|
879
888
|
size: this.props?.imgSizes[c].size ?? 5,
|
|
@@ -912,8 +921,8 @@ class br extends le {
|
|
|
912
921
|
};
|
|
913
922
|
}
|
|
914
923
|
};
|
|
915
|
-
if (
|
|
916
|
-
const l = d[
|
|
924
|
+
if (s in d) {
|
|
925
|
+
const l = d[s];
|
|
917
926
|
return await l();
|
|
918
927
|
}
|
|
919
928
|
return { blockSass: t.data.data };
|
|
@@ -955,15 +964,15 @@ class Ya {
|
|
|
955
964
|
}
|
|
956
965
|
}
|
|
957
966
|
}
|
|
958
|
-
const Wa = async (e, r, t, n, a,
|
|
959
|
-
const i = new
|
|
967
|
+
const Wa = async (e, r, t, n, a, s) => {
|
|
968
|
+
const i = new Cr({
|
|
960
969
|
config: r,
|
|
961
970
|
imgSizes: t,
|
|
962
971
|
imgSizesVideo: n,
|
|
963
972
|
axiosApi: e
|
|
964
973
|
}), c = [];
|
|
965
974
|
for (let p = 1; p <= a; p++)
|
|
966
|
-
for (let u = 1; u <=
|
|
975
|
+
for (let u = 1; u <= s; u++)
|
|
967
976
|
c.push({
|
|
968
977
|
func: i.getBlockSass,
|
|
969
978
|
slot_id: p + "_" + u
|
|
@@ -974,24 +983,24 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
974
983
|
return (() => {
|
|
975
984
|
const p = {};
|
|
976
985
|
for (let u = 0; u < d.length; u++) {
|
|
977
|
-
const m =
|
|
986
|
+
const m = Qt(
|
|
978
987
|
d[u]
|
|
979
|
-
), h = "Home_" + (Math.floor(u /
|
|
988
|
+
), h = "Home_" + (Math.floor(u / s) + 1) + "_" + (Math.floor(u % s) + 1);
|
|
980
989
|
m && (p[h] = { ...m });
|
|
981
990
|
}
|
|
982
991
|
return p;
|
|
983
992
|
})();
|
|
984
|
-
},
|
|
985
|
-
const r =
|
|
993
|
+
}, Sr = (e) => {
|
|
994
|
+
const r = Xt(e);
|
|
986
995
|
return r && r.data ? r.data : r;
|
|
987
996
|
}, Ga = async (e) => {
|
|
988
997
|
const r = await Promise.allSettled(
|
|
989
998
|
Object.values(e).map((a) => a.promise)
|
|
990
999
|
), t = Object.keys(e), n = {};
|
|
991
1000
|
for (const a in e) {
|
|
992
|
-
const
|
|
993
|
-
if (!
|
|
994
|
-
const i =
|
|
1001
|
+
const s = e[a];
|
|
1002
|
+
if (!s) continue;
|
|
1003
|
+
const i = s.custom_extractData ?? Sr;
|
|
995
1004
|
n[a] = i(r[t.indexOf(a)]);
|
|
996
1005
|
}
|
|
997
1006
|
return n;
|
|
@@ -999,7 +1008,7 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
999
1008
|
title: e.title,
|
|
1000
1009
|
description: e.description,
|
|
1001
1010
|
robots: "noindex"
|
|
1002
|
-
}),
|
|
1011
|
+
}), xr = {
|
|
1003
1012
|
404: (e) => {
|
|
1004
1013
|
const { meta: r } = e;
|
|
1005
1014
|
return G(r);
|
|
@@ -1028,13 +1037,13 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
1028
1037
|
news: (e) => {
|
|
1029
1038
|
const { meta: r, config: t, currentNew: n } = e;
|
|
1030
1039
|
if (!n) return G(r);
|
|
1031
|
-
const a =
|
|
1040
|
+
const a = er(n, t);
|
|
1032
1041
|
return a ? { ...r, ...a } : G(r);
|
|
1033
1042
|
},
|
|
1034
1043
|
seccion: async (e) => {
|
|
1035
|
-
const { meta: r, config: t, pathname: n, slug: a } = e,
|
|
1044
|
+
const { meta: r, config: t, pathname: n, slug: a } = e, s = new le(), i = n.split("/"), c = [], d = be(n), l = Number(t.newsListLimit) ?? 0;
|
|
1036
1045
|
try {
|
|
1037
|
-
const p = await
|
|
1046
|
+
const p = await s.getNewsListSection({
|
|
1038
1047
|
section: a,
|
|
1039
1048
|
size: l,
|
|
1040
1049
|
newstype: t.newsType,
|
|
@@ -1076,9 +1085,9 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
1076
1085
|
}
|
|
1077
1086
|
},
|
|
1078
1087
|
tema: async (e) => {
|
|
1079
|
-
const { meta: r, config: t, pathname: n, slug: a } = e,
|
|
1088
|
+
const { meta: r, config: t, pathname: n, slug: a } = e, s = new le(), i = n.split("/"), c = [], d = be(n), l = Number(t.newsListLimit) ?? 0, p = /([t][0-9]{4})\w+/.exec(a || ""), u = p && p?.length > 0 ? p[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: m } = q();
|
|
1080
1089
|
try {
|
|
1081
|
-
const h = await
|
|
1090
|
+
const h = await s.getNewsListTags({
|
|
1082
1091
|
tagid: u,
|
|
1083
1092
|
size: l,
|
|
1084
1093
|
tagtype: Number(m),
|
|
@@ -1139,30 +1148,30 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
1139
1148
|
video: async (e) => {
|
|
1140
1149
|
const { meta: r, config: t, internalPath: n } = e, a = new le();
|
|
1141
1150
|
try {
|
|
1142
|
-
const
|
|
1151
|
+
const s = await a.getVideos({
|
|
1143
1152
|
imagesizes: "w:1200,h:630,t:2;",
|
|
1144
1153
|
path: n
|
|
1145
1154
|
});
|
|
1146
|
-
return
|
|
1155
|
+
return s?.data?.data?.length ? {
|
|
1147
1156
|
...r,
|
|
1148
|
-
...
|
|
1157
|
+
...cr(s.data.data[0], t) ?? {}
|
|
1149
1158
|
} : G(r);
|
|
1150
|
-
} catch (
|
|
1151
|
-
return console.error("metadata (video) error:",
|
|
1159
|
+
} catch (s) {
|
|
1160
|
+
return console.error("metadata (video) error:", s), G(r);
|
|
1152
1161
|
}
|
|
1153
1162
|
},
|
|
1154
1163
|
videos: async (e) => {
|
|
1155
|
-
const { meta: r, config: t, pathname: n } = e, a = new le(),
|
|
1164
|
+
const { meta: r, config: t, pathname: n } = e, a = new le(), s = n.split("/"), i = [], c = be(n), d = await a.getvideoListAdvanced({
|
|
1156
1165
|
size: Number(t.newsListLimit),
|
|
1157
1166
|
query: "Category:(videohome OR destacadoseccion OR seccion)",
|
|
1158
1167
|
page: Number(c)
|
|
1159
1168
|
});
|
|
1160
1169
|
return d ? (d.data.data.length < Number(t.newsListLimit) || i.push({
|
|
1161
1170
|
rel: "next",
|
|
1162
|
-
url: ve(t,
|
|
1171
|
+
url: ve(t, s, c)
|
|
1163
1172
|
}), c > 1 && i.push({
|
|
1164
1173
|
rel: "prev",
|
|
1165
|
-
url: we(t,
|
|
1174
|
+
url: we(t, s, c)
|
|
1166
1175
|
}), {
|
|
1167
1176
|
...r,
|
|
1168
1177
|
title: "Videos | " + t.name,
|
|
@@ -1181,9 +1190,9 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
1181
1190
|
}) : G(r);
|
|
1182
1191
|
},
|
|
1183
1192
|
pages: async (e) => {
|
|
1184
|
-
const { meta: r, config: t, pathname: n, slug: a } = e,
|
|
1193
|
+
const { meta: r, config: t, pathname: n, slug: a } = e, s = new le();
|
|
1185
1194
|
try {
|
|
1186
|
-
const i = await
|
|
1195
|
+
const i = await s.getPages({
|
|
1187
1196
|
path: t.servicePrefix + `/pages/${a}`
|
|
1188
1197
|
});
|
|
1189
1198
|
if (!i) return G(r);
|
|
@@ -1223,17 +1232,17 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
1223
1232
|
};
|
|
1224
1233
|
},
|
|
1225
1234
|
buscar: (e) => {
|
|
1226
|
-
const { meta: r, config: t, pathname: n, query: a, texts:
|
|
1235
|
+
const { meta: r, config: t, pathname: n, query: a, texts: s } = e;
|
|
1227
1236
|
return a && a.trim() !== "" ? {
|
|
1228
1237
|
...r,
|
|
1229
|
-
title: `${t.name} | ${`${
|
|
1238
|
+
title: `${t.name} | ${`${s.resultsOfPrefix}'${a}'`}`,
|
|
1230
1239
|
alternates: {
|
|
1231
1240
|
...r.alternates,
|
|
1232
1241
|
canonical: t.siteUrl + n + (a ? "?query=" + a : "")
|
|
1233
1242
|
}
|
|
1234
1243
|
} : {
|
|
1235
1244
|
...r,
|
|
1236
|
-
title: `${t.name} | ${
|
|
1245
|
+
title: `${t.name} | ${s.searchKeyWord}`,
|
|
1237
1246
|
alternates: {
|
|
1238
1247
|
...r.alternates,
|
|
1239
1248
|
canonical: t.siteUrl + n + (a ? "?query=" + a : "")
|
|
@@ -1241,15 +1250,15 @@ const Wa = async (e, r, t, n, a, o) => {
|
|
|
1241
1250
|
};
|
|
1242
1251
|
},
|
|
1243
1252
|
autor: async (e) => {
|
|
1244
|
-
const { meta: r, config: t, pathname: n, imgSizes: a, slug:
|
|
1253
|
+
const { meta: r, config: t, pathname: n, imgSizes: a, slug: s } = e, i = new le(), c = n.split("/"), d = [], l = be(n);
|
|
1245
1254
|
try {
|
|
1246
1255
|
const p = await i.getAutorInfo({
|
|
1247
|
-
user:
|
|
1256
|
+
user: s,
|
|
1248
1257
|
exclude: "groups",
|
|
1249
1258
|
imagesizes: a.sm
|
|
1250
1259
|
}), u = await i.getNewsListAutor({
|
|
1251
1260
|
size: Number(t.newsListLimit) ?? 0,
|
|
1252
|
-
user:
|
|
1261
|
+
user: s,
|
|
1253
1262
|
page: l,
|
|
1254
1263
|
newstype: t.newsType,
|
|
1255
1264
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
@@ -1297,7 +1306,7 @@ async function Za({
|
|
|
1297
1306
|
meta: t,
|
|
1298
1307
|
imgSizes: n,
|
|
1299
1308
|
defaultMetadataName: a,
|
|
1300
|
-
pathname:
|
|
1309
|
+
pathname: s,
|
|
1301
1310
|
slug: i,
|
|
1302
1311
|
texts: c,
|
|
1303
1312
|
query: d,
|
|
@@ -1313,55 +1322,55 @@ async function Za({
|
|
|
1313
1322
|
custom_scriptReplaces: E,
|
|
1314
1323
|
head_custom_elements: N
|
|
1315
1324
|
}) {
|
|
1316
|
-
const T = C || await
|
|
1325
|
+
const T = C || await xr[a]({
|
|
1317
1326
|
meta: t,
|
|
1318
1327
|
config: m,
|
|
1319
1328
|
currentNew: l,
|
|
1320
|
-
pathname:
|
|
1329
|
+
pathname: s,
|
|
1321
1330
|
imgSizes: n,
|
|
1322
1331
|
slug: i,
|
|
1323
1332
|
texts: c,
|
|
1324
1333
|
query: d
|
|
1325
|
-
}), f =
|
|
1326
|
-
pathname:
|
|
1334
|
+
}), f = ar(T), B = E || Et[a]({
|
|
1335
|
+
pathname: s,
|
|
1327
1336
|
slug: i,
|
|
1328
1337
|
config: m,
|
|
1329
1338
|
currentNew: l,
|
|
1330
1339
|
internalPath: u
|
|
1331
1340
|
});
|
|
1332
|
-
return /* @__PURE__ */ v(
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
/* @__PURE__ */
|
|
1341
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
1342
|
+
/* @__PURE__ */ o("meta", { charSet: "utf-8" }),
|
|
1343
|
+
/* @__PURE__ */ o("meta", { name: "viewport", content: "width=device-width" }),
|
|
1335
1344
|
f,
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
r.ampConfig && m.ampOption && r.ampConfig_slugIsValid && /* @__PURE__ */
|
|
1338
|
-
r.preloadImages && l && l.preview?.sizes && /* @__PURE__ */
|
|
1339
|
-
|
|
1345
|
+
/* @__PURE__ */ o(sr, {}),
|
|
1346
|
+
r.ampConfig && m.ampOption && r.ampConfig_slugIsValid && /* @__PURE__ */ o("link", { rel: "amphtml", href: m.siteUrl + "/amp" + s }),
|
|
1347
|
+
r.preloadImages && l && l.preview?.sizes && /* @__PURE__ */ o(
|
|
1348
|
+
nt,
|
|
1340
1349
|
{
|
|
1341
1350
|
images: [
|
|
1342
1351
|
{
|
|
1343
|
-
href:
|
|
1352
|
+
href: rt() + (l.preview.sizes[0]?.url ?? ""),
|
|
1344
1353
|
media: "(min-width: 900px)"
|
|
1345
1354
|
},
|
|
1346
1355
|
{
|
|
1347
|
-
href:
|
|
1356
|
+
href: rt() + (l.preview.sizes[1]?.url ?? ""),
|
|
1348
1357
|
media: "(max-width: 900px)"
|
|
1349
1358
|
}
|
|
1350
1359
|
]
|
|
1351
1360
|
}
|
|
1352
1361
|
),
|
|
1353
|
-
r.preloadImages && x && /* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1356
|
-
|
|
1362
|
+
r.preloadImages && x && /* @__PURE__ */ o(nt, { images: x }),
|
|
1363
|
+
/* @__PURE__ */ o(wr, { config: m }),
|
|
1364
|
+
/* @__PURE__ */ o(
|
|
1365
|
+
St,
|
|
1357
1366
|
{
|
|
1358
1367
|
name: "headscripts",
|
|
1359
1368
|
replaces: B,
|
|
1360
1369
|
banners: p
|
|
1361
1370
|
}
|
|
1362
1371
|
),
|
|
1363
|
-
r.schemas_NewsArticle && u && /* @__PURE__ */
|
|
1364
|
-
|
|
1372
|
+
r.schemas_NewsArticle && u && /* @__PURE__ */ o(
|
|
1373
|
+
hr,
|
|
1365
1374
|
{
|
|
1366
1375
|
BASE_URL: m.siteUrl,
|
|
1367
1376
|
config: m,
|
|
@@ -1369,27 +1378,27 @@ async function Za({
|
|
|
1369
1378
|
axiosApi: e
|
|
1370
1379
|
}
|
|
1371
1380
|
),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
r.schemas_Videos && u && /* @__PURE__ */
|
|
1374
|
-
|
|
1381
|
+
/* @__PURE__ */ o(gr, { config: m, socials: h }),
|
|
1382
|
+
r.schemas_Videos && u && /* @__PURE__ */ o(
|
|
1383
|
+
vr,
|
|
1375
1384
|
{
|
|
1376
1385
|
axiosApi: e,
|
|
1377
1386
|
realPath: u,
|
|
1378
1387
|
config: m
|
|
1379
1388
|
}
|
|
1380
1389
|
),
|
|
1381
|
-
r.schemas_ItemList && /* @__PURE__ */
|
|
1382
|
-
|
|
1390
|
+
r.schemas_ItemList && /* @__PURE__ */ o(
|
|
1391
|
+
fr,
|
|
1383
1392
|
{
|
|
1384
1393
|
config: m,
|
|
1385
1394
|
ROUTE: a,
|
|
1386
|
-
pathname:
|
|
1395
|
+
pathname: s,
|
|
1387
1396
|
axiosApi: e
|
|
1388
1397
|
}
|
|
1389
1398
|
),
|
|
1390
|
-
r.schemas_WebsiteList && /* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1392
|
-
|
|
1399
|
+
r.schemas_WebsiteList && /* @__PURE__ */ o(yr, { config: m }),
|
|
1400
|
+
/* @__PURE__ */ o(
|
|
1401
|
+
pr,
|
|
1393
1402
|
{
|
|
1394
1403
|
type: w,
|
|
1395
1404
|
active: m.useSpeculationRules,
|
|
@@ -1405,29 +1414,29 @@ const Ja = ({
|
|
|
1405
1414
|
banners: t,
|
|
1406
1415
|
pathname: n,
|
|
1407
1416
|
slug: a,
|
|
1408
|
-
config:
|
|
1417
|
+
config: s,
|
|
1409
1418
|
internalPath: i,
|
|
1410
1419
|
currentNew: c,
|
|
1411
1420
|
tagsParsed: d,
|
|
1412
1421
|
scriptReplaces: l,
|
|
1413
1422
|
body_custom_elements: p
|
|
1414
1423
|
}) => {
|
|
1415
|
-
const u =
|
|
1424
|
+
const u = Dt(c, d), m = Et[r]({
|
|
1416
1425
|
pathname: n,
|
|
1417
1426
|
slug: a,
|
|
1418
|
-
config:
|
|
1427
|
+
config: s,
|
|
1419
1428
|
currentNew: c,
|
|
1420
1429
|
internalPath: i
|
|
1421
1430
|
}), h = l.before.active, w = l.after.active, x = h ? l.before.customData ? l.before.customData : m : void 0, b = w ? l.after.customData ? l.after.customData : m : void 0;
|
|
1422
|
-
return /* @__PURE__ */ v(
|
|
1423
|
-
/* @__PURE__ */
|
|
1431
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
1432
|
+
/* @__PURE__ */ o(St, { name: "bodybefore", banners: t, replaces: x }),
|
|
1424
1433
|
e,
|
|
1425
|
-
/* @__PURE__ */
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1434
|
+
/* @__PURE__ */ o(Ft, {}),
|
|
1435
|
+
/* @__PURE__ */ o(jt, {}),
|
|
1436
|
+
/* @__PURE__ */ o(zt, { dimensionValues: u }),
|
|
1437
|
+
/* @__PURE__ */ o(Bt, {}),
|
|
1429
1438
|
p,
|
|
1430
|
-
/* @__PURE__ */
|
|
1439
|
+
/* @__PURE__ */ o(or, { name: "bodyafter", banners: t, replaces: b })
|
|
1431
1440
|
] });
|
|
1432
1441
|
}, Ka = ({
|
|
1433
1442
|
mainBlock: e,
|
|
@@ -1435,42 +1444,42 @@ const Ja = ({
|
|
|
1435
1444
|
config: t,
|
|
1436
1445
|
banners: n
|
|
1437
1446
|
}) => {
|
|
1438
|
-
const { PUBLIC_ENV: a } =
|
|
1447
|
+
const { PUBLIC_ENV: a } = q();
|
|
1439
1448
|
if (a !== "local") return null;
|
|
1440
|
-
const
|
|
1449
|
+
const s = e?.news?.data || [], i = (c, d) => ({
|
|
1441
1450
|
...e?.news,
|
|
1442
1451
|
...r[c],
|
|
1443
|
-
data:
|
|
1452
|
+
data: s.slice(0, d),
|
|
1444
1453
|
paths: t.paths
|
|
1445
1454
|
});
|
|
1446
|
-
return /* @__PURE__ */ v(
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
|
|
1455
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
1456
|
+
/* @__PURE__ */ o(
|
|
1457
|
+
Le,
|
|
1449
1458
|
{
|
|
1450
1459
|
component: "Super",
|
|
1451
1460
|
data: i("Super", 1),
|
|
1452
1461
|
banners: n
|
|
1453
1462
|
}
|
|
1454
1463
|
),
|
|
1455
|
-
/* @__PURE__ */
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
|
|
1464
|
+
/* @__PURE__ */ o(ke, { children: /* @__PURE__ */ o(Ie, { banners: n, index: 1 }) }),
|
|
1465
|
+
/* @__PURE__ */ o(
|
|
1466
|
+
Le,
|
|
1458
1467
|
{
|
|
1459
1468
|
component: "3 notas verticales",
|
|
1460
1469
|
data: i("3 notas verticales", 3),
|
|
1461
1470
|
banners: n
|
|
1462
1471
|
}
|
|
1463
1472
|
),
|
|
1464
|
-
/* @__PURE__ */
|
|
1465
|
-
/* @__PURE__ */
|
|
1466
|
-
|
|
1473
|
+
/* @__PURE__ */ o(ke, { children: /* @__PURE__ */ o(Ie, { banners: n, index: 1 }) }),
|
|
1474
|
+
/* @__PURE__ */ o(
|
|
1475
|
+
Le,
|
|
1467
1476
|
{
|
|
1468
1477
|
component: "3 notas horizontales",
|
|
1469
1478
|
data: i("3 notas horizontales", 3),
|
|
1470
1479
|
banners: n
|
|
1471
1480
|
}
|
|
1472
1481
|
),
|
|
1473
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ o(ke, { children: /* @__PURE__ */ o(Ie, { banners: n, index: 1 }) })
|
|
1474
1483
|
] });
|
|
1475
1484
|
};
|
|
1476
1485
|
function Xa({ containerId: e, containerId2: r }) {
|
|
@@ -1482,8 +1491,8 @@ function Xa({ containerId: e, containerId2: r }) {
|
|
|
1482
1491
|
};
|
|
1483
1492
|
const n = document.getElementById(e), a = document.getElementById(r);
|
|
1484
1493
|
if (!n && !a) return;
|
|
1485
|
-
const
|
|
1486
|
-
[...
|
|
1494
|
+
const s = n?.querySelectorAll("script[src]") ?? [], i = a?.querySelectorAll("script[src]") ?? [];
|
|
1495
|
+
[...s, ...i].forEach((p) => {
|
|
1487
1496
|
const u = document.createElement("script");
|
|
1488
1497
|
Array.from(p.attributes).forEach((m) => {
|
|
1489
1498
|
u.setAttribute(m.name, m.value);
|
|
@@ -1509,7 +1518,7 @@ function Xa({ containerId: e, containerId2: r }) {
|
|
|
1509
1518
|
}
|
|
1510
1519
|
}, [e]), null;
|
|
1511
1520
|
}
|
|
1512
|
-
const
|
|
1521
|
+
const Er = (e) => {
|
|
1513
1522
|
const {
|
|
1514
1523
|
//rounded = false,
|
|
1515
1524
|
isVideo: r = !1,
|
|
@@ -1517,15 +1526,15 @@ const Sr = (e) => {
|
|
|
1517
1526
|
hasShadow: n = !1,
|
|
1518
1527
|
BackDropAuxHeigthMobile: a
|
|
1519
1528
|
//isVisible,
|
|
1520
|
-
} = e,
|
|
1529
|
+
} = e, s = qt(
|
|
1521
1530
|
() => e?.preview?.sizes || [],
|
|
1522
1531
|
[e?.preview?.sizes]
|
|
1523
1532
|
);
|
|
1524
|
-
if (!
|
|
1525
|
-
return /* @__PURE__ */
|
|
1526
|
-
const { PUBLIC_API_HOST: i, PUBLIC_ENV: c } =
|
|
1527
|
-
return /* @__PURE__ */
|
|
1528
|
-
/* @__PURE__ */
|
|
1533
|
+
if (!s.length || !s[0]?.url || s[0]?.url === "")
|
|
1534
|
+
return /* @__PURE__ */ o("div", { className: ce.imagePlaceholder });
|
|
1535
|
+
const { PUBLIC_API_HOST: i, PUBLIC_ENV: c } = q();
|
|
1536
|
+
return /* @__PURE__ */ o("figure", { className: ce.figure, children: /* @__PURE__ */ v("span", { className: ce.backdrop, children: [
|
|
1537
|
+
/* @__PURE__ */ o(
|
|
1529
1538
|
"span",
|
|
1530
1539
|
{
|
|
1531
1540
|
className: ce.backdropAux,
|
|
@@ -1535,29 +1544,29 @@ const Sr = (e) => {
|
|
|
1535
1544
|
}
|
|
1536
1545
|
),
|
|
1537
1546
|
/* @__PURE__ */ v("picture", { children: [
|
|
1538
|
-
/* @__PURE__ */
|
|
1547
|
+
/* @__PURE__ */ o(
|
|
1539
1548
|
"img",
|
|
1540
1549
|
{
|
|
1541
1550
|
fetchPriority: "low",
|
|
1542
1551
|
loading: "lazy",
|
|
1543
1552
|
className: ce.imageStyled,
|
|
1544
1553
|
alt: e.preview?.description || "",
|
|
1545
|
-
src: (c === "local" ? i : "") +
|
|
1554
|
+
src: (c === "local" ? i : "") + s[0]?.url,
|
|
1546
1555
|
style: {
|
|
1547
1556
|
boxShadow: n ? "0px 4px 8px 0px #00000033" : "0px"
|
|
1548
1557
|
}
|
|
1549
1558
|
}
|
|
1550
1559
|
),
|
|
1551
|
-
r && /* @__PURE__ */ v(
|
|
1552
|
-
/* @__PURE__ */
|
|
1560
|
+
r && /* @__PURE__ */ v(H, { children: [
|
|
1561
|
+
/* @__PURE__ */ o(
|
|
1553
1562
|
"div",
|
|
1554
1563
|
{
|
|
1555
1564
|
className: ce.boxPlayIcon,
|
|
1556
1565
|
style: { height: t ? "40%" : "72px" }
|
|
1557
1566
|
}
|
|
1558
1567
|
),
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
|
|
1568
|
+
/* @__PURE__ */ o(
|
|
1569
|
+
Wt,
|
|
1561
1570
|
{
|
|
1562
1571
|
className: ce.playStyled,
|
|
1563
1572
|
style: {
|
|
@@ -1571,7 +1580,7 @@ const Sr = (e) => {
|
|
|
1571
1580
|
] })
|
|
1572
1581
|
] })
|
|
1573
1582
|
] }) });
|
|
1574
|
-
},
|
|
1583
|
+
}, Nr = (e) => /* @__PURE__ */ o(
|
|
1575
1584
|
"svg",
|
|
1576
1585
|
{
|
|
1577
1586
|
width: "41",
|
|
@@ -1580,7 +1589,7 @@ const Sr = (e) => {
|
|
|
1580
1589
|
fill: "none",
|
|
1581
1590
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1582
1591
|
...e,
|
|
1583
|
-
children: /* @__PURE__ */
|
|
1592
|
+
children: /* @__PURE__ */ o(
|
|
1584
1593
|
"path",
|
|
1585
1594
|
{
|
|
1586
1595
|
d: "M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",
|
|
@@ -1588,7 +1597,7 @@ const Sr = (e) => {
|
|
|
1588
1597
|
}
|
|
1589
1598
|
)
|
|
1590
1599
|
}
|
|
1591
|
-
),
|
|
1600
|
+
), Tr = {
|
|
1592
1601
|
info: {
|
|
1593
1602
|
section: {
|
|
1594
1603
|
name: "",
|
|
@@ -1645,14 +1654,14 @@ const Sr = (e) => {
|
|
|
1645
1654
|
}
|
|
1646
1655
|
],
|
|
1647
1656
|
preview: void 0
|
|
1648
|
-
},
|
|
1657
|
+
}, at = 6, Pr = ({
|
|
1649
1658
|
section: e,
|
|
1650
1659
|
currentNews: r,
|
|
1651
1660
|
banner: t,
|
|
1652
1661
|
isVisible: n = !1,
|
|
1653
1662
|
stylesConfig: a
|
|
1654
1663
|
}) => {
|
|
1655
|
-
const [
|
|
1664
|
+
const [s, i] = M({ data: Array.from({ length: at }, () => Tr) }), [c, d] = M(!1), l = vt(async () => {
|
|
1656
1665
|
if (!(c || !r?.info?.link?.internal)) {
|
|
1657
1666
|
d(!0);
|
|
1658
1667
|
try {
|
|
@@ -1665,7 +1674,7 @@ const Sr = (e) => {
|
|
|
1665
1674
|
const m = await u.json();
|
|
1666
1675
|
i({
|
|
1667
1676
|
...m,
|
|
1668
|
-
data: m.data.slice(0,
|
|
1677
|
+
data: m.data.slice(0, at)
|
|
1669
1678
|
});
|
|
1670
1679
|
} catch (p) {
|
|
1671
1680
|
console.error("[/api/get-more-news] Error:", p.message), i(void 0);
|
|
@@ -1674,10 +1683,10 @@ const Sr = (e) => {
|
|
|
1674
1683
|
}, [e, r.info.link.internal, c]);
|
|
1675
1684
|
return he(() => {
|
|
1676
1685
|
n && l();
|
|
1677
|
-
}, [n,
|
|
1678
|
-
|
|
1686
|
+
}, [n, s, l]), !s?.data || s.data.length === 0 ? null : /* @__PURE__ */ o(
|
|
1687
|
+
Lr,
|
|
1679
1688
|
{
|
|
1680
|
-
news:
|
|
1689
|
+
news: s.data,
|
|
1681
1690
|
title: "Más Noticias",
|
|
1682
1691
|
...a["Modulo 1x3 Client"] ?? a["Modulo 1x3"],
|
|
1683
1692
|
hasLines: !0,
|
|
@@ -1687,17 +1696,17 @@ const Sr = (e) => {
|
|
|
1687
1696
|
isVisible: n
|
|
1688
1697
|
}
|
|
1689
1698
|
);
|
|
1690
|
-
},
|
|
1691
|
-
const { news: r, hasLines: t = !1 } = e, n = (a) => t && (a + 1) % 3 !== 0 ?
|
|
1692
|
-
return /* @__PURE__ */
|
|
1699
|
+
}, Lr = (e) => {
|
|
1700
|
+
const { news: r, hasLines: t = !1 } = e, n = (a) => t && (a + 1) % 3 !== 0 ? Xe.contentSeparator : "";
|
|
1701
|
+
return /* @__PURE__ */ o(
|
|
1693
1702
|
"div",
|
|
1694
1703
|
{
|
|
1695
|
-
className:
|
|
1704
|
+
className: Xe.newsContent,
|
|
1696
1705
|
style: {
|
|
1697
1706
|
gap: t ? "30px" : "20px",
|
|
1698
1707
|
"--gridTemplateModlule": t ? "repeat(auto-fit, 343px);" : "repeat(auto-fit, 380px);"
|
|
1699
1708
|
},
|
|
1700
|
-
children: r.map((a,
|
|
1709
|
+
children: r.map((a, s) => {
|
|
1701
1710
|
const {
|
|
1702
1711
|
main: i,
|
|
1703
1712
|
authors: c,
|
|
@@ -1709,21 +1718,21 @@ const Sr = (e) => {
|
|
|
1709
1718
|
isTitle: h = !1,
|
|
1710
1719
|
isLarge: w = !1
|
|
1711
1720
|
} = a;
|
|
1712
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ o(
|
|
1713
1722
|
"div",
|
|
1714
1723
|
{
|
|
1715
|
-
className: n(
|
|
1716
|
-
style: { order:
|
|
1724
|
+
className: n(s),
|
|
1725
|
+
style: { order: s },
|
|
1717
1726
|
children: /* @__PURE__ */ v("section", { className: tt.content, children: [
|
|
1718
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ o(
|
|
1719
1728
|
xe,
|
|
1720
1729
|
{
|
|
1721
1730
|
title: i?.title?.section,
|
|
1722
1731
|
href: d?.link?.url ?? "invalidUrl",
|
|
1723
1732
|
"aria-label": i?.title?.section ?? "nota",
|
|
1724
1733
|
target: d?.link?.target,
|
|
1725
|
-
children: /* @__PURE__ */
|
|
1726
|
-
|
|
1734
|
+
children: /* @__PURE__ */ o(
|
|
1735
|
+
Er,
|
|
1727
1736
|
{
|
|
1728
1737
|
isVisible: e.isVisible,
|
|
1729
1738
|
preview: l,
|
|
@@ -1735,8 +1744,8 @@ const Sr = (e) => {
|
|
|
1735
1744
|
)
|
|
1736
1745
|
}
|
|
1737
1746
|
),
|
|
1738
|
-
/* @__PURE__ */
|
|
1739
|
-
|
|
1747
|
+
/* @__PURE__ */ o("div", { className: tt.newsDescription, children: /* @__PURE__ */ o(
|
|
1748
|
+
kr,
|
|
1740
1749
|
{
|
|
1741
1750
|
main: i,
|
|
1742
1751
|
authors: c,
|
|
@@ -1752,21 +1761,21 @@ const Sr = (e) => {
|
|
|
1752
1761
|
) })
|
|
1753
1762
|
] })
|
|
1754
1763
|
},
|
|
1755
|
-
|
|
1764
|
+
s
|
|
1756
1765
|
);
|
|
1757
1766
|
})
|
|
1758
1767
|
}
|
|
1759
1768
|
);
|
|
1760
|
-
},
|
|
1769
|
+
}, kr = (e) => {
|
|
1761
1770
|
const { share: r = !1, cutSubtitle: t = !0 } = e, a = (() => {
|
|
1762
1771
|
if (!e?.authors || e.authors.length === 0) return "";
|
|
1763
|
-
const
|
|
1764
|
-
return
|
|
1772
|
+
const s = e.authors[0], i = wt(e.info?.date?.modified);
|
|
1773
|
+
return s && e?.config?.showtime && e.config?.showauthor ? `${s.fullname} - ${i}` : s && e.config?.showauthor ? s.fullname : e?.config?.showtime ? i : "";
|
|
1765
1774
|
})();
|
|
1766
1775
|
return /* @__PURE__ */ v("div", { className: te.boxInformation, children: [
|
|
1767
|
-
r && /* @__PURE__ */
|
|
1776
|
+
r && /* @__PURE__ */ o(Nr, { className: te.dotStyles }),
|
|
1768
1777
|
e?.info?.section?.url && /* @__PURE__ */ v("div", { className: te.sectionDescriptionContainer, children: [
|
|
1769
|
-
/* @__PURE__ */
|
|
1778
|
+
/* @__PURE__ */ o(
|
|
1770
1779
|
xe,
|
|
1771
1780
|
{
|
|
1772
1781
|
className: te.sectionDescription,
|
|
@@ -1774,9 +1783,9 @@ const Sr = (e) => {
|
|
|
1774
1783
|
children: e.info.section.name
|
|
1775
1784
|
}
|
|
1776
1785
|
),
|
|
1777
|
-
e?.main?.uppertitle && /* @__PURE__ */
|
|
1786
|
+
e?.main?.uppertitle && /* @__PURE__ */ o("p", { className: te.uppertitle, children: e.main.uppertitle })
|
|
1778
1787
|
] }),
|
|
1779
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ o("h2", { className: te.articule, children: /* @__PURE__ */ o(
|
|
1780
1789
|
xe,
|
|
1781
1790
|
{
|
|
1782
1791
|
className: te.linkStyled,
|
|
@@ -1789,7 +1798,7 @@ const Sr = (e) => {
|
|
|
1789
1798
|
children: e.main?.title?.section
|
|
1790
1799
|
}
|
|
1791
1800
|
) }),
|
|
1792
|
-
e.config?.showsubtitle && e.main?.subtitle?.striped && /* @__PURE__ */
|
|
1801
|
+
e.config?.showsubtitle && e.main?.subtitle?.striped && /* @__PURE__ */ o(
|
|
1793
1802
|
"p",
|
|
1794
1803
|
{
|
|
1795
1804
|
className: te.description,
|
|
@@ -1798,36 +1807,36 @@ const Sr = (e) => {
|
|
|
1798
1807
|
"--lineHeightSubTitle": e.lineHeightSubTitle,
|
|
1799
1808
|
"--colorSubTitle": e.colorSubTitle
|
|
1800
1809
|
},
|
|
1801
|
-
children: t ?
|
|
1810
|
+
children: t ? Gt(e.main.subtitle.striped) : e.main.subtitle.striped
|
|
1802
1811
|
}
|
|
1803
1812
|
),
|
|
1804
|
-
(e?.config?.showtime || e.config?.showauthor) && a && /* @__PURE__ */
|
|
1813
|
+
(e?.config?.showtime || e.config?.showauthor) && a && /* @__PURE__ */ o(H, { children: e.authors?.[0]?.internaluser ? /* @__PURE__ */ o(
|
|
1805
1814
|
xe,
|
|
1806
1815
|
{
|
|
1807
1816
|
className: te.correspondentLink,
|
|
1808
1817
|
href: `/autor/${e.authors[0].name}`,
|
|
1809
1818
|
children: a
|
|
1810
1819
|
}
|
|
1811
|
-
) : /* @__PURE__ */
|
|
1820
|
+
) : /* @__PURE__ */ o("div", { className: te.correspondent, children: a }) })
|
|
1812
1821
|
] });
|
|
1813
|
-
},
|
|
1822
|
+
}, Ir = ({
|
|
1814
1823
|
user: e,
|
|
1815
1824
|
handleLogout: r,
|
|
1816
1825
|
message: t
|
|
1817
1826
|
}) => {
|
|
1818
1827
|
const n = () => {
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1828
|
+
const s = document.querySelector(".user-actions-options");
|
|
1829
|
+
s && s.classList.toggle("show");
|
|
1821
1830
|
}, a = e.firstname ?? "Usuario";
|
|
1822
|
-
return /* @__PURE__ */
|
|
1823
|
-
e && e.picture && e.picture !== "" ? /* @__PURE__ */
|
|
1831
|
+
return /* @__PURE__ */ o("div", { className: "comment-item", children: /* @__PURE__ */ v("div", { style: { display: "flex", gap: "14px" }, children: [
|
|
1832
|
+
e && e.picture && e.picture !== "" ? /* @__PURE__ */ o(
|
|
1824
1833
|
"img",
|
|
1825
1834
|
{
|
|
1826
1835
|
className: "comment-avatar-img",
|
|
1827
1836
|
src: e.picture,
|
|
1828
1837
|
alt: e.username
|
|
1829
1838
|
}
|
|
1830
|
-
) : /* @__PURE__ */
|
|
1839
|
+
) : /* @__PURE__ */ o("div", { className: "comment-avatar", children: a.charAt(0).toUpperCase() }),
|
|
1831
1840
|
/* @__PURE__ */ v("div", { style: { flex: 1 }, children: [
|
|
1832
1841
|
/* @__PURE__ */ v("div", { className: "comment-header", children: [
|
|
1833
1842
|
/* @__PURE__ */ v("span", { className: "comment-username user-welcome", children: [
|
|
@@ -1835,7 +1844,7 @@ const Sr = (e) => {
|
|
|
1835
1844
|
a,
|
|
1836
1845
|
"!"
|
|
1837
1846
|
] }),
|
|
1838
|
-
/* @__PURE__ */
|
|
1847
|
+
/* @__PURE__ */ o("div", { className: "user-actions-options", children: /* @__PURE__ */ o(
|
|
1839
1848
|
"button",
|
|
1840
1849
|
{
|
|
1841
1850
|
onClick: () => {
|
|
@@ -1844,38 +1853,38 @@ const Sr = (e) => {
|
|
|
1844
1853
|
children: "Cerrar Sesion"
|
|
1845
1854
|
}
|
|
1846
1855
|
) }),
|
|
1847
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ o("button", { className: "user-actions-span", onClick: n, children: /* @__PURE__ */ o(Zt, { width: 13, height: 13, fill: "black" }) })
|
|
1848
1857
|
] }),
|
|
1849
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ o("p", { className: "comment-text", children: t })
|
|
1850
1859
|
] })
|
|
1851
1860
|
] }) });
|
|
1852
|
-
},
|
|
1853
|
-
overlay:
|
|
1854
|
-
popup:
|
|
1855
|
-
title:
|
|
1856
|
-
optionsContainer:
|
|
1857
|
-
option:
|
|
1858
|
-
radioInput:
|
|
1859
|
-
radioCustom:
|
|
1860
|
-
optionLabel:
|
|
1861
|
-
buttons:
|
|
1862
|
-
cancelButton:
|
|
1863
|
-
closeButton:
|
|
1864
|
-
buttonAlone:
|
|
1865
|
-
reportButton:
|
|
1866
|
-
successContainer:
|
|
1867
|
-
thumbsUp:
|
|
1868
|
-
successMessage:
|
|
1869
|
-
errorMessage:
|
|
1870
|
-
loadingContainer:
|
|
1871
|
-
},
|
|
1872
|
-
const { PUBLIC_ENV: r } =
|
|
1861
|
+
}, Rr = "_overlay_qj491_3", Or = "_popup_qj491_17", Ar = "_title_qj491_40", $r = "_optionsContainer_qj491_52", Ur = "_option_qj491_52", Mr = "_radioInput_qj491_66", jr = "_radioCustom_qj491_70", Dr = "_optionLabel_qj491_97", zr = "_buttons_qj491_110", Br = "_cancelButton_qj491_117", Fr = "_closeButton_qj491_118", qr = "_buttonAlone_qj491_137", Hr = "_reportButton_qj491_143", Vr = "_successContainer_qj491_163", Yr = "_thumbsUp_qj491_171", Wr = "_successMessage_qj491_177", Gr = "_errorMessage_qj491_218", Zr = "_loadingContainer_qj491_231", F = {
|
|
1862
|
+
overlay: Rr,
|
|
1863
|
+
popup: Or,
|
|
1864
|
+
title: Ar,
|
|
1865
|
+
optionsContainer: $r,
|
|
1866
|
+
option: Ur,
|
|
1867
|
+
radioInput: Mr,
|
|
1868
|
+
radioCustom: jr,
|
|
1869
|
+
optionLabel: Dr,
|
|
1870
|
+
buttons: zr,
|
|
1871
|
+
cancelButton: Br,
|
|
1872
|
+
closeButton: Fr,
|
|
1873
|
+
buttonAlone: qr,
|
|
1874
|
+
reportButton: Hr,
|
|
1875
|
+
successContainer: Vr,
|
|
1876
|
+
thumbsUp: Yr,
|
|
1877
|
+
successMessage: Wr,
|
|
1878
|
+
errorMessage: Gr,
|
|
1879
|
+
loadingContainer: Zr
|
|
1880
|
+
}, Nt = async (e) => {
|
|
1881
|
+
const { PUBLIC_ENV: r } = q();
|
|
1873
1882
|
if (r === "local") return !0;
|
|
1874
1883
|
if (!e) return !1;
|
|
1875
|
-
const { CAPTCHA_PROJECT: t, CAPTCHA_KEY_V2: n, COMMENTS_CAPTCHA_API_KEY: a } =
|
|
1884
|
+
const { CAPTCHA_PROJECT: t, CAPTCHA_KEY_V2: n, COMMENTS_CAPTCHA_API_KEY: a } = q();
|
|
1876
1885
|
try {
|
|
1877
|
-
const
|
|
1878
|
-
`https://recaptchaenterprise.googleapis.com/v1/projects/${
|
|
1886
|
+
const s = t, i = n, l = await (await fetch(
|
|
1887
|
+
`https://recaptchaenterprise.googleapis.com/v1/projects/${s}/assessments?key=${a}`,
|
|
1879
1888
|
{
|
|
1880
1889
|
method: "POST",
|
|
1881
1890
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1888,8 +1897,8 @@ const Sr = (e) => {
|
|
|
1888
1897
|
}
|
|
1889
1898
|
)).json();
|
|
1890
1899
|
return console.log("reCAPTCHA Enterprise verification result:", l), l.tokenProperties?.valid === !0;
|
|
1891
|
-
} catch (
|
|
1892
|
-
return console.error("Error verificando reCAPTCHA Enterprise:",
|
|
1900
|
+
} catch (s) {
|
|
1901
|
+
return console.error("Error verificando reCAPTCHA Enterprise:", s), !1;
|
|
1893
1902
|
}
|
|
1894
1903
|
};
|
|
1895
1904
|
async function Qa({
|
|
@@ -1898,16 +1907,16 @@ async function Qa({
|
|
|
1898
1907
|
id: t,
|
|
1899
1908
|
type: n,
|
|
1900
1909
|
baseUrl: a,
|
|
1901
|
-
captchaToken:
|
|
1910
|
+
captchaToken: s,
|
|
1902
1911
|
apiToken: i
|
|
1903
1912
|
}) {
|
|
1904
|
-
if (!e || !r || !t || !n || !
|
|
1913
|
+
if (!e || !r || !t || !n || !s)
|
|
1905
1914
|
throw new Error(
|
|
1906
1915
|
"Faltan parámetros requeridos: publication, username, id, type, captchaToken"
|
|
1907
1916
|
);
|
|
1908
|
-
if (typeof e != "string" || typeof r != "string" || typeof t != "string" || typeof n != "string" || typeof
|
|
1917
|
+
if (typeof e != "string" || typeof r != "string" || typeof t != "string" || typeof n != "string" || typeof s != "string")
|
|
1909
1918
|
throw new Error("Todos los parámetros deben ser strings");
|
|
1910
|
-
if (!await
|
|
1919
|
+
if (!await Nt(s))
|
|
1911
1920
|
throw new Error("Token de captcha inválido");
|
|
1912
1921
|
if (!i)
|
|
1913
1922
|
throw new Error("Falta el token de API del CMS");
|
|
@@ -1968,17 +1977,17 @@ const ue = 300, ne = {
|
|
|
1968
1977
|
firstname: "Usuario",
|
|
1969
1978
|
lastname: "Anonimo"
|
|
1970
1979
|
};
|
|
1971
|
-
function
|
|
1980
|
+
function Jr(e) {
|
|
1972
1981
|
const r = e.split(" ");
|
|
1973
1982
|
if (r.length !== 3) return e;
|
|
1974
|
-
const [t, n, a] = r,
|
|
1975
|
-
return `${t} ${
|
|
1983
|
+
const [t, n, a] = r, s = n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
|
|
1984
|
+
return `${t} ${s} ${a}`;
|
|
1976
1985
|
}
|
|
1977
|
-
const
|
|
1986
|
+
const We = (e, r) => {
|
|
1978
1987
|
if (!e || !e.current) return { boolean: !1, text: "" };
|
|
1979
|
-
const t = e.current?.value || "", n = t.length > ue, { PUBLIC_ENV: a } =
|
|
1988
|
+
const t = e.current?.value || "", n = t.length > ue, { PUBLIC_ENV: a } = q(), s = a === "local", i = t.trim() !== "" && (s || r !== "") && !n, c = n ? `No debes exceder el limite de ${ue} caracteres.` : "Debes completar todos los campos para comentar.";
|
|
1980
1989
|
return { boolean: i, text: c };
|
|
1981
|
-
},
|
|
1990
|
+
}, Tt = (e) => {
|
|
1982
1991
|
const r = e.cookie.split("; ").find((t) => t.startsWith("reported="));
|
|
1983
1992
|
if (!r) return [];
|
|
1984
1993
|
try {
|
|
@@ -1986,29 +1995,29 @@ const Ye = (e, r) => {
|
|
|
1986
1995
|
} catch {
|
|
1987
1996
|
return [];
|
|
1988
1997
|
}
|
|
1989
|
-
},
|
|
1990
|
-
const t =
|
|
1998
|
+
}, Kr = (e, r) => {
|
|
1999
|
+
const t = Tt(e);
|
|
1991
2000
|
t.includes(r) || (t.push(r), e.cookie = `reported=${encodeURIComponent(
|
|
1992
2001
|
JSON.stringify(t)
|
|
1993
2002
|
)}; path=/; max-age=${3600 * 24 * 1}`);
|
|
1994
2003
|
};
|
|
1995
|
-
function
|
|
2004
|
+
function Xr(e) {
|
|
1996
2005
|
const [r, t] = e.split("@");
|
|
1997
2006
|
if (!r || !t) return e;
|
|
1998
2007
|
let n = "";
|
|
1999
2008
|
r.length <= 2 ? n = r[0] + "*" : n = r[0] + "*".repeat(r.length - 2) + r[r.length - 1];
|
|
2000
2009
|
const a = t.lastIndexOf(".");
|
|
2001
2010
|
if (a === -1) return `${n}@${t}`;
|
|
2002
|
-
const
|
|
2011
|
+
const s = t.slice(0, a), i = t.slice(a);
|
|
2003
2012
|
let c = "";
|
|
2004
|
-
return
|
|
2013
|
+
return s.length <= 2 ? c = s[0] + "*" : c = s[0] + "*".repeat(s.length - 2) + s[s.length - 1], `${n}@${c}${i}`;
|
|
2005
2014
|
}
|
|
2006
2015
|
var _e = { exports: {} }, Ce = { exports: {} }, j = {};
|
|
2007
|
-
var
|
|
2008
|
-
function
|
|
2009
|
-
if (
|
|
2010
|
-
|
|
2011
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108,
|
|
2016
|
+
var ot;
|
|
2017
|
+
function Qr() {
|
|
2018
|
+
if (ot) return j;
|
|
2019
|
+
ot = 1;
|
|
2020
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
2012
2021
|
function N(f) {
|
|
2013
2022
|
if (typeof f == "object" && f !== null) {
|
|
2014
2023
|
var B = f.$$typeof;
|
|
@@ -2018,7 +2027,7 @@ function Kr() {
|
|
|
2018
2027
|
case d:
|
|
2019
2028
|
case l:
|
|
2020
2029
|
case n:
|
|
2021
|
-
case
|
|
2030
|
+
case s:
|
|
2022
2031
|
case a:
|
|
2023
2032
|
case u:
|
|
2024
2033
|
return f;
|
|
@@ -2042,7 +2051,7 @@ function Kr() {
|
|
|
2042
2051
|
function T(f) {
|
|
2043
2052
|
return N(f) === l;
|
|
2044
2053
|
}
|
|
2045
|
-
return j.AsyncMode = d, j.ConcurrentMode = l, j.ContextConsumer = c, j.ContextProvider = i, j.Element = r, j.ForwardRef = p, j.Fragment = n, j.Lazy = w, j.Memo = h, j.Portal = t, j.Profiler =
|
|
2054
|
+
return j.AsyncMode = d, j.ConcurrentMode = l, j.ContextConsumer = c, j.ContextProvider = i, j.Element = r, j.ForwardRef = p, j.Fragment = n, j.Lazy = w, j.Memo = h, j.Portal = t, j.Profiler = s, j.StrictMode = a, j.Suspense = u, j.isAsyncMode = function(f) {
|
|
2046
2055
|
return T(f) || N(f) === d;
|
|
2047
2056
|
}, j.isConcurrentMode = T, j.isContextConsumer = function(f) {
|
|
2048
2057
|
return N(f) === c;
|
|
@@ -2061,23 +2070,23 @@ function Kr() {
|
|
|
2061
2070
|
}, j.isPortal = function(f) {
|
|
2062
2071
|
return N(f) === t;
|
|
2063
2072
|
}, j.isProfiler = function(f) {
|
|
2064
|
-
return N(f) ===
|
|
2073
|
+
return N(f) === s;
|
|
2065
2074
|
}, j.isStrictMode = function(f) {
|
|
2066
2075
|
return N(f) === a;
|
|
2067
2076
|
}, j.isSuspense = function(f) {
|
|
2068
2077
|
return N(f) === u;
|
|
2069
2078
|
}, j.isValidElementType = function(f) {
|
|
2070
|
-
return typeof f == "string" || typeof f == "function" || f === n || f === l || f ===
|
|
2079
|
+
return typeof f == "string" || typeof f == "function" || f === n || f === l || f === s || f === a || f === u || f === m || typeof f == "object" && f !== null && (f.$$typeof === w || f.$$typeof === h || f.$$typeof === i || f.$$typeof === c || f.$$typeof === p || f.$$typeof === b || f.$$typeof === C || f.$$typeof === E || f.$$typeof === x);
|
|
2071
2080
|
}, j.typeOf = N, j;
|
|
2072
2081
|
}
|
|
2073
2082
|
var D = {};
|
|
2074
|
-
var
|
|
2075
|
-
function
|
|
2076
|
-
return
|
|
2077
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108,
|
|
2083
|
+
var st;
|
|
2084
|
+
function en() {
|
|
2085
|
+
return st || (st = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2086
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
2078
2087
|
function N(_) {
|
|
2079
2088
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2080
|
-
_ === n || _ === l || _ ===
|
|
2089
|
+
_ === n || _ === l || _ === s || _ === a || _ === u || _ === m || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === h || _.$$typeof === i || _.$$typeof === c || _.$$typeof === p || _.$$typeof === b || _.$$typeof === C || _.$$typeof === E || _.$$typeof === x);
|
|
2081
2090
|
}
|
|
2082
2091
|
function T(_) {
|
|
2083
2092
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -2089,19 +2098,19 @@ function Xr() {
|
|
|
2089
2098
|
case d:
|
|
2090
2099
|
case l:
|
|
2091
2100
|
case n:
|
|
2092
|
-
case
|
|
2101
|
+
case s:
|
|
2093
2102
|
case a:
|
|
2094
2103
|
case u:
|
|
2095
2104
|
return ye;
|
|
2096
2105
|
default:
|
|
2097
|
-
var
|
|
2098
|
-
switch (
|
|
2106
|
+
var Ke = ye && ye.$$typeof;
|
|
2107
|
+
switch (Ke) {
|
|
2099
2108
|
case c:
|
|
2100
2109
|
case p:
|
|
2101
2110
|
case w:
|
|
2102
2111
|
case h:
|
|
2103
2112
|
case i:
|
|
2104
|
-
return
|
|
2113
|
+
return Ke;
|
|
2105
2114
|
default:
|
|
2106
2115
|
return ee;
|
|
2107
2116
|
}
|
|
@@ -2111,7 +2120,7 @@ function Xr() {
|
|
|
2111
2120
|
}
|
|
2112
2121
|
}
|
|
2113
2122
|
}
|
|
2114
|
-
var f = d, B = l, L = c, K = i, pe = r, J = p,
|
|
2123
|
+
var f = d, B = l, L = c, K = i, pe = r, J = p, V = n, Y = w, se = h, me = t, Te = s, Q = a, ie = u, ge = !1;
|
|
2115
2124
|
function Pe(_) {
|
|
2116
2125
|
return ge || (ge = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(_) || T(_) === d;
|
|
2117
2126
|
}
|
|
@@ -2130,7 +2139,7 @@ function Xr() {
|
|
|
2130
2139
|
function P(_) {
|
|
2131
2140
|
return T(_) === p;
|
|
2132
2141
|
}
|
|
2133
|
-
function
|
|
2142
|
+
function A(_) {
|
|
2134
2143
|
return T(_) === n;
|
|
2135
2144
|
}
|
|
2136
2145
|
function k(_) {
|
|
@@ -2139,11 +2148,11 @@ function Xr() {
|
|
|
2139
2148
|
function R(_) {
|
|
2140
2149
|
return T(_) === h;
|
|
2141
2150
|
}
|
|
2142
|
-
function
|
|
2151
|
+
function $(_) {
|
|
2143
2152
|
return T(_) === t;
|
|
2144
2153
|
}
|
|
2145
2154
|
function z(_) {
|
|
2146
|
-
return T(_) ===
|
|
2155
|
+
return T(_) === s;
|
|
2147
2156
|
}
|
|
2148
2157
|
function U(_) {
|
|
2149
2158
|
return T(_) === a;
|
|
@@ -2151,29 +2160,29 @@ function Xr() {
|
|
|
2151
2160
|
function W(_) {
|
|
2152
2161
|
return T(_) === u;
|
|
2153
2162
|
}
|
|
2154
|
-
D.AsyncMode = f, D.ConcurrentMode = B, D.ContextConsumer = L, D.ContextProvider = K, D.Element = pe, D.ForwardRef = J, D.Fragment =
|
|
2163
|
+
D.AsyncMode = f, D.ConcurrentMode = B, D.ContextConsumer = L, D.ContextProvider = K, D.Element = pe, D.ForwardRef = J, D.Fragment = V, D.Lazy = Y, D.Memo = se, D.Portal = me, D.Profiler = Te, D.StrictMode = Q, D.Suspense = ie, D.isAsyncMode = Pe, D.isConcurrentMode = g, D.isContextConsumer = S, D.isContextProvider = O, D.isElement = I, D.isForwardRef = P, D.isFragment = A, D.isLazy = k, D.isMemo = R, D.isPortal = $, D.isProfiler = z, D.isStrictMode = U, D.isSuspense = W, D.isValidElementType = N, D.typeOf = T;
|
|
2155
2164
|
})()), D;
|
|
2156
2165
|
}
|
|
2157
|
-
var
|
|
2158
|
-
function
|
|
2159
|
-
return
|
|
2166
|
+
var it;
|
|
2167
|
+
function Ge() {
|
|
2168
|
+
return it || (it = 1, process.env.NODE_ENV === "production" ? Ce.exports = Qr() : Ce.exports = en()), Ce.exports;
|
|
2160
2169
|
}
|
|
2161
|
-
var
|
|
2162
|
-
function
|
|
2163
|
-
if (
|
|
2164
|
-
|
|
2170
|
+
var Oe, ct;
|
|
2171
|
+
function tn() {
|
|
2172
|
+
if (ct) return Oe;
|
|
2173
|
+
ct = 1;
|
|
2165
2174
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
2166
|
-
function n(
|
|
2167
|
-
if (
|
|
2175
|
+
function n(s) {
|
|
2176
|
+
if (s == null)
|
|
2168
2177
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
2169
|
-
return Object(
|
|
2178
|
+
return Object(s);
|
|
2170
2179
|
}
|
|
2171
2180
|
function a() {
|
|
2172
2181
|
try {
|
|
2173
2182
|
if (!Object.assign)
|
|
2174
2183
|
return !1;
|
|
2175
|
-
var
|
|
2176
|
-
if (
|
|
2184
|
+
var s = new String("abc");
|
|
2185
|
+
if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
|
|
2177
2186
|
return !1;
|
|
2178
2187
|
for (var i = {}, c = 0; c < 10; c++)
|
|
2179
2188
|
i["_" + String.fromCharCode(c)] = c;
|
|
@@ -2190,8 +2199,8 @@ function Qr() {
|
|
|
2190
2199
|
return !1;
|
|
2191
2200
|
}
|
|
2192
2201
|
}
|
|
2193
|
-
return
|
|
2194
|
-
for (var c, d = n(
|
|
2202
|
+
return Oe = a() ? Object.assign : function(s, i) {
|
|
2203
|
+
for (var c, d = n(s), l, p = 1; p < arguments.length; p++) {
|
|
2195
2204
|
c = Object(arguments[p]);
|
|
2196
2205
|
for (var u in c)
|
|
2197
2206
|
r.call(c, u) && (d[u] = c[u]);
|
|
@@ -2202,29 +2211,29 @@ function Qr() {
|
|
|
2202
2211
|
}
|
|
2203
2212
|
}
|
|
2204
2213
|
return d;
|
|
2205
|
-
},
|
|
2214
|
+
}, Oe;
|
|
2206
2215
|
}
|
|
2207
|
-
var
|
|
2208
|
-
function
|
|
2209
|
-
if (
|
|
2210
|
-
|
|
2216
|
+
var Ae, lt;
|
|
2217
|
+
function Ze() {
|
|
2218
|
+
if (lt) return Ae;
|
|
2219
|
+
lt = 1;
|
|
2211
2220
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2212
|
-
return
|
|
2221
|
+
return Ae = e, Ae;
|
|
2213
2222
|
}
|
|
2214
|
-
var $e,
|
|
2215
|
-
function
|
|
2216
|
-
return
|
|
2223
|
+
var $e, dt;
|
|
2224
|
+
function Pt() {
|
|
2225
|
+
return dt || (dt = 1, $e = Function.call.bind(Object.prototype.hasOwnProperty)), $e;
|
|
2217
2226
|
}
|
|
2218
|
-
var
|
|
2219
|
-
function
|
|
2220
|
-
if (
|
|
2221
|
-
|
|
2227
|
+
var Ue, ut;
|
|
2228
|
+
function rn() {
|
|
2229
|
+
if (ut) return Ue;
|
|
2230
|
+
ut = 1;
|
|
2222
2231
|
var e = function() {
|
|
2223
2232
|
};
|
|
2224
2233
|
if (process.env.NODE_ENV !== "production") {
|
|
2225
|
-
var r = /* @__PURE__ */
|
|
2226
|
-
e = function(
|
|
2227
|
-
var i = "Warning: " +
|
|
2234
|
+
var r = /* @__PURE__ */ Ze(), t = {}, n = /* @__PURE__ */ Pt();
|
|
2235
|
+
e = function(s) {
|
|
2236
|
+
var i = "Warning: " + s;
|
|
2228
2237
|
typeof console < "u" && console.error(i);
|
|
2229
2238
|
try {
|
|
2230
2239
|
throw new Error(i);
|
|
@@ -2232,19 +2241,19 @@ function en() {
|
|
|
2232
2241
|
}
|
|
2233
2242
|
};
|
|
2234
2243
|
}
|
|
2235
|
-
function a(
|
|
2244
|
+
function a(s, i, c, d, l) {
|
|
2236
2245
|
if (process.env.NODE_ENV !== "production") {
|
|
2237
|
-
for (var p in
|
|
2238
|
-
if (n(
|
|
2246
|
+
for (var p in s)
|
|
2247
|
+
if (n(s, p)) {
|
|
2239
2248
|
var u;
|
|
2240
2249
|
try {
|
|
2241
|
-
if (typeof
|
|
2250
|
+
if (typeof s[p] != "function") {
|
|
2242
2251
|
var m = Error(
|
|
2243
|
-
(d || "React class") + ": " + c + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
2252
|
+
(d || "React class") + ": " + c + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2244
2253
|
);
|
|
2245
2254
|
throw m.name = "Invariant Violation", m;
|
|
2246
2255
|
}
|
|
2247
|
-
u =
|
|
2256
|
+
u = s[p](i, p, d, c, null, r);
|
|
2248
2257
|
} catch (w) {
|
|
2249
2258
|
u = w;
|
|
2250
2259
|
}
|
|
@@ -2262,15 +2271,15 @@ function en() {
|
|
|
2262
2271
|
}
|
|
2263
2272
|
return a.resetWarningCache = function() {
|
|
2264
2273
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
2265
|
-
},
|
|
2274
|
+
}, Ue = a, Ue;
|
|
2266
2275
|
}
|
|
2267
|
-
var
|
|
2268
|
-
function
|
|
2269
|
-
if (
|
|
2270
|
-
|
|
2271
|
-
var e =
|
|
2276
|
+
var Me, pt;
|
|
2277
|
+
function nn() {
|
|
2278
|
+
if (pt) return Me;
|
|
2279
|
+
pt = 1;
|
|
2280
|
+
var e = Ge(), r = tn(), t = /* @__PURE__ */ Ze(), n = /* @__PURE__ */ Pt(), a = /* @__PURE__ */ rn(), s = function() {
|
|
2272
2281
|
};
|
|
2273
|
-
process.env.NODE_ENV !== "production" && (
|
|
2282
|
+
process.env.NODE_ENV !== "production" && (s = function(c) {
|
|
2274
2283
|
var d = "Warning: " + c;
|
|
2275
2284
|
typeof console < "u" && console.error(d);
|
|
2276
2285
|
try {
|
|
@@ -2281,7 +2290,7 @@ function tn() {
|
|
|
2281
2290
|
function i() {
|
|
2282
2291
|
return null;
|
|
2283
2292
|
}
|
|
2284
|
-
return
|
|
2293
|
+
return Me = function(c, d) {
|
|
2285
2294
|
var l = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
|
|
2286
2295
|
function u(g) {
|
|
2287
2296
|
var S = g && (l && g[l] || g[p]);
|
|
@@ -2319,33 +2328,33 @@ function tn() {
|
|
|
2319
2328
|
function b(g) {
|
|
2320
2329
|
if (process.env.NODE_ENV !== "production")
|
|
2321
2330
|
var S = {}, O = 0;
|
|
2322
|
-
function I(
|
|
2323
|
-
if (
|
|
2331
|
+
function I(A, k, R, $, z, U, W) {
|
|
2332
|
+
if ($ = $ || m, U = U || R, W !== t) {
|
|
2324
2333
|
if (d) {
|
|
2325
2334
|
var _ = new Error(
|
|
2326
2335
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2327
2336
|
);
|
|
2328
2337
|
throw _.name = "Invariant Violation", _;
|
|
2329
2338
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2330
|
-
var ee =
|
|
2339
|
+
var ee = $ + ":" + R;
|
|
2331
2340
|
!S[ee] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2332
|
-
O < 3 && (
|
|
2333
|
-
"You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" +
|
|
2341
|
+
O < 3 && (s(
|
|
2342
|
+
"You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + $ + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2334
2343
|
), S[ee] = !0, O++);
|
|
2335
2344
|
}
|
|
2336
2345
|
}
|
|
2337
|
-
return k[R] == null ?
|
|
2346
|
+
return k[R] == null ? A ? k[R] === null ? new x("The " + z + " `" + U + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new x("The " + z + " `" + U + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : g(k, R, $, z, U);
|
|
2338
2347
|
}
|
|
2339
2348
|
var P = I.bind(null, !1);
|
|
2340
2349
|
return P.isRequired = I.bind(null, !0), P;
|
|
2341
2350
|
}
|
|
2342
2351
|
function C(g) {
|
|
2343
|
-
function S(O, I, P,
|
|
2344
|
-
var
|
|
2352
|
+
function S(O, I, P, A, k, R) {
|
|
2353
|
+
var $ = O[I], z = Q($);
|
|
2345
2354
|
if (z !== g) {
|
|
2346
|
-
var U = ie(
|
|
2355
|
+
var U = ie($);
|
|
2347
2356
|
return new x(
|
|
2348
|
-
"Invalid " +
|
|
2357
|
+
"Invalid " + A + " `" + k + "` of type " + ("`" + U + "` supplied to `" + P + "`, expected ") + ("`" + g + "`."),
|
|
2349
2358
|
{ expectedType: g }
|
|
2350
2359
|
);
|
|
2351
2360
|
}
|
|
@@ -2357,16 +2366,16 @@ function tn() {
|
|
|
2357
2366
|
return b(i);
|
|
2358
2367
|
}
|
|
2359
2368
|
function N(g) {
|
|
2360
|
-
function S(O, I, P,
|
|
2369
|
+
function S(O, I, P, A, k) {
|
|
2361
2370
|
if (typeof g != "function")
|
|
2362
2371
|
return new x("Property `" + k + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
2363
2372
|
var R = O[I];
|
|
2364
2373
|
if (!Array.isArray(R)) {
|
|
2365
|
-
var
|
|
2366
|
-
return new x("Invalid " +
|
|
2374
|
+
var $ = Q(R);
|
|
2375
|
+
return new x("Invalid " + A + " `" + k + "` of type " + ("`" + $ + "` supplied to `" + P + "`, expected an array."));
|
|
2367
2376
|
}
|
|
2368
2377
|
for (var z = 0; z < R.length; z++) {
|
|
2369
|
-
var U = g(R, z, P,
|
|
2378
|
+
var U = g(R, z, P, A, k + "[" + z + "]", t);
|
|
2370
2379
|
if (U instanceof Error)
|
|
2371
2380
|
return U;
|
|
2372
2381
|
}
|
|
@@ -2375,32 +2384,32 @@ function tn() {
|
|
|
2375
2384
|
return b(S);
|
|
2376
2385
|
}
|
|
2377
2386
|
function T() {
|
|
2378
|
-
function g(S, O, I, P,
|
|
2387
|
+
function g(S, O, I, P, A) {
|
|
2379
2388
|
var k = S[O];
|
|
2380
2389
|
if (!c(k)) {
|
|
2381
2390
|
var R = Q(k);
|
|
2382
|
-
return new x("Invalid " + P + " `" +
|
|
2391
|
+
return new x("Invalid " + P + " `" + A + "` of type " + ("`" + R + "` supplied to `" + I + "`, expected a single ReactElement."));
|
|
2383
2392
|
}
|
|
2384
2393
|
return null;
|
|
2385
2394
|
}
|
|
2386
2395
|
return b(g);
|
|
2387
2396
|
}
|
|
2388
2397
|
function f() {
|
|
2389
|
-
function g(S, O, I, P,
|
|
2398
|
+
function g(S, O, I, P, A) {
|
|
2390
2399
|
var k = S[O];
|
|
2391
2400
|
if (!e.isValidElementType(k)) {
|
|
2392
2401
|
var R = Q(k);
|
|
2393
|
-
return new x("Invalid " + P + " `" +
|
|
2402
|
+
return new x("Invalid " + P + " `" + A + "` of type " + ("`" + R + "` supplied to `" + I + "`, expected a single ReactElement type."));
|
|
2394
2403
|
}
|
|
2395
2404
|
return null;
|
|
2396
2405
|
}
|
|
2397
2406
|
return b(g);
|
|
2398
2407
|
}
|
|
2399
2408
|
function B(g) {
|
|
2400
|
-
function S(O, I, P,
|
|
2409
|
+
function S(O, I, P, A, k) {
|
|
2401
2410
|
if (!(O[I] instanceof g)) {
|
|
2402
|
-
var R = g.name || m,
|
|
2403
|
-
return new x("Invalid " +
|
|
2411
|
+
var R = g.name || m, $ = Pe(O[I]);
|
|
2412
|
+
return new x("Invalid " + A + " `" + k + "` of type " + ("`" + $ + "` supplied to `" + P + "`, expected ") + ("instance of `" + R + "`."));
|
|
2404
2413
|
}
|
|
2405
2414
|
return null;
|
|
2406
2415
|
}
|
|
@@ -2408,31 +2417,31 @@ function tn() {
|
|
|
2408
2417
|
}
|
|
2409
2418
|
function L(g) {
|
|
2410
2419
|
if (!Array.isArray(g))
|
|
2411
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
2420
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
2412
2421
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2413
|
-
) :
|
|
2414
|
-
function S(O, I, P,
|
|
2415
|
-
for (var R = O[I],
|
|
2416
|
-
if (w(R, g[
|
|
2422
|
+
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
2423
|
+
function S(O, I, P, A, k) {
|
|
2424
|
+
for (var R = O[I], $ = 0; $ < g.length; $++)
|
|
2425
|
+
if (w(R, g[$]))
|
|
2417
2426
|
return null;
|
|
2418
2427
|
var z = JSON.stringify(g, function(W, _) {
|
|
2419
2428
|
var ee = ie(_);
|
|
2420
2429
|
return ee === "symbol" ? String(_) : _;
|
|
2421
2430
|
});
|
|
2422
|
-
return new x("Invalid " +
|
|
2431
|
+
return new x("Invalid " + A + " `" + k + "` of value `" + String(R) + "` " + ("supplied to `" + P + "`, expected one of " + z + "."));
|
|
2423
2432
|
}
|
|
2424
2433
|
return b(S);
|
|
2425
2434
|
}
|
|
2426
2435
|
function K(g) {
|
|
2427
|
-
function S(O, I, P,
|
|
2436
|
+
function S(O, I, P, A, k) {
|
|
2428
2437
|
if (typeof g != "function")
|
|
2429
2438
|
return new x("Property `" + k + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
2430
|
-
var R = O[I],
|
|
2431
|
-
if (
|
|
2432
|
-
return new x("Invalid " +
|
|
2439
|
+
var R = O[I], $ = Q(R);
|
|
2440
|
+
if ($ !== "object")
|
|
2441
|
+
return new x("Invalid " + A + " `" + k + "` of type " + ("`" + $ + "` supplied to `" + P + "`, expected an object."));
|
|
2433
2442
|
for (var z in R)
|
|
2434
2443
|
if (n(R, z)) {
|
|
2435
|
-
var U = g(R, z, P,
|
|
2444
|
+
var U = g(R, z, P, A, k + "." + z, t);
|
|
2436
2445
|
if (U instanceof Error)
|
|
2437
2446
|
return U;
|
|
2438
2447
|
}
|
|
@@ -2442,47 +2451,47 @@ function tn() {
|
|
|
2442
2451
|
}
|
|
2443
2452
|
function pe(g) {
|
|
2444
2453
|
if (!Array.isArray(g))
|
|
2445
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2454
|
+
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
2446
2455
|
for (var S = 0; S < g.length; S++) {
|
|
2447
2456
|
var O = g[S];
|
|
2448
2457
|
if (typeof O != "function")
|
|
2449
|
-
return
|
|
2458
|
+
return s(
|
|
2450
2459
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(O) + " at index " + S + "."
|
|
2451
2460
|
), i;
|
|
2452
2461
|
}
|
|
2453
|
-
function I(P,
|
|
2462
|
+
function I(P, A, k, R, $) {
|
|
2454
2463
|
for (var z = [], U = 0; U < g.length; U++) {
|
|
2455
|
-
var W = g[U], _ = W(P,
|
|
2464
|
+
var W = g[U], _ = W(P, A, k, R, $, t);
|
|
2456
2465
|
if (_ == null)
|
|
2457
2466
|
return null;
|
|
2458
2467
|
_.data && n(_.data, "expectedType") && z.push(_.data.expectedType);
|
|
2459
2468
|
}
|
|
2460
2469
|
var ee = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
|
|
2461
|
-
return new x("Invalid " + R + " `" +
|
|
2470
|
+
return new x("Invalid " + R + " `" + $ + "` supplied to " + ("`" + k + "`" + ee + "."));
|
|
2462
2471
|
}
|
|
2463
2472
|
return b(I);
|
|
2464
2473
|
}
|
|
2465
2474
|
function J() {
|
|
2466
|
-
function g(S, O, I, P,
|
|
2467
|
-
return me(S[O]) ? null : new x("Invalid " + P + " `" +
|
|
2475
|
+
function g(S, O, I, P, A) {
|
|
2476
|
+
return me(S[O]) ? null : new x("Invalid " + P + " `" + A + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
|
|
2468
2477
|
}
|
|
2469
2478
|
return b(g);
|
|
2470
2479
|
}
|
|
2471
|
-
function
|
|
2480
|
+
function V(g, S, O, I, P) {
|
|
2472
2481
|
return new x(
|
|
2473
2482
|
(g || "React class") + ": " + S + " type `" + O + "." + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
2474
2483
|
);
|
|
2475
2484
|
}
|
|
2476
2485
|
function Y(g) {
|
|
2477
|
-
function S(O, I, P,
|
|
2478
|
-
var R = O[I],
|
|
2479
|
-
if (
|
|
2480
|
-
return new x("Invalid " +
|
|
2486
|
+
function S(O, I, P, A, k) {
|
|
2487
|
+
var R = O[I], $ = Q(R);
|
|
2488
|
+
if ($ !== "object")
|
|
2489
|
+
return new x("Invalid " + A + " `" + k + "` of type `" + $ + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
2481
2490
|
for (var z in g) {
|
|
2482
2491
|
var U = g[z];
|
|
2483
2492
|
if (typeof U != "function")
|
|
2484
|
-
return
|
|
2485
|
-
var W = U(R, z, P,
|
|
2493
|
+
return V(P, A, k, z, ie(U));
|
|
2494
|
+
var W = U(R, z, P, A, k + "." + z, t);
|
|
2486
2495
|
if (W)
|
|
2487
2496
|
return W;
|
|
2488
2497
|
}
|
|
@@ -2491,21 +2500,21 @@ function tn() {
|
|
|
2491
2500
|
return b(S);
|
|
2492
2501
|
}
|
|
2493
2502
|
function se(g) {
|
|
2494
|
-
function S(O, I, P,
|
|
2495
|
-
var R = O[I],
|
|
2496
|
-
if (
|
|
2497
|
-
return new x("Invalid " +
|
|
2503
|
+
function S(O, I, P, A, k) {
|
|
2504
|
+
var R = O[I], $ = Q(R);
|
|
2505
|
+
if ($ !== "object")
|
|
2506
|
+
return new x("Invalid " + A + " `" + k + "` of type `" + $ + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
2498
2507
|
var z = r({}, O[I], g);
|
|
2499
2508
|
for (var U in z) {
|
|
2500
2509
|
var W = g[U];
|
|
2501
2510
|
if (n(g, U) && typeof W != "function")
|
|
2502
|
-
return
|
|
2511
|
+
return V(P, A, k, U, ie(W));
|
|
2503
2512
|
if (!W)
|
|
2504
2513
|
return new x(
|
|
2505
|
-
"Invalid " +
|
|
2514
|
+
"Invalid " + A + " `" + k + "` key `" + U + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(O[I], null, " ") + `
|
|
2506
2515
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
2507
2516
|
);
|
|
2508
|
-
var _ = W(R, U, P,
|
|
2517
|
+
var _ = W(R, U, P, A, k + "." + U, t);
|
|
2509
2518
|
if (_)
|
|
2510
2519
|
return _;
|
|
2511
2520
|
}
|
|
@@ -2583,18 +2592,18 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
2583
2592
|
return !g.constructor || !g.constructor.name ? m : g.constructor.name;
|
|
2584
2593
|
}
|
|
2585
2594
|
return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
|
|
2586
|
-
},
|
|
2595
|
+
}, Me;
|
|
2587
2596
|
}
|
|
2588
|
-
var
|
|
2589
|
-
function
|
|
2590
|
-
if (
|
|
2591
|
-
|
|
2592
|
-
var e = /* @__PURE__ */
|
|
2597
|
+
var je, mt;
|
|
2598
|
+
function an() {
|
|
2599
|
+
if (mt) return je;
|
|
2600
|
+
mt = 1;
|
|
2601
|
+
var e = /* @__PURE__ */ Ze();
|
|
2593
2602
|
function r() {
|
|
2594
2603
|
}
|
|
2595
2604
|
function t() {
|
|
2596
2605
|
}
|
|
2597
|
-
return t.resetWarningCache = r,
|
|
2606
|
+
return t.resetWarningCache = r, je = function() {
|
|
2598
2607
|
function n(i, c, d, l, p, u) {
|
|
2599
2608
|
if (u !== e) {
|
|
2600
2609
|
var m = new Error(
|
|
@@ -2607,7 +2616,7 @@ function rn() {
|
|
|
2607
2616
|
function a() {
|
|
2608
2617
|
return n;
|
|
2609
2618
|
}
|
|
2610
|
-
var
|
|
2619
|
+
var s = {
|
|
2611
2620
|
array: n,
|
|
2612
2621
|
bigint: n,
|
|
2613
2622
|
bool: n,
|
|
@@ -2630,37 +2639,37 @@ function rn() {
|
|
|
2630
2639
|
checkPropTypes: t,
|
|
2631
2640
|
resetWarningCache: r
|
|
2632
2641
|
};
|
|
2633
|
-
return
|
|
2634
|
-
},
|
|
2642
|
+
return s.PropTypes = s, s;
|
|
2643
|
+
}, je;
|
|
2635
2644
|
}
|
|
2636
|
-
var
|
|
2637
|
-
function
|
|
2638
|
-
if (
|
|
2639
|
-
if (
|
|
2640
|
-
var e =
|
|
2641
|
-
_e.exports = /* @__PURE__ */
|
|
2645
|
+
var ft;
|
|
2646
|
+
function on() {
|
|
2647
|
+
if (ft) return _e.exports;
|
|
2648
|
+
if (ft = 1, process.env.NODE_ENV !== "production") {
|
|
2649
|
+
var e = Ge(), r = !0;
|
|
2650
|
+
_e.exports = /* @__PURE__ */ nn()(e.isElement, r);
|
|
2642
2651
|
} else
|
|
2643
|
-
_e.exports = /* @__PURE__ */
|
|
2652
|
+
_e.exports = /* @__PURE__ */ an()();
|
|
2644
2653
|
return _e.exports;
|
|
2645
2654
|
}
|
|
2646
|
-
var
|
|
2647
|
-
const Z = /* @__PURE__ */
|
|
2648
|
-
var
|
|
2649
|
-
function
|
|
2650
|
-
return
|
|
2655
|
+
var sn = /* @__PURE__ */ on();
|
|
2656
|
+
const Z = /* @__PURE__ */ bt(sn);
|
|
2657
|
+
var cn = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
|
2658
|
+
function ze() {
|
|
2659
|
+
return ze = Object.assign ? Object.assign.bind() : function(e) {
|
|
2651
2660
|
for (var r = 1; r < arguments.length; r++) {
|
|
2652
2661
|
var t = arguments[r];
|
|
2653
2662
|
for (var n in t)
|
|
2654
2663
|
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
2655
2664
|
}
|
|
2656
2665
|
return e;
|
|
2657
|
-
},
|
|
2666
|
+
}, ze.apply(this, arguments);
|
|
2658
2667
|
}
|
|
2659
|
-
function
|
|
2668
|
+
function ln(e, r) {
|
|
2660
2669
|
if (e == null) return {};
|
|
2661
|
-
var t = {}, n = Object.keys(e), a,
|
|
2662
|
-
for (
|
|
2663
|
-
a = n[
|
|
2670
|
+
var t = {}, n = Object.keys(e), a, s;
|
|
2671
|
+
for (s = 0; s < n.length; s++)
|
|
2672
|
+
a = n[s], !(r.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
2664
2673
|
return t;
|
|
2665
2674
|
}
|
|
2666
2675
|
function Se(e) {
|
|
@@ -2668,16 +2677,16 @@ function Se(e) {
|
|
|
2668
2677
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2669
2678
|
return e;
|
|
2670
2679
|
}
|
|
2671
|
-
function
|
|
2672
|
-
e.prototype = Object.create(r.prototype), e.prototype.constructor = e,
|
|
2680
|
+
function dn(e, r) {
|
|
2681
|
+
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, Be(e, r);
|
|
2673
2682
|
}
|
|
2674
|
-
function
|
|
2675
|
-
return
|
|
2683
|
+
function Be(e, r) {
|
|
2684
|
+
return Be = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, a) {
|
|
2676
2685
|
return n.__proto__ = a, n;
|
|
2677
|
-
},
|
|
2686
|
+
}, Be(e, r);
|
|
2678
2687
|
}
|
|
2679
2688
|
var Ne = /* @__PURE__ */ (function(e) {
|
|
2680
|
-
|
|
2689
|
+
dn(r, e);
|
|
2681
2690
|
function r() {
|
|
2682
2691
|
var n;
|
|
2683
2692
|
return n = e.call(this) || this, n.handleExpired = n.handleExpired.bind(Se(n)), n.handleErrored = n.handleErrored.bind(Se(n)), n.handleChange = n.handleChange.bind(Se(n)), n.handleRecaptchaRef = n.handleRecaptchaRef.bind(Se(n)), n;
|
|
@@ -2697,8 +2706,8 @@ var Ne = /* @__PURE__ */ (function(e) {
|
|
|
2697
2706
|
this._executeRequested = !0;
|
|
2698
2707
|
}, t.executeAsync = function() {
|
|
2699
2708
|
var a = this;
|
|
2700
|
-
return new Promise(function(
|
|
2701
|
-
a.executionResolve =
|
|
2709
|
+
return new Promise(function(s, i) {
|
|
2710
|
+
a.executionResolve = s, a.executionReject = i, a.execute();
|
|
2702
2711
|
});
|
|
2703
2712
|
}, t.reset = function() {
|
|
2704
2713
|
var a = this.getCaptchaFunction("reset");
|
|
@@ -2715,8 +2724,8 @@ var Ne = /* @__PURE__ */ (function(e) {
|
|
|
2715
2724
|
}, t.explicitRender = function() {
|
|
2716
2725
|
var a = this.getCaptchaFunction("render");
|
|
2717
2726
|
if (a && this._widgetId === void 0) {
|
|
2718
|
-
var
|
|
2719
|
-
this._widgetId = a(
|
|
2727
|
+
var s = document.createElement("div");
|
|
2728
|
+
this._widgetId = a(s, {
|
|
2720
2729
|
sitekey: this.props.sitekey,
|
|
2721
2730
|
callback: this.handleChange,
|
|
2722
2731
|
theme: this.props.theme,
|
|
@@ -2729,7 +2738,7 @@ var Ne = /* @__PURE__ */ (function(e) {
|
|
|
2729
2738
|
hl: this.props.hl,
|
|
2730
2739
|
badge: this.props.badge,
|
|
2731
2740
|
isolated: this.props.isolated
|
|
2732
|
-
}), this.captcha.appendChild(
|
|
2741
|
+
}), this.captcha.appendChild(s);
|
|
2733
2742
|
}
|
|
2734
2743
|
this._executeRequested && this.props.grecaptcha && this._widgetId !== void 0 && (this._executeRequested = !1, this.execute());
|
|
2735
2744
|
}, t.componentDidMount = function() {
|
|
@@ -2741,8 +2750,8 @@ var Ne = /* @__PURE__ */ (function(e) {
|
|
|
2741
2750
|
}, t.render = function() {
|
|
2742
2751
|
var a = this.props;
|
|
2743
2752
|
a.sitekey, a.onChange, a.theme, a.type, a.tabindex, a.onExpired, a.onErrored, a.size, a.stoken, a.grecaptcha, a.badge, a.hl, a.isolated;
|
|
2744
|
-
var
|
|
2745
|
-
return /* @__PURE__ */ Qe.createElement("div",
|
|
2753
|
+
var s = ln(a, cn);
|
|
2754
|
+
return /* @__PURE__ */ Qe.createElement("div", ze({}, s, {
|
|
2746
2755
|
ref: this.handleRecaptchaRef
|
|
2747
2756
|
}));
|
|
2748
2757
|
}, r;
|
|
@@ -2772,11 +2781,11 @@ Ne.defaultProps = {
|
|
|
2772
2781
|
size: "normal",
|
|
2773
2782
|
badge: "bottomright"
|
|
2774
2783
|
};
|
|
2775
|
-
var
|
|
2776
|
-
function
|
|
2777
|
-
if (
|
|
2778
|
-
|
|
2779
|
-
var e =
|
|
2784
|
+
var De, ht;
|
|
2785
|
+
function un() {
|
|
2786
|
+
if (ht) return De;
|
|
2787
|
+
ht = 1;
|
|
2788
|
+
var e = Ge(), r = {
|
|
2780
2789
|
childContextTypes: !0,
|
|
2781
2790
|
contextType: !0,
|
|
2782
2791
|
contextTypes: !0,
|
|
@@ -2809,10 +2818,10 @@ function ln() {
|
|
|
2809
2818
|
displayName: !0,
|
|
2810
2819
|
propTypes: !0,
|
|
2811
2820
|
type: !0
|
|
2812
|
-
},
|
|
2813
|
-
|
|
2821
|
+
}, s = {};
|
|
2822
|
+
s[e.ForwardRef] = n, s[e.Memo] = a;
|
|
2814
2823
|
function i(w) {
|
|
2815
|
-
return e.isMemo(w) ? a :
|
|
2824
|
+
return e.isMemo(w) ? a : s[w.$$typeof] || r;
|
|
2816
2825
|
}
|
|
2817
2826
|
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, p = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf, m = Object.prototype;
|
|
2818
2827
|
function h(w, x, b) {
|
|
@@ -2836,42 +2845,42 @@ function ln() {
|
|
|
2836
2845
|
}
|
|
2837
2846
|
return w;
|
|
2838
2847
|
}
|
|
2839
|
-
return
|
|
2848
|
+
return De = h, De;
|
|
2840
2849
|
}
|
|
2841
|
-
var
|
|
2842
|
-
const
|
|
2843
|
-
function
|
|
2844
|
-
return
|
|
2850
|
+
var pn = un();
|
|
2851
|
+
const mn = /* @__PURE__ */ bt(pn);
|
|
2852
|
+
function Fe() {
|
|
2853
|
+
return Fe = Object.assign || function(e) {
|
|
2845
2854
|
for (var r = 1; r < arguments.length; r++) {
|
|
2846
2855
|
var t = arguments[r];
|
|
2847
2856
|
for (var n in t)
|
|
2848
2857
|
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
2849
2858
|
}
|
|
2850
2859
|
return e;
|
|
2851
|
-
},
|
|
2860
|
+
}, Fe.apply(this, arguments);
|
|
2852
2861
|
}
|
|
2853
|
-
function
|
|
2862
|
+
function fn(e, r) {
|
|
2854
2863
|
if (e == null) return {};
|
|
2855
|
-
var t = {}, n = Object.keys(e), a,
|
|
2856
|
-
for (
|
|
2857
|
-
a = n[
|
|
2864
|
+
var t = {}, n = Object.keys(e), a, s;
|
|
2865
|
+
for (s = 0; s < n.length; s++)
|
|
2866
|
+
a = n[s], !(r.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
2858
2867
|
return t;
|
|
2859
2868
|
}
|
|
2860
|
-
function
|
|
2869
|
+
function hn(e, r) {
|
|
2861
2870
|
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, e.__proto__ = r;
|
|
2862
2871
|
}
|
|
2863
|
-
var X = {},
|
|
2864
|
-
function
|
|
2872
|
+
var X = {}, gn = 0;
|
|
2873
|
+
function yn(e, r) {
|
|
2865
2874
|
return r = r || {}, function(n) {
|
|
2866
|
-
var a = n.displayName || n.name || "Component",
|
|
2867
|
-
|
|
2875
|
+
var a = n.displayName || n.name || "Component", s = /* @__PURE__ */ (function(c) {
|
|
2876
|
+
hn(d, c);
|
|
2868
2877
|
function d(p, u) {
|
|
2869
2878
|
var m;
|
|
2870
2879
|
return m = c.call(this, p, u) || this, m.state = {}, m.__scriptURL = "", m;
|
|
2871
2880
|
}
|
|
2872
2881
|
var l = d.prototype;
|
|
2873
2882
|
return l.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
2874
|
-
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" +
|
|
2883
|
+
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + gn++), this.__scriptLoaderID;
|
|
2875
2884
|
}, l.setupScriptURL = function() {
|
|
2876
2885
|
return this.__scriptURL = typeof e == "function" ? e() : e, this.__scriptURL;
|
|
2877
2886
|
}, l.asyncScriptLoaderHandleLoad = function(u) {
|
|
@@ -2917,8 +2926,8 @@ function hn(e, r) {
|
|
|
2917
2926
|
var B = function(K) {
|
|
2918
2927
|
if (X[m]) {
|
|
2919
2928
|
var pe = X[m], J = pe.observers;
|
|
2920
|
-
for (var
|
|
2921
|
-
K(J[
|
|
2929
|
+
for (var V in J)
|
|
2930
|
+
K(J[V]) && delete J[V];
|
|
2922
2931
|
}
|
|
2923
2932
|
};
|
|
2924
2933
|
b && typeof window < "u" && (window[b] = function() {
|
|
@@ -2944,62 +2953,62 @@ function hn(e, r) {
|
|
|
2944
2953
|
}, l.render = function() {
|
|
2945
2954
|
var u = r.globalName, m = this.props;
|
|
2946
2955
|
m.asyncScriptOnLoad;
|
|
2947
|
-
var h = m.forwardedRef, w =
|
|
2956
|
+
var h = m.forwardedRef, w = fn(m, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
2948
2957
|
return u && typeof window < "u" && (w[u] = typeof window[u] < "u" ? window[u] : void 0), w.ref = h, et(n, w);
|
|
2949
2958
|
}, d;
|
|
2950
|
-
})(
|
|
2951
|
-
return et(
|
|
2959
|
+
})(Vt), i = Ht(function(c, d) {
|
|
2960
|
+
return et(s, Fe({}, c, {
|
|
2952
2961
|
forwardedRef: d
|
|
2953
2962
|
}));
|
|
2954
2963
|
});
|
|
2955
2964
|
return i.displayName = "AsyncScriptLoader(" + a + ")", i.propTypes = {
|
|
2956
2965
|
asyncScriptOnLoad: Z.func
|
|
2957
|
-
},
|
|
2966
|
+
}, mn(i, n);
|
|
2958
2967
|
};
|
|
2959
2968
|
}
|
|
2960
|
-
var
|
|
2961
|
-
function
|
|
2969
|
+
var qe = "onloadcallback", vn = "grecaptcha";
|
|
2970
|
+
function He() {
|
|
2962
2971
|
return typeof window < "u" && window.recaptchaOptions || {};
|
|
2963
2972
|
}
|
|
2964
|
-
function
|
|
2965
|
-
var e =
|
|
2966
|
-
return e.enterprise ? "https://" + r + "/recaptcha/enterprise.js?onload=" +
|
|
2973
|
+
function wn() {
|
|
2974
|
+
var e = He(), r = e.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
|
|
2975
|
+
return e.enterprise ? "https://" + r + "/recaptcha/enterprise.js?onload=" + qe + "&render=explicit" : "https://" + r + "/recaptcha/api.js?onload=" + qe + "&render=explicit";
|
|
2967
2976
|
}
|
|
2968
|
-
const
|
|
2969
|
-
callbackName:
|
|
2970
|
-
globalName:
|
|
2971
|
-
attributes:
|
|
2972
|
-
nonce:
|
|
2977
|
+
const Lt = yn(wn, {
|
|
2978
|
+
callbackName: qe,
|
|
2979
|
+
globalName: vn,
|
|
2980
|
+
attributes: He().nonce ? {
|
|
2981
|
+
nonce: He().nonce
|
|
2973
2982
|
} : {}
|
|
2974
|
-
})(Ne),
|
|
2975
|
-
overlay:
|
|
2976
|
-
header:
|
|
2977
|
-
logo:
|
|
2978
|
-
card:
|
|
2979
|
-
close:
|
|
2980
|
-
form:
|
|
2981
|
-
formUl:
|
|
2982
|
-
field:
|
|
2983
|
-
label:
|
|
2984
|
-
input:
|
|
2985
|
-
error:
|
|
2986
|
-
primary:
|
|
2987
|
-
divider:
|
|
2988
|
-
google:
|
|
2989
|
-
googleIcon:
|
|
2990
|
-
spin:
|
|
2991
|
-
checkboxRow:
|
|
2983
|
+
})(Ne), bn = "_overlay_tlrod_1", _n = "_header_tlrod_18", Cn = "_logo_tlrod_25", Sn = "_card_tlrod_32", xn = "_close_tlrod_47", En = "_form_tlrod_71", Nn = "_formUl_tlrod_80", Tn = "_field_tlrod_92", Pn = "_label_tlrod_99", Ln = "_input_tlrod_108", kn = "_error_tlrod_126", In = "_primary_tlrod_132", Rn = "_divider_tlrod_167", On = "_google_tlrod_193", An = "_googleIcon_tlrod_223", $n = "_spin_tlrod_256", Un = "_checkboxRow_tlrod_278", Mn = "_terms_tlrod_315", jn = "_message_tlrod_346", Dn = "_passwordChecker_tlrod_351", zn = "_valid_tlrod_370", Bn = "_invalid_tlrod_374", Fn = "_forgotPassword_tlrod_378", qn = "_successContainer_tlrod_397", Hn = "_thumbsUp_tlrod_405", Vn = "_successMessage_tlrod_411", y = {
|
|
2984
|
+
overlay: bn,
|
|
2985
|
+
header: _n,
|
|
2986
|
+
logo: Cn,
|
|
2987
|
+
card: Sn,
|
|
2988
|
+
close: xn,
|
|
2989
|
+
form: En,
|
|
2990
|
+
formUl: Nn,
|
|
2991
|
+
field: Tn,
|
|
2992
|
+
label: Pn,
|
|
2993
|
+
input: Ln,
|
|
2994
|
+
error: kn,
|
|
2995
|
+
primary: In,
|
|
2996
|
+
divider: Rn,
|
|
2997
|
+
google: On,
|
|
2998
|
+
googleIcon: An,
|
|
2999
|
+
spin: $n,
|
|
3000
|
+
checkboxRow: Un,
|
|
2992
3001
|
switch: "_switch_tlrod_307",
|
|
2993
|
-
terms:
|
|
2994
|
-
message:
|
|
2995
|
-
passwordChecker:
|
|
2996
|
-
valid:
|
|
2997
|
-
invalid:
|
|
2998
|
-
forgotPassword:
|
|
2999
|
-
successContainer:
|
|
3000
|
-
thumbsUp:
|
|
3001
|
-
successMessage:
|
|
3002
|
-
}, oe = () => /* @__PURE__ */
|
|
3002
|
+
terms: Mn,
|
|
3003
|
+
message: jn,
|
|
3004
|
+
passwordChecker: Dn,
|
|
3005
|
+
valid: zn,
|
|
3006
|
+
invalid: Bn,
|
|
3007
|
+
forgotPassword: Fn,
|
|
3008
|
+
successContainer: qn,
|
|
3009
|
+
thumbsUp: Hn,
|
|
3010
|
+
successMessage: Vn
|
|
3011
|
+
}, oe = () => /* @__PURE__ */ o(
|
|
3003
3012
|
"svg",
|
|
3004
3013
|
{
|
|
3005
3014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3008,16 +3017,16 @@ const Pt = hn(yn, {
|
|
|
3008
3017
|
height: "24",
|
|
3009
3018
|
viewBox: "0 0 32 32",
|
|
3010
3019
|
className: y.spin,
|
|
3011
|
-
children: /* @__PURE__ */
|
|
3020
|
+
children: /* @__PURE__ */ o("path", { d: "M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z" })
|
|
3012
3021
|
}
|
|
3013
|
-
),
|
|
3022
|
+
), Yn = ({
|
|
3014
3023
|
isOpen: e,
|
|
3015
3024
|
onClose: r,
|
|
3016
3025
|
commentId: t,
|
|
3017
3026
|
publication: n,
|
|
3018
3027
|
username: a
|
|
3019
3028
|
}) => {
|
|
3020
|
-
const [
|
|
3029
|
+
const [s, i] = M("form"), [c, d] = M(
|
|
3021
3030
|
""
|
|
3022
3031
|
), [l, p] = M(""), [u, m] = M(""), h = [
|
|
3023
3032
|
{ id: "spam", label: re.spam },
|
|
@@ -3038,7 +3047,7 @@ const Pt = hn(yn, {
|
|
|
3038
3047
|
{ id: "bullying", label: re.bullying }
|
|
3039
3048
|
], w = async () => {
|
|
3040
3049
|
if (!(!c || !t)) {
|
|
3041
|
-
if (
|
|
3050
|
+
if (Tt(document).includes(t)) {
|
|
3042
3051
|
p("Ya has reportado este comentario.");
|
|
3043
3052
|
return;
|
|
3044
3053
|
}
|
|
@@ -3059,7 +3068,7 @@ const Pt = hn(yn, {
|
|
|
3059
3068
|
})
|
|
3060
3069
|
})).json();
|
|
3061
3070
|
if (C.type === "success")
|
|
3062
|
-
|
|
3071
|
+
Kr(document, t), i("success"), setTimeout(() => {
|
|
3063
3072
|
x();
|
|
3064
3073
|
}, 3e3);
|
|
3065
3074
|
else
|
|
@@ -3071,13 +3080,13 @@ const Pt = hn(yn, {
|
|
|
3071
3080
|
}, x = () => {
|
|
3072
3081
|
i("form"), d(""), p(""), r();
|
|
3073
3082
|
};
|
|
3074
|
-
return !e || !t || !a ? null : /* @__PURE__ */
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__PURE__ */
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
/* @__PURE__ */
|
|
3080
|
-
/* @__PURE__ */
|
|
3083
|
+
return !e || !t || !a ? null : /* @__PURE__ */ o("div", { className: F.overlay, children: /* @__PURE__ */ v("div", { className: F.popup, children: [
|
|
3084
|
+
/* @__PURE__ */ o("button", { className: "close-reply-form", onClick: x, children: /* @__PURE__ */ o(Ve, {}) }),
|
|
3085
|
+
/* @__PURE__ */ o("h2", { className: F.title, children: "Reportar Abuso" }),
|
|
3086
|
+
s === "loading" && /* @__PURE__ */ o("div", { className: F.loadingContainer, children: /* @__PURE__ */ o(oe, {}) }),
|
|
3087
|
+
s === "form" || s === "loading" ? /* @__PURE__ */ v(H, { children: [
|
|
3088
|
+
/* @__PURE__ */ o("div", { className: F.optionsContainer, children: h.map((b) => /* @__PURE__ */ v("label", { className: F.option, children: [
|
|
3089
|
+
/* @__PURE__ */ o(
|
|
3081
3090
|
"input",
|
|
3082
3091
|
{
|
|
3083
3092
|
type: "radio",
|
|
@@ -3088,12 +3097,12 @@ const Pt = hn(yn, {
|
|
|
3088
3097
|
className: F.radioInput
|
|
3089
3098
|
}
|
|
3090
3099
|
),
|
|
3091
|
-
/* @__PURE__ */
|
|
3092
|
-
/* @__PURE__ */
|
|
3100
|
+
/* @__PURE__ */ o("span", { className: F.radioCustom }),
|
|
3101
|
+
/* @__PURE__ */ o("span", { className: F.optionLabel, children: b.label })
|
|
3093
3102
|
] }, b.id)) }),
|
|
3094
|
-
l && /* @__PURE__ */
|
|
3095
|
-
/* @__PURE__ */
|
|
3096
|
-
|
|
3103
|
+
l && /* @__PURE__ */ o("div", { className: F.errorMessage, children: l }),
|
|
3104
|
+
/* @__PURE__ */ o(
|
|
3105
|
+
Lt,
|
|
3097
3106
|
{
|
|
3098
3107
|
sitekey: "",
|
|
3099
3108
|
theme: "light",
|
|
@@ -3103,8 +3112,8 @@ const Pt = hn(yn, {
|
|
|
3103
3112
|
}
|
|
3104
3113
|
),
|
|
3105
3114
|
/* @__PURE__ */ v("div", { className: F.buttons, children: [
|
|
3106
|
-
/* @__PURE__ */
|
|
3107
|
-
/* @__PURE__ */
|
|
3115
|
+
/* @__PURE__ */ o("button", { onClick: x, className: F.cancelButton, children: "Cancelar" }),
|
|
3116
|
+
/* @__PURE__ */ o(
|
|
3108
3117
|
"button",
|
|
3109
3118
|
{
|
|
3110
3119
|
onClick: w,
|
|
@@ -3114,16 +3123,16 @@ const Pt = hn(yn, {
|
|
|
3114
3123
|
}
|
|
3115
3124
|
)
|
|
3116
3125
|
] })
|
|
3117
|
-
] }) : /* @__PURE__ */ v(
|
|
3126
|
+
] }) : /* @__PURE__ */ v(H, { children: [
|
|
3118
3127
|
/* @__PURE__ */ v("div", { className: F.successContainer, children: [
|
|
3119
|
-
/* @__PURE__ */
|
|
3128
|
+
/* @__PURE__ */ o("div", { className: F.thumbsUp, children: /* @__PURE__ */ o(
|
|
3120
3129
|
"svg",
|
|
3121
3130
|
{
|
|
3122
3131
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3123
3132
|
width: 132,
|
|
3124
3133
|
height: 120,
|
|
3125
3134
|
fill: "none",
|
|
3126
|
-
children: /* @__PURE__ */
|
|
3135
|
+
children: /* @__PURE__ */ o(
|
|
3127
3136
|
"path",
|
|
3128
3137
|
{
|
|
3129
3138
|
fill: "#0073BE",
|
|
@@ -3132,9 +3141,9 @@ const Pt = hn(yn, {
|
|
|
3132
3141
|
)
|
|
3133
3142
|
}
|
|
3134
3143
|
) }),
|
|
3135
|
-
/* @__PURE__ */
|
|
3144
|
+
/* @__PURE__ */ o("p", { className: F.successMessage, children: "¡Gracias por reportar!" })
|
|
3136
3145
|
] }),
|
|
3137
|
-
/* @__PURE__ */
|
|
3146
|
+
/* @__PURE__ */ o("div", { className: F.buttons, children: /* @__PURE__ */ o(
|
|
3138
3147
|
"button",
|
|
3139
3148
|
{
|
|
3140
3149
|
onClick: x,
|
|
@@ -3145,42 +3154,42 @@ const Pt = hn(yn, {
|
|
|
3145
3154
|
] })
|
|
3146
3155
|
] }) });
|
|
3147
3156
|
};
|
|
3148
|
-
async function
|
|
3157
|
+
async function Je({
|
|
3149
3158
|
publication: e,
|
|
3150
3159
|
path: r,
|
|
3151
3160
|
size: t = 5,
|
|
3152
3161
|
sizereply: n = 2,
|
|
3153
3162
|
id: a,
|
|
3154
|
-
lastid:
|
|
3163
|
+
lastid: s,
|
|
3155
3164
|
state: i = "5,6",
|
|
3156
3165
|
apiToken: c
|
|
3157
3166
|
}) {
|
|
3158
|
-
const { PUBLIC_ENV: d } =
|
|
3167
|
+
const { PUBLIC_ENV: d } = q();
|
|
3159
3168
|
if (d === "prod")
|
|
3160
|
-
return (await
|
|
3169
|
+
return (await Wn({
|
|
3161
3170
|
publication: e,
|
|
3162
3171
|
path: r,
|
|
3163
3172
|
size: t,
|
|
3164
3173
|
sizereply: n,
|
|
3165
3174
|
id: a,
|
|
3166
|
-
lastid:
|
|
3175
|
+
lastid: s,
|
|
3167
3176
|
state: i,
|
|
3168
3177
|
apiToken: c
|
|
3169
3178
|
}))[0];
|
|
3170
3179
|
{
|
|
3171
|
-
const l = await fetch(`/api/comments-get?publication=${e}&path=${r}&size=${t}&sizereply=${n}&lastid=${
|
|
3180
|
+
const l = await fetch(`/api/comments-get?publication=${e}&path=${r}&size=${t}&sizereply=${n}&lastid=${s}`);
|
|
3172
3181
|
if (!l.ok)
|
|
3173
3182
|
throw new Error(`Error al obtener comentarios: ${l.status}`);
|
|
3174
3183
|
return (await l.json()).data[0];
|
|
3175
3184
|
}
|
|
3176
3185
|
}
|
|
3177
|
-
async function
|
|
3186
|
+
async function Wn({
|
|
3178
3187
|
publication: e,
|
|
3179
3188
|
path: r,
|
|
3180
3189
|
size: t = 5,
|
|
3181
3190
|
sizereply: n = 2,
|
|
3182
3191
|
id: a,
|
|
3183
|
-
lastid:
|
|
3192
|
+
lastid: s,
|
|
3184
3193
|
state: i = "5,6",
|
|
3185
3194
|
apiToken: c
|
|
3186
3195
|
}) {
|
|
@@ -3190,19 +3199,19 @@ async function Vn({
|
|
|
3190
3199
|
throw new Error("Invalid input types for publication or path");
|
|
3191
3200
|
if (!c)
|
|
3192
3201
|
throw new Error("Missing CMS API token");
|
|
3193
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: p, PUBLIC_API_PATH_VERSION: u } =
|
|
3202
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: p, PUBLIC_API_PATH_VERSION: u } = q(), m = parseInt(String(t), 10), h = parseInt(String(n), 10);
|
|
3194
3203
|
if (isNaN(m) || m <= 0)
|
|
3195
3204
|
throw new Error("Invalid size parameter");
|
|
3196
3205
|
if (isNaN(h) || h < 0)
|
|
3197
3206
|
throw new Error("Invalid sizereply parameter");
|
|
3198
|
-
const w = d !== "prod" ? `${l}${p}` :
|
|
3207
|
+
const w = d !== "prod" ? `${l}${p}` : Jt(), x = new URLSearchParams({
|
|
3199
3208
|
publication: e,
|
|
3200
3209
|
path: r,
|
|
3201
3210
|
size: m.toString(),
|
|
3202
3211
|
sizereply: h.toString(),
|
|
3203
3212
|
state: i
|
|
3204
3213
|
});
|
|
3205
|
-
a && x.append("id", a),
|
|
3214
|
+
a && x.append("id", a), s && x.append("lastid", s);
|
|
3206
3215
|
const b = `${w}${u}/newcomments/get?${x.toString()}`;
|
|
3207
3216
|
try {
|
|
3208
3217
|
console.log("Fetching comments from:", b);
|
|
@@ -3225,15 +3234,15 @@ async function Vn({
|
|
|
3225
3234
|
throw C;
|
|
3226
3235
|
}
|
|
3227
3236
|
}
|
|
3228
|
-
const { PUBLIC_PUBLICATION_ID:
|
|
3237
|
+
const { PUBLIC_PUBLICATION_ID: Gn } = q(), Zn = Gn, Jn = (e) => {
|
|
3229
3238
|
const [r, t] = M(void 0);
|
|
3230
3239
|
return he(() => {
|
|
3231
3240
|
if (r) return;
|
|
3232
3241
|
(async () => {
|
|
3233
|
-
const { PUBLIC_X_SECURITY_TOKEN: a } =
|
|
3242
|
+
const { PUBLIC_X_SECURITY_TOKEN: a } = q();
|
|
3234
3243
|
try {
|
|
3235
|
-
const
|
|
3236
|
-
publication:
|
|
3244
|
+
const s = await Je({
|
|
3245
|
+
publication: Zn,
|
|
3237
3246
|
path: e ?? "",
|
|
3238
3247
|
size: 5,
|
|
3239
3248
|
sizereply: 2,
|
|
@@ -3242,25 +3251,25 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3242
3251
|
state: "5,6",
|
|
3243
3252
|
apiToken: a
|
|
3244
3253
|
});
|
|
3245
|
-
t(
|
|
3246
|
-
} catch (
|
|
3247
|
-
console.error(
|
|
3254
|
+
t(s ?? []);
|
|
3255
|
+
} catch (s) {
|
|
3256
|
+
console.error(s), t({ comments: [], morecomment: !1 });
|
|
3248
3257
|
}
|
|
3249
3258
|
})();
|
|
3250
3259
|
}, [r]), { comments: r, setComments: t };
|
|
3251
|
-
},
|
|
3252
|
-
/* @__PURE__ */
|
|
3253
|
-
/* @__PURE__ */
|
|
3254
|
-
/* @__PURE__ */
|
|
3255
|
-
] }),
|
|
3260
|
+
}, kt = ({ username: e, date: r }) => /* @__PURE__ */ v("div", { className: "comment-header", children: [
|
|
3261
|
+
/* @__PURE__ */ o("span", { className: "comment-username", children: e }),
|
|
3262
|
+
/* @__PURE__ */ o("span", { className: "comment-header-dot", children: "•" }),
|
|
3263
|
+
/* @__PURE__ */ o("span", { className: "comment-date", children: Jr(wt(Number(r))) })
|
|
3264
|
+
] }), It = ({ user: e }) => /* @__PURE__ */ o("div", { className: "comment-avatar", children: e.picture ? /* @__PURE__ */ o(
|
|
3256
3265
|
"img",
|
|
3257
3266
|
{
|
|
3258
3267
|
className: "comment-avatar-img",
|
|
3259
3268
|
src: e.picture,
|
|
3260
3269
|
alt: e.username
|
|
3261
3270
|
}
|
|
3262
|
-
) : e.firstname.charAt(0).toUpperCase() }),
|
|
3263
|
-
!e && r && /* @__PURE__ */
|
|
3271
|
+
) : e.firstname.charAt(0).toUpperCase() }), Rt = ({ isReply: e = !1, onReply: r, onFlag: t }) => /* @__PURE__ */ v("div", { className: "comment-actions", children: [
|
|
3272
|
+
!e && r && /* @__PURE__ */ o(
|
|
3264
3273
|
"button",
|
|
3265
3274
|
{
|
|
3266
3275
|
onClick: r,
|
|
@@ -3273,20 +3282,20 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3273
3282
|
height: 24,
|
|
3274
3283
|
fill: "none",
|
|
3275
3284
|
children: [
|
|
3276
|
-
/* @__PURE__ */
|
|
3285
|
+
/* @__PURE__ */ o("g", { clipPath: "url(#a)", children: /* @__PURE__ */ o(
|
|
3277
3286
|
"path",
|
|
3278
3287
|
{
|
|
3279
3288
|
fill: "#4D4E4E",
|
|
3280
3289
|
d: "M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"
|
|
3281
3290
|
}
|
|
3282
3291
|
) }),
|
|
3283
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ o("defs", { children: /* @__PURE__ */ o("clipPath", { id: "a", children: /* @__PURE__ */ o("path", { fill: "#fff", d: "M0 0h23.942v24H0z" }) }) })
|
|
3284
3293
|
]
|
|
3285
3294
|
}
|
|
3286
3295
|
)
|
|
3287
3296
|
}
|
|
3288
3297
|
),
|
|
3289
|
-
/* @__PURE__ */
|
|
3298
|
+
/* @__PURE__ */ o("button", { onClick: t, className: "comment-action-btn", children: /* @__PURE__ */ v(
|
|
3290
3299
|
"svg",
|
|
3291
3300
|
{
|
|
3292
3301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3294,28 +3303,28 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3294
3303
|
height: 24,
|
|
3295
3304
|
fill: "none",
|
|
3296
3305
|
children: [
|
|
3297
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ o("g", { clipPath: "url(#a)", children: /* @__PURE__ */ o(
|
|
3298
3307
|
"path",
|
|
3299
3308
|
{
|
|
3300
3309
|
fill: "#4D4E4E",
|
|
3301
3310
|
d: "M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"
|
|
3302
3311
|
}
|
|
3303
3312
|
) }),
|
|
3304
|
-
/* @__PURE__ */
|
|
3313
|
+
/* @__PURE__ */ o("defs", { children: /* @__PURE__ */ o("clipPath", { id: "a", children: /* @__PURE__ */ o("path", { fill: "#fff", d: "M.133 0h24v24h-24z" }) }) })
|
|
3305
3314
|
]
|
|
3306
3315
|
}
|
|
3307
3316
|
) })
|
|
3308
|
-
] }),
|
|
3317
|
+
] }), Ot = ({ commentRef: e, captchaToken: r = "", setIsDisabled: t }) => (he(() => {
|
|
3309
3318
|
const n = e.current;
|
|
3310
3319
|
if (!n) return;
|
|
3311
3320
|
const a = () => {
|
|
3312
3321
|
const i = n.value.length;
|
|
3313
|
-
n.parentElement && (n.parentElement.dataset.text = `${i}/${ue}`), n.classList.toggle("over-limit", i > ue), t(!
|
|
3322
|
+
n.parentElement && (n.parentElement.dataset.text = `${i}/${ue}`), n.classList.toggle("over-limit", i > ue), t(!We(e, r).boolean);
|
|
3314
3323
|
};
|
|
3315
3324
|
return n.addEventListener("input", a), a(), () => n.removeEventListener("input", a);
|
|
3316
3325
|
}, [e, r, t]), /* @__PURE__ */ v("div", { children: [
|
|
3317
|
-
/* @__PURE__ */
|
|
3318
|
-
/* @__PURE__ */
|
|
3326
|
+
/* @__PURE__ */ o("label", { className: "comment-input-label", children: "Comentario" }),
|
|
3327
|
+
/* @__PURE__ */ o(
|
|
3319
3328
|
"textarea",
|
|
3320
3329
|
{
|
|
3321
3330
|
ref: e,
|
|
@@ -3324,27 +3333,27 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3324
3333
|
rows: 2
|
|
3325
3334
|
}
|
|
3326
3335
|
)
|
|
3327
|
-
] })),
|
|
3336
|
+
] })), At = ({
|
|
3328
3337
|
commentRef: e,
|
|
3329
3338
|
captchaToken: r = "",
|
|
3330
3339
|
setCaptchaToken: t,
|
|
3331
3340
|
children: n
|
|
3332
3341
|
}) => {
|
|
3333
|
-
const a =
|
|
3342
|
+
const a = We(e, r);
|
|
3334
3343
|
return /* @__PURE__ */ v("div", { className: "form-actions", children: [
|
|
3335
|
-
/* @__PURE__ */
|
|
3336
|
-
|
|
3344
|
+
/* @__PURE__ */ o(
|
|
3345
|
+
Lt,
|
|
3337
3346
|
{
|
|
3338
3347
|
sitekey: "",
|
|
3339
3348
|
theme: "light",
|
|
3340
3349
|
size: "normal",
|
|
3341
|
-
onChange: (
|
|
3350
|
+
onChange: (s) => t(s ?? ""),
|
|
3342
3351
|
onExpired: () => t("")
|
|
3343
3352
|
}
|
|
3344
3353
|
),
|
|
3345
3354
|
/* @__PURE__ */ v("div", { className: "submit-zone", children: [
|
|
3346
3355
|
n,
|
|
3347
|
-
!a.boolean && /* @__PURE__ */
|
|
3356
|
+
!a.boolean && /* @__PURE__ */ o("p", { className: "submit-warning", children: a.text })
|
|
3348
3357
|
] })
|
|
3349
3358
|
] });
|
|
3350
3359
|
}, $t = ({ onClick: e, isDisabled: r }) => {
|
|
@@ -3356,7 +3365,7 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3356
3365
|
}, 2400)), () => {
|
|
3357
3366
|
a && clearTimeout(a);
|
|
3358
3367
|
};
|
|
3359
|
-
}, [t]), t ? /* @__PURE__ */
|
|
3368
|
+
}, [t]), t ? /* @__PURE__ */ o("div", { className: "success-gif-container", children: /* @__PURE__ */ o("img", { className: "success-gif", src: "/Success.gif" }) }) : /* @__PURE__ */ v(
|
|
3360
3369
|
"button",
|
|
3361
3370
|
{
|
|
3362
3371
|
type: "button",
|
|
@@ -3367,7 +3376,7 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3367
3376
|
className: `submit-btn ${r ? "disabled" : "active"}`,
|
|
3368
3377
|
children: [
|
|
3369
3378
|
"Enviar Comentario",
|
|
3370
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ o(
|
|
3371
3380
|
"svg",
|
|
3372
3381
|
{
|
|
3373
3382
|
style: { minWidth: 16 },
|
|
@@ -3376,7 +3385,7 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3376
3385
|
viewBox: "0 0 16 16",
|
|
3377
3386
|
fill: "none",
|
|
3378
3387
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3379
|
-
children: /* @__PURE__ */
|
|
3388
|
+
children: /* @__PURE__ */ o(
|
|
3380
3389
|
"path",
|
|
3381
3390
|
{
|
|
3382
3391
|
d: "M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",
|
|
@@ -3388,17 +3397,17 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3388
3397
|
]
|
|
3389
3398
|
}
|
|
3390
3399
|
);
|
|
3391
|
-
}, { PUBLIC_PUBLICATION_ID:
|
|
3400
|
+
}, { PUBLIC_PUBLICATION_ID: Kn } = q(), Xn = Kn, Ut = async ({
|
|
3392
3401
|
path: e,
|
|
3393
3402
|
ref: r,
|
|
3394
3403
|
captchaToken: t,
|
|
3395
3404
|
button: n,
|
|
3396
3405
|
user: a,
|
|
3397
|
-
id:
|
|
3406
|
+
id: s,
|
|
3398
3407
|
addComment: i
|
|
3399
3408
|
}) => {
|
|
3400
3409
|
const c = r.current?.value || "";
|
|
3401
|
-
if (!
|
|
3410
|
+
if (!We(r, t).boolean || !a) {
|
|
3402
3411
|
const d = n.nextElementSibling;
|
|
3403
3412
|
return d && (d.style.display = "block"), !1;
|
|
3404
3413
|
}
|
|
@@ -3407,9 +3416,9 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3407
3416
|
method: "POST",
|
|
3408
3417
|
headers: { "Content-Type": "application/json" },
|
|
3409
3418
|
body: JSON.stringify({
|
|
3410
|
-
publication:
|
|
3419
|
+
publication: Xn,
|
|
3411
3420
|
path: e,
|
|
3412
|
-
id:
|
|
3421
|
+
id: s,
|
|
3413
3422
|
username: a.username,
|
|
3414
3423
|
comment: c,
|
|
3415
3424
|
recaptchaResponse: t
|
|
@@ -3441,39 +3450,39 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3441
3450
|
} catch (d) {
|
|
3442
3451
|
return console.error("Error enviando comentario:", d), alert(d.message || "Error al enviar el comentario."), !1;
|
|
3443
3452
|
}
|
|
3444
|
-
},
|
|
3453
|
+
}, Qn = ({
|
|
3445
3454
|
replyingTo: e,
|
|
3446
3455
|
commentRef: r,
|
|
3447
3456
|
user: t,
|
|
3448
3457
|
path: n,
|
|
3449
3458
|
addReply: a,
|
|
3450
|
-
closeForm:
|
|
3459
|
+
closeForm: s
|
|
3451
3460
|
}) => {
|
|
3452
3461
|
const [i, c] = M(!0), [d, l] = M(""), p = () => {
|
|
3453
|
-
r.current?.parentElement && (r.current.parentElement.dataset.text = `0/${ue}`), c(!0),
|
|
3462
|
+
r.current?.parentElement && (r.current.parentElement.dataset.text = `0/${ue}`), c(!0), s();
|
|
3454
3463
|
};
|
|
3455
3464
|
return /* @__PURE__ */ v("div", { className: "comment-form reply-form", children: [
|
|
3456
|
-
/* @__PURE__ */
|
|
3457
|
-
/* @__PURE__ */
|
|
3458
|
-
|
|
3465
|
+
/* @__PURE__ */ o("button", { className: "close-reply-form", onClick: p, children: /* @__PURE__ */ o(Ve, {}) }),
|
|
3466
|
+
/* @__PURE__ */ o(
|
|
3467
|
+
Ot,
|
|
3459
3468
|
{
|
|
3460
3469
|
commentRef: r,
|
|
3461
3470
|
captchaToken: d,
|
|
3462
3471
|
setIsDisabled: c
|
|
3463
3472
|
}
|
|
3464
3473
|
),
|
|
3465
|
-
/* @__PURE__ */
|
|
3466
|
-
|
|
3474
|
+
/* @__PURE__ */ o(
|
|
3475
|
+
At,
|
|
3467
3476
|
{
|
|
3468
3477
|
commentRef: r,
|
|
3469
3478
|
captchaToken: d,
|
|
3470
3479
|
setCaptchaToken: l,
|
|
3471
|
-
children: /* @__PURE__ */
|
|
3480
|
+
children: /* @__PURE__ */ o(
|
|
3472
3481
|
$t,
|
|
3473
3482
|
{
|
|
3474
3483
|
onClick: async (u) => {
|
|
3475
3484
|
if (i) return;
|
|
3476
|
-
const m = await
|
|
3485
|
+
const m = await Ut({
|
|
3477
3486
|
path: n,
|
|
3478
3487
|
ref: r,
|
|
3479
3488
|
captchaToken: d,
|
|
@@ -3492,49 +3501,49 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3492
3501
|
}
|
|
3493
3502
|
)
|
|
3494
3503
|
] });
|
|
3495
|
-
},
|
|
3504
|
+
}, ea = ({ reply: e, replyingTo: r, user: t, onFlag: n }) => {
|
|
3496
3505
|
const a = e.text;
|
|
3497
|
-
let
|
|
3498
|
-
return e.user && (
|
|
3499
|
-
/* @__PURE__ */
|
|
3506
|
+
let s = `${ne.firstname} ${ne.lastname}`, i = ne.username;
|
|
3507
|
+
return e.user && (s = `${e.user.firstname} ${e.user.lastname}`, i = e.user.username), /* @__PURE__ */ o("div", { className: "comment-item reply", children: /* @__PURE__ */ v("div", { className: "comment-header-container", children: [
|
|
3508
|
+
/* @__PURE__ */ o(It, { user: e.user ? e.user : ne }),
|
|
3500
3509
|
/* @__PURE__ */ v("div", { style: { flex: 1 }, children: [
|
|
3501
|
-
/* @__PURE__ */
|
|
3510
|
+
/* @__PURE__ */ o(kt, { username: s, date: e.date.time }),
|
|
3502
3511
|
/* @__PURE__ */ v("div", { className: "comment-reply-to", children: [
|
|
3503
3512
|
"Respondiendo a ",
|
|
3504
|
-
/* @__PURE__ */
|
|
3513
|
+
/* @__PURE__ */ o("strong", { children: r })
|
|
3505
3514
|
] }),
|
|
3506
|
-
/* @__PURE__ */
|
|
3515
|
+
/* @__PURE__ */ o("p", { className: "comment-text", children: a }),
|
|
3507
3516
|
t?.username.toLowerCase() !== i.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
3508
|
-
/* @__PURE__ */
|
|
3517
|
+
/* @__PURE__ */ o(Rt, { isReply: !0, onFlag: () => n(e.id) })
|
|
3509
3518
|
] })
|
|
3510
3519
|
] }) });
|
|
3511
|
-
},
|
|
3520
|
+
}, ta = ({ comment: e, replyingTo: r, path: t, user: n, handleReplyingTo: a, onFlag: s }) => {
|
|
3512
3521
|
const i = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [c, d] = M(i), [l, p] = ae.useState(!1), u = process.env.PUBLIC_PUBLICATION_ID ?? "", m = e.text, h = ae.useRef(null);
|
|
3513
3522
|
let w = `${ne.firstname} ${ne.lastname}`, x = ne.username;
|
|
3514
3523
|
e.user && (w = `${e.user.firstname} ${e.user.lastname}`, x = e.user.username);
|
|
3515
3524
|
const b = (C) => {
|
|
3516
3525
|
d({ morereply: c.morereply, reply: [C, ...c.reply] });
|
|
3517
3526
|
};
|
|
3518
|
-
return /* @__PURE__ */
|
|
3527
|
+
return /* @__PURE__ */ o("div", { className: "comment-item", children: /* @__PURE__ */ v(
|
|
3519
3528
|
"div",
|
|
3520
3529
|
{
|
|
3521
3530
|
className: "comment-header-container",
|
|
3522
3531
|
"data-hasreplies": c.reply.length > 0 ? "true" : "false",
|
|
3523
3532
|
children: [
|
|
3524
|
-
/* @__PURE__ */
|
|
3533
|
+
/* @__PURE__ */ o(It, { user: e.user ? e.user : ne }),
|
|
3525
3534
|
/* @__PURE__ */ v("div", { style: { flex: 1 }, children: [
|
|
3526
|
-
/* @__PURE__ */
|
|
3527
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ o(kt, { username: w, date: e.date.time }),
|
|
3536
|
+
/* @__PURE__ */ o("p", { className: "comment-text", children: m }),
|
|
3528
3537
|
n?.username.toLowerCase() !== x.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
3529
|
-
/* @__PURE__ */
|
|
3530
|
-
|
|
3538
|
+
/* @__PURE__ */ o(
|
|
3539
|
+
Rt,
|
|
3531
3540
|
{
|
|
3532
3541
|
onReply: () => a(e.id),
|
|
3533
|
-
onFlag: () =>
|
|
3542
|
+
onFlag: () => s(e.id)
|
|
3534
3543
|
}
|
|
3535
3544
|
),
|
|
3536
|
-
r === e.id && n && /* @__PURE__ */
|
|
3537
|
-
|
|
3545
|
+
r === e.id && n && /* @__PURE__ */ o(
|
|
3546
|
+
Qn,
|
|
3538
3547
|
{
|
|
3539
3548
|
replyingTo: r,
|
|
3540
3549
|
commentRef: h,
|
|
@@ -3545,17 +3554,17 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3545
3554
|
}
|
|
3546
3555
|
),
|
|
3547
3556
|
c.reply.length > 0 && /* @__PURE__ */ v("div", { className: "comment-replies", children: [
|
|
3548
|
-
c.reply.map((C) => /* @__PURE__ */
|
|
3549
|
-
|
|
3557
|
+
c.reply.map((C) => /* @__PURE__ */ o(
|
|
3558
|
+
ea,
|
|
3550
3559
|
{
|
|
3551
3560
|
user: n,
|
|
3552
3561
|
reply: C,
|
|
3553
3562
|
replyingTo: w,
|
|
3554
|
-
onFlag:
|
|
3563
|
+
onFlag: s
|
|
3555
3564
|
},
|
|
3556
3565
|
C.id
|
|
3557
3566
|
)),
|
|
3558
|
-
l ? /* @__PURE__ */
|
|
3567
|
+
l ? /* @__PURE__ */ o("div", { style: { marginLeft: "4rem", position: "relative" }, children: /* @__PURE__ */ o(oe, {}) }) : c.morereply && /* @__PURE__ */ o(
|
|
3559
3568
|
"button",
|
|
3560
3569
|
{
|
|
3561
3570
|
className: "comment-replies-button reply-button",
|
|
@@ -3563,7 +3572,7 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3563
3572
|
const C = c.reply[c.reply.length - 1]?.id;
|
|
3564
3573
|
p(!0);
|
|
3565
3574
|
try {
|
|
3566
|
-
const N = await
|
|
3575
|
+
const N = await Je({
|
|
3567
3576
|
publication: u,
|
|
3568
3577
|
path: t ?? "",
|
|
3569
3578
|
size: 2,
|
|
@@ -3586,34 +3595,34 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3586
3595
|
]
|
|
3587
3596
|
}
|
|
3588
3597
|
) });
|
|
3589
|
-
},
|
|
3598
|
+
}, ra = ({
|
|
3590
3599
|
commentRef: e,
|
|
3591
3600
|
user: r,
|
|
3592
3601
|
path: t,
|
|
3593
3602
|
addComment: n
|
|
3594
3603
|
}) => {
|
|
3595
|
-
const [a,
|
|
3604
|
+
const [a, s] = M(!0), [i, c] = M("");
|
|
3596
3605
|
return /* @__PURE__ */ v("div", { className: "comment-form", children: [
|
|
3597
|
-
/* @__PURE__ */
|
|
3598
|
-
|
|
3606
|
+
/* @__PURE__ */ o(
|
|
3607
|
+
Ot,
|
|
3599
3608
|
{
|
|
3600
3609
|
commentRef: e,
|
|
3601
3610
|
captchaToken: i,
|
|
3602
|
-
setIsDisabled:
|
|
3611
|
+
setIsDisabled: s
|
|
3603
3612
|
}
|
|
3604
3613
|
),
|
|
3605
|
-
/* @__PURE__ */
|
|
3606
|
-
|
|
3614
|
+
/* @__PURE__ */ o(
|
|
3615
|
+
At,
|
|
3607
3616
|
{
|
|
3608
3617
|
commentRef: e,
|
|
3609
3618
|
captchaToken: i,
|
|
3610
3619
|
setCaptchaToken: c,
|
|
3611
|
-
children: /* @__PURE__ */
|
|
3620
|
+
children: /* @__PURE__ */ o(
|
|
3612
3621
|
$t,
|
|
3613
3622
|
{
|
|
3614
3623
|
onClick: async (d) => {
|
|
3615
3624
|
if (a) return;
|
|
3616
|
-
const l = await
|
|
3625
|
+
const l = await Ut({
|
|
3617
3626
|
path: t,
|
|
3618
3627
|
ref: e,
|
|
3619
3628
|
captchaToken: i,
|
|
@@ -3621,8 +3630,8 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3621
3630
|
user: r,
|
|
3622
3631
|
addComment: n
|
|
3623
3632
|
});
|
|
3624
|
-
return l && typeof l == "number" ? (e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${ue}`),
|
|
3625
|
-
e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${ue}`),
|
|
3633
|
+
return l && typeof l == "number" ? (e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${ue}`), s(!0), setTimeout(() => {
|
|
3634
|
+
e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${ue}`), s(!0);
|
|
3626
3635
|
}, l), !0) : !1;
|
|
3627
3636
|
},
|
|
3628
3637
|
isDisabled: a
|
|
@@ -3631,15 +3640,15 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3631
3640
|
}
|
|
3632
3641
|
)
|
|
3633
3642
|
] });
|
|
3634
|
-
}, { PUBLIC_PUBLICATION_ID:
|
|
3643
|
+
}, { PUBLIC_PUBLICATION_ID: na, PUBLIC_X_SECURITY_TOKEN: aa } = q(), gt = na ?? "", oa = ({
|
|
3635
3644
|
isAuthenticated: e,
|
|
3636
3645
|
path: r,
|
|
3637
3646
|
user: t,
|
|
3638
3647
|
handleLogout: n
|
|
3639
3648
|
}) => {
|
|
3640
|
-
const a = r.replaceAll("/", "|"), [
|
|
3649
|
+
const a = r.replaceAll("/", "|"), [s, i] = M(
|
|
3641
3650
|
void 0
|
|
3642
|
-
), [c, d] = M(""), { comments: l, setComments: p } =
|
|
3651
|
+
), [c, d] = M(""), { comments: l, setComments: p } = Jn(a), [u, m] = ae.useState(!1), h = ae.useRef(null), w = (f) => {
|
|
3643
3652
|
d(c === f ? "" : f);
|
|
3644
3653
|
}, x = (f) => {
|
|
3645
3654
|
p(
|
|
@@ -3657,15 +3666,15 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3657
3666
|
m(!0);
|
|
3658
3667
|
const B = f.id;
|
|
3659
3668
|
try {
|
|
3660
|
-
const L = await
|
|
3661
|
-
publication:
|
|
3669
|
+
const L = await Je({
|
|
3670
|
+
publication: gt,
|
|
3662
3671
|
path: a ?? "",
|
|
3663
3672
|
size: 5,
|
|
3664
3673
|
sizereply: 2,
|
|
3665
3674
|
id: void 0,
|
|
3666
3675
|
lastid: B,
|
|
3667
3676
|
state: "5,6",
|
|
3668
|
-
apiToken:
|
|
3677
|
+
apiToken: aa
|
|
3669
3678
|
});
|
|
3670
3679
|
p({
|
|
3671
3680
|
morecomment: L.morecomment ?? !1,
|
|
@@ -3674,20 +3683,20 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3674
3683
|
} catch (L) {
|
|
3675
3684
|
throw m(!1), new Error(`Error al obtener comentarios: ${L}`);
|
|
3676
3685
|
}
|
|
3677
|
-
}, E = l?.comments && l.comments.length > 0, N = E ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", T = /* @__PURE__ */
|
|
3678
|
-
return /* @__PURE__ */ v(
|
|
3679
|
-
/* @__PURE__ */
|
|
3686
|
+
}, E = l?.comments && l.comments.length > 0, N = E ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", T = /* @__PURE__ */ o("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ o(oe, {}) });
|
|
3687
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
3688
|
+
/* @__PURE__ */ o("div", { className: "comments-container", children: /* @__PURE__ */ o(Kt, { title: E || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ v(H, { children: [
|
|
3680
3689
|
e && t && /* @__PURE__ */ v("div", { className: "comments-header", children: [
|
|
3681
|
-
/* @__PURE__ */
|
|
3682
|
-
|
|
3690
|
+
/* @__PURE__ */ o(
|
|
3691
|
+
Ir,
|
|
3683
3692
|
{
|
|
3684
3693
|
user: t,
|
|
3685
3694
|
handleLogout: n,
|
|
3686
3695
|
message: N
|
|
3687
3696
|
}
|
|
3688
3697
|
),
|
|
3689
|
-
/* @__PURE__ */
|
|
3690
|
-
|
|
3698
|
+
/* @__PURE__ */ o(
|
|
3699
|
+
ra,
|
|
3691
3700
|
{
|
|
3692
3701
|
commentRef: h,
|
|
3693
3702
|
user: t,
|
|
@@ -3702,8 +3711,8 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3702
3711
|
className: "comments-list",
|
|
3703
3712
|
"data-isauthenticated": `${e}`,
|
|
3704
3713
|
children: [
|
|
3705
|
-
l.comments.map((f) => /* @__PURE__ */
|
|
3706
|
-
|
|
3714
|
+
l.comments.map((f) => /* @__PURE__ */ o(
|
|
3715
|
+
ta,
|
|
3707
3716
|
{
|
|
3708
3717
|
comment: f,
|
|
3709
3718
|
replyingTo: c,
|
|
@@ -3718,7 +3727,7 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3718
3727
|
]
|
|
3719
3728
|
}
|
|
3720
3729
|
) : null : T,
|
|
3721
|
-
l?.morecomment && !u && /* @__PURE__ */
|
|
3730
|
+
l?.morecomment && !u && /* @__PURE__ */ o(
|
|
3722
3731
|
"button",
|
|
3723
3732
|
{
|
|
3724
3733
|
className: "comment-replies-button",
|
|
@@ -3727,18 +3736,18 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3727
3736
|
}
|
|
3728
3737
|
)
|
|
3729
3738
|
] }) }) }),
|
|
3730
|
-
/* @__PURE__ */
|
|
3731
|
-
|
|
3739
|
+
/* @__PURE__ */ o(
|
|
3740
|
+
Yn,
|
|
3732
3741
|
{
|
|
3733
3742
|
username: t?.username ?? void 0,
|
|
3734
|
-
publication:
|
|
3735
|
-
commentId:
|
|
3736
|
-
isOpen:
|
|
3743
|
+
publication: gt,
|
|
3744
|
+
commentId: s,
|
|
3745
|
+
isOpen: s !== void 0,
|
|
3737
3746
|
onClose: () => i(void 0)
|
|
3738
3747
|
}
|
|
3739
3748
|
)
|
|
3740
3749
|
] });
|
|
3741
|
-
},
|
|
3750
|
+
}, Mt = async (e, r) => {
|
|
3742
3751
|
if (!e) throw new Error("No action provided");
|
|
3743
3752
|
if (!r) throw new Error("No site key provided");
|
|
3744
3753
|
const t = window.grecaptcha;
|
|
@@ -3746,18 +3755,18 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3746
3755
|
return new Promise((n, a) => {
|
|
3747
3756
|
t.enterprise.ready(async () => {
|
|
3748
3757
|
try {
|
|
3749
|
-
const
|
|
3758
|
+
const s = await t.enterprise.execute(r, {
|
|
3750
3759
|
action: e
|
|
3751
3760
|
});
|
|
3752
|
-
if (!
|
|
3761
|
+
if (!s)
|
|
3753
3762
|
throw new Error("Captcha token no generado");
|
|
3754
|
-
n(
|
|
3755
|
-
} catch (
|
|
3756
|
-
a(
|
|
3763
|
+
n(s);
|
|
3764
|
+
} catch (s) {
|
|
3765
|
+
a(s);
|
|
3757
3766
|
}
|
|
3758
3767
|
});
|
|
3759
3768
|
});
|
|
3760
|
-
},
|
|
3769
|
+
}, yt = {
|
|
3761
3770
|
email: { label: "Email", required: !0 },
|
|
3762
3771
|
given_name: { label: "Nombre", required: !0 },
|
|
3763
3772
|
family_name: { label: "Apellido", required: !0 },
|
|
@@ -3785,15 +3794,15 @@ const { PUBLIC_PUBLICATION_ID: Yn } = H(), Wn = Yn, Gn = (e) => {
|
|
|
3785
3794
|
test: (e) => /[^A-Za-z0-9]/.test(e)
|
|
3786
3795
|
}
|
|
3787
3796
|
];
|
|
3788
|
-
function
|
|
3789
|
-
const [t, n] = M({}), [a,
|
|
3797
|
+
function sa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
3798
|
+
const [t, n] = M({}), [a, s] = M(!1), [i, c] = M(!1), [d, l] = M(null), [p, u] = M(
|
|
3790
3799
|
"register"
|
|
3791
3800
|
), m = (b, C) => {
|
|
3792
3801
|
n((E) => ({ ...E, [b]: C }));
|
|
3793
3802
|
}, h = async (b) => {
|
|
3794
3803
|
b.preventDefault(), l(null), c(!0);
|
|
3795
3804
|
try {
|
|
3796
|
-
const C = Object.keys(
|
|
3805
|
+
const C = Object.keys(yt).filter((L) => !["username", "password", "confirmPassword"].includes(L)).map((L) => ({ Name: L, Value: t[L] }));
|
|
3797
3806
|
if (C.some((L) => {
|
|
3798
3807
|
if (!L.Value || L.Value.trim() === "") return !0;
|
|
3799
3808
|
}))
|
|
@@ -3811,7 +3820,7 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3811
3820
|
}
|
|
3812
3821
|
const T = Math.floor(Date.now() / 1e3);
|
|
3813
3822
|
C.push({ Name: "updated_at", Value: String(T) });
|
|
3814
|
-
const f = await
|
|
3823
|
+
const f = await Mt(
|
|
3815
3824
|
"comment_register",
|
|
3816
3825
|
""
|
|
3817
3826
|
);
|
|
@@ -3870,10 +3879,10 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3870
3879
|
c(!1);
|
|
3871
3880
|
}
|
|
3872
3881
|
}, x = t.password || "";
|
|
3873
|
-
return /* @__PURE__ */ v(
|
|
3874
|
-
p === "register" && /* @__PURE__ */ v(
|
|
3882
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
3883
|
+
p === "register" && /* @__PURE__ */ v(H, { children: [
|
|
3875
3884
|
/* @__PURE__ */ v("button", { onClick: r, className: y.google, children: [
|
|
3876
|
-
/* @__PURE__ */
|
|
3885
|
+
/* @__PURE__ */ o(
|
|
3877
3886
|
"img",
|
|
3878
3887
|
{
|
|
3879
3888
|
src: "https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",
|
|
@@ -3881,9 +3890,9 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3881
3890
|
className: y.googleIcon
|
|
3882
3891
|
}
|
|
3883
3892
|
),
|
|
3884
|
-
/* @__PURE__ */
|
|
3893
|
+
/* @__PURE__ */ o("span", { children: "Continuar con Google" })
|
|
3885
3894
|
] }),
|
|
3886
|
-
/* @__PURE__ */
|
|
3895
|
+
/* @__PURE__ */ o("div", { className: y.divider, children: /* @__PURE__ */ o("span", { children: "o" }) }),
|
|
3887
3896
|
/* @__PURE__ */ v(
|
|
3888
3897
|
"form",
|
|
3889
3898
|
{
|
|
@@ -3891,9 +3900,9 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3891
3900
|
className: y.form,
|
|
3892
3901
|
"data-error": d ? "true" : "false",
|
|
3893
3902
|
children: [
|
|
3894
|
-
/* @__PURE__ */
|
|
3895
|
-
/* @__PURE__ */
|
|
3896
|
-
/* @__PURE__ */
|
|
3903
|
+
/* @__PURE__ */ o("ul", { className: y.formUl, children: Object.entries(yt).map(([b, { label: C }]) => /* @__PURE__ */ v("div", { className: y.field, children: [
|
|
3904
|
+
/* @__PURE__ */ o("label", { className: y.label, children: C }),
|
|
3905
|
+
/* @__PURE__ */ o(
|
|
3897
3906
|
"input",
|
|
3898
3907
|
{
|
|
3899
3908
|
type: b.toLowerCase().includes("password") ? a ? "text" : "password" : b === "birthdate" ? "date" : b === "email" ? "email" : b === "phone_number" ? "tel" : "text",
|
|
@@ -3904,31 +3913,31 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3904
3913
|
placeholder: ""
|
|
3905
3914
|
}
|
|
3906
3915
|
),
|
|
3907
|
-
b === "password" && /* @__PURE__ */
|
|
3916
|
+
b === "password" && /* @__PURE__ */ o("div", { className: y.passwordChecker, children: Ee.map((E, N) => {
|
|
3908
3917
|
const T = E.test(x);
|
|
3909
3918
|
return /* @__PURE__ */ v(
|
|
3910
3919
|
"div",
|
|
3911
3920
|
{
|
|
3912
3921
|
className: T ? y.valid : y.invalid,
|
|
3913
3922
|
children: [
|
|
3914
|
-
/* @__PURE__ */
|
|
3915
|
-
/* @__PURE__ */
|
|
3923
|
+
/* @__PURE__ */ o("div", { children: T ? "✔" : "○" }),
|
|
3924
|
+
/* @__PURE__ */ o("div", { children: E.label })
|
|
3916
3925
|
]
|
|
3917
3926
|
},
|
|
3918
3927
|
N
|
|
3919
3928
|
);
|
|
3920
3929
|
}) }),
|
|
3921
3930
|
b === "confirmPassword" && /* @__PURE__ */ v("div", { className: y.checkboxRow, children: [
|
|
3922
|
-
/* @__PURE__ */
|
|
3931
|
+
/* @__PURE__ */ o(
|
|
3923
3932
|
"input",
|
|
3924
3933
|
{
|
|
3925
3934
|
id: "showPasswordRegister",
|
|
3926
3935
|
type: "checkbox",
|
|
3927
3936
|
checked: a,
|
|
3928
|
-
onChange: (E) =>
|
|
3937
|
+
onChange: (E) => s(E.target.checked)
|
|
3929
3938
|
}
|
|
3930
3939
|
),
|
|
3931
|
-
/* @__PURE__ */
|
|
3940
|
+
/* @__PURE__ */ o(
|
|
3932
3941
|
"label",
|
|
3933
3942
|
{
|
|
3934
3943
|
htmlFor: "showPasswordRegister",
|
|
@@ -3938,13 +3947,13 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3938
3947
|
)
|
|
3939
3948
|
] })
|
|
3940
3949
|
] }, b)) }),
|
|
3941
|
-
d && /* @__PURE__ */
|
|
3950
|
+
d && /* @__PURE__ */ o("p", { className: y.error, children: d }),
|
|
3942
3951
|
/* @__PURE__ */ v("p", { className: y.terms, children: [
|
|
3943
3952
|
"Al continuar, confirmo que he leído y aceptado los",
|
|
3944
|
-
/* @__PURE__ */
|
|
3953
|
+
/* @__PURE__ */ o("a", { href: "/pages/politicas-de-privacidad.html", target: "_blank", children: "Términos y Condiciones" }),
|
|
3945
3954
|
"de nuestra comunidad"
|
|
3946
3955
|
] }),
|
|
3947
|
-
/* @__PURE__ */
|
|
3956
|
+
/* @__PURE__ */ o("button", { type: "submit", className: y.primary, disabled: i, children: i ? /* @__PURE__ */ o(oe, {}) : "Crear cuenta" })
|
|
3948
3957
|
]
|
|
3949
3958
|
}
|
|
3950
3959
|
)
|
|
@@ -3957,8 +3966,8 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3957
3966
|
"data-error": d ? "true" : "false",
|
|
3958
3967
|
children: [
|
|
3959
3968
|
/* @__PURE__ */ v("div", { className: y.field, children: [
|
|
3960
|
-
/* @__PURE__ */
|
|
3961
|
-
/* @__PURE__ */
|
|
3969
|
+
/* @__PURE__ */ o("label", { className: y.label, children: "Código de verificación" }),
|
|
3970
|
+
/* @__PURE__ */ o(
|
|
3962
3971
|
"input",
|
|
3963
3972
|
{
|
|
3964
3973
|
type: "text",
|
|
@@ -3970,25 +3979,25 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3970
3979
|
}
|
|
3971
3980
|
)
|
|
3972
3981
|
] }),
|
|
3973
|
-
d && /* @__PURE__ */
|
|
3974
|
-
/* @__PURE__ */
|
|
3982
|
+
d && /* @__PURE__ */ o("p", { className: y.error, children: d }),
|
|
3983
|
+
/* @__PURE__ */ o("button", { type: "submit", className: y.primary, disabled: i, children: i ? /* @__PURE__ */ o(oe, {}) : "Confirmar cuenta" }),
|
|
3975
3984
|
/* @__PURE__ */ v("p", { className: y.switch, children: [
|
|
3976
3985
|
"¿Ya confirmaste antes?",
|
|
3977
|
-
/* @__PURE__ */
|
|
3986
|
+
/* @__PURE__ */ o("button", { type: "button", onClick: e, children: "Iniciar sesión" })
|
|
3978
3987
|
] })
|
|
3979
3988
|
]
|
|
3980
3989
|
}
|
|
3981
3990
|
),
|
|
3982
3991
|
p === "success" && /* @__PURE__ */ v("form", { className: y.form, children: [
|
|
3983
3992
|
/* @__PURE__ */ v("div", { className: y.successContainer, children: [
|
|
3984
|
-
/* @__PURE__ */
|
|
3993
|
+
/* @__PURE__ */ o("div", { className: y.thumbsUp, children: /* @__PURE__ */ o(
|
|
3985
3994
|
"svg",
|
|
3986
3995
|
{
|
|
3987
3996
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3988
3997
|
width: 132,
|
|
3989
3998
|
height: 120,
|
|
3990
3999
|
fill: "none",
|
|
3991
|
-
children: /* @__PURE__ */
|
|
4000
|
+
children: /* @__PURE__ */ o(
|
|
3992
4001
|
"path",
|
|
3993
4002
|
{
|
|
3994
4003
|
fill: "#0073BE",
|
|
@@ -3998,28 +4007,28 @@ function aa({ goToLogin: e, handleGoogleLogin: r }) {
|
|
|
3998
4007
|
}
|
|
3999
4008
|
) }),
|
|
4000
4009
|
/* @__PURE__ */ v("div", { className: y.successMessage, children: [
|
|
4001
|
-
/* @__PURE__ */
|
|
4002
|
-
/* @__PURE__ */
|
|
4010
|
+
/* @__PURE__ */ o("p", { children: "Confirmación completa." }),
|
|
4011
|
+
/* @__PURE__ */ o("p", { children: "Ya eres parte de la comunidad!" })
|
|
4003
4012
|
] })
|
|
4004
4013
|
] }),
|
|
4005
|
-
/* @__PURE__ */
|
|
4014
|
+
/* @__PURE__ */ o("button", { onClick: e, className: y.primary, children: "Iniciar sesión" })
|
|
4006
4015
|
] }),
|
|
4007
4016
|
p === "register" && /* @__PURE__ */ v("p", { className: y.switch, children: [
|
|
4008
4017
|
"¿Ya tenés cuenta?",
|
|
4009
|
-
/* @__PURE__ */
|
|
4018
|
+
/* @__PURE__ */ o("button", { type: "button", onClick: e, children: "Iniciar sesión" })
|
|
4010
4019
|
] })
|
|
4011
4020
|
] });
|
|
4012
4021
|
}
|
|
4013
|
-
function
|
|
4022
|
+
function ia({
|
|
4014
4023
|
onClose: e,
|
|
4015
4024
|
checkAuth: r,
|
|
4016
4025
|
goToRegister: t,
|
|
4017
4026
|
handleGoogleLogin: n
|
|
4018
4027
|
}) {
|
|
4019
|
-
const [a,
|
|
4020
|
-
return /* @__PURE__ */ v(
|
|
4021
|
-
a === "login" && /* @__PURE__ */
|
|
4022
|
-
|
|
4028
|
+
const [a, s] = M("login"), [i, c] = M(""), [d, l] = M(""), [p, u] = M(""), [m, h] = M(""), [w, x] = M(""), [b, C] = M(!1), [E, N] = M(!1), [T, f] = M(null), { CAPTCHA_KEY: B } = q();
|
|
4029
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
4030
|
+
a === "login" && /* @__PURE__ */ o(
|
|
4031
|
+
ca,
|
|
4023
4032
|
{
|
|
4024
4033
|
email: i,
|
|
4025
4034
|
password: d,
|
|
@@ -4033,35 +4042,35 @@ function oa({
|
|
|
4033
4042
|
if (!E) {
|
|
4034
4043
|
J.preventDefault(), f(null), N(!0);
|
|
4035
4044
|
try {
|
|
4036
|
-
const
|
|
4037
|
-
if (!
|
|
4045
|
+
const V = await Mt("comment_login", B || "");
|
|
4046
|
+
if (!V) throw new Error("Captcha token no generado");
|
|
4038
4047
|
const Y = await fetch("/api/auth/login-password", {
|
|
4039
4048
|
method: "POST",
|
|
4040
4049
|
headers: { "Content-Type": "application/json" },
|
|
4041
4050
|
credentials: "include",
|
|
4042
|
-
body: JSON.stringify({ email: i, password: d, token:
|
|
4051
|
+
body: JSON.stringify({ email: i, password: d, token: V })
|
|
4043
4052
|
});
|
|
4044
4053
|
if (!Y.ok) {
|
|
4045
4054
|
const se = await Y.json().catch(() => ({}));
|
|
4046
4055
|
throw new Error(se?.error || "Ha ocurrido un error");
|
|
4047
4056
|
}
|
|
4048
4057
|
e(), await r();
|
|
4049
|
-
} catch (
|
|
4050
|
-
f(
|
|
4058
|
+
} catch (V) {
|
|
4059
|
+
f(V?.message || "Error inesperado");
|
|
4051
4060
|
} finally {
|
|
4052
4061
|
N(!1);
|
|
4053
4062
|
}
|
|
4054
4063
|
}
|
|
4055
4064
|
},
|
|
4056
4065
|
onForgot: () => {
|
|
4057
|
-
f(null),
|
|
4066
|
+
f(null), s("forgot");
|
|
4058
4067
|
},
|
|
4059
4068
|
onRegister: t,
|
|
4060
4069
|
handleGoogleLogin: n
|
|
4061
4070
|
}
|
|
4062
4071
|
),
|
|
4063
|
-
a === "forgot" && /* @__PURE__ */
|
|
4064
|
-
|
|
4072
|
+
a === "forgot" && /* @__PURE__ */ o(
|
|
4073
|
+
la,
|
|
4065
4074
|
{
|
|
4066
4075
|
email: i,
|
|
4067
4076
|
setEmail: c,
|
|
@@ -4071,30 +4080,30 @@ function oa({
|
|
|
4071
4080
|
if (!E) {
|
|
4072
4081
|
J.preventDefault(), f(null), N(!0);
|
|
4073
4082
|
try {
|
|
4074
|
-
const
|
|
4083
|
+
const V = await fetch("/api/auth/forgot-password", {
|
|
4075
4084
|
method: "POST",
|
|
4076
4085
|
headers: { "Content-Type": "application/json" },
|
|
4077
4086
|
body: JSON.stringify({ email: i })
|
|
4078
4087
|
});
|
|
4079
|
-
if (!
|
|
4080
|
-
const Y = await
|
|
4088
|
+
if (!V.ok) {
|
|
4089
|
+
const Y = await V.json().catch(() => ({}));
|
|
4081
4090
|
throw new Error(Y?.error || "Error al enviar código");
|
|
4082
4091
|
}
|
|
4083
|
-
l(""),
|
|
4084
|
-
} catch (
|
|
4085
|
-
f(
|
|
4092
|
+
l(""), s("changePassword");
|
|
4093
|
+
} catch (V) {
|
|
4094
|
+
f(V?.message || "Error inesperado");
|
|
4086
4095
|
} finally {
|
|
4087
4096
|
N(!1);
|
|
4088
4097
|
}
|
|
4089
4098
|
}
|
|
4090
4099
|
},
|
|
4091
4100
|
onBack: () => {
|
|
4092
|
-
f(null),
|
|
4101
|
+
f(null), s("login");
|
|
4093
4102
|
}
|
|
4094
4103
|
}
|
|
4095
4104
|
),
|
|
4096
|
-
a === "changePassword" && /* @__PURE__ */
|
|
4097
|
-
|
|
4105
|
+
a === "changePassword" && /* @__PURE__ */ o(
|
|
4106
|
+
da,
|
|
4098
4107
|
{
|
|
4099
4108
|
email: i,
|
|
4100
4109
|
confirmationCode: p,
|
|
@@ -4130,7 +4139,7 @@ function oa({
|
|
|
4130
4139
|
const se = await Y.json().catch(() => ({}));
|
|
4131
4140
|
throw new Error(se?.error || "Error al cambiar contraseña");
|
|
4132
4141
|
}
|
|
4133
|
-
|
|
4142
|
+
s("feedback");
|
|
4134
4143
|
} catch (Y) {
|
|
4135
4144
|
f(Y?.message || "Error inesperado");
|
|
4136
4145
|
} finally {
|
|
@@ -4138,27 +4147,27 @@ function oa({
|
|
|
4138
4147
|
}
|
|
4139
4148
|
},
|
|
4140
4149
|
onBack: () => {
|
|
4141
|
-
f(null),
|
|
4150
|
+
f(null), s("forgot");
|
|
4142
4151
|
}
|
|
4143
4152
|
}
|
|
4144
4153
|
),
|
|
4145
|
-
a === "feedback" && /* @__PURE__ */
|
|
4146
|
-
|
|
4154
|
+
a === "feedback" && /* @__PURE__ */ o(
|
|
4155
|
+
ua,
|
|
4147
4156
|
{
|
|
4148
4157
|
onBackToLogin: () => {
|
|
4149
|
-
f(null),
|
|
4158
|
+
f(null), s("login");
|
|
4150
4159
|
}
|
|
4151
4160
|
}
|
|
4152
4161
|
)
|
|
4153
4162
|
] });
|
|
4154
4163
|
}
|
|
4155
|
-
function
|
|
4164
|
+
function ca({
|
|
4156
4165
|
email: e,
|
|
4157
4166
|
password: r,
|
|
4158
4167
|
showPassword: t,
|
|
4159
4168
|
loading: n,
|
|
4160
4169
|
error: a,
|
|
4161
|
-
setEmail:
|
|
4170
|
+
setEmail: s,
|
|
4162
4171
|
setPassword: i,
|
|
4163
4172
|
setShowPassword: c,
|
|
4164
4173
|
onSubmit: d,
|
|
@@ -4166,9 +4175,9 @@ function sa({
|
|
|
4166
4175
|
onRegister: p,
|
|
4167
4176
|
handleGoogleLogin: u
|
|
4168
4177
|
}) {
|
|
4169
|
-
return /* @__PURE__ */ v(
|
|
4178
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
4170
4179
|
/* @__PURE__ */ v("button", { onClick: u, className: y.google, children: [
|
|
4171
|
-
/* @__PURE__ */
|
|
4180
|
+
/* @__PURE__ */ o(
|
|
4172
4181
|
"img",
|
|
4173
4182
|
{
|
|
4174
4183
|
src: "https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",
|
|
@@ -4176,9 +4185,9 @@ function sa({
|
|
|
4176
4185
|
className: y.googleIcon
|
|
4177
4186
|
}
|
|
4178
4187
|
),
|
|
4179
|
-
/* @__PURE__ */
|
|
4188
|
+
/* @__PURE__ */ o("span", { children: "Continuar con Google" })
|
|
4180
4189
|
] }),
|
|
4181
|
-
/* @__PURE__ */
|
|
4190
|
+
/* @__PURE__ */ o("div", { className: y.divider, children: /* @__PURE__ */ o("span", { children: "o" }) }),
|
|
4182
4191
|
/* @__PURE__ */ v(
|
|
4183
4192
|
"form",
|
|
4184
4193
|
{
|
|
@@ -4187,21 +4196,21 @@ function sa({
|
|
|
4187
4196
|
"data-error": a ? "true" : "false",
|
|
4188
4197
|
children: [
|
|
4189
4198
|
/* @__PURE__ */ v("div", { className: y.field, children: [
|
|
4190
|
-
/* @__PURE__ */
|
|
4191
|
-
/* @__PURE__ */
|
|
4199
|
+
/* @__PURE__ */ o("label", { className: y.label, children: "Email" }),
|
|
4200
|
+
/* @__PURE__ */ o(
|
|
4192
4201
|
"input",
|
|
4193
4202
|
{
|
|
4194
4203
|
type: "email",
|
|
4195
4204
|
value: e,
|
|
4196
|
-
onChange: (m) =>
|
|
4205
|
+
onChange: (m) => s(m.target.value),
|
|
4197
4206
|
className: y.input,
|
|
4198
4207
|
placeholder: ""
|
|
4199
4208
|
}
|
|
4200
4209
|
)
|
|
4201
4210
|
] }),
|
|
4202
4211
|
/* @__PURE__ */ v("div", { className: y.field, children: [
|
|
4203
|
-
/* @__PURE__ */
|
|
4204
|
-
/* @__PURE__ */
|
|
4212
|
+
/* @__PURE__ */ o("label", { className: y.label, children: "Contraseña" }),
|
|
4213
|
+
/* @__PURE__ */ o(
|
|
4205
4214
|
"input",
|
|
4206
4215
|
{
|
|
4207
4216
|
type: t ? "text" : "password",
|
|
@@ -4212,7 +4221,7 @@ function sa({
|
|
|
4212
4221
|
}
|
|
4213
4222
|
),
|
|
4214
4223
|
/* @__PURE__ */ v("div", { className: y.checkboxRow, children: [
|
|
4215
|
-
/* @__PURE__ */
|
|
4224
|
+
/* @__PURE__ */ o(
|
|
4216
4225
|
"input",
|
|
4217
4226
|
{
|
|
4218
4227
|
id: "showPasswordLogin",
|
|
@@ -4221,19 +4230,19 @@ function sa({
|
|
|
4221
4230
|
onChange: (m) => c(m.target.checked)
|
|
4222
4231
|
}
|
|
4223
4232
|
),
|
|
4224
|
-
/* @__PURE__ */
|
|
4233
|
+
/* @__PURE__ */ o("label", { htmlFor: "showPasswordLogin", className: y.checkboxLabel, children: "Mostrar contraseña" })
|
|
4225
4234
|
] })
|
|
4226
4235
|
] }),
|
|
4227
|
-
a && /* @__PURE__ */
|
|
4228
|
-
/* @__PURE__ */
|
|
4236
|
+
a && /* @__PURE__ */ o("p", { className: y.error, children: a }),
|
|
4237
|
+
/* @__PURE__ */ o("button", { type: "submit", className: y.primary, disabled: n, children: n ? /* @__PURE__ */ o(oe, {}) : "Iniciar Sesión" })
|
|
4229
4238
|
]
|
|
4230
4239
|
}
|
|
4231
4240
|
),
|
|
4232
4241
|
/* @__PURE__ */ v("p", { className: y.switch, children: [
|
|
4233
4242
|
"¿No tenés cuenta?",
|
|
4234
|
-
/* @__PURE__ */
|
|
4243
|
+
/* @__PURE__ */ o("button", { type: "button", onClick: p, children: "Registrate" })
|
|
4235
4244
|
] }),
|
|
4236
|
-
/* @__PURE__ */
|
|
4245
|
+
/* @__PURE__ */ o(
|
|
4237
4246
|
"button",
|
|
4238
4247
|
{
|
|
4239
4248
|
type: "button",
|
|
@@ -4244,13 +4253,13 @@ function sa({
|
|
|
4244
4253
|
)
|
|
4245
4254
|
] });
|
|
4246
4255
|
}
|
|
4247
|
-
function
|
|
4256
|
+
function la({
|
|
4248
4257
|
email: e,
|
|
4249
4258
|
setEmail: r,
|
|
4250
4259
|
loading: t,
|
|
4251
4260
|
error: n,
|
|
4252
4261
|
onSubmit: a,
|
|
4253
|
-
onBack:
|
|
4262
|
+
onBack: s
|
|
4254
4263
|
}) {
|
|
4255
4264
|
return /* @__PURE__ */ v(
|
|
4256
4265
|
"form",
|
|
@@ -4259,10 +4268,10 @@ function ia({
|
|
|
4259
4268
|
className: y.form,
|
|
4260
4269
|
"data-error": n ? "true" : "false",
|
|
4261
4270
|
children: [
|
|
4262
|
-
/* @__PURE__ */
|
|
4271
|
+
/* @__PURE__ */ o("p", { className: y.message, children: "Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña." }),
|
|
4263
4272
|
/* @__PURE__ */ v("div", { className: y.field, children: [
|
|
4264
|
-
/* @__PURE__ */
|
|
4265
|
-
/* @__PURE__ */
|
|
4273
|
+
/* @__PURE__ */ o("label", { className: y.label, children: "Email" }),
|
|
4274
|
+
/* @__PURE__ */ o(
|
|
4266
4275
|
"input",
|
|
4267
4276
|
{
|
|
4268
4277
|
type: "email",
|
|
@@ -4274,20 +4283,20 @@ function ia({
|
|
|
4274
4283
|
}
|
|
4275
4284
|
)
|
|
4276
4285
|
] }),
|
|
4277
|
-
n && /* @__PURE__ */
|
|
4278
|
-
/* @__PURE__ */
|
|
4279
|
-
/* @__PURE__ */
|
|
4286
|
+
n && /* @__PURE__ */ o("p", { className: y.error, children: n }),
|
|
4287
|
+
/* @__PURE__ */ o("button", { type: "submit", className: y.primary, disabled: t, children: t ? /* @__PURE__ */ o(oe, {}) : "Enviar código" }),
|
|
4288
|
+
/* @__PURE__ */ o("p", { className: y.switch, children: /* @__PURE__ */ o("button", { type: "button", onClick: s, children: "Volver" }) })
|
|
4280
4289
|
]
|
|
4281
4290
|
}
|
|
4282
4291
|
);
|
|
4283
4292
|
}
|
|
4284
|
-
function
|
|
4293
|
+
function da({
|
|
4285
4294
|
email: e,
|
|
4286
4295
|
confirmationCode: r,
|
|
4287
4296
|
newPassword: t,
|
|
4288
4297
|
confirmNewPassword: n,
|
|
4289
4298
|
showPassword: a,
|
|
4290
|
-
loading:
|
|
4299
|
+
loading: s,
|
|
4291
4300
|
error: i,
|
|
4292
4301
|
setConfirmationCode: c,
|
|
4293
4302
|
setNewPassword: d,
|
|
@@ -4305,13 +4314,13 @@ function ca({
|
|
|
4305
4314
|
children: [
|
|
4306
4315
|
/* @__PURE__ */ v("p", { className: y.message, children: [
|
|
4307
4316
|
"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",
|
|
4308
|
-
|
|
4317
|
+
Xr(e),
|
|
4309
4318
|
". Ingrese el código y la contraseña nueva."
|
|
4310
4319
|
] }),
|
|
4311
4320
|
/* @__PURE__ */ v("ul", { className: y.formUl, children: [
|
|
4312
4321
|
/* @__PURE__ */ v("div", { className: y.field, children: [
|
|
4313
|
-
/* @__PURE__ */
|
|
4314
|
-
/* @__PURE__ */
|
|
4322
|
+
/* @__PURE__ */ o("label", { className: y.label, children: "Código de verificación" }),
|
|
4323
|
+
/* @__PURE__ */ o(
|
|
4315
4324
|
"input",
|
|
4316
4325
|
{
|
|
4317
4326
|
type: "text",
|
|
@@ -4323,8 +4332,8 @@ function ca({
|
|
|
4323
4332
|
)
|
|
4324
4333
|
] }),
|
|
4325
4334
|
/* @__PURE__ */ v("div", { className: y.field, children: [
|
|
4326
|
-
/* @__PURE__ */
|
|
4327
|
-
/* @__PURE__ */
|
|
4335
|
+
/* @__PURE__ */ o("label", { className: y.label, children: "Nueva contraseña" }),
|
|
4336
|
+
/* @__PURE__ */ o(
|
|
4328
4337
|
"input",
|
|
4329
4338
|
{
|
|
4330
4339
|
type: a ? "text" : "password",
|
|
@@ -4335,17 +4344,17 @@ function ca({
|
|
|
4335
4344
|
name: "password"
|
|
4336
4345
|
}
|
|
4337
4346
|
),
|
|
4338
|
-
/* @__PURE__ */
|
|
4347
|
+
/* @__PURE__ */ o("div", { className: y.passwordChecker, children: Ee.map((h, w) => {
|
|
4339
4348
|
const x = h.test(t);
|
|
4340
4349
|
return /* @__PURE__ */ v("div", { className: x ? y.valid : y.invalid, children: [
|
|
4341
|
-
/* @__PURE__ */
|
|
4342
|
-
/* @__PURE__ */
|
|
4350
|
+
/* @__PURE__ */ o("div", { children: x ? "✔" : "○" }),
|
|
4351
|
+
/* @__PURE__ */ o("div", { children: h.label })
|
|
4343
4352
|
] }, w);
|
|
4344
4353
|
}) })
|
|
4345
4354
|
] }),
|
|
4346
4355
|
/* @__PURE__ */ v("div", { className: y.field, children: [
|
|
4347
|
-
/* @__PURE__ */
|
|
4348
|
-
/* @__PURE__ */
|
|
4356
|
+
/* @__PURE__ */ o("label", { className: y.label, children: "Confirmar contraseña" }),
|
|
4357
|
+
/* @__PURE__ */ o(
|
|
4349
4358
|
"input",
|
|
4350
4359
|
{
|
|
4351
4360
|
type: a ? "text" : "password",
|
|
@@ -4356,7 +4365,7 @@ function ca({
|
|
|
4356
4365
|
}
|
|
4357
4366
|
),
|
|
4358
4367
|
/* @__PURE__ */ v("div", { className: y.checkboxRow, children: [
|
|
4359
|
-
/* @__PURE__ */
|
|
4368
|
+
/* @__PURE__ */ o(
|
|
4360
4369
|
"input",
|
|
4361
4370
|
{
|
|
4362
4371
|
id: "showPasswordForgot",
|
|
@@ -4365,7 +4374,7 @@ function ca({
|
|
|
4365
4374
|
onChange: (h) => p(h.target.checked)
|
|
4366
4375
|
}
|
|
4367
4376
|
),
|
|
4368
|
-
/* @__PURE__ */
|
|
4377
|
+
/* @__PURE__ */ o(
|
|
4369
4378
|
"label",
|
|
4370
4379
|
{
|
|
4371
4380
|
htmlFor: "showPasswordForgot",
|
|
@@ -4376,41 +4385,41 @@ function ca({
|
|
|
4376
4385
|
] })
|
|
4377
4386
|
] })
|
|
4378
4387
|
] }),
|
|
4379
|
-
i && /* @__PURE__ */
|
|
4380
|
-
/* @__PURE__ */
|
|
4388
|
+
i && /* @__PURE__ */ o("p", { className: y.error, children: i }),
|
|
4389
|
+
/* @__PURE__ */ o(
|
|
4381
4390
|
"button",
|
|
4382
4391
|
{
|
|
4383
4392
|
type: "submit",
|
|
4384
4393
|
className: y.primary,
|
|
4385
|
-
style: { maxWidth:
|
|
4386
|
-
disabled:
|
|
4387
|
-
children:
|
|
4394
|
+
style: { maxWidth: s ? "revert-layer" : "fit-content" },
|
|
4395
|
+
disabled: s,
|
|
4396
|
+
children: s ? /* @__PURE__ */ o(oe, {}) : "Cambiar contraseña"
|
|
4388
4397
|
}
|
|
4389
4398
|
),
|
|
4390
|
-
/* @__PURE__ */
|
|
4399
|
+
/* @__PURE__ */ o("p", { className: y.switch, children: /* @__PURE__ */ o("button", { type: "button", onClick: m, children: "Volver" }) })
|
|
4391
4400
|
]
|
|
4392
4401
|
}
|
|
4393
4402
|
);
|
|
4394
4403
|
}
|
|
4395
|
-
function
|
|
4404
|
+
function ua({ onBackToLogin: e }) {
|
|
4396
4405
|
return /* @__PURE__ */ v("div", { className: y.form, children: [
|
|
4397
|
-
/* @__PURE__ */
|
|
4398
|
-
/* @__PURE__ */
|
|
4406
|
+
/* @__PURE__ */ o("p", { className: y.success, children: "La contraseña fue cambiada con éxito" }),
|
|
4407
|
+
/* @__PURE__ */ o("button", { type: "button", className: y.primary, onClick: e, children: "Iniciar Sesión" })
|
|
4399
4408
|
] });
|
|
4400
4409
|
}
|
|
4401
|
-
function
|
|
4410
|
+
function pa({
|
|
4402
4411
|
loginUrl: e,
|
|
4403
4412
|
onClose: r,
|
|
4404
4413
|
checkAuth: t,
|
|
4405
4414
|
icon: n
|
|
4406
4415
|
}) {
|
|
4407
|
-
const [a,
|
|
4416
|
+
const [a, s] = M("login"), i = async () => {
|
|
4408
4417
|
{
|
|
4409
4418
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" }), localStorage.setItem("cognito-login", "success:" + Date.now()), r(), t();
|
|
4410
4419
|
return;
|
|
4411
4420
|
}
|
|
4412
4421
|
};
|
|
4413
|
-
return /* @__PURE__ */
|
|
4422
|
+
return /* @__PURE__ */ o(
|
|
4414
4423
|
"div",
|
|
4415
4424
|
{
|
|
4416
4425
|
className: y.overlay,
|
|
@@ -4423,62 +4432,62 @@ function da({
|
|
|
4423
4432
|
},
|
|
4424
4433
|
children: /* @__PURE__ */ v("div", { className: y.card, children: [
|
|
4425
4434
|
/* @__PURE__ */ v("header", { className: y.header, children: [
|
|
4426
|
-
/* @__PURE__ */
|
|
4427
|
-
/* @__PURE__ */
|
|
4435
|
+
/* @__PURE__ */ o("div", { className: y.logo, children: n ? n() : null }),
|
|
4436
|
+
/* @__PURE__ */ o(
|
|
4428
4437
|
"button",
|
|
4429
4438
|
{
|
|
4430
4439
|
onClick: r,
|
|
4431
4440
|
className: y.close,
|
|
4432
4441
|
"aria-label": "Cerrar",
|
|
4433
|
-
children: /* @__PURE__ */
|
|
4442
|
+
children: /* @__PURE__ */ o(Ve, {})
|
|
4434
4443
|
}
|
|
4435
4444
|
)
|
|
4436
4445
|
] }),
|
|
4437
|
-
a === "login" && /* @__PURE__ */
|
|
4438
|
-
|
|
4446
|
+
a === "login" && /* @__PURE__ */ o(
|
|
4447
|
+
ia,
|
|
4439
4448
|
{
|
|
4440
4449
|
onClose: r,
|
|
4441
4450
|
checkAuth: t,
|
|
4442
4451
|
handleGoogleLogin: i,
|
|
4443
|
-
goToRegister: () =>
|
|
4452
|
+
goToRegister: () => s("register")
|
|
4444
4453
|
}
|
|
4445
4454
|
),
|
|
4446
|
-
a === "register" && /* @__PURE__ */
|
|
4447
|
-
|
|
4455
|
+
a === "register" && /* @__PURE__ */ o(
|
|
4456
|
+
sa,
|
|
4448
4457
|
{
|
|
4449
4458
|
handleGoogleLogin: i,
|
|
4450
|
-
goToLogin: () =>
|
|
4459
|
+
goToLogin: () => s("login")
|
|
4451
4460
|
}
|
|
4452
4461
|
)
|
|
4453
4462
|
] })
|
|
4454
4463
|
}
|
|
4455
4464
|
);
|
|
4456
4465
|
}
|
|
4457
|
-
function
|
|
4466
|
+
function ma({
|
|
4458
4467
|
isAuthenticated: e,
|
|
4459
4468
|
setIsAuthenticated: r,
|
|
4460
4469
|
loginUrl: t,
|
|
4461
4470
|
user: n,
|
|
4462
4471
|
path: a,
|
|
4463
|
-
checkAuth:
|
|
4472
|
+
checkAuth: s,
|
|
4464
4473
|
icon: i
|
|
4465
4474
|
}) {
|
|
4466
4475
|
const [c, d] = ae.useState(!1);
|
|
4467
|
-
return /* @__PURE__ */ v(
|
|
4468
|
-
c && /* @__PURE__ */
|
|
4469
|
-
|
|
4476
|
+
return /* @__PURE__ */ v(H, { children: [
|
|
4477
|
+
c && /* @__PURE__ */ o(
|
|
4478
|
+
pa,
|
|
4470
4479
|
{
|
|
4471
4480
|
loginUrl: t,
|
|
4472
4481
|
icon: i,
|
|
4473
|
-
checkAuth:
|
|
4482
|
+
checkAuth: s,
|
|
4474
4483
|
onClose: () => {
|
|
4475
4484
|
d(!1);
|
|
4476
4485
|
}
|
|
4477
4486
|
}
|
|
4478
4487
|
),
|
|
4479
4488
|
!e && /* @__PURE__ */ v("div", { className: "auth-container", children: [
|
|
4480
|
-
/* @__PURE__ */
|
|
4481
|
-
/* @__PURE__ */
|
|
4489
|
+
/* @__PURE__ */ o("p", { children: "Sumate a la comunidad para dejar tu comentario" }),
|
|
4490
|
+
/* @__PURE__ */ o(
|
|
4482
4491
|
"a",
|
|
4483
4492
|
{
|
|
4484
4493
|
href: t,
|
|
@@ -4490,8 +4499,8 @@ function ua({
|
|
|
4490
4499
|
}
|
|
4491
4500
|
)
|
|
4492
4501
|
] }),
|
|
4493
|
-
/* @__PURE__ */
|
|
4494
|
-
|
|
4502
|
+
/* @__PURE__ */ o(
|
|
4503
|
+
oa,
|
|
4495
4504
|
{
|
|
4496
4505
|
isAuthenticated: e,
|
|
4497
4506
|
handleLogout: async () => {
|
|
@@ -4506,12 +4515,12 @@ function ua({
|
|
|
4506
4515
|
)
|
|
4507
4516
|
] });
|
|
4508
4517
|
}
|
|
4509
|
-
function
|
|
4518
|
+
function fa({
|
|
4510
4519
|
isVisible: e,
|
|
4511
4520
|
path: r,
|
|
4512
4521
|
icon: t
|
|
4513
4522
|
}) {
|
|
4514
|
-
const [n, a] = M(null), [
|
|
4523
|
+
const [n, a] = M(null), [s, i] = M(null), { COGNITO_AUTH_PREFIX: c } = q(), d = vt(async () => {
|
|
4515
4524
|
if (e) {
|
|
4516
4525
|
if (document.cookie.search(c + "IS_AUTH=true") === -1) {
|
|
4517
4526
|
a(!1), i(null), console.log("user not logged");
|
|
@@ -4528,15 +4537,15 @@ function pa({
|
|
|
4528
4537
|
he(() => {
|
|
4529
4538
|
d();
|
|
4530
4539
|
}, [d, e]), he(() => {
|
|
4531
|
-
if (!
|
|
4540
|
+
if (!s || !e || typeof window > "u") return;
|
|
4532
4541
|
const u = window;
|
|
4533
4542
|
if (typeof u != "function") {
|
|
4534
4543
|
console.warn("gtag no está disponible todavía");
|
|
4535
4544
|
return;
|
|
4536
4545
|
}
|
|
4537
|
-
u.gtag("set", { user_id:
|
|
4538
|
-
}, [
|
|
4539
|
-
const l = "/api/auth/login", p = /* @__PURE__ */
|
|
4546
|
+
u.gtag("set", { user_id: s.username }), console.log("username setted successfully");
|
|
4547
|
+
}, [s, e]);
|
|
4548
|
+
const l = "/api/auth/login", p = /* @__PURE__ */ o(
|
|
4540
4549
|
"div",
|
|
4541
4550
|
{
|
|
4542
4551
|
style: {
|
|
@@ -4546,17 +4555,17 @@ function pa({
|
|
|
4546
4555
|
minHeight: 310,
|
|
4547
4556
|
position: "relative"
|
|
4548
4557
|
},
|
|
4549
|
-
children: /* @__PURE__ */
|
|
4558
|
+
children: /* @__PURE__ */ o(oe, {})
|
|
4550
4559
|
}
|
|
4551
4560
|
);
|
|
4552
|
-
return n === null ? p : e ? /* @__PURE__ */
|
|
4553
|
-
|
|
4561
|
+
return n === null ? p : e ? /* @__PURE__ */ o(
|
|
4562
|
+
ma,
|
|
4554
4563
|
{
|
|
4555
4564
|
icon: t,
|
|
4556
4565
|
isAuthenticated: n,
|
|
4557
4566
|
setIsAuthenticated: a,
|
|
4558
4567
|
loginUrl: l,
|
|
4559
|
-
user:
|
|
4568
|
+
user: s ?? void 0,
|
|
4560
4569
|
checkAuth: d,
|
|
4561
4570
|
path: r
|
|
4562
4571
|
}
|
|
@@ -4568,10 +4577,10 @@ const to = ({
|
|
|
4568
4577
|
section: t,
|
|
4569
4578
|
currentNews: n,
|
|
4570
4579
|
stylesConfig: a,
|
|
4571
|
-
icon:
|
|
4580
|
+
icon: s,
|
|
4572
4581
|
isVisibleDefault: i = !1
|
|
4573
4582
|
}) => {
|
|
4574
|
-
const c =
|
|
4583
|
+
const c = Yt(null), [d, l] = ae.useState(i);
|
|
4575
4584
|
ae.useEffect(() => {
|
|
4576
4585
|
if (i || d) return;
|
|
4577
4586
|
const u = new IntersectionObserver(
|
|
@@ -4586,16 +4595,16 @@ const to = ({
|
|
|
4586
4595
|
return c.current && u.observe(c.current), () => u.disconnect();
|
|
4587
4596
|
}, []);
|
|
4588
4597
|
const p = {
|
|
4589
|
-
comment: /* @__PURE__ */
|
|
4590
|
-
|
|
4598
|
+
comment: /* @__PURE__ */ o(
|
|
4599
|
+
fa,
|
|
4591
4600
|
{
|
|
4592
4601
|
path: r,
|
|
4593
|
-
icon:
|
|
4602
|
+
icon: s,
|
|
4594
4603
|
isVisible: d
|
|
4595
4604
|
}
|
|
4596
4605
|
),
|
|
4597
|
-
more: /* @__PURE__ */
|
|
4598
|
-
|
|
4606
|
+
more: /* @__PURE__ */ o(
|
|
4607
|
+
Pr,
|
|
4599
4608
|
{
|
|
4600
4609
|
section: t,
|
|
4601
4610
|
currentNews: n,
|
|
@@ -4604,7 +4613,7 @@ const to = ({
|
|
|
4604
4613
|
}
|
|
4605
4614
|
)
|
|
4606
4615
|
};
|
|
4607
|
-
return /* @__PURE__ */
|
|
4616
|
+
return /* @__PURE__ */ o(
|
|
4608
4617
|
"div",
|
|
4609
4618
|
{
|
|
4610
4619
|
ref: c,
|
|
@@ -4622,7 +4631,7 @@ async function ro({
|
|
|
4622
4631
|
username: t,
|
|
4623
4632
|
comment: n,
|
|
4624
4633
|
id: a,
|
|
4625
|
-
recaptchaResponse:
|
|
4634
|
+
recaptchaResponse: s,
|
|
4626
4635
|
baseUrl: i,
|
|
4627
4636
|
apiToken: c,
|
|
4628
4637
|
securityToken: d
|
|
@@ -4633,7 +4642,7 @@ async function ro({
|
|
|
4633
4642
|
username: t,
|
|
4634
4643
|
comment: n,
|
|
4635
4644
|
id: a,
|
|
4636
|
-
recaptchaResponse:
|
|
4645
|
+
recaptchaResponse: s
|
|
4637
4646
|
}), !e || !r || !n || !t)
|
|
4638
4647
|
return {
|
|
4639
4648
|
type: "error",
|
|
@@ -4658,7 +4667,7 @@ async function ro({
|
|
|
4658
4667
|
message: "El comentario no puede estar vacío.",
|
|
4659
4668
|
status: 400
|
|
4660
4669
|
};
|
|
4661
|
-
const l = await
|
|
4670
|
+
const l = await Nt(s);
|
|
4662
4671
|
if (console.log("Verifying captcha token...", l), !l)
|
|
4663
4672
|
return {
|
|
4664
4673
|
type: "error",
|
|
@@ -4749,147 +4758,147 @@ const no = async ({
|
|
|
4749
4758
|
if (i.tokenProperties.action !== a)
|
|
4750
4759
|
throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");
|
|
4751
4760
|
return i?.riskAnalysis?.score ?? 0;
|
|
4752
|
-
} catch (
|
|
4753
|
-
throw console.error("Recaptcha verification failed",
|
|
4761
|
+
} catch (s) {
|
|
4762
|
+
throw console.error("Recaptcha verification failed", s), new Error(String(s));
|
|
4754
4763
|
}
|
|
4755
4764
|
};
|
|
4756
4765
|
export {
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4766
|
+
sr as AssetsPreconnect,
|
|
4767
|
+
Wo as AutorComponent,
|
|
4768
|
+
ui as AutorHeader1,
|
|
4769
|
+
mi as AutorHeader2,
|
|
4770
|
+
Ls as BannerAdvertising,
|
|
4771
|
+
Ie as BannerAdvertisingMiddle,
|
|
4772
|
+
Es as CarrouselCSR,
|
|
4773
|
+
Ts as CarrouselIRS,
|
|
4774
|
+
_o as CarruselCard,
|
|
4775
|
+
So as CarruselOpinion,
|
|
4767
4776
|
le as CommonServices,
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4777
|
+
jt as Comscore,
|
|
4778
|
+
Mo as ContactInfoServer,
|
|
4779
|
+
ti as ContactInput,
|
|
4780
|
+
ni as ContactSelect,
|
|
4781
|
+
oi as ContactTextarea,
|
|
4782
|
+
_s as ContentLayout1,
|
|
4783
|
+
Ks as ContentLayoutTema,
|
|
4775
4784
|
Ka as DEBUG_MainSlots,
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4785
|
+
co as DestacadoNoticias,
|
|
4786
|
+
yo as DestacadoVideos,
|
|
4787
|
+
Cr as DynamicBlockServices,
|
|
4788
|
+
hs as DynamicComponents,
|
|
4789
|
+
Le as DynamicMainSlot,
|
|
4790
|
+
us as DynamicSlot,
|
|
4791
|
+
To as EditorialBlock,
|
|
4792
|
+
Qs as ErrorComponent,
|
|
4793
|
+
wr as Font,
|
|
4794
|
+
Ds as Footer,
|
|
4795
|
+
or as FormatAfterScripts,
|
|
4796
|
+
St as FormatScripts,
|
|
4797
|
+
zt as GA4,
|
|
4798
|
+
Bt as GTM,
|
|
4799
|
+
Do as GalleryHeader,
|
|
4791
4800
|
Ja as GenerateBody,
|
|
4792
4801
|
Za as GenerateHead,
|
|
4793
|
-
|
|
4794
|
-
|
|
4802
|
+
is as Header,
|
|
4803
|
+
ts as ImageOffline,
|
|
4795
4804
|
Ya as IssuuServices,
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4805
|
+
fr as ItemListSchema,
|
|
4806
|
+
_i as JournalistArticule2,
|
|
4807
|
+
Si as JournalistGroup,
|
|
4808
|
+
hi as LayoutNewsComponent,
|
|
4800
4809
|
to as LazyLoader,
|
|
4801
|
-
|
|
4802
|
-
|
|
4810
|
+
ii as LiveBlogHeader,
|
|
4811
|
+
ws as Location,
|
|
4803
4812
|
Va as MainComponentServices,
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4813
|
+
Ft as Marfeel,
|
|
4814
|
+
ke as MiddleSection,
|
|
4815
|
+
uo as Modulo1x3,
|
|
4816
|
+
wo as Modulo1x3Card,
|
|
4817
|
+
mo as Modulo1x4,
|
|
4818
|
+
ho as Modulo1x5,
|
|
4819
|
+
Lo as Modulo2Columnas,
|
|
4820
|
+
Oo as Modulo3Columnas,
|
|
4821
|
+
Io as ModuloNewsletter,
|
|
4822
|
+
Eo as ModuloOpinion,
|
|
4823
|
+
Tr as NewListResponseDataPH,
|
|
4824
|
+
hr as NewsArticle,
|
|
4825
|
+
zo as NewsComponent,
|
|
4826
|
+
Ws as NewsContent,
|
|
4827
|
+
Vs as NextPrev,
|
|
4828
|
+
gr as OrgList,
|
|
4829
|
+
nt as PreloadImages,
|
|
4821
4830
|
re as REPORT_REASONS,
|
|
4822
|
-
|
|
4831
|
+
Is as Readest,
|
|
4823
4832
|
Xa as ScriptHydrator,
|
|
4824
|
-
|
|
4825
|
-
|
|
4833
|
+
Vo as SearchSection,
|
|
4834
|
+
Kt as Section,
|
|
4826
4835
|
Qo as SectionCard,
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4836
|
+
Zs as SectionCard2,
|
|
4837
|
+
Ko as SectionCardServerComponent,
|
|
4838
|
+
$o as SectionServerComponent,
|
|
4839
|
+
Ss as ShowSection,
|
|
4840
|
+
Bo as SocialNetworks,
|
|
4841
|
+
pr as SpeculationRules,
|
|
4842
|
+
ms as StaticSlotWrapper,
|
|
4843
|
+
Os as SubscribeColumn,
|
|
4844
|
+
$s as SubscribeRow,
|
|
4845
|
+
Ms as SubscribeWhatsAppColumn,
|
|
4846
|
+
qo as TagComponent,
|
|
4847
|
+
wi as TagSection,
|
|
4848
|
+
li as TimeLine,
|
|
4840
4849
|
za as TrimPathname,
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4850
|
+
qs as VideoBlock3,
|
|
4851
|
+
yi as VideoBlock4,
|
|
4852
|
+
Zo as VideoSection,
|
|
4853
|
+
vr as VideosSchemas,
|
|
4854
|
+
yr as WebsiteList,
|
|
4846
4855
|
ro as addComment,
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4856
|
+
_t as bannersReplace,
|
|
4857
|
+
Ei as becomeVideoObject,
|
|
4858
|
+
Ti as buildTagUrl,
|
|
4850
4859
|
Li as coloringByStrokeSVGs,
|
|
4851
|
-
|
|
4852
|
-
|
|
4860
|
+
ys as compileStyleProps,
|
|
4861
|
+
Gt as cutString,
|
|
4853
4862
|
Da as extractRealtedNews,
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4863
|
+
wt as formatDate,
|
|
4864
|
+
ns as formatDateEdiciones,
|
|
4865
|
+
as as formatDateJournalistArticule,
|
|
4866
|
+
os as formatDateTimeline,
|
|
4867
|
+
er as formatNewsMeta,
|
|
4868
|
+
cr as formatVideoData,
|
|
4860
4869
|
Ga as generalGetData,
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4870
|
+
Mt as getCaptchaToken,
|
|
4871
|
+
Wn as getComments,
|
|
4872
|
+
q as getConfig,
|
|
4864
4873
|
Wa as getDynamicSlots,
|
|
4865
|
-
|
|
4866
|
-
|
|
4874
|
+
rt as getEnvironmentUrl,
|
|
4875
|
+
Jt as getEnvironmentUrlFront,
|
|
4867
4876
|
qa as getHydratorPath,
|
|
4868
|
-
|
|
4877
|
+
ls as getImageUrl,
|
|
4869
4878
|
ve as getNextMeta,
|
|
4870
4879
|
be as getPage,
|
|
4871
4880
|
Ha as getPreloadImages,
|
|
4872
4881
|
we as getPrevMeta,
|
|
4873
4882
|
eo as getReportReasonLabel,
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4883
|
+
Xt as getResponse,
|
|
4884
|
+
Qt as getResponsePromise,
|
|
4885
|
+
Ye as getSchemas,
|
|
4886
|
+
Et as getScriptReplaces,
|
|
4887
|
+
_r as getSlugs,
|
|
4879
4888
|
Ba as getTypeOfNews,
|
|
4880
4889
|
Fa as getVideoRealPath,
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4890
|
+
Je as handleGetComments,
|
|
4891
|
+
so as initLibrary,
|
|
4892
|
+
ar as metadataToJSX,
|
|
4893
|
+
xr as metadata_defaults,
|
|
4894
|
+
Ct as parseTags,
|
|
4895
|
+
tr as pathnameSplit,
|
|
4896
|
+
br as removePages,
|
|
4888
4897
|
Qa as reportComment,
|
|
4889
|
-
|
|
4898
|
+
Bs as shareButtons,
|
|
4890
4899
|
ki as socialIcons,
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4900
|
+
dr as speculationRules,
|
|
4901
|
+
lr as speculationRulesHome,
|
|
4902
|
+
rr as urlReplaces,
|
|
4894
4903
|
no as verifyCaptchaTokenEnterprise
|
|
4895
4904
|
};
|