react-easy-wall 2.0.11 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/dist/cjs/_virtual/index10.cjs +2 -2
  2. package/dist/cjs/_virtual/index11.cjs +2 -2
  3. package/dist/cjs/_virtual/index2.cjs +2 -8
  4. package/dist/cjs/_virtual/index2.cjs.map +1 -1
  5. package/dist/cjs/_virtual/index3.cjs +8 -2
  6. package/dist/cjs/_virtual/index3.cjs.map +1 -1
  7. package/dist/cjs/_virtual/index4.cjs +2 -8
  8. package/dist/cjs/_virtual/index4.cjs.map +1 -1
  9. package/dist/cjs/_virtual/index5.cjs +3 -7
  10. package/dist/cjs/_virtual/index5.cjs.map +1 -1
  11. package/dist/cjs/_virtual/index6.cjs +2 -2
  12. package/dist/cjs/_virtual/index7.cjs +2 -4
  13. package/dist/cjs/_virtual/index7.cjs.map +1 -1
  14. package/dist/cjs/_virtual/index8.cjs +2 -2
  15. package/dist/cjs/_virtual/index9.cjs +2 -2
  16. package/dist/cjs/components/comment/Comments.cjs +3 -4
  17. package/dist/cjs/components/comment/Comments.cjs.map +1 -1
  18. package/dist/cjs/components/comment/comment.utils.cjs +1 -0
  19. package/dist/cjs/components/comment/comment.utils.cjs.map +1 -1
  20. package/dist/cjs/components/comment/components/AddComment.cjs +2 -4
  21. package/dist/cjs/components/comment/components/AddComment.cjs.map +1 -1
  22. package/dist/cjs/components/comment/components/AddCommentContainer.cjs +2 -6
  23. package/dist/cjs/components/comment/components/AddCommentContainer.cjs.map +1 -1
  24. package/dist/cjs/components/comment/components/AddReplyComment.cjs +2 -5
  25. package/dist/cjs/components/comment/components/AddReplyComment.cjs.map +1 -1
  26. package/dist/cjs/components/comment/components/AddReplyCommentContainer.cjs +2 -5
  27. package/dist/cjs/components/comment/components/AddReplyCommentContainer.cjs.map +1 -1
  28. package/dist/cjs/components/comment/components/CommentContainer.cjs +2 -4
  29. package/dist/cjs/components/comment/components/CommentContainer.cjs.map +1 -1
  30. package/dist/cjs/components/comment/components/CommentItem.cjs +3 -8
  31. package/dist/cjs/components/comment/components/CommentItem.cjs.map +1 -1
  32. package/dist/cjs/components/comment/components/CommentSubscriptionDialog.cjs +2 -3
  33. package/dist/cjs/components/comment/components/CommentSubscriptionDialog.cjs.map +1 -1
  34. package/dist/cjs/components/comment/components/ReplyComments.cjs +2 -2
  35. package/dist/cjs/components/comment/components/ReplyComments.cjs.map +1 -1
  36. package/dist/cjs/components/comment/components/ShowMoreComments.cjs +2 -4
  37. package/dist/cjs/components/comment/components/ShowMoreComments.cjs.map +1 -1
  38. package/dist/cjs/components/panel/Panel.cjs +2 -3
  39. package/dist/cjs/components/panel/Panel.cjs.map +1 -1
  40. package/dist/cjs/components/panel/PanelAvatar.cjs +2 -5
  41. package/dist/cjs/components/panel/PanelAvatar.cjs.map +1 -1
  42. package/dist/cjs/components/panel/PanelButton.cjs +3 -3
  43. package/dist/cjs/components/panel/PanelButton.cjs.map +1 -1
  44. package/dist/cjs/components/panel/PanelDivider.cjs +2 -2
  45. package/dist/cjs/components/panel/PanelDivider.cjs.map +1 -1
  46. package/dist/cjs/components/panel/PanelFooter.cjs +3 -4
  47. package/dist/cjs/components/panel/PanelFooter.cjs.map +1 -1
  48. package/dist/cjs/components/panel/PanelHeader.cjs +2 -2
  49. package/dist/cjs/components/panel/PanelHeader.cjs.map +1 -1
  50. package/dist/cjs/components/panel/PanelItem.cjs +2 -5
  51. package/dist/cjs/components/panel/PanelItem.cjs.map +1 -1
  52. package/dist/cjs/components/panel/PanelListItems.cjs +2 -4
  53. package/dist/cjs/components/panel/PanelListItems.cjs.map +1 -1
  54. package/dist/cjs/components/panel/PanelSubscriptionIcon.cjs +2 -2
  55. package/dist/cjs/components/panel/PanelSubscriptionIcon.cjs.map +1 -1
  56. package/dist/cjs/components/paywall/PaywallRegister.cjs +6 -8
  57. package/dist/cjs/components/paywall/PaywallRegister.cjs.map +1 -1
  58. package/dist/cjs/components/paywall/PaywallSubscription.cjs +6 -8
  59. package/dist/cjs/components/paywall/PaywallSubscription.cjs.map +1 -1
  60. package/dist/cjs/components/session/session.actions.cjs +2 -3
  61. package/dist/cjs/components/session/session.actions.cjs.map +1 -1
  62. package/dist/cjs/components/session/session.constants.cjs +2 -2
  63. package/dist/cjs/components/session/session.constants.cjs.map +1 -1
  64. package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.cjs +0 -31
  65. package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.cjs.map +1 -1
  66. package/dist/cjs/node_modules/@cobuildlab/react-simple-state/lib/index.cjs +1 -1
  67. package/dist/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +446 -0
  68. package/dist/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs.map +1 -0
  69. package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.cjs +130 -0
  70. package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.cjs.map +1 -0
  71. package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.cjs +127 -0
  72. package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.cjs.map +1 -0
  73. package/dist/cjs/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.cjs +190 -0
  74. package/dist/cjs/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.cjs.map +1 -0
  75. package/dist/cjs/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.cjs +18 -0
  76. package/dist/cjs/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.cjs.map +1 -0
  77. package/dist/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.cjs +34 -0
  78. package/dist/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.cjs.map +1 -0
  79. package/dist/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +50 -0
  80. package/dist/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs.map +1 -0
  81. package/dist/cjs/node_modules/@mui/material/esm/zero-styled/index.cjs +0 -7
  82. package/dist/cjs/node_modules/@mui/material/esm/zero-styled/index.cjs.map +1 -1
  83. package/dist/cjs/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.cjs +2 -2
  84. package/dist/cjs/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.cjs.map +1 -1
  85. package/dist/cjs/node_modules/@mui/styled-engine/esm/index.cjs +2 -2
  86. package/dist/cjs/node_modules/@mui/styled-engine/esm/index.cjs.map +1 -1
  87. package/dist/cjs/node_modules/@mui/styles/node_modules/@mui/utils/esm/deepmerge/deepmerge.cjs +1 -1
  88. package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.cjs +0 -5
  89. package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.cjs.map +1 -1
  90. package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.cjs +2 -2
  91. package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.cjs.map +1 -1
  92. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.cjs +2 -2
  93. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.cjs.map +1 -1
  94. package/dist/cjs/node_modules/@mui/utils/esm/deepmerge/deepmerge.cjs +1 -1
  95. package/dist/cjs/node_modules/@mui/utils/esm/useId/useId.cjs +1 -1
  96. package/dist/cjs/node_modules/@mui/utils/esm/useId/useId.cjs.map +1 -1
  97. package/dist/cjs/node_modules/graphql/language/ast.cjs +0 -104
  98. package/dist/cjs/node_modules/graphql/language/ast.cjs.map +1 -1
  99. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.cjs +1 -1
  100. package/dist/cjs/node_modules/next/dist/client/script.cjs +2 -2
  101. package/dist/cjs/node_modules/next/dist/client/script.cjs.map +1 -1
  102. package/dist/cjs/node_modules/next/dist/compiled/cookie/index.cjs +1 -1
  103. package/dist/cjs/node_modules/next/dist/compiled/gzip-size/index.cjs +5 -5
  104. package/dist/cjs/node_modules/next/dist/compiled/gzip-size/index.cjs.map +1 -1
  105. package/dist/cjs/node_modules/next/dist/compiled/path-to-regexp/index.cjs +1 -1
  106. package/dist/cjs/node_modules/next/dist/shared/lib/router/utils/index.cjs +1 -1
  107. package/dist/cjs/node_modules/prop-types/index.cjs +1 -1
  108. package/dist/cjs/node_modules/react-giphy-searchbox/es/index.cjs +1 -1
  109. package/dist/cjs/node_modules/react-is/index.cjs +1 -1
  110. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.cjs +1 -2
  111. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.cjs.map +1 -1
  112. package/dist/cjs/node_modules/tslib/tslib.es6.cjs +0 -79
  113. package/dist/cjs/node_modules/tslib/tslib.es6.cjs.map +1 -1
  114. package/dist/cjs/shared/apollo/apollo.client.cjs +4 -6
  115. package/dist/cjs/shared/apollo/apollo.client.cjs.map +1 -1
  116. package/dist/cjs/shared/components/buttons/ButtonDefault.cjs +3 -5
  117. package/dist/cjs/shared/components/buttons/ButtonDefault.cjs.map +1 -1
  118. package/dist/cjs/shared/components/dialog/DialogDefault.cjs +2 -5
  119. package/dist/cjs/shared/components/dialog/DialogDefault.cjs.map +1 -1
  120. package/dist/cjs/shared/components/react-editor/BtnEmoji.cjs +2 -3
  121. package/dist/cjs/shared/components/react-editor/BtnEmoji.cjs.map +1 -1
  122. package/dist/cjs/shared/components/react-editor/BtnGif.cjs +3 -5
  123. package/dist/cjs/shared/components/react-editor/BtnGif.cjs.map +1 -1
  124. package/dist/cjs/shared/components/react-editor/ReactSimpleWysiwyg.cjs +2 -2
  125. package/dist/cjs/shared/components/react-editor/ReactSimpleWysiwyg.cjs.map +1 -1
  126. package/dist/cjs/shared/cookies/cookies.utils.cjs +2 -2
  127. package/dist/cjs/shared/cookies/cookies.utils.cjs.map +1 -1
  128. package/dist/cjs/shared/types/generated.cjs +7 -7
  129. package/dist/cjs/shared/types/generated.cjs.map +1 -1
  130. package/dist/esm/_virtual/index10.js +2 -2
  131. package/dist/esm/_virtual/index11.js +2 -2
  132. package/dist/esm/_virtual/index2.js +2 -6
  133. package/dist/esm/_virtual/index2.js.map +1 -1
  134. package/dist/esm/_virtual/index3.js +6 -2
  135. package/dist/esm/_virtual/index3.js.map +1 -1
  136. package/dist/esm/_virtual/index4.js +2 -6
  137. package/dist/esm/_virtual/index4.js.map +1 -1
  138. package/dist/esm/_virtual/index5.js +3 -5
  139. package/dist/esm/_virtual/index5.js.map +1 -1
  140. package/dist/esm/_virtual/index6.js +2 -2
  141. package/dist/esm/_virtual/index7.js +2 -4
  142. package/dist/esm/_virtual/index7.js.map +1 -1
  143. package/dist/esm/_virtual/index8.js +2 -2
  144. package/dist/esm/_virtual/index9.js +2 -2
  145. package/dist/esm/components/comment/Comments.js +1 -2
  146. package/dist/esm/components/comment/Comments.js.map +1 -1
  147. package/dist/esm/components/comment/comment.utils.js +1 -0
  148. package/dist/esm/components/comment/comment.utils.js.map +1 -1
  149. package/dist/esm/components/comment/components/AddComment.js +1 -3
  150. package/dist/esm/components/comment/components/AddComment.js.map +1 -1
  151. package/dist/esm/components/comment/components/AddCommentContainer.js +1 -5
  152. package/dist/esm/components/comment/components/AddCommentContainer.js.map +1 -1
  153. package/dist/esm/components/comment/components/AddReplyComment.js +1 -4
  154. package/dist/esm/components/comment/components/AddReplyComment.js.map +1 -1
  155. package/dist/esm/components/comment/components/AddReplyCommentContainer.js +1 -4
  156. package/dist/esm/components/comment/components/AddReplyCommentContainer.js.map +1 -1
  157. package/dist/esm/components/comment/components/CommentContainer.js +1 -3
  158. package/dist/esm/components/comment/components/CommentContainer.js.map +1 -1
  159. package/dist/esm/components/comment/components/CommentItem.js +1 -6
  160. package/dist/esm/components/comment/components/CommentItem.js.map +1 -1
  161. package/dist/esm/components/comment/components/CommentSubscriptionDialog.js +1 -2
  162. package/dist/esm/components/comment/components/CommentSubscriptionDialog.js.map +1 -1
  163. package/dist/esm/components/comment/components/ReplyComments.js +1 -1
  164. package/dist/esm/components/comment/components/ShowMoreComments.js +1 -3
  165. package/dist/esm/components/comment/components/ShowMoreComments.js.map +1 -1
  166. package/dist/esm/components/panel/Panel.js +1 -2
  167. package/dist/esm/components/panel/Panel.js.map +1 -1
  168. package/dist/esm/components/panel/PanelAvatar.js +1 -4
  169. package/dist/esm/components/panel/PanelAvatar.js.map +1 -1
  170. package/dist/esm/components/panel/PanelButton.js +1 -1
  171. package/dist/esm/components/panel/PanelDivider.js +1 -1
  172. package/dist/esm/components/panel/PanelFooter.js +1 -2
  173. package/dist/esm/components/panel/PanelFooter.js.map +1 -1
  174. package/dist/esm/components/panel/PanelHeader.js +1 -1
  175. package/dist/esm/components/panel/PanelItem.js +1 -4
  176. package/dist/esm/components/panel/PanelItem.js.map +1 -1
  177. package/dist/esm/components/panel/PanelListItems.js +1 -3
  178. package/dist/esm/components/panel/PanelListItems.js.map +1 -1
  179. package/dist/esm/components/panel/PanelSubscriptionIcon.js +1 -1
  180. package/dist/esm/components/paywall/PaywallRegister.js +1 -3
  181. package/dist/esm/components/paywall/PaywallRegister.js.map +1 -1
  182. package/dist/esm/components/paywall/PaywallSubscription.js +1 -3
  183. package/dist/esm/components/paywall/PaywallSubscription.js.map +1 -1
  184. package/dist/esm/components/session/session.actions.js +1 -2
  185. package/dist/esm/components/session/session.actions.js.map +1 -1
  186. package/dist/esm/components/session/session.constants.js +1 -1
  187. package/dist/esm/node_modules/@apollo/client/utilities/internal/caches.js +1 -31
  188. package/dist/esm/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  189. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/index.js +1 -1
  190. package/dist/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +4 -4
  191. package/dist/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +2 -2
  192. package/dist/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +1 -1
  193. package/dist/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +1 -24
  194. package/dist/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +1 -1
  195. package/dist/esm/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +0 -1
  196. package/dist/esm/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js.map +1 -1
  197. package/dist/esm/node_modules/@mui/material/esm/zero-styled/index.js +1 -7
  198. package/dist/esm/node_modules/@mui/material/esm/zero-styled/index.js.map +1 -1
  199. package/dist/esm/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js +1 -1
  200. package/dist/esm/node_modules/@mui/styled-engine/esm/index.js +1 -1
  201. package/dist/esm/node_modules/@mui/styles/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  202. package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -5
  203. package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -1
  204. package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  205. package/dist/esm/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +1 -1
  206. package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  207. package/dist/esm/node_modules/@mui/utils/esm/useId/useId.js +1 -1
  208. package/dist/esm/node_modules/@mui/utils/esm/useId/useId.js.map +1 -1
  209. package/dist/esm/node_modules/graphql/language/ast.js +1 -103
  210. package/dist/esm/node_modules/graphql/language/ast.js.map +1 -1
  211. package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  212. package/dist/esm/node_modules/next/dist/client/script.js +2 -2
  213. package/dist/esm/node_modules/next/dist/client/script.js.map +1 -1
  214. package/dist/esm/node_modules/next/dist/compiled/cookie/index.js +1 -1
  215. package/dist/esm/node_modules/next/dist/compiled/gzip-size/index.js +5 -5
  216. package/dist/esm/node_modules/next/dist/compiled/gzip-size/index.js.map +1 -1
  217. package/dist/esm/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -1
  218. package/dist/esm/node_modules/next/dist/shared/lib/router/utils/index.js +1 -1
  219. package/dist/esm/node_modules/prop-types/index.js +1 -1
  220. package/dist/esm/node_modules/react-giphy-searchbox/es/index.js +1 -1
  221. package/dist/esm/node_modules/react-is/index.js +1 -1
  222. package/dist/esm/node_modules/rxjs/dist/esm5/internal/Subscriber.js +1 -1
  223. package/dist/esm/node_modules/rxjs/dist/esm5/internal/Subscription.js +2 -2
  224. package/dist/esm/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  225. package/dist/esm/node_modules/stylis/src/Parser.js +1 -1
  226. package/dist/esm/node_modules/stylis/src/Tokenizer.js +1 -1
  227. package/dist/esm/node_modules/tslib/tslib.es6.js +1 -75
  228. package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -1
  229. package/dist/esm/shared/apollo/apollo.client.js +1 -3
  230. package/dist/esm/shared/apollo/apollo.client.js.map +1 -1
  231. package/dist/esm/shared/components/buttons/ButtonDefault.js +1 -3
  232. package/dist/esm/shared/components/buttons/ButtonDefault.js.map +1 -1
  233. package/dist/esm/shared/components/dialog/DialogDefault.js +1 -4
  234. package/dist/esm/shared/components/dialog/DialogDefault.js.map +1 -1
  235. package/dist/esm/shared/components/react-editor/BtnEmoji.js +1 -2
  236. package/dist/esm/shared/components/react-editor/BtnEmoji.js.map +1 -1
  237. package/dist/esm/shared/components/react-editor/BtnGif.js +1 -3
  238. package/dist/esm/shared/components/react-editor/BtnGif.js.map +1 -1
  239. package/dist/esm/shared/components/react-editor/ReactSimpleWysiwyg.js +1 -1
  240. package/dist/esm/shared/cookies/cookies.utils.js +1 -1
  241. package/dist/esm/shared/types/generated.js +1 -1
  242. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PaywallSubscription.cjs","sources":["../../../../src/components/paywall/PaywallSubscription.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { Box, BoxProps, Typography, TypographyProps, ButtonProps, Button } from '@mui/material';\nimport {URL_PORTAL} from \"@/shared/constants\";\n\nexport interface PaywallSubscriptionProps {\n post?: any;\n containerProps?: BoxProps;\n titleProps?: TypographyProps;\n subtitleProps?: TypographyProps;\n buttonProps?: ButtonProps;\n buttonText?: string;\n secondaryButtonProps?: ButtonProps;\n secondaryButtonText?: string;\n title?: string;\n subtitle?: string;\n withCaption?: boolean;\n}\n\nexport const PaywallSubscription: React.FC<PaywallSubscriptionProps> = ({\n containerProps = {},\n subtitleProps = {},\n buttonProps = {},\n titleProps = {},\n secondaryButtonText = 'Ya soy suscriptor',\n secondaryButtonProps = {},\n withCaption = false,\n title = 'Este artículo es exclusivo para suscriptores',\n subtitle = 'Tu contribución nos ayuda a cubrir costos de investigación, tecnología y ofrecerte servicios de valor agregado.',\n post,\n buttonText = 'Suscríbete',\n}) => {\n const { sx: sxContainerProps, ...containerPropRest } = containerProps;\n const { sx: sxSubtitleProps, ...subtitlePropRest } = subtitleProps;\n const { sx: sxTitleProps, ...titlePropRest } = titleProps;\n const { sx: sxButtonProps, ...buttonPropsRest } = buttonProps;\n const { sx: sxSecondaryButtonProps, ...secondaryButtonPropsRest } = secondaryButtonProps;\n const url = URL_PORTAL;\n const handleButton = () => {\n if (!url) {\n console.error('NEXT_PUBLIC_URL_PORTAL is required!');\n return null;\n }\n\n return (window.location.href = `${url}/planes?post_url=${window.location.href}`);\n };\n\n const handleSecondaryButton = () => {\n if (!url) {\n console.error('NEXT_PUBLIC_URL_PORTAL is required!');\n return null;\n }\n\n return (window.location.href = `${url}/autenticacion?action=AUTH_LOGIN?post_url=${window.location.href}`);\n };\n\n return (\n <Box\n sx={{\n display: 'flex',\n width: '100%',\n border: '1px solid #707070',\n justifyContent: 'center',\n alignItems: 'center',\n flexDirection: 'column',\n background: 'white',\n paddingTop: '80px',\n paddingBottom: '80px',\n borderRadius: '20px',\n boxShadow: '0px 0px 32px #00000029',\n ...sxContainerProps,\n }}\n {...containerPropRest}>\n <Box\n sx={{\n width: {\n xs: 360,\n md: 460,\n },\n justifyContent: 'center',\n alignItems: 'center',\n flexDirection: 'column',\n display: 'flex',\n }}>\n <Typography\n sx={{\n fontWeight: 700,\n lineHeight: '34px',\n fontSize: '34px',\n textAlign: 'center',\n marginBottom: '1.5rem',\n ...sxTitleProps,\n }}\n {...titlePropRest}>\n {title}\n </Typography>\n <Typography\n sx={{ textAlign: 'center', marginBottom: '1.5rem', ...sxSubtitleProps }}\n {...subtitlePropRest}>\n {subtitle}\n </Typography>\n <Button\n disableElevation\n disableRipple\n disableTouchRipple\n disableFocusRipple\n sx={{\n background: '#f75957',\n '&:hover': {\n backgroundColor: '#f75957',\n },\n fontWeight: 700,\n textTransform: 'uppercase',\n marginBottom: '.5rem',\n color: 'white',\n fontSize: '18px',\n paddingTop: '.5rem',\n paddingBottom: '.5rem',\n paddingLeft: '.75rem',\n paddingRight: '.75rem',\n borderRadius: '0.25rem',\n ...sxButtonProps,\n }}\n onClick={() => handleButton()}\n {...buttonPropsRest}>\n {buttonText}\n </Button>\n <Button\n disableElevation\n disableRipple\n disableTouchRipple\n disableFocusRipple\n sx={{\n textDecoration: 'underline',\n background: 'transparent',\n textTransform: 'none',\n fontWeight: 700,\n textAlign: 'center',\n fontSize: '16px',\n paddingTop: '.5rem',\n paddingBottom: '.5rem',\n paddingLeft: '.75rem',\n paddingRight: '.75rem',\n color: 'black',\n ...sxSecondaryButtonProps,\n }}\n onClick={() => handleSecondaryButton()}\n {...secondaryButtonPropsRest}>\n {secondaryButtonText}\n </Button>\n </Box>\n </Box>\n );\n};\n"],"names":["URL_PORTAL","_jsx","Box","_jsxs","Typography","Button"],"mappings":";;;;;;;;MAmBa,mBAAmB,GAAuC,CAAC,EACtE,cAAc,GAAG,EAAE,EACnB,aAAa,GAAG,EAAE,EAClB,WAAW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A,GAClC,wBAAwB,YAC3B,mBAAmB,EAAA,CACb,CAAA,EAAA,CACL,EAAA,CACF;AAEV;;;;"}
