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.
- package/dist/cjs/_virtual/index10.cjs +2 -2
- package/dist/cjs/_virtual/index11.cjs +2 -2
- package/dist/cjs/_virtual/index2.cjs +2 -8
- package/dist/cjs/_virtual/index2.cjs.map +1 -1
- package/dist/cjs/_virtual/index3.cjs +8 -2
- package/dist/cjs/_virtual/index3.cjs.map +1 -1
- package/dist/cjs/_virtual/index4.cjs +2 -8
- package/dist/cjs/_virtual/index4.cjs.map +1 -1
- package/dist/cjs/_virtual/index5.cjs +3 -7
- package/dist/cjs/_virtual/index5.cjs.map +1 -1
- package/dist/cjs/_virtual/index6.cjs +2 -2
- package/dist/cjs/_virtual/index7.cjs +2 -4
- package/dist/cjs/_virtual/index7.cjs.map +1 -1
- package/dist/cjs/_virtual/index8.cjs +2 -2
- package/dist/cjs/_virtual/index9.cjs +2 -2
- package/dist/cjs/components/comment/Comments.cjs +3 -4
- package/dist/cjs/components/comment/Comments.cjs.map +1 -1
- package/dist/cjs/components/comment/comment.utils.cjs +1 -0
- package/dist/cjs/components/comment/comment.utils.cjs.map +1 -1
- package/dist/cjs/components/comment/components/AddComment.cjs +2 -4
- package/dist/cjs/components/comment/components/AddComment.cjs.map +1 -1
- package/dist/cjs/components/comment/components/AddCommentContainer.cjs +2 -6
- package/dist/cjs/components/comment/components/AddCommentContainer.cjs.map +1 -1
- package/dist/cjs/components/comment/components/AddReplyComment.cjs +2 -5
- package/dist/cjs/components/comment/components/AddReplyComment.cjs.map +1 -1
- package/dist/cjs/components/comment/components/AddReplyCommentContainer.cjs +2 -5
- package/dist/cjs/components/comment/components/AddReplyCommentContainer.cjs.map +1 -1
- package/dist/cjs/components/comment/components/CommentContainer.cjs +2 -4
- package/dist/cjs/components/comment/components/CommentContainer.cjs.map +1 -1
- package/dist/cjs/components/comment/components/CommentItem.cjs +3 -8
- package/dist/cjs/components/comment/components/CommentItem.cjs.map +1 -1
- package/dist/cjs/components/comment/components/CommentSubscriptionDialog.cjs +2 -3
- package/dist/cjs/components/comment/components/CommentSubscriptionDialog.cjs.map +1 -1
- package/dist/cjs/components/comment/components/ReplyComments.cjs +2 -2
- package/dist/cjs/components/comment/components/ReplyComments.cjs.map +1 -1
- package/dist/cjs/components/comment/components/ShowMoreComments.cjs +2 -4
- package/dist/cjs/components/comment/components/ShowMoreComments.cjs.map +1 -1
- package/dist/cjs/components/panel/Panel.cjs +2 -3
- package/dist/cjs/components/panel/Panel.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelAvatar.cjs +2 -5
- package/dist/cjs/components/panel/PanelAvatar.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelButton.cjs +3 -3
- package/dist/cjs/components/panel/PanelButton.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelDivider.cjs +2 -2
- package/dist/cjs/components/panel/PanelDivider.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelFooter.cjs +3 -4
- package/dist/cjs/components/panel/PanelFooter.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelHeader.cjs +2 -2
- package/dist/cjs/components/panel/PanelHeader.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelItem.cjs +2 -5
- package/dist/cjs/components/panel/PanelItem.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelListItems.cjs +2 -4
- package/dist/cjs/components/panel/PanelListItems.cjs.map +1 -1
- package/dist/cjs/components/panel/PanelSubscriptionIcon.cjs +2 -2
- package/dist/cjs/components/panel/PanelSubscriptionIcon.cjs.map +1 -1
- package/dist/cjs/components/paywall/PaywallRegister.cjs +6 -8
- package/dist/cjs/components/paywall/PaywallRegister.cjs.map +1 -1
- package/dist/cjs/components/paywall/PaywallSubscription.cjs +6 -8
- package/dist/cjs/components/paywall/PaywallSubscription.cjs.map +1 -1
- package/dist/cjs/components/session/session.actions.cjs +2 -3
- package/dist/cjs/components/session/session.actions.cjs.map +1 -1
- package/dist/cjs/components/session/session.constants.cjs +2 -2
- package/dist/cjs/components/session/session.constants.cjs.map +1 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.cjs +0 -31
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.cjs.map +1 -1
- package/dist/cjs/node_modules/@cobuildlab/react-simple-state/lib/index.cjs +1 -1
- package/dist/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +446 -0
- package/dist/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs.map +1 -0
- package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.cjs +130 -0
- package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.cjs.map +1 -0
- package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.cjs +127 -0
- package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.cjs.map +1 -0
- package/dist/cjs/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.cjs +190 -0
- package/dist/cjs/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.cjs.map +1 -0
- package/dist/cjs/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.cjs +18 -0
- package/dist/cjs/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.cjs.map +1 -0
- package/dist/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.cjs +34 -0
- package/dist/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.cjs.map +1 -0
- package/dist/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +50 -0
- package/dist/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs.map +1 -0
- package/dist/cjs/node_modules/@mui/material/esm/zero-styled/index.cjs +0 -7
- package/dist/cjs/node_modules/@mui/material/esm/zero-styled/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.cjs +2 -2
- package/dist/cjs/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.cjs.map +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/esm/index.cjs +2 -2
- package/dist/cjs/node_modules/@mui/styled-engine/esm/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@mui/styles/node_modules/@mui/utils/esm/deepmerge/deepmerge.cjs +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.cjs +0 -5
- package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.cjs +2 -2
- package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.cjs.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.cjs +2 -2
- package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.cjs.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/deepmerge/deepmerge.cjs +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useId/useId.cjs +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useId/useId.cjs.map +1 -1
- package/dist/cjs/node_modules/graphql/language/ast.cjs +0 -104
- package/dist/cjs/node_modules/graphql/language/ast.cjs.map +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.cjs +1 -1
- package/dist/cjs/node_modules/next/dist/client/script.cjs +2 -2
- package/dist/cjs/node_modules/next/dist/client/script.cjs.map +1 -1
- package/dist/cjs/node_modules/next/dist/compiled/cookie/index.cjs +1 -1
- package/dist/cjs/node_modules/next/dist/compiled/gzip-size/index.cjs +5 -5
- package/dist/cjs/node_modules/next/dist/compiled/gzip-size/index.cjs.map +1 -1
- package/dist/cjs/node_modules/next/dist/compiled/path-to-regexp/index.cjs +1 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/router/utils/index.cjs +1 -1
- package/dist/cjs/node_modules/prop-types/index.cjs +1 -1
- package/dist/cjs/node_modules/react-giphy-searchbox/es/index.cjs +1 -1
- package/dist/cjs/node_modules/react-is/index.cjs +1 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.cjs +1 -2
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.cjs.map +1 -1
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs +0 -79
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs.map +1 -1
- package/dist/cjs/shared/apollo/apollo.client.cjs +4 -6
- package/dist/cjs/shared/apollo/apollo.client.cjs.map +1 -1
- package/dist/cjs/shared/components/buttons/ButtonDefault.cjs +3 -5
- package/dist/cjs/shared/components/buttons/ButtonDefault.cjs.map +1 -1
- package/dist/cjs/shared/components/dialog/DialogDefault.cjs +2 -5
- package/dist/cjs/shared/components/dialog/DialogDefault.cjs.map +1 -1
- package/dist/cjs/shared/components/react-editor/BtnEmoji.cjs +2 -3
- package/dist/cjs/shared/components/react-editor/BtnEmoji.cjs.map +1 -1
- package/dist/cjs/shared/components/react-editor/BtnGif.cjs +3 -5
- package/dist/cjs/shared/components/react-editor/BtnGif.cjs.map +1 -1
- package/dist/cjs/shared/components/react-editor/ReactSimpleWysiwyg.cjs +2 -2
- package/dist/cjs/shared/components/react-editor/ReactSimpleWysiwyg.cjs.map +1 -1
- package/dist/cjs/shared/cookies/cookies.utils.cjs +2 -2
- package/dist/cjs/shared/cookies/cookies.utils.cjs.map +1 -1
- package/dist/cjs/shared/types/generated.cjs +7 -7
- package/dist/cjs/shared/types/generated.cjs.map +1 -1
- package/dist/esm/_virtual/index10.js +2 -2
- package/dist/esm/_virtual/index11.js +2 -2
- package/dist/esm/_virtual/index2.js +2 -6
- package/dist/esm/_virtual/index2.js.map +1 -1
- package/dist/esm/_virtual/index3.js +6 -2
- package/dist/esm/_virtual/index3.js.map +1 -1
- package/dist/esm/_virtual/index4.js +2 -6
- package/dist/esm/_virtual/index4.js.map +1 -1
- package/dist/esm/_virtual/index5.js +3 -5
- package/dist/esm/_virtual/index5.js.map +1 -1
- package/dist/esm/_virtual/index6.js +2 -2
- package/dist/esm/_virtual/index7.js +2 -4
- package/dist/esm/_virtual/index7.js.map +1 -1
- package/dist/esm/_virtual/index8.js +2 -2
- package/dist/esm/_virtual/index9.js +2 -2
- package/dist/esm/components/comment/Comments.js +1 -2
- package/dist/esm/components/comment/Comments.js.map +1 -1
- package/dist/esm/components/comment/comment.utils.js +1 -0
- package/dist/esm/components/comment/comment.utils.js.map +1 -1
- package/dist/esm/components/comment/components/AddComment.js +1 -3
- package/dist/esm/components/comment/components/AddComment.js.map +1 -1
- package/dist/esm/components/comment/components/AddCommentContainer.js +1 -5
- package/dist/esm/components/comment/components/AddCommentContainer.js.map +1 -1
- package/dist/esm/components/comment/components/AddReplyComment.js +1 -4
- package/dist/esm/components/comment/components/AddReplyComment.js.map +1 -1
- package/dist/esm/components/comment/components/AddReplyCommentContainer.js +1 -4
- package/dist/esm/components/comment/components/AddReplyCommentContainer.js.map +1 -1
- package/dist/esm/components/comment/components/CommentContainer.js +1 -3
- package/dist/esm/components/comment/components/CommentContainer.js.map +1 -1
- package/dist/esm/components/comment/components/CommentItem.js +1 -6
- package/dist/esm/components/comment/components/CommentItem.js.map +1 -1
- package/dist/esm/components/comment/components/CommentSubscriptionDialog.js +1 -2
- package/dist/esm/components/comment/components/CommentSubscriptionDialog.js.map +1 -1
- package/dist/esm/components/comment/components/ReplyComments.js +1 -1
- package/dist/esm/components/comment/components/ShowMoreComments.js +1 -3
- package/dist/esm/components/comment/components/ShowMoreComments.js.map +1 -1
- package/dist/esm/components/panel/Panel.js +1 -2
- package/dist/esm/components/panel/Panel.js.map +1 -1
- package/dist/esm/components/panel/PanelAvatar.js +1 -4
- package/dist/esm/components/panel/PanelAvatar.js.map +1 -1
- package/dist/esm/components/panel/PanelButton.js +1 -1
- package/dist/esm/components/panel/PanelDivider.js +1 -1
- package/dist/esm/components/panel/PanelFooter.js +1 -2
- package/dist/esm/components/panel/PanelFooter.js.map +1 -1
- package/dist/esm/components/panel/PanelHeader.js +1 -1
- package/dist/esm/components/panel/PanelItem.js +1 -4
- package/dist/esm/components/panel/PanelItem.js.map +1 -1
- package/dist/esm/components/panel/PanelListItems.js +1 -3
- package/dist/esm/components/panel/PanelListItems.js.map +1 -1
- package/dist/esm/components/panel/PanelSubscriptionIcon.js +1 -1
- package/dist/esm/components/paywall/PaywallRegister.js +1 -3
- package/dist/esm/components/paywall/PaywallRegister.js.map +1 -1
- package/dist/esm/components/paywall/PaywallSubscription.js +1 -3
- package/dist/esm/components/paywall/PaywallSubscription.js.map +1 -1
- package/dist/esm/components/session/session.actions.js +1 -2
- package/dist/esm/components/session/session.actions.js.map +1 -1
- package/dist/esm/components/session/session.constants.js +1 -1
- package/dist/esm/node_modules/@apollo/client/utilities/internal/caches.js +1 -31
- package/dist/esm/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
- package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/index.js +1 -1
- package/dist/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +4 -4
- package/dist/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +2 -2
- package/dist/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +1 -1
- package/dist/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +1 -24
- package/dist/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +1 -1
- package/dist/esm/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +0 -1
- package/dist/esm/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/zero-styled/index.js +1 -7
- package/dist/esm/node_modules/@mui/material/esm/zero-styled/index.js.map +1 -1
- package/dist/esm/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/esm/node_modules/@mui/styled-engine/esm/index.js +1 -1
- package/dist/esm/node_modules/@mui/styles/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -5
- package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/useId/useId.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/useId/useId.js.map +1 -1
- package/dist/esm/node_modules/graphql/language/ast.js +1 -103
- package/dist/esm/node_modules/graphql/language/ast.js.map +1 -1
- package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/next/dist/client/script.js +2 -2
- package/dist/esm/node_modules/next/dist/client/script.js.map +1 -1
- package/dist/esm/node_modules/next/dist/compiled/cookie/index.js +1 -1
- package/dist/esm/node_modules/next/dist/compiled/gzip-size/index.js +5 -5
- package/dist/esm/node_modules/next/dist/compiled/gzip-size/index.js.map +1 -1
- package/dist/esm/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -1
- package/dist/esm/node_modules/next/dist/shared/lib/router/utils/index.js +1 -1
- package/dist/esm/node_modules/prop-types/index.js +1 -1
- package/dist/esm/node_modules/react-giphy-searchbox/es/index.js +1 -1
- package/dist/esm/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/rxjs/dist/esm5/internal/Subscriber.js +1 -1
- package/dist/esm/node_modules/rxjs/dist/esm5/internal/Subscription.js +2 -2
- package/dist/esm/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
- package/dist/esm/node_modules/stylis/src/Parser.js +1 -1
- package/dist/esm/node_modules/stylis/src/Tokenizer.js +1 -1
- package/dist/esm/node_modules/tslib/tslib.es6.js +1 -75
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/esm/shared/apollo/apollo.client.js +1 -3
- package/dist/esm/shared/apollo/apollo.client.js.map +1 -1
- package/dist/esm/shared/components/buttons/ButtonDefault.js +1 -3
- package/dist/esm/shared/components/buttons/ButtonDefault.js.map +1 -1
- package/dist/esm/shared/components/dialog/DialogDefault.js +1 -4
- package/dist/esm/shared/components/dialog/DialogDefault.js.map +1 -1
- package/dist/esm/shared/components/react-editor/BtnEmoji.js +1 -2
- package/dist/esm/shared/components/react-editor/BtnEmoji.js.map +1 -1
- package/dist/esm/shared/components/react-editor/BtnGif.js +1 -3
- package/dist/esm/shared/components/react-editor/BtnGif.js.map +1 -1
- package/dist/esm/shared/components/react-editor/ReactSimpleWysiwyg.js +1 -1
- package/dist/esm/shared/cookies/cookies.utils.js +1 -1
- package/dist/esm/shared/types/generated.js +1 -1
- package/package.json +1 -1
|
@@ -5,13 +5,12 @@ var DialogDefault = require('../../../shared/components/dialog/DialogDefault.cjs
|
|
|
5
5
|
var index = require('../../../_virtual/index.cjs');
|
|
6
6
|
var comment_store = require('../comment.store.cjs');
|
|
7
7
|
var comment_actions = require('../comment.actions.cjs');
|
|
8
|
+
var material = require('@mui/material');
|
|
8
9
|
var index$1 = require('../../../shared/constants/index.cjs');
|
|
9
|
-
var Box = require('../../../node_modules/@mui/material/esm/Box/Box.cjs');
|
|
10
|
-
var Typography = require('../../../node_modules/@mui/material/esm/Typography/Typography.cjs');
|
|
11
10
|
|
|
12
11
|
const CommentSubscriptionDialog = () => {
|
|
13
12
|
const { open } = index.libExports.useStore(comment_store.openSubscriptionCommentsStore);
|
|
14
|
-
return (require$$2.jsx(DialogDefault.DialogDefault, { isOpen: open, showActions: true, handleClose: () => comment_actions.openSubscriptionCommentsStoreAction(false), successText: "SUSCRIBIRTE", handleSuccess: () => (window.location.href = `${index$1.URL_PORTAL}/planes`), children: require$$2.jsx(Box
|
|
13
|
+
return (require$$2.jsx(DialogDefault.DialogDefault, { isOpen: open, showActions: true, handleClose: () => comment_actions.openSubscriptionCommentsStoreAction(false), successText: "SUSCRIBIRTE", handleSuccess: () => (window.location.href = `${index$1.URL_PORTAL}/planes`), children: require$$2.jsx(material.Box, { px: 2, textAlign: "center", children: require$$2.jsx(material.Typography, { fontSize: 20, fontWeight: 700, children: "Debes tener una suscripci\u00F3n activa para poder realizar un comentario" }) }) }));
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
exports.CommentSubscriptionDialog = CommentSubscriptionDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentSubscriptionDialog.cjs","sources":["../../../../../src/components/comment/components/CommentSubscriptionDialog.tsx"],"sourcesContent":["\n\nimport React from 'react';\nimport { DialogDefault } from '../../../shared/components/dialog/DialogDefault';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { openSubscriptionCommentsStore } from '../comment.store';\nimport { openSubscriptionCommentsStoreAction } from '../comment.actions';\nimport { Typography, Box } from '@mui/material';\nimport {URL_PORTAL} from \"../../../shared/constants\";\n\nexport const CommentSubscriptionDialog: React.FC = () => {\n const { open } = useStore(openSubscriptionCommentsStore);\n return (\n <DialogDefault\n isOpen={open}\n showActions\n handleClose={() => openSubscriptionCommentsStoreAction(false)}\n successText=\"SUSCRIBIRTE\"\n handleSuccess={() =>\n (window.location.href = `${URL_PORTAL}/planes`)\n }\n >\n <Box px={2} textAlign=\"center\">\n <Typography fontSize={20} fontWeight={700}>\n Debes tener una suscripción activa para poder realizar un comentario\n </Typography>\n </Box>\n </DialogDefault>\n );\n};\n"],"names":["useStore","openSubscriptionCommentsStore","_jsx","DialogDefault","openSubscriptionCommentsStoreAction","URL_PORTAL","Box","Typography"],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommentSubscriptionDialog.cjs","sources":["../../../../../src/components/comment/components/CommentSubscriptionDialog.tsx"],"sourcesContent":["\n\nimport React from 'react';\nimport { DialogDefault } from '../../../shared/components/dialog/DialogDefault';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { openSubscriptionCommentsStore } from '../comment.store';\nimport { openSubscriptionCommentsStoreAction } from '../comment.actions';\nimport { Typography, Box } from '@mui/material';\nimport {URL_PORTAL} from \"../../../shared/constants\";\n\nexport const CommentSubscriptionDialog: React.FC = () => {\n const { open } = useStore(openSubscriptionCommentsStore);\n return (\n <DialogDefault\n isOpen={open}\n showActions\n handleClose={() => openSubscriptionCommentsStoreAction(false)}\n successText=\"SUSCRIBIRTE\"\n handleSuccess={() =>\n (window.location.href = `${URL_PORTAL}/planes`)\n }\n >\n <Box px={2} textAlign=\"center\">\n <Typography fontSize={20} fontWeight={700}>\n Debes tener una suscripción activa para poder realizar un comentario\n </Typography>\n </Box>\n </DialogDefault>\n );\n};\n"],"names":["useStore","openSubscriptionCommentsStore","_jsx","DialogDefault","openSubscriptionCommentsStoreAction","URL_PORTAL","Box","Typography"],"mappings":";;;;;;;;;;AAUO,MAAM,yBAAyB,GAAa,MAAK;IACtD,MAAM,EAAE,IAAI,EAAE,GAAGA,yBAAQ,CAACC,2CAA6B,CAAC;AACxD,IAAA,QACEC,cAAA,CAACC,2BAAa,EAAA,EACZ,MAAM,EAAE,IAAI,EACZ,WAAW,EAAA,IAAA,EACX,WAAW,EAAE,MAAMC,mDAAmC,CAAC,KAAK,CAAC,EAC7D,WAAW,EAAC,aAAa,EACzB,aAAa,EAAE,OACZ,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAA,EAAGC,kBAAU,CAAA,OAAA,CAAS,CAAC,EAAA,QAAA,EAGjDH,cAAA,CAACI,YAAG,EAAA,EAAC,EAAE,EAAE,CAAC,EAAE,SAAS,EAAC,QAAQ,EAAA,QAAA,EAC5BJ,cAAA,CAACK,mBAAU,EAAA,EAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAA,QAAA,EAAA,2EAAA,EAAA,CAE5B,EAAA,CACT,EAAA,CACQ;AAEpB;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var CommentItem = require('./CommentItem.cjs');
|
|
5
|
-
var Grid = require('../../../node_modules/@mui/material/esm/Grid/Grid.cjs');
|
|
6
6
|
|
|
7
7
|
const ReplyComments = ({ replyComments, onReply, }) => {
|
|
8
|
-
return (require$$2.jsx(Grid
|
|
8
|
+
return (require$$2.jsx(material.Grid, { container: true, spacing: 2, children: replyComments?.map((replyComment, key) => (require$$2.jsx(material.Grid, { size: 12, children: require$$2.jsx(CommentItem.CommentItem, { comment: replyComment, onReply: onReply }) }, key))) }));
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.ReplyComments = ReplyComments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplyComments.cjs","sources":["../../../../../src/components/comment/components/ReplyComments.tsx"],"sourcesContent":["\n\n\nimport React from 'react';\nimport { Comment, ReplyComment } from '../../../shared/types/generated';\nimport { Grid } from '@mui/material';\nimport { CommentItem } from './CommentItem';\n\ntype ReplyCommentsProps = {\n replyComments: ReplyComment[];\n onReply: (comment: Comment | ReplyComment) => void;\n};\n\nexport const ReplyComments: React.FC<ReplyCommentsProps> = ({\n replyComments,\n onReply,\n}) => {\n return (\n <Grid container spacing={2}>\n {replyComments?.map((replyComment, key) => (\n <Grid size={12} key={key}>\n <CommentItem comment={replyComment} onReply={onReply} />\n </Grid>\n ))}\n </Grid>\n );\n};\n"],"names":["_jsx","Grid","CommentItem"],"mappings":";;;;;;AAaO,MAAM,aAAa,GAAiC,CAAC,EAC1D,aAAa,EACb,OAAO,GACR,KAAI;IACH,QACEA,eAACC,
|
|
1
|
+
{"version":3,"file":"ReplyComments.cjs","sources":["../../../../../src/components/comment/components/ReplyComments.tsx"],"sourcesContent":["\n\n\nimport React from 'react';\nimport { Comment, ReplyComment } from '../../../shared/types/generated';\nimport { Grid } from '@mui/material';\nimport { CommentItem } from './CommentItem';\n\ntype ReplyCommentsProps = {\n replyComments: ReplyComment[];\n onReply: (comment: Comment | ReplyComment) => void;\n};\n\nexport const ReplyComments: React.FC<ReplyCommentsProps> = ({\n replyComments,\n onReply,\n}) => {\n return (\n <Grid container spacing={2}>\n {replyComments?.map((replyComment, key) => (\n <Grid size={12} key={key}>\n <CommentItem comment={replyComment} onReply={onReply} />\n </Grid>\n ))}\n </Grid>\n );\n};\n"],"names":["_jsx","Grid","CommentItem"],"mappings":";;;;;;AAaO,MAAM,aAAa,GAAiC,CAAC,EAC1D,aAAa,EACb,OAAO,GACR,KAAI;IACH,QACEA,eAACC,aAAI,EAAA,EAAC,SAAS,EAAA,IAAA,EAAC,OAAO,EAAE,CAAC,EAAA,QAAA,EACvB,aAAa,EAAE,GAAG,CAAC,CAAC,YAAY,EAAE,GAAG,MACpCD,cAAA,CAACC,aAAI,EAAA,EAAC,IAAI,EAAE,EAAE,EAAA,QAAA,EACZD,eAACE,uBAAW,EAAA,EAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAI,EAAA,EADrC,GAAG,CAEjB,CACR,CAAC,EAAA,CACG;AAEX;;;;"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var index = require('../../../_virtual/index.cjs');
|
|
5
6
|
var comment_store = require('../comment.store.cjs');
|
|
6
7
|
var comment_hooks = require('../comment.hooks.cjs');
|
|
7
8
|
var makeStyles = require('../../../node_modules/@mui/styles/makeStyles/makeStyles.cjs');
|
|
8
|
-
var Grid = require('../../../node_modules/@mui/material/esm/Grid/Grid.cjs');
|
|
9
|
-
var Paper = require('../../../node_modules/@mui/material/esm/Paper/Paper.cjs');
|
|
10
|
-
var Box = require('../../../node_modules/@mui/material/esm/Box/Box.cjs');
|
|
11
9
|
|
|
12
10
|
const useStyles = makeStyles.default({
|
|
13
11
|
root: {
|
|
@@ -18,7 +16,7 @@ const ShowMoreComments = () => {
|
|
|
18
16
|
const { comments, count } = index.libExports.useStore(comment_store.fetchCommentsStore);
|
|
19
17
|
const classes = useStyles();
|
|
20
18
|
const { loading, loadMoreComments } = comment_hooks.useComment();
|
|
21
|
-
return count > comments.length ? (require$$2.jsx(Grid
|
|
19
|
+
return count > comments.length ? (require$$2.jsx(material.Grid, { size: 12, children: require$$2.jsx(material.Paper, { elevation: 1, className: classes.root, onClick: () => loadMoreComments(), children: require$$2.jsx(material.Box, { p: 1, textAlign: "center", children: loading ? 'Cargando...' : 'Ver más comentarios' }) }) })) : null;
|
|
22
20
|
};
|
|
23
21
|
|
|
24
22
|
exports.ShowMoreComments = ShowMoreComments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMoreComments.cjs","sources":["../../../../../src/components/comment/components/ShowMoreComments.tsx"],"sourcesContent":["\n\nimport React from 'react';\nimport { Box, Grid, Paper } from '@mui/material';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { fetchCommentsStore } from '../comment.store';\nimport { makeStyles } from '@mui/styles';\nimport { useComment } from '../comment.hooks';\n\nconst useStyles = makeStyles({\n root: {\n cursor: 'pointer',\n },\n});\n\nexport const ShowMoreComments: React.FC = () => {\n const { comments, count } = useStore(fetchCommentsStore);\n const classes = useStyles();\n\n const { loading, loadMoreComments } = useComment();\n\n return count > comments.length ? (\n <Grid size={12}>\n <Paper\n elevation={1}\n className={classes.root}\n onClick={() => loadMoreComments()}\n >\n <Box p={1} textAlign=\"center\">\n {loading ? 'Cargando...' : 'Ver más comentarios'}\n </Box>\n </Paper>\n </Grid>\n ) : null;\n};\n"],"names":["makeStyles","useStore","fetchCommentsStore","useComment","_jsx","Grid","Paper","Box"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShowMoreComments.cjs","sources":["../../../../../src/components/comment/components/ShowMoreComments.tsx"],"sourcesContent":["\n\nimport React from 'react';\nimport { Box, Grid, Paper } from '@mui/material';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { fetchCommentsStore } from '../comment.store';\nimport { makeStyles } from '@mui/styles';\nimport { useComment } from '../comment.hooks';\n\nconst useStyles = makeStyles({\n root: {\n cursor: 'pointer',\n },\n});\n\nexport const ShowMoreComments: React.FC = () => {\n const { comments, count } = useStore(fetchCommentsStore);\n const classes = useStyles();\n\n const { loading, loadMoreComments } = useComment();\n\n return count > comments.length ? (\n <Grid size={12}>\n <Paper\n elevation={1}\n className={classes.root}\n onClick={() => loadMoreComments()}\n >\n <Box p={1} textAlign=\"center\">\n {loading ? 'Cargando...' : 'Ver más comentarios'}\n </Box>\n </Paper>\n </Grid>\n ) : null;\n};\n"],"names":["makeStyles","useStore","fetchCommentsStore","useComment","_jsx","Grid","Paper","Box"],"mappings":";;;;;;;;;AASA,MAAM,SAAS,GAAGA,kBAAU,CAAC;AAC3B,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,SAAS;AAClB,KAAA;AACF,CAAA,CAAC;AAEK,MAAM,gBAAgB,GAAa,MAAK;IAC7C,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAGC,yBAAQ,CAACC,gCAAkB,CAAC;AACxD,IAAA,MAAM,OAAO,GAAG,SAAS,EAAE;IAE3B,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAGC,wBAAU,EAAE;AAElD,IAAA,OAAO,KAAK,GAAG,QAAQ,CAAC,MAAM,IAC5BC,cAAA,CAACC,aAAI,EAAA,EAAC,IAAI,EAAE,EAAE,EAAA,QAAA,EACZD,cAAA,CAACE,cAAK,EAAA,EACJ,SAAS,EAAE,CAAC,EACZ,SAAS,EAAE,OAAO,CAAC,IAAI,EACvB,OAAO,EAAE,MAAM,gBAAgB,EAAE,EAAA,QAAA,EAEjCF,cAAA,CAACG,YAAG,EAAA,EAAC,CAAC,EAAE,CAAC,EAAE,SAAS,EAAC,QAAQ,EAAA,QAAA,EAC1B,OAAO,GAAG,aAAa,GAAG,qBAAqB,EAAA,CAC5C,EAAA,CACA,EAAA,CACH,IACL,IAAI;AACV;;;;"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var index = require('../../_virtual/index.cjs');
|
|
5
6
|
var panel_store = require('./panel.store.cjs');
|
|
6
7
|
var panel_actions = require('./panel.actions.cjs');
|
|
7
|
-
var Drawer = require('../../node_modules/@mui/material/esm/Drawer/Drawer.cjs');
|
|
8
|
-
var Box = require('../../node_modules/@mui/material/esm/Box/Box.cjs');
|
|
9
8
|
|
|
10
9
|
const Panel = ({ children, footer, size = 300, ...rest }) => {
|
|
11
10
|
const { isOpen } = index.libExports.useStore(panel_store.panelStore);
|
|
12
|
-
return (require$$2.jsx(Drawer
|
|
11
|
+
return (require$$2.jsx(material.Drawer, { open: isOpen, onClose: () => panel_actions.handlePanelClick(false), ...rest, children: require$$2.jsxs(material.Box, { sx: { width: size }, display: "flex", flexDirection: "column", justifyContent: "space-between", height: "100%", children: [require$$2.jsx(material.Box, { children: children }), require$$2.jsx(material.Box, { children: footer })] }) }));
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
exports.Panel = Panel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.cjs","sources":["../../../../src/components/panel/Panel.tsx"],"sourcesContent":["\nimport { Box, Drawer, DrawerProps } from '@mui/material';\nimport React from 'react';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { handlePanelClick } from './panel.actions';\n\nexport interface PanelProps extends DrawerProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n size?: number;\n}\n\nexport const Panel: React.FC<PanelProps> = ({ children, footer, size = 300, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return (\n <Drawer open={isOpen} onClose={() => handlePanelClick(false)} {...rest}>\n <Box\n sx={{ width: size }}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n height=\"100%\">\n <Box>{children}</Box>\n <Box>{footer}</Box>\n </Box>\n </Drawer>\n );\n};\n"],"names":["useStore","panelStore","_jsx","Drawer","handlePanelClick","_jsxs","Box"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Panel.cjs","sources":["../../../../src/components/panel/Panel.tsx"],"sourcesContent":["\nimport { Box, Drawer, DrawerProps } from '@mui/material';\nimport React from 'react';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { handlePanelClick } from './panel.actions';\n\nexport interface PanelProps extends DrawerProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n size?: number;\n}\n\nexport const Panel: React.FC<PanelProps> = ({ children, footer, size = 300, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return (\n <Drawer open={isOpen} onClose={() => handlePanelClick(false)} {...rest}>\n <Box\n sx={{ width: size }}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n height=\"100%\">\n <Box>{children}</Box>\n <Box>{footer}</Box>\n </Box>\n </Drawer>\n );\n};\n"],"names":["useStore","panelStore","_jsx","Drawer","handlePanelClick","_jsxs","Box"],"mappings":";;;;;;;;AAaO,MAAM,KAAK,GAAyB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAG,GAAG,EAAE,GAAG,IAAI,EAAE,KAAI;IACvF,MAAM,EAAE,MAAM,EAAE,GAAGA,yBAAQ,CAACC,sBAAU,CAAC;AAEvC,IAAA,QACEC,cAAA,CAACC,eAAM,EAAA,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAMC,8BAAgB,CAAC,KAAK,CAAC,EAAA,GAAM,IAAI,EAAA,QAAA,EACpEC,eAAA,CAACC,YAAG,EAAA,EACF,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EACnB,OAAO,EAAC,MAAM,EACd,aAAa,EAAC,QAAQ,EACtB,cAAc,EAAC,eAAe,EAC9B,MAAM,EAAC,MAAM,EAAA,QAAA,EAAA,CACbJ,cAAA,CAACI,YAAG,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAO,EACrBJ,cAAA,CAACI,YAAG,EAAA,EAAA,QAAA,EAAE,MAAM,EAAA,CAAO,CAAA,EAAA,CACf,EAAA,CACC;AAEb;;;;"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var session_hooks = require('../session/session.hooks.cjs');
|
|
5
|
-
var Box = require('../../node_modules/@mui/material/esm/Box/Box.cjs');
|
|
6
|
-
var Avatar = require('../../node_modules/@mui/material/esm/Avatar/Avatar.cjs');
|
|
7
|
-
var Link = require('../../node_modules/@mui/material/esm/Link/Link.cjs');
|
|
8
|
-
var Typography = require('../../node_modules/@mui/material/esm/Typography/Typography.cjs');
|
|
9
6
|
|
|
10
7
|
const PanelAvatar = ({ avatarProps = {}, textProps = {}, textLink = 'Administrar Cuenta', SubscriptionImageComponent = null, }) => {
|
|
11
8
|
const { user, config } = session_hooks.useSession();
|
|
12
9
|
const { sx: sxTextProps, ...textRestProps } = textProps;
|
|
13
|
-
return (require$$2.jsxs(Box
|
|
10
|
+
return (require$$2.jsxs(material.Box, { px: 1.5, py: 1, display: "flex", alignItems: "center", children: [require$$2.jsxs(material.Box, { mr: 1, position: "relative", children: [require$$2.jsx(material.Avatar, { sx: { width: 40, height: 40, ...avatarProps?.sx }, src: user?.avatar, ...avatarProps }), SubscriptionImageComponent] }), require$$2.jsxs(material.Box, { children: [require$$2.jsx(material.Box, { mb: 0, children: decodeURIComponent(user?.name) }), require$$2.jsx(material.Link, { href: config?.urlPortal, sx: { textDecoration: 'none' }, children: require$$2.jsx(material.Typography, { sx: {
|
|
14
11
|
color: 'black',
|
|
15
12
|
fontSize: '12px',
|
|
16
13
|
...sxTextProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelAvatar.cjs","sources":["../../../../src/components/panel/PanelAvatar.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { Box, Avatar, Link, AvatarProps, Typography, TypographyProps } from '@mui/material';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PanelAvatarProps {\n avatarProps?: AvatarProps;\n textProps?: TypographyProps;\n textLink?: string;\n SubscriptionImageComponent?: React.ReactNode | null;\n}\n\nexport const PanelAvatar: React.FC<PanelAvatarProps> = ({\n avatarProps = {},\n textProps = {},\n textLink = 'Administrar Cuenta',\n SubscriptionImageComponent = null,\n}) => {\n const { user, config } = useSession();\n const { sx: sxTextProps, ...textRestProps } = textProps;\n return (\n <Box px={1.5} py={1} display=\"flex\" alignItems=\"center\">\n <Box mr={1} position=\"relative\">\n <Avatar\n sx={{ width: 40, height: 40, ...avatarProps?.sx }}\n src={user?.avatar as string}\n {...avatarProps}\n />\n {SubscriptionImageComponent}\n </Box>\n <Box>\n <Box mb={0}>{decodeURIComponent(user?.name as string)}</Box>\n <Link href={config?.urlPortal} sx={{ textDecoration: 'none' }}>\n <Typography\n sx={{\n color: 'black',\n fontSize: '12px',\n ...sxTextProps,\n }}\n {...textRestProps}>\n {textLink}\n </Typography>\n </Link>\n </Box>\n </Box>\n );\n};\n"],"names":["useSession","_jsxs","Box","_jsx","Avatar","Link","Typography"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PanelAvatar.cjs","sources":["../../../../src/components/panel/PanelAvatar.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { Box, Avatar, Link, AvatarProps, Typography, TypographyProps } from '@mui/material';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PanelAvatarProps {\n avatarProps?: AvatarProps;\n textProps?: TypographyProps;\n textLink?: string;\n SubscriptionImageComponent?: React.ReactNode | null;\n}\n\nexport const PanelAvatar: React.FC<PanelAvatarProps> = ({\n avatarProps = {},\n textProps = {},\n textLink = 'Administrar Cuenta',\n SubscriptionImageComponent = null,\n}) => {\n const { user, config } = useSession();\n const { sx: sxTextProps, ...textRestProps } = textProps;\n return (\n <Box px={1.5} py={1} display=\"flex\" alignItems=\"center\">\n <Box mr={1} position=\"relative\">\n <Avatar\n sx={{ width: 40, height: 40, ...avatarProps?.sx }}\n src={user?.avatar as string}\n {...avatarProps}\n />\n {SubscriptionImageComponent}\n </Box>\n <Box>\n <Box mb={0}>{decodeURIComponent(user?.name as string)}</Box>\n <Link href={config?.urlPortal} sx={{ textDecoration: 'none' }}>\n <Typography\n sx={{\n color: 'black',\n fontSize: '12px',\n ...sxTextProps,\n }}\n {...textRestProps}>\n {textLink}\n </Typography>\n </Link>\n </Box>\n </Box>\n );\n};\n"],"names":["useSession","_jsxs","Box","_jsx","Avatar","Link","Typography"],"mappings":";;;;;;MAYa,WAAW,GAA+B,CAAC,EACtD,WAAW,GAAG,EAAE,EAChB,SAAS,GAAG,EAAE,EACd,QAAQ,GAAG,oBAAoB,EAC/B,0BAA0B,GAAG,IAAI,GAClC,KAAI;IACH,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAGA,wBAAU,EAAE;IACrC,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,aAAa,EAAE,GAAG,SAAS;IACvD,QACEC,gBAACC,YAAG,EAAA,EAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,EAAA,QAAA,EAAA,CACrDD,eAAA,CAACC,YAAG,EAAA,EAAC,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAC,UAAU,aAC7BC,cAAA,CAACC,eAAM,EAAA,EACL,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,EAAE,EAAE,EAAE,EACjD,GAAG,EAAE,IAAI,EAAE,MAAgB,EAAA,GACvB,WAAW,EAAA,CACf,EACD,0BAA0B,CAAA,EAAA,CACvB,EACNH,eAAA,CAACC,YAAG,EAAA,EAAA,QAAA,EAAA,CACFC,cAAA,CAACD,YAAG,EAAA,EAAC,EAAE,EAAE,CAAC,EAAA,QAAA,EAAG,kBAAkB,CAAC,IAAI,EAAE,IAAc,CAAC,EAAA,CAAO,EAC5DC,cAAA,CAACE,aAAI,IAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,YAC3DF,cAAA,CAACG,mBAAU,EAAA,EACT,EAAE,EAAE;AACF,gCAAA,KAAK,EAAE,OAAO;AACd,gCAAA,QAAQ,EAAE,MAAM;AAChB,gCAAA,GAAG,WAAW;6BACf,EAAA,GACG,aAAa,YAChB,QAAQ,EAAA,CACE,GACR,CAAA,EAAA,CACH,CAAA,EAAA,CACF;AAEV;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var panel_actions = require('./panel.actions.cjs');
|
|
5
6
|
var index = require('../../_virtual/index.cjs');
|
|
6
7
|
var panel_store = require('./panel.store.cjs');
|
|
7
8
|
var session_hooks = require('../session/session.hooks.cjs');
|
|
8
9
|
var index$1 = require('../../shared/constants/index.cjs');
|
|
9
|
-
var Button = require('../../node_modules/@mui/material/esm/Button/Button.cjs');
|
|
10
10
|
|
|
11
11
|
const PanelButton = ({ loginButtonText = 'CUENTA', registerButtonText = 'INGRESAR', registerButtonProps, loginButtonProps, params = {}, }) => {
|
|
12
12
|
const { isOpen } = index.libExports.useStore(panel_store.panelStore);
|
|
@@ -23,9 +23,9 @@ const PanelButton = ({ loginButtonText = 'CUENTA', registerButtonText = 'INGRESA
|
|
|
23
23
|
return (window.location.href = `${url}?${queryString}`);
|
|
24
24
|
};
|
|
25
25
|
if (user) {
|
|
26
|
-
return (require$$2.jsx(Button
|
|
26
|
+
return (require$$2.jsx(material.Button, { onClick: handleClick, ...loginButtonProps, children: loginButtonText }));
|
|
27
27
|
}
|
|
28
|
-
return (require$$2.jsx(Button
|
|
28
|
+
return (require$$2.jsx(material.Button, { onClick: handleClick, ...registerButtonProps, children: registerButtonText }));
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
exports.PanelButton = PanelButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelButton.cjs","sources":["../../../../src/components/panel/PanelButton.tsx"],"sourcesContent":["\nimport React, { FC } from 'react';\nimport { Button, ButtonProps } from '@mui/material';\nimport { handlePanelClick } from './panel.actions';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { useSession } from '../session/session.hooks';\nimport { URL_PORTAL } from '../../shared/constants';\n\nexport interface PanelButtonProps {\n params?: { [key: string]: string };\n loginButtonText?: string | React.ReactNode;\n registerButtonText?: string | React.ReactNode;\n registerButtonProps?: ButtonProps;\n loginButtonProps?: ButtonProps;\n}\n\nexport const PanelButton: FC<PanelButtonProps> = ({\n loginButtonText = 'CUENTA',\n registerButtonText = 'INGRESAR',\n registerButtonProps,\n loginButtonProps,\n params = {},\n}) => {\n const { isOpen } = useStore(panelStore);\n const { user } = useSession();\n\n const handleClick = () => {\n if (user) return handlePanelClick(!isOpen);\n\n let url = `${URL_PORTAL}/autenticacion`;\n\n const queryParams = {\n redirect_url: window.location.href,\n ...params,\n };\n\n const queryString = new URLSearchParams(queryParams).toString();\n\n return (window.location.href = `${url}?${queryString}`);\n };\n\n if (user) {\n return (\n <Button onClick={handleClick} {...loginButtonProps}>\n {loginButtonText}\n </Button>\n );\n }\n\n return (\n <Button onClick={handleClick} {...registerButtonProps}>\n {registerButtonText}\n </Button>\n );\n};\n"],"names":["useStore","panelStore","useSession","handlePanelClick","URL_PORTAL","_jsx","Button"],"mappings":";;;;;;;;;;MAiBa,WAAW,GAAyB,CAAC,EAChD,eAAe,GAAG,QAAQ,EAC1B,kBAAkB,GAAG,UAAU,EAC/B,mBAAmB,EACnB,gBAAgB,EAChB,MAAM,GAAG,EAAE,GACZ,KAAI;IACH,MAAM,EAAE,MAAM,EAAE,GAAGA,yBAAQ,CAACC,sBAAU,CAAC;AACvC,IAAA,MAAM,EAAE,IAAI,EAAE,GAAGC,wBAAU,EAAE;IAE7B,MAAM,WAAW,GAAG,MAAK;AACvB,QAAA,IAAI,IAAI;AAAE,YAAA,OAAOC,8BAAgB,CAAC,CAAC,MAAM,CAAC;AAE1C,QAAA,IAAI,GAAG,GAAG,CAAA,EAAGC,kBAAU,gBAAgB;AAEvC,QAAA,MAAM,WAAW,GAAG;AAClB,YAAA,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI;AAClC,YAAA,GAAG,MAAM;SACV;QAED,MAAM,WAAW,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;AAE/D,QAAA,QAAQ,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAA,EAAG,GAAG,CAAA,CAAA,EAAI,WAAW,CAAA,CAAE;AACxD,IAAA,CAAC;IAED,IAAI,IAAI,EAAE;AACR,QAAA,QACEC,cAAA,CAACC,
|
|
1
|
+
{"version":3,"file":"PanelButton.cjs","sources":["../../../../src/components/panel/PanelButton.tsx"],"sourcesContent":["\nimport React, { FC } from 'react';\nimport { Button, ButtonProps } from '@mui/material';\nimport { handlePanelClick } from './panel.actions';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { useSession } from '../session/session.hooks';\nimport { URL_PORTAL } from '../../shared/constants';\n\nexport interface PanelButtonProps {\n params?: { [key: string]: string };\n loginButtonText?: string | React.ReactNode;\n registerButtonText?: string | React.ReactNode;\n registerButtonProps?: ButtonProps;\n loginButtonProps?: ButtonProps;\n}\n\nexport const PanelButton: FC<PanelButtonProps> = ({\n loginButtonText = 'CUENTA',\n registerButtonText = 'INGRESAR',\n registerButtonProps,\n loginButtonProps,\n params = {},\n}) => {\n const { isOpen } = useStore(panelStore);\n const { user } = useSession();\n\n const handleClick = () => {\n if (user) return handlePanelClick(!isOpen);\n\n let url = `${URL_PORTAL}/autenticacion`;\n\n const queryParams = {\n redirect_url: window.location.href,\n ...params,\n };\n\n const queryString = new URLSearchParams(queryParams).toString();\n\n return (window.location.href = `${url}?${queryString}`);\n };\n\n if (user) {\n return (\n <Button onClick={handleClick} {...loginButtonProps}>\n {loginButtonText}\n </Button>\n );\n }\n\n return (\n <Button onClick={handleClick} {...registerButtonProps}>\n {registerButtonText}\n </Button>\n );\n};\n"],"names":["useStore","panelStore","useSession","handlePanelClick","URL_PORTAL","_jsx","Button"],"mappings":";;;;;;;;;;MAiBa,WAAW,GAAyB,CAAC,EAChD,eAAe,GAAG,QAAQ,EAC1B,kBAAkB,GAAG,UAAU,EAC/B,mBAAmB,EACnB,gBAAgB,EAChB,MAAM,GAAG,EAAE,GACZ,KAAI;IACH,MAAM,EAAE,MAAM,EAAE,GAAGA,yBAAQ,CAACC,sBAAU,CAAC;AACvC,IAAA,MAAM,EAAE,IAAI,EAAE,GAAGC,wBAAU,EAAE;IAE7B,MAAM,WAAW,GAAG,MAAK;AACvB,QAAA,IAAI,IAAI;AAAE,YAAA,OAAOC,8BAAgB,CAAC,CAAC,MAAM,CAAC;AAE1C,QAAA,IAAI,GAAG,GAAG,CAAA,EAAGC,kBAAU,gBAAgB;AAEvC,QAAA,MAAM,WAAW,GAAG;AAClB,YAAA,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI;AAClC,YAAA,GAAG,MAAM;SACV;QAED,MAAM,WAAW,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;AAE/D,QAAA,QAAQ,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAA,EAAG,GAAG,CAAA,CAAA,EAAI,WAAW,CAAA,CAAE;AACxD,IAAA,CAAC;IAED,IAAI,IAAI,EAAE;AACR,QAAA,QACEC,cAAA,CAACC,eAAM,EAAA,EAAC,OAAO,EAAE,WAAW,EAAA,GAAM,gBAAgB,EAAA,QAAA,EAC/C,eAAe,EAAA,CACT;IAEb;AAEA,IAAA,QACED,cAAA,CAACC,eAAM,EAAA,EAAC,OAAO,EAAE,WAAW,EAAA,GAAM,mBAAmB,EAAA,QAAA,EAClD,kBAAkB,EAAA,CACZ;AAEb;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var material = require('@mui/material');
|
|
5
5
|
|
|
6
6
|
const PanelDivider = ({ sx, ...rest }) => {
|
|
7
|
-
return (require$$2.jsx(Divider
|
|
7
|
+
return (require$$2.jsx(material.Divider, { sx: {
|
|
8
8
|
backgroundColor: '#e7e7e7',
|
|
9
9
|
height: 1.5,
|
|
10
10
|
...sx,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelDivider.cjs","sources":["../../../../src/components/panel/PanelDivider.tsx"],"sourcesContent":["\nimport { DividerProps, Divider } from '@mui/material';\nimport React from 'react';\n\nexport interface PanelDividerProps extends DividerProps {}\n\nexport const PanelDivider: React.FC<PanelDividerProps> = ({ sx, ...rest }) => {\n return (\n <Divider\n sx={{\n backgroundColor: '#e7e7e7',\n height: 1.5,\n ...sx,\n }}\n {...rest}\n />\n );\n};\n"],"names":["_jsx","Divider"],"mappings":";;;;;AAMO,MAAM,YAAY,GAAgC,CAAC,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,KAAI;AAC3E,IAAA,QACEA,cAAA,CAACC,
|
|
1
|
+
{"version":3,"file":"PanelDivider.cjs","sources":["../../../../src/components/panel/PanelDivider.tsx"],"sourcesContent":["\nimport { DividerProps, Divider } from '@mui/material';\nimport React from 'react';\n\nexport interface PanelDividerProps extends DividerProps {}\n\nexport const PanelDivider: React.FC<PanelDividerProps> = ({ sx, ...rest }) => {\n return (\n <Divider\n sx={{\n backgroundColor: '#e7e7e7',\n height: 1.5,\n ...sx,\n }}\n {...rest}\n />\n );\n};\n"],"names":["_jsx","Divider"],"mappings":";;;;;AAMO,MAAM,YAAY,GAAgC,CAAC,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,KAAI;AAC3E,IAAA,QACEA,cAAA,CAACC,gBAAO,EAAA,EACN,EAAE,EAAE;AACF,YAAA,eAAe,EAAE,SAAS;AAC1B,YAAA,MAAM,EAAE,GAAG;AACX,YAAA,GAAG,EAAE;SACN,EAAA,GACG,IAAI,EAAA,CACR;AAEN;;;;"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var PanelDivider = require('./PanelDivider.cjs');
|
|
5
6
|
var PanelItem = require('./PanelItem.cjs');
|
|
6
7
|
var theme = require('../../shared/mui/theme.cjs');
|
|
7
8
|
var PowerSettingsNew = require('../../node_modules/@mui/icons-material/esm/PowerSettingsNew.cjs');
|
|
8
9
|
var panel_actions = require('./panel.actions.cjs');
|
|
9
10
|
var session_hooks = require('../session/session.hooks.cjs');
|
|
10
|
-
var List = require('../../node_modules/@mui/material/esm/List/List.cjs');
|
|
11
|
-
var ListItemIcon = require('../../node_modules/@mui/material/esm/ListItemIcon/ListItemIcon.cjs');
|
|
12
11
|
|
|
13
12
|
const PanelFooter = ({ dividerProps, listProps, listItemProps, listItemTextProps, }) => {
|
|
14
13
|
const { config } = session_hooks.useSession();
|
|
15
|
-
return (require$$2.jsxs(List
|
|
14
|
+
return (require$$2.jsxs(material.List, { disablePadding: true, ...listProps, children: [require$$2.jsx(PanelDivider.PanelDivider, { ...dividerProps }), require$$2.jsx(PanelItem.PanelItem, { listItemProps: {
|
|
16
15
|
onClick: () => panel_actions.handleLogout(config),
|
|
17
|
-
secondaryAction: (require$$2.jsx(ListItemIcon
|
|
16
|
+
secondaryAction: (require$$2.jsx(material.ListItemIcon, { sx: { marginRight: theme.theme.spacing(1.5), minWidth: 0 }, children: require$$2.jsx(PowerSettingsNew.default, {}) })),
|
|
18
17
|
component: 'div',
|
|
19
18
|
...listItemProps,
|
|
20
19
|
}, listItemTextProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelFooter.cjs","sources":["../../../../src/components/panel/PanelFooter.tsx"],"sourcesContent":["\nimport {\n DividerProps,\n List,\n ListItemIcon,\n ListItemProps,\n ListItemTextProps,\n ListProps,\n} from '@mui/material';\nimport { PanelDivider } from './PanelDivider';\nimport { PanelItem } from './PanelItem';\nimport { theme } from '../../shared/mui/theme';\nimport PowerSettingsNewIcon from '@mui/icons-material/PowerSettingsNew';\nimport { handleLogout } from './panel.actions';\nimport { useSession } from '../session/session.hooks';\nimport React from 'react';\n\nexport interface PanelFooterProps {\n dividerProps?: DividerProps;\n listProps?: ListProps;\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelFooter: React.FC<PanelFooterProps> = ({\n dividerProps,\n listProps,\n listItemProps,\n listItemTextProps,\n}) => {\n const { config } = useSession();\n return (\n <List disablePadding {...listProps}>\n <PanelDivider {...dividerProps} />\n <PanelItem\n listItemProps={{\n onClick: () => handleLogout(config),\n secondaryAction: (\n <ListItemIcon sx={{ marginRight: theme.spacing(1.5), minWidth: 0 }}>\n <PowerSettingsNewIcon />\n </ListItemIcon>\n ),\n component: 'div',\n ...listItemProps,\n }}\n listItemTextProps={{\n primary: 'Cerrar sesión',\n primaryTypographyProps: { sx: { fontWeight: 'bold', fontSize: 18 } },\n ...listItemTextProps,\n }}\n />\n </List>\n );\n};\n"],"names":["useSession","_jsxs","List","_jsx","PanelDivider","PanelItem","handleLogout","ListItemIcon","theme","PowerSettingsNewIcon"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PanelFooter.cjs","sources":["../../../../src/components/panel/PanelFooter.tsx"],"sourcesContent":["\nimport {\n DividerProps,\n List,\n ListItemIcon,\n ListItemProps,\n ListItemTextProps,\n ListProps,\n} from '@mui/material';\nimport { PanelDivider } from './PanelDivider';\nimport { PanelItem } from './PanelItem';\nimport { theme } from '../../shared/mui/theme';\nimport PowerSettingsNewIcon from '@mui/icons-material/PowerSettingsNew';\nimport { handleLogout } from './panel.actions';\nimport { useSession } from '../session/session.hooks';\nimport React from 'react';\n\nexport interface PanelFooterProps {\n dividerProps?: DividerProps;\n listProps?: ListProps;\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelFooter: React.FC<PanelFooterProps> = ({\n dividerProps,\n listProps,\n listItemProps,\n listItemTextProps,\n}) => {\n const { config } = useSession();\n return (\n <List disablePadding {...listProps}>\n <PanelDivider {...dividerProps} />\n <PanelItem\n listItemProps={{\n onClick: () => handleLogout(config),\n secondaryAction: (\n <ListItemIcon sx={{ marginRight: theme.spacing(1.5), minWidth: 0 }}>\n <PowerSettingsNewIcon />\n </ListItemIcon>\n ),\n component: 'div',\n ...listItemProps,\n }}\n listItemTextProps={{\n primary: 'Cerrar sesión',\n primaryTypographyProps: { sx: { fontWeight: 'bold', fontSize: 18 } },\n ...listItemTextProps,\n }}\n />\n </List>\n );\n};\n"],"names":["useSession","_jsxs","List","_jsx","PanelDivider","PanelItem","handleLogout","ListItemIcon","theme","PowerSettingsNewIcon"],"mappings":";;;;;;;;;;;AAwBO,MAAM,WAAW,GAA+B,CAAC,EACtD,YAAY,EACZ,SAAS,EACT,aAAa,EACb,iBAAiB,GAClB,KAAI;AACH,IAAA,MAAM,EAAE,MAAM,EAAE,GAAGA,wBAAU,EAAE;AAC/B,IAAA,QACEC,eAAA,CAACC,aAAI,IAAC,cAAc,EAAA,IAAA,EAAA,GAAK,SAAS,EAAA,QAAA,EAAA,CAChCC,cAAA,CAACC,yBAAY,EAAA,EAAA,GAAK,YAAY,EAAA,CAAI,EAClCD,eAACE,mBAAS,EAAA,EACR,aAAa,EAAE;AACb,oBAAA,OAAO,EAAE,MAAMC,0BAAY,CAAC,MAAM,CAAC;oBACnC,eAAe,GACbH,cAAA,CAACI,qBAAY,EAAA,EAAC,EAAE,EAAE,EAAE,WAAW,EAAEC,WAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAA,QAAA,EAChEL,cAAA,CAACM,wBAAoB,EAAA,EAAA,CAAG,EAAA,CACX,CAChB;AACD,oBAAA,SAAS,EAAE,KAAK;AAChB,oBAAA,GAAG,aAAa;AACjB,iBAAA,EACD,iBAAiB,EAAE;AACjB,oBAAA,OAAO,EAAE,eAAe;AACxB,oBAAA,sBAAsB,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE;AACpE,oBAAA,GAAG,iBAAiB;iBACrB,EAAA,CACD,CAAA,EAAA,CACG;AAEX;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var material = require('@mui/material');
|
|
5
5
|
|
|
6
6
|
const PanelHeader = ({ imageProps = {}, containerProps = {}, }) => {
|
|
7
|
-
return (require$$2.jsx(Box
|
|
7
|
+
return (require$$2.jsx(material.Box, { ...containerProps, children: require$$2.jsx("img", { ...imageProps, alt: imageProps?.alt }) }));
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
exports.PanelHeader = PanelHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelHeader.cjs","sources":["../../../../src/components/panel/PanelHeader.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { BoxProps, Box } from '@mui/material';\n\nexport interface PanelHeaderProps {\n containerProps?: BoxProps;\n imageProps?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;\n}\n\nexport const PanelHeader: React.FC<PanelHeaderProps> = ({\n imageProps = {},\n containerProps = {},\n}) => {\n return (\n <Box {...containerProps}>\n <img {...imageProps} alt={imageProps?.alt} />\n </Box>\n );\n};\n"],"names":["_jsx","Box"],"mappings":";;;;;AASO,MAAM,WAAW,GAA+B,CAAC,EACtD,UAAU,GAAG,EAAE,EACf,cAAc,GAAG,EAAE,GACpB,KAAI;AACH,IAAA,QACEA,cAAA,CAACC,
|
|
1
|
+
{"version":3,"file":"PanelHeader.cjs","sources":["../../../../src/components/panel/PanelHeader.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { BoxProps, Box } from '@mui/material';\n\nexport interface PanelHeaderProps {\n containerProps?: BoxProps;\n imageProps?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;\n}\n\nexport const PanelHeader: React.FC<PanelHeaderProps> = ({\n imageProps = {},\n containerProps = {},\n}) => {\n return (\n <Box {...containerProps}>\n <img {...imageProps} alt={imageProps?.alt} />\n </Box>\n );\n};\n"],"names":["_jsx","Box"],"mappings":";;;;;AASO,MAAM,WAAW,GAA+B,CAAC,EACtD,UAAU,GAAG,EAAE,EACf,cAAc,GAAG,EAAE,GACpB,KAAI;AACH,IAAA,QACEA,cAAA,CAACC,YAAG,EAAA,EAAA,GAAK,cAAc,YACrBD,cAAA,CAAA,KAAA,EAAA,EAAA,GAAS,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAA,CAAI,EAAA,CACzC;AAEV;;;;"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var ArrowForwardIos = require('../../node_modules/@mui/icons-material/esm/ArrowForwardIos.cjs');
|
|
5
6
|
var theme = require('../../shared/mui/theme.cjs');
|
|
6
|
-
var ListItem = require('../../node_modules/@mui/material/esm/ListItem/ListItem.cjs');
|
|
7
|
-
var ListItemButton = require('../../node_modules/@mui/material/esm/ListItemButton/ListItemButton.cjs');
|
|
8
|
-
var ListItemText = require('../../node_modules/@mui/material/esm/ListItemText/ListItemText.cjs');
|
|
9
|
-
var IconButton = require('../../node_modules/@mui/material/esm/IconButton/IconButton.cjs');
|
|
10
7
|
|
|
11
8
|
const PanelItem = ({ listItemProps, listItemTextProps }) => {
|
|
12
|
-
return (require$$2.jsx(ListItem
|
|
9
|
+
return (require$$2.jsx(material.ListItem, { disablePadding: true, component: "a", secondaryAction: require$$2.jsx(material.IconButton, { children: require$$2.jsx(ArrowForwardIos.default, { fontSize: "small" }) }), ...listItemProps, children: require$$2.jsx(material.ListItemButton, { sx: { alignItems: 'center', paddingLeft: theme.theme.spacing(1.5) }, children: require$$2.jsx(material.ListItemText, { ...listItemTextProps }) }) }));
|
|
13
10
|
};
|
|
14
11
|
|
|
15
12
|
exports.PanelItem = PanelItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelItem.cjs","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelItem: React.FC<PanelItemProps> = ({ listItemProps, listItemTextProps }) => {\n return (\n <ListItem\n disablePadding\n component=\"a\"\n secondaryAction={\n <IconButton>\n <ArrowForwardIosIcon fontSize=\"small\" />\n </IconButton>\n }\n {...listItemProps}>\n <ListItemButton sx={{ alignItems: 'center', paddingLeft: theme.spacing(1.5) }}>\n <ListItemText {...listItemTextProps} />\n </ListItemButton>\n </ListItem>\n );\n};\n"],"names":["_jsx","ListItem","IconButton","ArrowForwardIosIcon","ListItemButton","theme","ListItemText"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PanelItem.cjs","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelItem: React.FC<PanelItemProps> = ({ listItemProps, listItemTextProps }) => {\n return (\n <ListItem\n disablePadding\n component=\"a\"\n secondaryAction={\n <IconButton>\n <ArrowForwardIosIcon fontSize=\"small\" />\n </IconButton>\n }\n {...listItemProps}>\n <ListItemButton sx={{ alignItems: 'center', paddingLeft: theme.spacing(1.5) }}>\n <ListItemText {...listItemTextProps} />\n </ListItemButton>\n </ListItem>\n );\n};\n"],"names":["_jsx","ListItem","IconButton","ArrowForwardIosIcon","ListItemButton","theme","ListItemText"],"mappings":";;;;;;;AAkBO,MAAM,SAAS,GAA6B,CAAC,EAAE,aAAa,EAAE,iBAAiB,EAAE,KAAI;IAC1F,QACEA,cAAA,CAACC,iBAAQ,EAAA,EACP,cAAc,QACd,SAAS,EAAC,GAAG,EACb,eAAe,EACbD,eAACE,mBAAU,EAAA,EAAA,QAAA,EACTF,cAAA,CAACG,uBAAmB,EAAA,EAAC,QAAQ,EAAC,OAAO,EAAA,CAAG,EAAA,CAC7B,EAAA,GAEX,aAAa,EAAA,QAAA,EACjBH,cAAA,CAACI,uBAAc,EAAA,EAAC,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAEC,WAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAA,QAAA,EAC3EL,cAAA,CAACM,qBAAY,EAAA,EAAA,GAAK,iBAAiB,EAAA,CAAI,EAAA,CACxB,EAAA,CACR;AAEf;;;;"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var PanelDivider = require('./PanelDivider.cjs');
|
|
5
6
|
var theme = require('../../shared/mui/theme.cjs');
|
|
6
7
|
var PanelItem = require('./PanelItem.cjs');
|
|
7
|
-
var Box = require('../../node_modules/@mui/material/esm/Box/Box.cjs');
|
|
8
|
-
var Typography = require('../../node_modules/@mui/material/esm/Typography/Typography.cjs');
|
|
9
|
-
var List = require('../../node_modules/@mui/material/esm/List/List.cjs');
|
|
10
8
|
|
|
11
9
|
const PanelListItems = ({ dividerProps, containerProps, listProps, titleProps, routes = [], title = 'Title', }) => {
|
|
12
|
-
return (require$$2.jsxs(Box
|
|
10
|
+
return (require$$2.jsxs(material.Box, { ...containerProps, children: [title ? (require$$2.jsxs(require$$2.Fragment, { children: [require$$2.jsx(material.Typography, { px: 1.5, mb: 1, lineHeight: 1.2, fontWeight: "bold", fontSize: 16, ...titleProps, children: title }), require$$2.jsx(PanelDivider.PanelDivider, { ...dividerProps })] })) : null, require$$2.jsx(material.List, { disablePadding: true, sx: { marginBottom: theme.theme.spacing(1) }, ...listProps, children: routes.map((route, index) => (require$$2.jsx(PanelItem.PanelItem, { listItemProps: {
|
|
13
11
|
href: route.path,
|
|
14
12
|
}, listItemTextProps: {
|
|
15
13
|
primary: route.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelListItems.cjs","sources":["../../../../src/components/panel/PanelListItems.tsx"],"sourcesContent":["\nimport React from 'react';\nimport {\n ListProps,\n Box,\n Typography,\n DividerProps,\n BoxProps,\n List,\n TypographyProps,\n} from '@mui/material';\nimport { PanelDivider } from './PanelDivider';\nimport { theme } from '../../shared/mui/theme';\nimport { PanelListRoute } from './panel.types';\nimport { PanelItem } from './PanelItem';\n\nexport interface PanelListItems {\n dividerProps?: DividerProps;\n containerProps?: BoxProps;\n listProps?: ListProps;\n routes?: PanelListRoute[];\n titleProps?: TypographyProps;\n title?: string;\n}\n\nexport const PanelListItems: React.FC<PanelListItems> = ({\n dividerProps,\n containerProps,\n listProps,\n titleProps,\n routes = [],\n title = 'Title',\n}) => {\n return (\n <Box {...containerProps}>\n {title ? (\n <>\n <Typography\n px={1.5}\n mb={1}\n lineHeight={1.2}\n fontWeight=\"bold\"\n fontSize={16}\n {...titleProps}>\n {title}\n </Typography>\n <PanelDivider {...dividerProps} />\n </>\n ) : null}\n\n <List disablePadding sx={{ marginBottom: theme.spacing(1) }} {...listProps}>\n {routes.map((route, index) => (\n <PanelItem\n key={index}\n listItemProps={{\n href: route.path,\n }}\n listItemTextProps={{\n primary: route.name,\n primaryTypographyProps: { sx: { fontWeight: 400, fontSize: 16 } },\n }}\n />\n ))}\n </List>\n </Box>\n );\n};\n"],"names":["_jsxs","Box","_Fragment","_jsx","Typography","PanelDivider","List","theme","PanelItem"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PanelListItems.cjs","sources":["../../../../src/components/panel/PanelListItems.tsx"],"sourcesContent":["\nimport React from 'react';\nimport {\n ListProps,\n Box,\n Typography,\n DividerProps,\n BoxProps,\n List,\n TypographyProps,\n} from '@mui/material';\nimport { PanelDivider } from './PanelDivider';\nimport { theme } from '../../shared/mui/theme';\nimport { PanelListRoute } from './panel.types';\nimport { PanelItem } from './PanelItem';\n\nexport interface PanelListItems {\n dividerProps?: DividerProps;\n containerProps?: BoxProps;\n listProps?: ListProps;\n routes?: PanelListRoute[];\n titleProps?: TypographyProps;\n title?: string;\n}\n\nexport const PanelListItems: React.FC<PanelListItems> = ({\n dividerProps,\n containerProps,\n listProps,\n titleProps,\n routes = [],\n title = 'Title',\n}) => {\n return (\n <Box {...containerProps}>\n {title ? (\n <>\n <Typography\n px={1.5}\n mb={1}\n lineHeight={1.2}\n fontWeight=\"bold\"\n fontSize={16}\n {...titleProps}>\n {title}\n </Typography>\n <PanelDivider {...dividerProps} />\n </>\n ) : null}\n\n <List disablePadding sx={{ marginBottom: theme.spacing(1) }} {...listProps}>\n {routes.map((route, index) => (\n <PanelItem\n key={index}\n listItemProps={{\n href: route.path,\n }}\n listItemTextProps={{\n primary: route.name,\n primaryTypographyProps: { sx: { fontWeight: 400, fontSize: 16 } },\n }}\n />\n ))}\n </List>\n </Box>\n );\n};\n"],"names":["_jsxs","Box","_Fragment","_jsx","Typography","PanelDivider","List","theme","PanelItem"],"mappings":";;;;;;;;MAyBa,cAAc,GAA6B,CAAC,EACvD,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,EACV,MAAM,GAAG,EAAE,EACX,KAAK,GAAG,OAAO,GAChB,KAAI;AACH,IAAA,QACEA,eAAA,CAACC,YAAG,OAAK,cAAc,EAAA,QAAA,EAAA,CACpB,KAAK,IACJD,eAAA,CAAAE,mBAAA,EAAA,EAAA,QAAA,EAAA,CACEC,eAACC,mBAAU,EAAA,EACT,EAAE,EAAE,GAAG,EACP,EAAE,EAAE,CAAC,EACL,UAAU,EAAE,GAAG,EACf,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,EAAE,EAAA,GACR,UAAU,EAAA,QAAA,EACb,KAAK,GACK,EACbD,cAAA,CAACE,yBAAY,EAAA,EAAA,GAAK,YAAY,EAAA,CAAI,CAAA,EAAA,CACjC,IACD,IAAI,EAERF,eAACG,aAAI,EAAA,EAAC,cAAc,EAAA,IAAA,EAAC,EAAE,EAAE,EAAE,YAAY,EAAEC,WAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAM,SAAS,EAAA,QAAA,EACvE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,MACvBJ,eAACK,mBAAS,EAAA,EAER,aAAa,EAAE;wBACb,IAAI,EAAE,KAAK,CAAC,IAAI;AACjB,qBAAA,EACD,iBAAiB,EAAE;wBACjB,OAAO,EAAE,KAAK,CAAC,IAAI;AACnB,wBAAA,sBAAsB,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE;AAClE,qBAAA,EAAA,EAPI,KAAK,CAQV,CACH,CAAC,EAAA,CACG,CAAA,EAAA,CACH;AAEV;;;;"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
4
|
var session_hooks = require('../session/session.hooks.cjs');
|
|
5
|
-
var
|
|
5
|
+
var material = require('@mui/material');
|
|
6
6
|
|
|
7
7
|
const PanelSubscriptionIcon = ({ children, subscriptionImageContainerProps = {}, }) => {
|
|
8
8
|
const { subscription } = session_hooks.useSession();
|
|
9
9
|
if (!subscription)
|
|
10
10
|
return null;
|
|
11
|
-
return (require$$2.jsx(Box
|
|
11
|
+
return (require$$2.jsx(material.Box, { sx: {
|
|
12
12
|
borderRadius: '50%',
|
|
13
13
|
position: 'absolute',
|
|
14
14
|
top: -7,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelSubscriptionIcon.cjs","sources":["../../../../src/components/panel/PanelSubscriptionIcon.tsx"],"sourcesContent":["\n\nimport React from 'react';\nimport { useSession } from '../session/session.hooks';\nimport { Box, BoxProps } from '@mui/material';\n\nexport interface PanelSubscriptionIconProps {\n children?: React.ReactNode;\n subscriptionImageContainerProps?: BoxProps;\n}\n\nexport const PanelSubscriptionIcon: React.FC<PanelSubscriptionIconProps> = ({\n children,\n subscriptionImageContainerProps = {},\n}) => {\n const { subscription } = useSession();\n\n if (!subscription) return null;\n\n return (\n <Box\n sx={{\n borderRadius: '50%',\n position: 'absolute',\n top: -7,\n right: -7,\n }}\n {...subscriptionImageContainerProps}>\n {children}\n </Box>\n );\n};\n"],"names":["useSession","_jsx","Box"],"mappings":";;;;;;AAWO,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,QAAQ,EACR,+BAA+B,GAAG,EAAE,GACrC,KAAI;AACH,IAAA,MAAM,EAAE,YAAY,EAAE,GAAGA,wBAAU,EAAE;AAErC,IAAA,IAAI,CAAC,YAAY;AAAE,QAAA,OAAO,IAAI;AAE9B,IAAA,QACEC,cAAA,CAACC,
|
|
1
|
+
{"version":3,"file":"PanelSubscriptionIcon.cjs","sources":["../../../../src/components/panel/PanelSubscriptionIcon.tsx"],"sourcesContent":["\n\nimport React from 'react';\nimport { useSession } from '../session/session.hooks';\nimport { Box, BoxProps } from '@mui/material';\n\nexport interface PanelSubscriptionIconProps {\n children?: React.ReactNode;\n subscriptionImageContainerProps?: BoxProps;\n}\n\nexport const PanelSubscriptionIcon: React.FC<PanelSubscriptionIconProps> = ({\n children,\n subscriptionImageContainerProps = {},\n}) => {\n const { subscription } = useSession();\n\n if (!subscription) return null;\n\n return (\n <Box\n sx={{\n borderRadius: '50%',\n position: 'absolute',\n top: -7,\n right: -7,\n }}\n {...subscriptionImageContainerProps}>\n {children}\n </Box>\n );\n};\n"],"names":["useSession","_jsx","Box"],"mappings":";;;;;;AAWO,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,QAAQ,EACR,+BAA+B,GAAG,EAAE,GACrC,KAAI;AACH,IAAA,MAAM,EAAE,YAAY,EAAE,GAAGA,wBAAU,EAAE;AAErC,IAAA,IAAI,CAAC,YAAY;AAAE,QAAA,OAAO,IAAI;AAE9B,IAAA,QACEC,cAAA,CAACC,YAAG,EAAA,EACF,EAAE,EAAE;AACF,YAAA,YAAY,EAAE,KAAK;AACnB,YAAA,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,EAAE;YACP,KAAK,EAAE,EAAE;AACV,SAAA,EAAA,GACG,+BAA+B,EAAA,QAAA,EAClC,QAAQ,EAAA,CACL;AAEV;;;;"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var index = require('../../shared/constants/index.cjs');
|
|
5
|
-
var Box = require('../../node_modules/@mui/material/esm/Box/Box.cjs');
|
|
6
|
-
var Typography = require('../../node_modules/@mui/material/esm/Typography/Typography.cjs');
|
|
7
|
-
var Button = require('../../node_modules/@mui/material/esm/Button/Button.cjs');
|
|
8
6
|
|
|
9
7
|
const PaywallRegister = ({ containerProps = {}, subtitleProps = {}, buttonProps = {}, titleProps = {}, secondaryButtonText = 'Ya estoy registrado', secondaryButtonProps = {}, title = 'Este artículo es exclusivo para usuarios registrados', subtitle = 'Regístrate para obtener beneficios exclusivos.', buttonText = '¡Regístrate gratis!', }) => {
|
|
10
8
|
const { sx: sxContainerProps, ...containerPropRest } = containerProps;
|
|
@@ -27,7 +25,7 @@ const PaywallRegister = ({ containerProps = {}, subtitleProps = {}, buttonProps
|
|
|
27
25
|
}
|
|
28
26
|
return (window.location.href = `${url}/autenticacion?action=AUTH_LOGIN?post_url=${window.location.href}`);
|
|
29
27
|
};
|
|
30
|
-
return (require$$2.jsx(Box
|
|
28
|
+
return (require$$2.jsx(material.Box, { sx: {
|
|
31
29
|
display: 'flex',
|
|
32
30
|
width: '100%',
|
|
33
31
|
border: '1px solid #707070',
|
|
@@ -40,7 +38,7 @@ const PaywallRegister = ({ containerProps = {}, subtitleProps = {}, buttonProps
|
|
|
40
38
|
borderRadius: '20px',
|
|
41
39
|
boxShadow: '0px 0px 32px #00000029',
|
|
42
40
|
...sxContainerProps,
|
|
43
|
-
}, ...containerPropRest, children: require$$2.jsxs(Box
|
|
41
|
+
}, ...containerPropRest, children: require$$2.jsxs(material.Box, { sx: {
|
|
44
42
|
width: {
|
|
45
43
|
xs: 360,
|
|
46
44
|
md: 460,
|
|
@@ -49,14 +47,14 @@ const PaywallRegister = ({ containerProps = {}, subtitleProps = {}, buttonProps
|
|
|
49
47
|
alignItems: 'center',
|
|
50
48
|
flexDirection: 'column',
|
|
51
49
|
display: 'flex',
|
|
52
|
-
}, children: [require$$2.jsx(Typography
|
|
50
|
+
}, children: [require$$2.jsx(material.Typography, { sx: {
|
|
53
51
|
fontWeight: 700,
|
|
54
52
|
lineHeight: '34px',
|
|
55
53
|
fontSize: '34px',
|
|
56
54
|
textAlign: 'center',
|
|
57
55
|
marginBottom: '1.5rem',
|
|
58
56
|
...sxTitleProps,
|
|
59
|
-
}, ...titlePropRest, children: title }), require$$2.jsx(Typography
|
|
57
|
+
}, ...titlePropRest, children: title }), require$$2.jsx(material.Typography, { sx: { textAlign: 'center', marginBottom: '1.5rem', ...sxSubtitleProps }, ...subtitlePropRest, children: subtitle }), require$$2.jsx(material.Button, { disableElevation: true, disableRipple: true, disableTouchRipple: true, disableFocusRipple: true, sx: {
|
|
60
58
|
background: '#f75957',
|
|
61
59
|
'&:hover': {
|
|
62
60
|
backgroundColor: '#f75957',
|
|
@@ -72,7 +70,7 @@ const PaywallRegister = ({ containerProps = {}, subtitleProps = {}, buttonProps
|
|
|
72
70
|
paddingRight: '.75rem',
|
|
73
71
|
borderRadius: '0.25rem',
|
|
74
72
|
...sxButtonProps,
|
|
75
|
-
}, onClick: () => handleButton(), ...buttonPropsRest, children: buttonText }), require$$2.jsx(Button
|
|
73
|
+
}, onClick: () => handleButton(), ...buttonPropsRest, children: buttonText }), require$$2.jsx(material.Button, { disableElevation: true, disableRipple: true, disableTouchRipple: true, disableFocusRipple: true, sx: {
|
|
76
74
|
textDecoration: 'underline',
|
|
77
75
|
background: 'transparent',
|
|
78
76
|
textTransform: 'none',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaywallRegister.cjs","sources":["../../../../src/components/paywall/PaywallRegister.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { Box, BoxProps, Typography, TypographyProps, ButtonProps, Button } from '@mui/material';\nimport {URL_PORTAL} from \"@/shared/constants\";\n\n\n\n\nexport interface PaywallRegisterProps {\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 PaywallRegister: React.FC<PaywallRegisterProps> = ({\n containerProps = {},\n subtitleProps = {},\n buttonProps = {},\n titleProps = {},\n secondaryButtonText = 'Ya estoy registrado',\n secondaryButtonProps = {},\n title = 'Este artículo es exclusivo para usuarios registrados',\n subtitle = 'Regístrate para obtener beneficios exclusivos.',\n buttonText = '¡Regístrate gratis!',\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\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}/autenticacion?action=AUTH_REGISTER?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":"
|
|
1
|
+
{"version":3,"file":"PaywallRegister.cjs","sources":["../../../../src/components/paywall/PaywallRegister.tsx"],"sourcesContent":["\nimport React from 'react';\nimport { Box, BoxProps, Typography, TypographyProps, ButtonProps, Button } from '@mui/material';\nimport {URL_PORTAL} from \"@/shared/constants\";\n\n\n\n\nexport interface PaywallRegisterProps {\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 PaywallRegister: React.FC<PaywallRegisterProps> = ({\n containerProps = {},\n subtitleProps = {},\n buttonProps = {},\n titleProps = {},\n secondaryButtonText = 'Ya estoy registrado',\n secondaryButtonProps = {},\n title = 'Este artículo es exclusivo para usuarios registrados',\n subtitle = 'Regístrate para obtener beneficios exclusivos.',\n buttonText = '¡Regístrate gratis!',\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\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}/autenticacion?action=AUTH_REGISTER?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":";;;;;;AAsBO,MAAM,eAAe,GAAmC,CAAC,EAC9D,cAAc,GAAG,EAAE,EACnB,aAAa,GAAG,EAAE,EAClB,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,EAAE,EACf,mBAAmB,GAAG,qBAAqB,EAC3C,oBAAoB,GAAG,EAAE,EACzB,KAAK,GAAG,sDAAsD,EAC9D,QAAQ,GAAG,gDAAgD,EAC3D,UAAU,GAAG,qBAAqB,GACnC,KAAI;IACH,MAAM,EAAE,EAAE,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,EAAE,GAAG,cAAc;IACrE,MAAM,EAAE,EAAE,EAAE,eAAe,EAAE,GAAG,gBAAgB,EAAE,GAAG,aAAa;IAClE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,GAAG,UAAU;IACzD,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,eAAe,EAAE,GAAG,WAAW;IAC7D,MAAM,EAAE,EAAE,EAAE,sBAAsB,EAAE,GAAG,wBAAwB,EAAE,GAAG,oBAAoB;IACxF,MAAM,GAAG,GAAGA,gBAAU;IAEtB,MAAM,YAAY,GAAG,MAAK;QACxB,IAAI,CAAC,GAAG,EAAE;AACR,YAAA,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC;AACpD,YAAA,OAAO,IAAI;QACb;AAEA,QAAA,QAAQ,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAA,EAAG,GAAG,CAAA,6CAAA,EAAgD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAA,CAAE;AAC7G,IAAA,CAAC;IAED,MAAM,qBAAqB,GAAG,MAAK;QACjC,IAAI,CAAC,GAAG,EAAE;AACR,YAAA,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC;AACpD,YAAA,OAAO,IAAI;QACb;AAEA,QAAA,QAAQ,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAA,EAAG,GAAG,CAAA,0CAAA,EAA6C,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAA,CAAE;AAC1G,IAAA,CAAC;AAED,IAAA,QACEC,cAAA,CAACC,YAAG,EAAA,EACF,EAAE,EAAE;AACF,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,MAAM,EAAE,mBAAmB;AAC3B,YAAA,cAAc,EAAE,QAAQ;AACxB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,aAAa,EAAE,QAAQ;AACvB,YAAA,UAAU,EAAE,OAAO;AACnB,YAAA,UAAU,EAAE,MAAM;AAClB,YAAA,aAAa,EAAE,MAAM;AACrB,YAAA,YAAY,EAAE,MAAM;AACpB,YAAA,SAAS,EAAE,wBAAwB;AACnC,YAAA,GAAG,gBAAgB;AACpB,SAAA,EAAA,GACG,iBAAiB,EAAA,QAAA,EACrBC,eAAA,CAACD,YAAG,EAAA,EACF,EAAE,EAAE;AACF,gBAAA,KAAK,EAAE;AACL,oBAAA,EAAE,EAAE,GAAG;AACP,oBAAA,EAAE,EAAE,GAAG;AACR,iBAAA;AACD,gBAAA,cAAc,EAAE,QAAQ;AACxB,gBAAA,UAAU,EAAE,QAAQ;AACpB,gBAAA,aAAa,EAAE,QAAQ;AACvB,gBAAA,OAAO,EAAE,MAAM;AAChB,aAAA,EAAA,QAAA,EAAA,CACDD,cAAA,CAACG,mBAAU,EAAA,EACT,EAAE,EAAE;AACF,wBAAA,UAAU,EAAE,GAAG;AACf,wBAAA,UAAU,EAAE,MAAM;AAClB,wBAAA,QAAQ,EAAE,MAAM;AAChB,wBAAA,SAAS,EAAE,QAAQ;AACnB,wBAAA,YAAY,EAAE,QAAQ;AACtB,wBAAA,GAAG,YAAY;AAChB,qBAAA,EAAA,GACG,aAAa,EAAA,QAAA,EAChB,KAAK,GACK,EACbH,cAAA,CAACG,mBAAU,EAAA,EACT,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,eAAe,EAAE,KACnE,gBAAgB,EAAA,QAAA,EACnB,QAAQ,EAAA,CACE,EACbH,eAACI,eAAM,EAAA,EACL,gBAAgB,EAAA,IAAA,EAChB,aAAa,EAAA,IAAA,EACb,kBAAkB,QAClB,kBAAkB,EAAA,IAAA,EAClB,EAAE,EAAE;AACF,wBAAA,UAAU,EAAE,SAAS;AACrB,wBAAA,SAAS,EAAE;AACT,4BAAA,eAAe,EAAE,SAAS;AAC3B,yBAAA;AACD,wBAAA,UAAU,EAAE,GAAG;AACf,wBAAA,aAAa,EAAE,WAAW;AAC1B,wBAAA,YAAY,EAAE,OAAO;AACrB,wBAAA,KAAK,EAAE,OAAO;AACd,wBAAA,QAAQ,EAAE,MAAM;AAChB,wBAAA,UAAU,EAAE,OAAO;AACnB,wBAAA,aAAa,EAAE,OAAO;AACtB,wBAAA,WAAW,EAAE,QAAQ;AACrB,wBAAA,YAAY,EAAE,QAAQ;AACtB,wBAAA,YAAY,EAAE,SAAS;AACvB,wBAAA,GAAG,aAAa;qBACjB,EACD,OAAO,EAAE,MAAM,YAAY,EAAE,EAAA,GACzB,eAAe,EAAA,QAAA,EAClB,UAAU,EAAA,CACJ,EACTJ,cAAA,CAACI,eAAM,EAAA,EACL,gBAAgB,EAAA,IAAA,EAChB,aAAa,EAAA,IAAA,EACb,kBAAkB,EAAA,IAAA,EAClB,kBAAkB,EAAA,IAAA,EAClB,EAAE,EAAE;AACF,wBAAA,cAAc,EAAE,WAAW;AAC3B,wBAAA,UAAU,EAAE,aAAa;AACzB,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,UAAU,EAAE,GAAG;AACf,wBAAA,SAAS,EAAE,QAAQ;AACnB,wBAAA,QAAQ,EAAE,MAAM;AAChB,wBAAA,UAAU,EAAE,OAAO;AACnB,wBAAA,aAAa,EAAE,OAAO;AACtB,wBAAA,WAAW,EAAE,QAAQ;AACrB,wBAAA,YAAY,EAAE,QAAQ;AACtB,wBAAA,KAAK,EAAE,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;;;;"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('react/jsx-runtime');
|
|
4
|
+
var material = require('@mui/material');
|
|
4
5
|
var index = require('../../shared/constants/index.cjs');
|
|
5
|
-
var Box = require('../../node_modules/@mui/material/esm/Box/Box.cjs');
|
|
6
|
-
var Typography = require('../../node_modules/@mui/material/esm/Typography/Typography.cjs');
|
|
7
|
-
var Button = require('../../node_modules/@mui/material/esm/Button/Button.cjs');
|
|
8
6
|
|
|
9
7
|
const PaywallSubscription = ({ containerProps = {}, subtitleProps = {}, buttonProps = {}, titleProps = {}, secondaryButtonText = 'Ya soy suscriptor', secondaryButtonProps = {}, withCaption = false, title = 'Este artículo es exclusivo para suscriptores', subtitle = 'Tu contribución nos ayuda a cubrir costos de investigación, tecnología y ofrecerte servicios de valor agregado.', post, buttonText = 'Suscríbete', }) => {
|
|
10
8
|
const { sx: sxContainerProps, ...containerPropRest } = containerProps;
|
|
@@ -27,7 +25,7 @@ const PaywallSubscription = ({ containerProps = {}, subtitleProps = {}, buttonPr
|
|
|
27
25
|
}
|
|
28
26
|
return (window.location.href = `${url}/autenticacion?action=AUTH_LOGIN?post_url=${window.location.href}`);
|
|
29
27
|
};
|
|
30
|
-
return (require$$2.jsx(Box
|
|
28
|
+
return (require$$2.jsx(material.Box, { sx: {
|
|
31
29
|
display: 'flex',
|
|
32
30
|
width: '100%',
|
|
33
31
|
border: '1px solid #707070',
|
|
@@ -40,7 +38,7 @@ const PaywallSubscription = ({ containerProps = {}, subtitleProps = {}, buttonPr
|
|
|
40
38
|
borderRadius: '20px',
|
|
41
39
|
boxShadow: '0px 0px 32px #00000029',
|
|
42
40
|
...sxContainerProps,
|
|
43
|
-
}, ...containerPropRest, children: require$$2.jsxs(Box
|
|
41
|
+
}, ...containerPropRest, children: require$$2.jsxs(material.Box, { sx: {
|
|
44
42
|
width: {
|
|
45
43
|
xs: 360,
|
|
46
44
|
md: 460,
|
|
@@ -49,14 +47,14 @@ const PaywallSubscription = ({ containerProps = {}, subtitleProps = {}, buttonPr
|
|
|
49
47
|
alignItems: 'center',
|
|
50
48
|
flexDirection: 'column',
|
|
51
49
|
display: 'flex',
|
|
52
|
-
}, children: [require$$2.jsx(Typography
|
|
50
|
+
}, children: [require$$2.jsx(material.Typography, { sx: {
|
|
53
51
|
fontWeight: 700,
|
|
54
52
|
lineHeight: '34px',
|
|
55
53
|
fontSize: '34px',
|
|
56
54
|
textAlign: 'center',
|
|
57
55
|
marginBottom: '1.5rem',
|
|
58
56
|
...sxTitleProps,
|
|
59
|
-
}, ...titlePropRest, children: title }), require$$2.jsx(Typography
|
|
57
|
+
}, ...titlePropRest, children: title }), require$$2.jsx(material.Typography, { sx: { textAlign: 'center', marginBottom: '1.5rem', ...sxSubtitleProps }, ...subtitlePropRest, children: subtitle }), require$$2.jsx(material.Button, { disableElevation: true, disableRipple: true, disableTouchRipple: true, disableFocusRipple: true, sx: {
|
|
60
58
|
background: '#f75957',
|
|
61
59
|
'&:hover': {
|
|
62
60
|
backgroundColor: '#f75957',
|
|
@@ -72,7 +70,7 @@ const PaywallSubscription = ({ containerProps = {}, subtitleProps = {}, buttonPr
|
|
|
72
70
|
paddingRight: '.75rem',
|
|
73
71
|
borderRadius: '0.25rem',
|
|
74
72
|
...sxButtonProps,
|
|
75
|
-
}, onClick: () => handleButton(), ...buttonPropsRest, children: buttonText }), require$$2.jsx(Button
|
|
73
|
+
}, onClick: () => handleButton(), ...buttonPropsRest, children: buttonText }), require$$2.jsx(material.Button, { disableElevation: true, disableRipple: true, disableTouchRipple: true, disableFocusRipple: true, sx: {
|
|
76
74
|
textDecoration: 'underline',
|
|
77
75
|
background: 'transparent',
|
|
78
76
|
textTransform: 'none',
|