1
+ {"version":3,"file":"PaywallSubscription.cjs","sources":["../../../../src/components/paywall/PaywallSubscription.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { Box, BoxProps, Typography, TypographyProps, ButtonProps, Button } from '@mui/material';\nimport {URL_PORTAL} from \"@/shared/constants\";\n\nexport interface PaywallSubscriptionProps {\n post?: any;\n containerProps?: BoxProps;\n titleProps?: TypographyProps;\n subtitleProps?: TypographyProps;\n buttonProps?: ButtonProps;\n buttonText?: string;\n secondaryButtonProps?: ButtonProps;\n secondaryButtonText?: string;\n title?: string;\n subtitle?: string;\n withCaption?: boolean;\n}\n\nexport const PaywallSubscription: React.FC<PaywallSubscriptionProps> = ({\n containerProps = {},\n subtitleProps = {},\n buttonProps = {},\n titleProps = {},\n secondaryButtonText = 'Ya soy suscriptor',\n secondaryButtonProps = {},\n withCaption = false,\n title = 'Este artículo es exclusivo para suscriptores',\n subtitle = 'Tu contribución nos ayuda a cubrir costos de investigación, tecnología y ofrecerte servicios de valor agregado.',\n post,\n buttonText = 'Suscríbete',\n}) => {\n const { sx: sxContainerProps, ...containerPropRest } = containerProps;\n const { sx: sxSubtitleProps, ...subtitlePropRest } = subtitleProps;\n const { sx: sxTitleProps, ...titlePropRest } = titleProps;\n const { sx: sxButtonProps, ...buttonPropsRest } = buttonProps;\n const { sx: sxSecondaryButtonProps, ...secondaryButtonPropsRest } = secondaryButtonProps;\n const url = URL_PORTAL;\n const handleButton = () => {\n if (!url) {\n console.error('NEXT_PUBLIC_URL_PORTAL is required!');\n return null;\n }\n\n return (window.location.href = `${url}/planes?post_url=${window.location.href}`);\n };\n\n const handleSecondaryButton = () => {\n if (!url) {\n console.error('NEXT_PUBLIC_URL_PORTAL is required!');\n return null;\n }\n\n return (window.location.href = `${url}/autenticacion?action=AUTH_LOGIN?post_url=${window.location.href}`);\n };\n\n return (\n <Box\n sx={{\n display: 'flex',\n width: '100%',\n border: '1px solid #707070',\n justifyContent: 'center',\n alignItems: 'center',\n flexDirection: 'column',\n background: 'white',\n paddingTop: '80px',\n paddingBottom: '80px',\n borderRadius: '20px',\n boxShadow: '0px 0px 32px #00000029',\n ...sxContainerProps,\n }}\n {...containerPropRest}>\n <Box\n sx={{\n width: {\n xs: 360,\n md: 460,\n },\n justifyContent: 'center',\n alignItems: 'center',\n flexDirection: 'column',\n display: 'flex',\n }}>\n <Typography\n sx={{\n fontWeight: 700,\n lineHeight: '34px',\n fontSize: '34px',\n textAlign: 'center',\n marginBottom: '1.5rem',\n ...sxTitleProps,\n }}\n {...titlePropRest}>\n {title}\n </Typography>\n <Typography\n sx={{ textAlign: 'center', marginBottom: '1.5rem', ...sxSubtitleProps }}\n {...subtitlePropRest}>\n {subtitle}\n </Typography>\n <Button\n disableElevation\n disableRipple\n disableTouchRipple\n disableFocusRipple\n sx={{\n background: '#f75957',\n '&:hover': {\n backgroundColor: '#f75957',\n },\n fontWeight: 700,\n textTransform: 'uppercase',\n marginBottom: '.5rem',\n color: 'white',\n fontSize: '18px',\n paddingTop: '.5rem',\n paddingBottom: '.5rem',\n paddingLeft: '.75rem',\n paddingRight: '.75rem',\n borderRadius: '0.25rem',\n ...sxButtonProps,\n }}\n onClick={() => handleButton()}\n {...buttonPropsRest}>\n {buttonText}\n </Button>\n <Button\n disableElevation\n disableRipple\n disableTouchRipple\n disableFocusRipple\n sx={{\n textDecoration: 'underline',\n background: 'transparent',\n textTransform: 'none',\n fontWeight: 700,\n textAlign: 'center',\n fontSize: '16px',\n paddingTop: '.5rem',\n paddingBottom: '.5rem',\n paddingLeft: '.75rem',\n paddingRight: '.75rem',\n color: 'black',\n ...sxSecondaryButtonProps,\n }}\n onClick={() => handleSecondaryButton()}\n {...secondaryButtonPropsRest}>\n {secondaryButtonText}\n </Button>\n </Box>\n </Box>\n );\n};\n"],"names":["URL_PORTAL","_jsx","Box","_jsxs","Typography","Button"],"mappings":";;;;;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,OAAO;AACd,wBAAA,GAAG,sBAAsB;AAC1B,qBAAA,EACD,OAAO,EAAE,MAAM,qBAAqB,EAAE,EAAA,GAClC,wBAAwB,YAC3B,mBAAmB,EAAA,CACb,CAAA,EAAA,CACL,EAAA,CACF;AAEV;;;;"}
@@ -3,10 +3,9 @@
3
3
  var index = require('../../_virtual/index.cjs');
4
4
  var session_events = require('./session.events.cjs');
5
5
  var index$1 = require('../../shared/constants/index.cjs');
6
- require('../../node_modules/axios/index.cjs');
6
+ var axios = require('axios');
7
7
  var apollo_client = require('../../shared/apollo/apollo.client.cjs');
8
8
  var generated = require('../../shared/types/generated.cjs');
9
- var axios = require('../../node_modules/axios/lib/axios.cjs');
10
9
 
11
10
  const googleOneTapAction = index.libExports.createAction(session_events.googleOneTapEvent, session_events.googleOneTapErrorEvent, async (idToken) => {
12
11
  let token = undefined;
@@ -14,7 +13,7 @@ const googleOneTapAction = index.libExports.createAction(session_events.googleOn
14
13
  console.error('URI is missing');
15
14
  return { token };
16
15
  }
17
- const response = await axios.default.post(`${index$1.URI}/google/sign-up`, {
16
+ const response = await axios.post(`${index$1.URI}/google/sign-up`, {
18
17
  idToken,
19
18
  url: window.location.href,
20
19
  });
@@ -1 +1 @@
1
- {"version":3,"file":"session.actions.cjs","sources":["../../../../src/components/session/session.actions.ts"],"sourcesContent":["import { createAction } from '@cobuildlab/react-simple-state';\nimport {\n createUserSavedPostErrorEvent,\n createUserSavedPostEvent,\n currentUserErrorEvent,\n currentUserEvent,\n deleteUserSavedPostErrorEvent,\n deleteUserSavedPostEvent,\n googleOneTapErrorEvent,\n googleOneTapEvent,\n} from './session.events';\nimport { URI } from '@/shared/constants';\nimport axios from 'axios';\nimport { apolloClient } from '@/shared/apollo/apollo.client';\nimport {\n CreateUserSavedPostDocument,\n CreateUserSavedPostMutation,\n CreateUserSavedPostMutationVariables,\n CurrentUserDocument,\n CurrentUserQuery,\n CurrentUserQueryVariables,\n DeleteUserSavedPostDocument,\n DeleteUserSavedPostMutation,\n DeleteUserSavedPostMutationVariables,\n} from '@/shared/types/generated';\n\nexport const googleOneTapAction = createAction(\n googleOneTapEvent,\n googleOneTapErrorEvent,\n async (idToken?: string) => {\n let token = undefined;\n if (!URI) {\n console.error('URI is missing');\n return { token };\n }\n\n const response = await axios.post<{ token: string }>(`${URI}/google/sign-up`, {\n idToken,\n url: window.location.href,\n });\n\n token = response.data.token;\n\n return {\n token,\n };\n },\n);\n\nexport const currentUserAction = createAction(currentUserEvent, currentUserErrorEvent, async () => {\n const response = await apolloClient().query<CurrentUserQuery, CurrentUserQueryVariables>({\n query: CurrentUserDocument,\n fetchPolicy: 'network-only',\n });\n\n return {\n currentUser: response.data?.currentUser,\n };\n});\n\nexport const easyWallCreateUserSavedPost = createAction(\n createUserSavedPostEvent,\n createUserSavedPostErrorEvent,\n async (variables: CreateUserSavedPostMutationVariables) => {\n const response = await apolloClient().mutate<\n CreateUserSavedPostMutation,\n CreateUserSavedPostMutationVariables\n >({\n mutation: CreateUserSavedPostDocument,\n variables,\n awaitRefetchQueries: true,\n refetchQueries: [{ query: CurrentUserDocument }],\n });\n\n return {\n createUserSavedPost: response.data?.createUserSavedPost,\n };\n },\n);\n\nexport const deleteUserSavedPostAction = createAction(\n deleteUserSavedPostEvent,\n deleteUserSavedPostErrorEvent,\n async (variables: DeleteUserSavedPostMutationVariables) => {\n const response = await apolloClient().mutate<\n DeleteUserSavedPostMutation,\n DeleteUserSavedPostMutationVariables\n >({\n mutation: DeleteUserSavedPostDocument,\n variables,\n awaitRefetchQueries: true,\n refetchQueries: [{ query: CurrentUserDocument }],\n });\n\n return {\n deleteUserSavedPost: response.data?.deleteUserSavedPost,\n };\n },\n);\n"],"names":["createAction","googleOneTapEvent","googleOneTapErrorEvent","URI","axios","currentUserEvent","currentUserErrorEvent","apolloClient","CurrentUserDocument","createUserSavedPostEvent","createUserSavedPostErrorEvent","CreateUserSavedPostDocument","deleteUserSavedPostEvent","deleteUserSavedPostErrorEvent","DeleteUserSavedPostDoc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,mBAAmB;KACxD;AACH,CAAC;AAGsCR,6BAAY,CACnDY,uCAAwB,EACxBC,4CAA6B,EAC7B,OAAO,SAA+C,KAAI;AACxD,IAAA,MAAM,QAAQ,GAAG,MAAMN,0BAAY,EAAE,CAAC,MAAM,CAG1C;AACA,QAAA,QAAQ,EAAEO,qCAA2B;QACrC,SAAS;AACT,QAAA,mBAAmB,EAAE,IAAI;AACzB,QAAA,cAAc,EAAE,CAAC,EAAE,KAAK,EAAEN,6BAAmB,EAAE,CAAC;AACjD,KAAA,CAAC;IAEF,OAAO;AACL,QAAA,mBAAmB,EAAE,QAAQ,CAAC,IAAI,EAAE,mBAAmB;KACxD;AACH,CAAC;;;;;"}
1
+ {"version":3,"file":"session.actions.cjs","sources":["../../../../src/components/session/session.actions.ts"],"sourcesContent":["import { createAction } from '@cobuildlab/react-simple-state';\nimport {\n createUserSavedPostErrorEvent,\n createUserSavedPostEvent,\n currentUserErrorEvent,\n currentUserEvent,\n deleteUserSavedPostErrorEvent,\n deleteUserSavedPostEvent,\n googleOneTapErrorEvent,\n googleOneTapEvent,\n} from './session.events';\nimport { URI } from '@/shared/constants';\nimport axios from 'axios';\nimport { apolloClient } from '@/shared/apollo/apollo.client';\nimport {\n CreateUserSavedPostDocument,\n CreateUserSavedPostMutation,\n CreateUserSavedPostMutationVariables,\n CurrentUserDocument,\n CurrentUserQuery,\n CurrentUserQueryVariables,\n DeleteUserSavedPostDocument,\n DeleteUserSavedPostMutation,\n DeleteUserSavedPostMutationVariables,\n} from '@/shared/types/generated';\n\nexport const googleOneTapAction = createAction(\n googleOneTapEvent,\n googleOneTapErrorEvent,\n async (idToken?: string) => {\n let token = undefined;\n if (!URI) {\n console.error('URI is missing');\n return { token };\n }\n\n const response = await axios.post<{ token: string }>(`${URI}/google/sign-up`, {\n idToken,\n url: window.location.href,\n });\n\n token = response.data.token;\n\n return {\n token,\n };\n },\n);\n\nexport const currentUserAction = createAction(currentUserEvent, currentUserErrorEvent, async () => {\n const response = await apolloClient().query<CurrentUserQuery, CurrentUserQueryVariables>({\n query: CurrentUserDocument,\n fetchPolicy: 'network-only',\n });\n\n return {\n currentUser: response.data?.currentUser,\n };\n});\n\nexport const easyWallCreateUserSavedPost = createAction(\n createUserSavedPostEvent,\n createUserSavedPostErrorEvent,\n async (variables: CreateUserSavedPostMutationVariables) => {\n const response = await apolloClient().mutate<\n CreateUserSavedPostMutation,\n CreateUserSavedPostMutationVariables\n >({\n mutation: CreateUserSavedPostDocument,\n variables,\n awaitRefetchQueries: true,\n refetchQueries: [{ query: CurrentUserDocument }],\n });\n\n return {\n createUserSavedPost: response.data?.createUserSavedPost,\n };\n },\n);\n\nexport const deleteUserSavedPostAction = createAction(\n deleteUserSavedPostEvent,\n deleteUserSavedPostErrorEvent,\n async (variables: DeleteUserSavedPostMutationVariables) => {\n const response = await apolloClient().mutate<\n DeleteUserSavedPostMutation,\n DeleteUserSavedPostMutationVariables\n >({\n mutation: DeleteUserSavedPostDocument,\n variables,\n awaitRefetchQueries: true,\n refetchQueries: [{ query: CurrentUserDocument }],\n });\n\n return {\n deleteUserSavedPost: response.data?.deleteUserSavedPost,\n };\n },\n);\n"],"names":["createAction","googleOneTapEvent","googleOneTapErrorEvent","URI","currentUserEvent","currentUserErrorEvent","apolloClient","CurrentUserDocument","createUserSavedPostEvent","createUserSavedPostErrorEvent","CreateUserSavedPostDocument","deleteUserSavedPostEvent","deleteUserSavedPostErrorEvent","DeleteUserSavedPostDocument"],"mappings":";;;;;;;;;AA0BO,MAAM,kBAAkB,GAAGA,6BAAY,CAC5CC,gCAAiB,EACjBC,qCAAsB,EACtB,OAAO,OAAgB,KAAI;IACzB,IAAI,KAAK,GAAG,SAAS;IACrB,IAAI,CAACC,WAAG,EAAE;AACR,QAAA,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC;QAC/B,OAAO,EAAE,KAAK,EAAE;IAClB;IAEA,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,IAAI,CAAoB,CAAA,EAAGA,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AC;IAEF,OAAO;AACL,QAAA,mBAAmB,EAAE,QAAQ,CAAC,IAAI,EAAE,mBAAmB;KACxD;AACH,CAAC;;;;;"}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var moment = require('../../_virtual/moment.cjs');
3
+ var moment = require('moment');
4
4
  var index = require('../../shared/constants/index.cjs');
5
5
 
6
6
  const DEFAULT_USER_CONTEXT = {
7
7
  user: undefined,
8
8
  };
9
9
  const COOKIES_OPTIONS = {
10
- expires: moment.default().add(1, 'year').toDate(),
10
+ expires: moment().add(1, 'year').toDate(),
11
11
  path: '/',
12
12
  domain: index.COOKIE_DOMAIN,
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"session.constants.cjs","sources":["../../../../src/components/session/session.constants.ts"],"sourcesContent":["import moment from 'moment';\nimport { COOKIE_DOMAIN } from '@/shared/constants';\n\nexport const DEFAULT_USER_CONTEXT = {\n user: undefined,\n};\n\nexport const COOKIES_OPTIONS = {\n expires: moment().add(1, 'year').toDate(),\n path: '/',\n domain: COOKIE_DOMAIN,\n};\n"],"names":["moment","COOKIE_DOMAIN"],"mappings":";;;;;AAGO,MAAM,oBAAoB,GAAG;AAClC,IAAA,IAAI,EAAE,SAAS;;AAGV,MAAM,eAAe,GAAG;AAC7B,IAAA,OAAO,EAAEA,cAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE;AACzC,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,MAAM,EAAEC,mBAAa;;;;;;"}
1
+ {"version":3,"file":"session.constants.cjs","sources":["../../../../src/components/session/session.constants.ts"],"sourcesContent":["import moment from 'moment';\nimport { COOKIE_DOMAIN } from '@/shared/constants';\n\nexport const DEFAULT_USER_CONTEXT = {\n user: undefined,\n};\n\nexport const COOKIES_OPTIONS = {\n expires: moment().add(1, 'year').toDate(),\n path: '/',\n domain: COOKIE_DOMAIN,\n};\n"],"names":["COOKIE_DOMAIN"],"mappings":";;;;;AAGO,MAAM,oBAAoB,GAAG;AAClC,IAAA,IAAI,EAAE,SAAS;;AAGV,MAAM,eAAe,GAAG;AAC7B,IAAA,OAAO,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE;AACzC,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,MAAM,EAAEA,mBAAa;;;;;;"}
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var weak = require('../../../../@wry/caches/lib/weak.cjs');
4
- var strong = require('../../../../@wry/caches/lib/strong.cjs');
5
4
 
6
5
  const scheduledCleanup = new WeakSet();
7
6
  function schedule(cache) {
@@ -45,36 +44,6 @@ const AutoCleanedWeakCache = function (max, dispose) {
45
44
  };
46
45
  return cache;
47
46
  };
48
- /**
49
- * @internal
50
- * A version of StrongCache that will auto-schedule a cleanup of the cache when
51
- * a new item is added and the cache reached maximum size.
52
- * Throttled to once per 100ms.
53
- *
54
- * @privateRemarks
55
- * Should be used throughout the rest of the codebase instead of StrongCache,
56
- * with the notable exception of usage in `wrap` from `optimism` - that one
57
- * already handles cleanup and should remain a `StrongCache`.
58
- *
59
- * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
60
- */
61
- const AutoCleanedStrongCache = function (max, dispose) {
62
- /*
63
- Some builds of `StrongCache` are function prototypes, some are classes.
64
- This library still builds with an ES5 target, so we can't extend the
65
- real classes.
66
- Instead, we have to use this workaround until we switch to a newer build
67
- target.
68
- */
69
- const cache = new strong.StrongCache(max, dispose);
70
- cache.set = function (key, value) {
71
- const ret = strong.StrongCache.prototype.set.call(this, key, value);
72
- schedule(this);
73
- return ret;
74
- };
75
- return cache;
76
- };
77
47
 
78
- exports.AutoCleanedStrongCache = AutoCleanedStrongCache;
79
48
  exports.AutoCleanedWeakCache = AutoCleanedWeakCache;
80
49
  //# sourceMappingURL=caches.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"caches.cjs","sources":["../../../../../../../node_modules/@apollo/client/utilities/internal/caches.js"],"sourcesContent":["import { StrongCache, WeakCache } from \"@wry/caches\";\nconst scheduledCleanup = new WeakSet();\nfunction schedule(cache) {\n if (cache.size <= (cache.max || -1)) {\n return;\n }\n if (!scheduledCleanup.has(cache)) {\n scheduledCleanup.add(cache);\n setTimeout(() => {\n cache.clean();\n scheduledCleanup.delete(cache);\n }, 100);\n }\n}\n/**\n* @internal\n* A version of WeakCache that will auto-schedule a cleanup of the cache when\n* a new item is added and the cache reached maximum size.\n* Throttled to once per 100ms.\n*\n* @privateRemarks\n* Should be used throughout the rest of the codebase instead of WeakCache,\n* with the notable exception of usage in `wrap` from `optimism` - that one\n* already handles cleanup and should remain a `WeakCache`.\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport const AutoCleanedWeakCache = function (max, dispose) {\n /*\n Some builds of `WeakCache` are function prototypes, some are classes.\n This library still builds with an ES5 target, so we can't extend the\n real classes.\n Instead, we have to use this workaround until we switch to a newer build\n target.\n */\n const cache = new WeakCache(max, dispose);\n cache.set = function (key, value) {\n const ret = WeakCache.prototype.set.call(this, key, value);\n schedule(this);\n return ret;\n };\n return cache;\n};\n/**\n* @internal\n* A version of StrongCache that will auto-schedule a cleanup of the cache when\n* a new item is added and the cache reached maximum size.\n* Throttled to once per 100ms.\n*\n* @privateRemarks\n* Should be used throughout the rest of the codebase instead of StrongCache,\n* with the notable exception of usage in `wrap` from `optimism` - that one\n* already handles cleanup and should remain a `StrongCache`.\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport const AutoCleanedStrongCache = function (max, dispose) {\n /*\n Some builds of `StrongCache` are function prototypes, some are classes.\n This library still builds with an ES5 target, so we can't extend the\n real classes.\n Instead, we have to use this workaround until we switch to a newer build\n target.\n */\n const cache = new StrongCache(max, dispose);\n cache.set = function (key, value) {\n const ret = StrongCache.prototype.set.call(this, key, value);\n schedule(this);\n return ret;\n };\n return cache;\n};\n//# sourceMappingURL=ca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AIC,kBAAW,CAAC,GAAG,EAAE,OAAO,CAAC;AAC/C,IAAI,KAAK,CAAC,GAAG,GAAG,UAAU,GAAG,EAAE,KAAK,EAAE;AACtC,QAAQ,MAAM,GAAG,GAAGA,kBAAW,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC;AACpE,QAAQ,QAAQ,CAAC,IAAI,CAAC;AACtB,QAAQ,OAAO,GAAG;AAClB,IAAI,CAAC;AACL,IAAI,OAAO,KAAK;AAChB;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"caches.cjs","sources":["../../../../../../../node_modules/@apollo/client/utilities/internal/caches.js"],"sourcesContent":["import { StrongCache, WeakCache } from \"@wry/caches\";\nconst scheduledCleanup = new WeakSet();\nfunction schedule(cache) {\n if (cache.size <= (cache.max || -1)) {\n return;\n }\n if (!scheduledCleanup.has(cache)) {\n scheduledCleanup.add(cache);\n setTimeout(() => {\n cache.clean();\n scheduledCleanup.delete(cache);\n }, 100);\n }\n}\n/**\n* @internal\n* A version of WeakCache that will auto-schedule a cleanup of the cache when\n* a new item is added and the cache reached maximum size.\n* Throttled to once per 100ms.\n*\n* @privateRemarks\n* Should be used throughout the rest of the codebase instead of WeakCache,\n* with the notable exception of usage in `wrap` from `optimism` - that one\n* already handles cleanup and should remain a `WeakCache`.\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport const AutoCleanedWeakCache = function (max, dispose) {\n /*\n Some builds of `WeakCache` are function prototypes, some are classes.\n This library still builds with an ES5 target, so we can't extend the\n real classes.\n Instead, we have to use this workaround until we switch to a newer build\n target.\n */\n const cache = new WeakCache(max, dispose);\n cache.set = function (key, value) {\n const ret = WeakCache.prototype.set.call(this, key, value);\n schedule(this);\n return ret;\n };\n return cache;\n};\n/**\n* @internal\n* A version of StrongCache that will auto-schedule a cleanup of the cache when\n* a new item is added and the cache reached maximum size.\n* Throttled to once per 100ms.\n*\n* @privateRemarks\n* Should be used throughout the rest of the codebase instead of StrongCache,\n* with the notable exception of usage in `wrap` from `optimism` - that one\n* already handles cleanup and should remain a `StrongCache`.\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport const AutoCleanedStrongCache = function (max, dispose) {\n /*\n Some builds of `StrongCache` are function prototypes, some are classes.\n This library still builds with an ES5 target, so we can't extend the\n real classes.\n Instead, we have to use this workaround until we switch to a newer build\n target.\n */\n const cache = new StrongCache(max, dispose);\n cache.set = function (key, value) {\n const ret = StrongCache.prototype.set.call(this, key, value);\n schedule(this);\n return ret;\n };\n return cache;\n};\n//# sourceMappingURL=caches.js.map\n"],"names":["WeakCache"],"mappings":";;;;AACA,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAE;AACtC,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE;AACzC,QAAQ;AACR,IAAI;AACJ,IAAI,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;AACtC,QAAQ,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC;AACnC,QAAQ,UAAU,CAAC,MAAM;AACzB,YAAY,KAAK,CAAC,KAAK,EAAE;AACzB,YAAY,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC;AAC1C,QAAQ,CAAC,EAAE,GAAG,CAAC;AACf,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,oBAAoB,GAAG,UAAU,GAAG,EAAE,OAAO,EAAE;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,KAAK,GAAG,IAAIA,cAAS,CAAC,GAAG,EAAE,OAAO,CAAC;AAC7C,IAAI,KAAK,CAAC,GAAG,GAAG,UAAU,GAAG,EAAE,KAAK,EAAE;AACtC,QAAQ,MAAM,GAAG,GAAGA,cAAS,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC;AAClE,QAAQ,QAAQ,CAAC,IAAI,CAAC;AACtB,QAAQ,OAAO,GAAG;AAClB,IAAI,CAAC;AACL,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('../../../../_virtual/index3.cjs');
3
+ var index = require('../../../../_virtual/index2.cjs');
4
4
  var hooks = require('./hooks.cjs');
5
5
  var views = require('./views.cjs');
6
6
  var event = require('./event.cjs');
@@ -0,0 +1,446 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var emotionSheet_esm = require('../../sheet/dist/emotion-sheet.esm.cjs');
6
+ var Serializer = require('../../../stylis/src/Serializer.cjs');
7
+ var Parser = require('../../../stylis/src/Parser.cjs');
8
+ var Middleware = require('../../../stylis/src/Middleware.cjs');
9
+ var Enum = require('../../../stylis/src/Enum.cjs');
10
+ var Utility = require('../../../stylis/src/Utility.cjs');
11
+ var Tokenizer = require('../../../stylis/src/Tokenizer.cjs');
12
+
13
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
14
+ var previous = 0;
15
+ var character = 0;
16
+
17
+ while (true) {
18
+ previous = character;
19
+ character = Tokenizer.peek(); // &\f
20
+
21
+ if (previous === 38 && character === 12) {
22
+ points[index] = 1;
23
+ }
24
+
25
+ if (Tokenizer.token(character)) {
26
+ break;
27
+ }
28
+
29
+ Tokenizer.next();
30
+ }
31
+
32
+ return Tokenizer.slice(begin, Tokenizer.position);
33
+ };
34
+
35
+ var toRules = function toRules(parsed, points) {
36
+ // pretend we've started with a comma
37
+ var index = -1;
38
+ var character = 44;
39
+
40
+ do {
41
+ switch (Tokenizer.token(character)) {
42
+ case 0:
43
+ // &\f
44
+ if (character === 38 && Tokenizer.peek() === 12) {
45
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
46
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
47
+ // and when it should just concatenate the outer and inner selectors
48
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
49
+ points[index] = 1;
50
+ }
51
+
52
+ parsed[index] += identifierWithPointTracking(Tokenizer.position - 1, points, index);
53
+ break;
54
+
55
+ case 2:
56
+ parsed[index] += Tokenizer.delimit(character);
57
+ break;
58
+
59
+ case 4:
60
+ // comma
61
+ if (character === 44) {
62
+ // colon
63
+ parsed[++index] = Tokenizer.peek() === 58 ? '&\f' : '';
64
+ points[index] = parsed[index].length;
65
+ break;
66
+ }
67
+
68
+ // fallthrough
69
+
70
+ default:
71
+ parsed[index] += Utility.from(character);
72
+ }
73
+ } while (character = Tokenizer.next());
74
+
75
+ return parsed;
76
+ };
77
+
78
+ var getRules = function getRules(value, points) {
79
+ return Tokenizer.dealloc(toRules(Tokenizer.alloc(value), points));
80
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
81
+
82
+
83
+ var fixedElements = /* #__PURE__ */new WeakMap();
84
+ var compat = function compat(element) {
85
+ if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
86
+ // negative .length indicates that this rule has been already prefixed
87
+ element.length < 1) {
88
+ return;
89
+ }
90
+
91
+ var value = element.value;
92
+ var parent = element.parent;
93
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
94
+
95
+ while (parent.type !== 'rule') {
96
+ parent = parent.parent;
97
+ if (!parent) return;
98
+ } // short-circuit for the simplest case
99
+
100
+
101
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
102
+ /* colon */
103
+ && !fixedElements.get(parent)) {
104
+ return;
105
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
106
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
107
+
108
+
109
+ if (isImplicitRule) {
110
+ return;
111
+ }
112
+
113
+ fixedElements.set(element, true);
114
+ var points = [];
115
+ var rules = getRules(value, points);
116
+ var parentRules = parent.props;
117
+
118
+ for (var i = 0, k = 0; i < rules.length; i++) {
119
+ for (var j = 0; j < parentRules.length; j++, k++) {
120
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
121
+ }
122
+ }
123
+ };
124
+ var removeLabel = function removeLabel(element) {
125
+ if (element.type === 'decl') {
126
+ var value = element.value;
127
+
128
+ if ( // charcode for l
129
+ value.charCodeAt(0) === 108 && // charcode for b
130
+ value.charCodeAt(2) === 98) {
131
+ // this ignores label
132
+ element["return"] = '';
133
+ element.value = '';
134
+ }
135
+ }
136
+ };
137
+
138
+ /* eslint-disable no-fallthrough */
139
+
140
+ function prefix(value, length) {
141
+ switch (Utility.hash(value, length)) {
142
+ // color-adjust
143
+ case 5103:
144
+ return Enum.WEBKIT + 'print-' + value + value;
145
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
146
+
147
+ case 5737:
148
+ case 4201:
149
+ case 3177:
150
+ case 3433:
151
+ case 1641:
152
+ case 4457:
153
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
154
+
155
+ case 5572:
156
+ case 6356:
157
+ case 5844:
158
+ case 3191:
159
+ case 6645:
160
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
161
+
162
+ case 6391:
163
+ case 5879:
164
+ case 5623:
165
+ case 6135:
166
+ case 4599:
167
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
168
+
169
+ case 4215:
170
+ case 6389:
171
+ case 5109:
172
+ case 5365:
173
+ case 5621:
174
+ case 3829:
175
+ return Enum.WEBKIT + value + value;
176
+ // appearance, user-select, transform, hyphens, text-size-adjust
177
+
178
+ case 5349:
179
+ case 4246:
180
+ case 4810:
181
+ case 6968:
182
+ case 2756:
183
+ return Enum.WEBKIT + value + Enum.MOZ + value + Enum.MS + value + value;
184
+ // flex, flex-direction
185
+
186
+ case 6828:
187
+ case 4268:
188
+ return Enum.WEBKIT + value + Enum.MS + value + value;
189
+ // order
190
+
191
+ case 6165:
192
+ return Enum.WEBKIT + value + Enum.MS + 'flex-' + value + value;
193
+ // align-items
194
+
195
+ case 5187:
196
+ return Enum.WEBKIT + value + Utility.replace(value, /(\w+).+(:[^]+)/, Enum.WEBKIT + 'box-$1$2' + Enum.MS + 'flex-$1$2') + value;
197
+ // align-self
198
+
199
+ case 5443:
200
+ return Enum.WEBKIT + value + Enum.MS + 'flex-item-' + Utility.replace(value, /flex-|-self/, '') + value;
201
+ // align-content
202
+
203
+ case 4675:
204
+ return Enum.WEBKIT + value + Enum.MS + 'flex-line-pack' + Utility.replace(value, /align-content|flex-|-self/, '') + value;
205
+ // flex-shrink
206
+
207
+ case 5548:
208
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, 'shrink', 'negative') + value;
209
+ // flex-basis
210
+
211
+ case 5292:
212
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, 'basis', 'preferred-size') + value;
213
+ // flex-grow
214
+
215
+ case 6060:
216
+ return Enum.WEBKIT + 'box-' + Utility.replace(value, '-grow', '') + Enum.WEBKIT + value + Enum.MS + Utility.replace(value, 'grow', 'positive') + value;
217
+ // transition
218
+
219
+ case 4554:
220
+ return Enum.WEBKIT + Utility.replace(value, /([^-])(transform)/g, '$1' + Enum.WEBKIT + '$2') + value;
221
+ // cursor
222
+
223
+ case 6187:
224
+ return Utility.replace(Utility.replace(Utility.replace(value, /(zoom-|grab)/, Enum.WEBKIT + '$1'), /(image-set)/, Enum.WEBKIT + '$1'), value, '') + value;
225
+ // background, background-image
226
+
227
+ case 5495:
228
+ case 3959:
229
+ return Utility.replace(value, /(image-set\([^]*)/, Enum.WEBKIT + '$1' + '$`$1');
230
+ // justify-content
231
+
232
+ case 4968:
233
+ return Utility.replace(Utility.replace(value, /(.+:)(flex-)?(.*)/, Enum.WEBKIT + 'box-pack:$3' + Enum.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + Enum.WEBKIT + value + value;
234
+ // (margin|padding)-inline-(start|end)
235
+
236
+ case 4095:
237
+ case 3583:
238
+ case 4068:
239
+ case 2532:
240
+ return Utility.replace(value, /(.+)-inline(.+)/, Enum.WEBKIT + '$1$2') + value;
241
+ // (min|max)?(width|height|inline-size|block-size)
242
+
243
+ case 8116:
244
+ case 7059:
245
+ case 5753:
246
+ case 5535:
247
+ case 5445:
248
+ case 5701:
249
+ case 4933:
250
+ case 4677:
251
+ case 5533:
252
+ case 5789:
253
+ case 5021:
254
+ case 4765:
255
+ // stretch, max-content, min-content, fill-available
256
+ if (Utility.strlen(value) - 1 - length > 6) switch (Utility.charat(value, length + 1)) {
257
+ // (m)ax-content, (m)in-content
258
+ case 109:
259
+ // -
260
+ if (Utility.charat(value, length + 4) !== 45) break;
261
+ // (f)ill-available, (f)it-content
262
+
263
+ case 102:
264
+ return Utility.replace(value, /(.+:)(.+)-([^]+)/, '$1' + Enum.WEBKIT + '$2-$3' + '$1' + Enum.MOZ + (Utility.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
265
+ // (s)tretch
266
+
267
+ case 115:
268
+ return ~Utility.indexof(value, 'stretch') ? prefix(Utility.replace(value, 'stretch', 'fill-available'), length) + value : value;
269
+ }
270
+ break;
271
+ // position: sticky
272
+
273
+ case 4949:
274
+ // (s)ticky?
275
+ if (Utility.charat(value, length + 1) !== 115) break;
276
+ // display: (flex|inline-flex)
277
+
278
+ case 6444:
279
+ switch (Utility.charat(value, Utility.strlen(value) - 3 - (~Utility.indexof(value, '!important') && 10))) {
280
+ // stic(k)y
281
+ case 107:
282
+ return Utility.replace(value, ':', ':' + Enum.WEBKIT) + value;
283
+ // (inline-)?fl(e)x
284
+
285
+ case 101:
286
+ return Utility.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + Enum.WEBKIT + (Utility.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + Enum.WEBKIT + '$2$3' + '$1' + Enum.MS + '$2box$3') + value;
287
+ }
288
+
289
+ break;
290
+ // writing-mode
291
+
292
+ case 5936:
293
+ switch (Utility.charat(value, length + 11)) {
294
+ // vertical-l(r)
295
+ case 114:
296
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
297
+ // vertical-r(l)
298
+
299
+ case 108:
300
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
301
+ // horizontal(-)tb
302
+
303
+ case 45:
304
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
305
+ }
306
+
307
+ return Enum.WEBKIT + value + Enum.MS + value + value;
308
+ }
309
+
310
+ return value;
311
+ }
312
+
313
+ var prefixer = function prefixer(element, index, children, callback) {
314
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
315
+ case Enum.DECLARATION:
316
+ element["return"] = prefix(element.value, element.length);
317
+ break;
318
+
319
+ case Enum.KEYFRAMES:
320
+ return Serializer.serialize([Tokenizer.copy(element, {
321
+ value: Utility.replace(element.value, '@', '@' + Enum.WEBKIT)
322
+ })], callback);
323
+
324
+ case Enum.RULESET:
325
+ if (element.length) return Utility.combine(element.props, function (value) {
326
+ switch (Utility.match(value, /(::plac\w+|:read-\w+)/)) {
327
+ // :read-(only|write)
328
+ case ':read-only':
329
+ case ':read-write':
330
+ return Serializer.serialize([Tokenizer.copy(element, {
331
+ props: [Utility.replace(value, /:(read-\w+)/, ':' + Enum.MOZ + '$1')]
332
+ })], callback);
333
+ // :placeholder
334
+
335
+ case '::placeholder':
336
+ return Serializer.serialize([Tokenizer.copy(element, {
337
+ props: [Utility.replace(value, /:(plac\w+)/, ':' + Enum.WEBKIT + 'input-$1')]
338
+ }), Tokenizer.copy(element, {
339
+ props: [Utility.replace(value, /:(plac\w+)/, ':' + Enum.MOZ + '$1')]
340
+ }), Tokenizer.copy(element, {
341
+ props: [Utility.replace(value, /:(plac\w+)/, Enum.MS + 'input-$1')]
342
+ })], callback);
343
+ }
344
+
345
+ return '';
346
+ });
347
+ }
348
+ };
349
+
350
+ var defaultStylisPlugins = [prefixer];
351
+
352
+ var createCache = function createCache(options) {
353
+ var key = options.key;
354
+
355
+ if (key === 'css') {
356
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
357
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
358
+ // note this very very intentionally targets all style elements regardless of the key to ensure
359
+ // that creating a cache works inside of render of a React component
360
+
361
+ Array.prototype.forEach.call(ssrStyles, function (node) {
362
+ // we want to only move elements which have a space in the data-emotion attribute value
363
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
364
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
365
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
366
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
367
+ // will not result in the Emotion 10 styles being destroyed
368
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
369
+
370
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
371
+ return;
372
+ }
373
+
374
+ document.head.appendChild(node);
375
+ node.setAttribute('data-s', '');
376
+ });
377
+ }
378
+
379
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
380
+
381
+ var inserted = {};
382
+ var container;
383
+ var nodesToHydrate = [];
384
+
385
+ {
386
+ container = options.container || document.head;
387
+ Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
388
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
389
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
390
+ var attrib = node.getAttribute("data-emotion").split(' ');
391
+
392
+ for (var i = 1; i < attrib.length; i++) {
393
+ inserted[attrib[i]] = true;
394
+ }
395
+
396
+ nodesToHydrate.push(node);
397
+ });
398
+ }
399
+
400
+ var _insert;
401
+
402
+ var omnipresentPlugins = [compat, removeLabel];
403
+
404
+ {
405
+ var currentSheet;
406
+ var finalizingPlugins = [Serializer.stringify, Middleware.rulesheet(function (rule) {
407
+ currentSheet.insert(rule);
408
+ })];
409
+ var serializer = Middleware.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
410
+
411
+ var stylis = function stylis(styles) {
412
+ return Serializer.serialize(Parser.compile(styles), serializer);
413
+ };
414
+
415
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
416
+ currentSheet = sheet;
417
+
418
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
419
+
420
+ if (shouldCache) {
421
+ cache.inserted[serialized.name] = true;
422
+ }
423
+ };
424
+ }
425
+
426
+ var cache = {
427
+ key: key,
428
+ sheet: new emotionSheet_esm.StyleSheet({
429
+ key: key,
430
+ container: container,
431
+ nonce: options.nonce,
432
+ speedy: options.speedy,
433
+ prepend: options.prepend,
434
+ insertionPoint: options.insertionPoint
435
+ }),
436
+ nonce: options.nonce,
437
+ inserted: inserted,
438
+ registered: {},
439
+ insert: _insert
440
+ };
441
+ cache.sheet.hydrate(nodesToHydrate);
442
+ return cache;
443
+ };
444
+
445
+ exports.default = createCache;
446
+ //# sourceMappingURL=emotion-cache.browser.esm.cjs.map