keski_lib_catalog 1.0.12 → 1.0.14
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/index.js +45 -55
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +46 -56
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58,12 +58,20 @@ var AtomicElements = /*#__PURE__*/function () {
|
|
|
58
58
|
}();
|
|
59
59
|
|
|
60
60
|
function Layout1(content) {
|
|
61
|
-
var
|
|
62
|
-
show = _useState[0];
|
|
61
|
+
var visible = true;
|
|
63
62
|
return /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
64
63
|
direction: "left",
|
|
65
|
-
"in":
|
|
66
|
-
}, /*#__PURE__*/React__default.createElement(material.Box,
|
|
64
|
+
"in": visible
|
|
65
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
66
|
+
sx: {
|
|
67
|
+
display: 'flex',
|
|
68
|
+
flexDirection: 'column',
|
|
69
|
+
width: {
|
|
70
|
+
xs: '100%',
|
|
71
|
+
md: '30%'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
67
75
|
className: "title-large",
|
|
68
76
|
sx: {
|
|
69
77
|
marginBottom: '16px'
|
|
@@ -93,16 +101,18 @@ var Quotes = /*#__PURE__*/function (_AtomicElements) {
|
|
|
93
101
|
}(AtomicElements);
|
|
94
102
|
|
|
95
103
|
function Layout1$1(content) {
|
|
96
|
-
var
|
|
97
|
-
show = _useState[0];
|
|
104
|
+
var visible = true;
|
|
98
105
|
return /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
99
106
|
direction: "left",
|
|
100
|
-
"in":
|
|
107
|
+
"in": visible
|
|
101
108
|
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
102
109
|
sx: {
|
|
103
110
|
display: 'flex',
|
|
104
111
|
flexDirection: 'column',
|
|
105
|
-
|
|
112
|
+
width: {
|
|
113
|
+
xs: '100%',
|
|
114
|
+
md: '30%'
|
|
115
|
+
}
|
|
106
116
|
}
|
|
107
117
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
108
118
|
className: "title-xlarge",
|
|
@@ -117,7 +127,7 @@ function Layout1$1(content) {
|
|
|
117
127
|
}, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React__default.createElement(material.Button, {
|
|
118
128
|
variant: "contained",
|
|
119
129
|
sx: {
|
|
120
|
-
width: '
|
|
130
|
+
width: '50%',
|
|
121
131
|
marginBottom: '16px'
|
|
122
132
|
}
|
|
123
133
|
}, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón')));
|
|
@@ -158,42 +168,40 @@ function CanvasContainer(props) {
|
|
|
158
168
|
backgroundRepeat: 'no-repeat'
|
|
159
169
|
}
|
|
160
170
|
}, /*#__PURE__*/React__default.createElement(material.Container, {
|
|
161
|
-
maxWidth: "xl"
|
|
171
|
+
maxWidth: "xl"
|
|
172
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
162
173
|
sx: {
|
|
174
|
+
minWidth: {
|
|
175
|
+
xs: '100%',
|
|
176
|
+
md: '45%'
|
|
177
|
+
},
|
|
163
178
|
display: 'flex',
|
|
164
179
|
justifyContent: {
|
|
165
180
|
xs: 'center',
|
|
166
181
|
md: json.component.justify_content ? json.component.justify_content : 'center'
|
|
167
182
|
}
|
|
168
183
|
}
|
|
169
|
-
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
170
|
-
sx: {
|
|
171
|
-
minWidth: {
|
|
172
|
-
xs: '100%',
|
|
173
|
-
md: '30%'
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
184
|
}, children)));
|
|
177
185
|
}
|
|
178
186
|
|
|
179
187
|
var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
|
|
180
188
|
|
|
181
189
|
function Layout1$2(content) {
|
|
182
|
-
var
|
|
183
|
-
show = _useState[0];
|
|
190
|
+
var visible = true;
|
|
184
191
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
185
192
|
container: true,
|
|
186
193
|
direction: "row",
|
|
187
194
|
justifyContent: "center",
|
|
188
195
|
alignItems: "center",
|
|
189
|
-
width: '100%'
|
|
196
|
+
width: '100%',
|
|
197
|
+
spacing: "16px"
|
|
190
198
|
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
191
199
|
item: true,
|
|
192
|
-
xs:
|
|
193
|
-
|
|
200
|
+
xs: 12,
|
|
201
|
+
md: 5
|
|
194
202
|
}, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
195
203
|
direction: "right",
|
|
196
|
-
"in":
|
|
204
|
+
"in": visible
|
|
197
205
|
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
198
206
|
sx: {
|
|
199
207
|
maxWidth: {
|
|
@@ -207,51 +215,33 @@ function Layout1$2(content) {
|
|
|
207
215
|
height: "auto",
|
|
208
216
|
width: "100%",
|
|
209
217
|
src: content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'
|
|
210
|
-
})))), /*#__PURE__*/React__default.createElement(
|
|
211
|
-
|
|
218
|
+
})))), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
219
|
+
item: true,
|
|
220
|
+
xs: 12,
|
|
221
|
+
md: 7
|
|
222
|
+
}, /*#__PURE__*/React__default.createElement(Grow, _extends({
|
|
223
|
+
"in": visible,
|
|
212
224
|
style: {
|
|
213
225
|
transformOrigin: '0 0 0'
|
|
214
226
|
}
|
|
215
|
-
},
|
|
227
|
+
}, {
|
|
216
228
|
timeout: 1000
|
|
217
|
-
}
|
|
218
|
-
item: true,
|
|
219
|
-
sx: true
|
|
220
|
-
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
221
|
-
container: true,
|
|
222
|
-
direction: "column",
|
|
223
|
-
justifyContent: "center",
|
|
224
|
-
alignItems: "start",
|
|
225
|
-
style: {
|
|
226
|
-
border: '1px',
|
|
227
|
-
borderColor: 'black',
|
|
228
|
-
padding: '32px'
|
|
229
|
-
}
|
|
230
|
-
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
231
|
-
item: true,
|
|
232
|
-
sx: true
|
|
233
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
229
|
+
} ), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement("a", {
|
|
234
230
|
className: "title-xlarge"
|
|
235
|
-
}, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : '
|
|
231
|
+
}, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título')), /*#__PURE__*/React__default.createElement(material.Box, {
|
|
236
232
|
item: true,
|
|
237
|
-
sx: true,
|
|
238
|
-
width: {
|
|
239
|
-
md: '70vh',
|
|
240
|
-
xs: 'auto'
|
|
241
|
-
},
|
|
242
233
|
height: "auto",
|
|
243
234
|
minHeight: {
|
|
244
235
|
md: '200px',
|
|
245
236
|
xs: 'auto'
|
|
246
237
|
},
|
|
247
238
|
textAlign: 'justify'
|
|
248
|
-
}, /*#__PURE__*/React__default.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : '
|
|
249
|
-
item: true,
|
|
250
|
-
sx: true
|
|
251
|
-
}, /*#__PURE__*/React__default.createElement(material.Button, {
|
|
239
|
+
}, /*#__PURE__*/React__default.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción')), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Button, {
|
|
252
240
|
variant: "contained",
|
|
253
|
-
|
|
254
|
-
|
|
241
|
+
sx: {
|
|
242
|
+
width: '30%'
|
|
243
|
+
}
|
|
244
|
+
}, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'))))));
|
|
255
245
|
}
|
|
256
246
|
|
|
257
247
|
var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/atomicElement.js","../src/quotes/elements/layout1.js","../src/quotes/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../src/constants.js","../src/textPlusImg/elements/layout1.js","../src/textPlusImg/Component.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\r\n }\r\n\r\n layoutsLength(){\r\n return(\r\n this.layout.length\r\n )\r\n }\r\n\r\n build(content, layoutId){\r\n return(\r\n this.layout[layoutId](content)\r\n )\r\n }\r\n\r\n footprint(layout){\r\n let img = this.layoutFootprint[layout]\r\n let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\r\n}\r\n","import React, { useState } from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\r\n <Box>\r\n <Typography className=\"title-large\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"small\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Quotes extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['quotes_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { useState } from 'react'\r\nimport { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>\r\n <Typography className=\"title-xlarge\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Slide>\r\n\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\n\r\nexport class Banner extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1]\r\n layoutFootprint = ['banner_layout_1.jpg']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'Name',\r\n },\r\n \r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n // <texinput display={!layout.img} id='Title'>\r\n // <texinput display={!layout.img} id='content'></texinput>\r\n // <texinput display={!layout.img} id='name'></texinput>\r\n //<texinput disable={!layout.img}>\r\n}","import React from \"react\";\r\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n //minHeight: '680px',//este no pueden ser estaticos\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl' sx={{ display: 'flex', justifyContent: { xs: 'center', md: json.component.justify_content ? json.component.justify_content : 'center' } }} >\r\n <Box sx={{ minWidth: { xs: '100%', md: '30%' } }}>\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import { Grid, Box, Button } from \"@mui/material\"\r\nimport React, { useState } from \"react\"\r\nimport { Slide } from \"@mui/material\";\r\nimport Grow from '@mui/material/Grow';\r\n\r\nexport default function Layout1(content) {\r\n\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Grid\r\n container\r\n direction=\"row\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n width={'100%'}\r\n >\r\n <Grid item xs className=\"\">\r\n <Slide direction=\"right\" in={show}>\r\n <Box sx={{ maxWidth: { xl: '600px', md: '400px', xs: '350px' } }} margin={'auto'}>\r\n <img height=\"auto\" width=\"100%\" src={content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'}></img>\r\n </Box>\r\n </Slide>\r\n </Grid>\r\n <Grow\r\n in={show}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(show ? { timeout: 1000 } : {})}\r\n >\r\n <Grid item sx >\r\n <Grid container direction=\"column\" justifyContent=\"center\" alignItems=\"start\" style={{ border: '1px', borderColor: 'black', padding: '32px' }}>\r\n <Grid item sx>\r\n <a className=\"title-xlarge\">{content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title'}</a>\r\n </Grid>\r\n <Grid item sx width={{ md: '70vh', xs: 'auto' }} height=\"auto\" minHeight={{ md: '200px', xs: 'auto' }} textAlign={'justify'}>\r\n <p>{content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content'}</p>\r\n </Grid>\r\n <Grid item sx>\r\n <Button variant=\"contained\" color=\"secondary\">{content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Content'}</Button>\r\n </Grid>\r\n </Grid>\r\n </Grid>\r\n </Grow>\r\n\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class TextPlusImg extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Title',\r\n 'description':'Text',\r\n 'button_title':'Button Title',\r\n 'button_action':'Button Action',\r\n 'image':'Image',\r\n },\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import React from \"react\"\r\nimport { Quotes } from \"./quotes/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport CanvasContainer from \"./canvas/CanvasContainer\"\r\nimport { JK_RESOURCES } from \"./constants\"\r\nimport { TextPlusImg } from \"./textPlusImg/Component\"\r\n// Section is a common class for each component\r\nexport class Section {\r\n constructor(AtomicElement, theme) {\r\n this.child = AtomicElement\r\n }\r\n\r\n component(json) {\r\n console.log('json', json)\r\n return (\r\n <CanvasContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json, json.component.layout)}\r\n </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout) {\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return (\r\n { req: footPrint.req, img: `${JK_RESOURCES}${footPrint.img}` }\r\n )\r\n }\r\n\r\n layoutLength() {\r\n return (\r\n this.child.layoutsLength()\r\n )\r\n }\r\n\r\n}\r\n\r\n//Sections is the interface with admin and store\r\nexport class Sections {\r\n constructor() {\r\n this.banner = new Section(new Banner())\r\n this.quotes = new Section(new Quotes())\r\n this.textPlusImg = new Section(new TextPlusImg())\r\n this.sections = [this.banner, this.textPlusImg, this.quotes]\r\n }\r\n\r\n getSectionList() {\r\n return (\r\n {\r\n '0': 'Banner',\r\n '1': 'Text + Img',\r\n '2': 'Quotes',\r\n }\r\n )\r\n }\r\n getLayoutsFromSection(index) {\r\n let section = this.sections[index]\r\n return (section)\r\n }\r\n\r\n}"],"names":["AtomicElements","layout","layoutFootprint","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","Layout1","_useState","useState","show","React","createElement","Slide","direction","Box","Typography","className","sx","marginBottom","component","subcomponent","title","description","Quotes","_AtomicElements","_inheritsLoose","_this","call","display","flexDirection","justifyContent","Button","variant","width","button_title","Banner","CanvasContainer","props","json","children","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","xs","md","justify_content","minWidth","JK_RESOURCES","Grid","container","item","xl","margin","height","src","Grow","_extends","style","transformOrigin","timeout","border","borderColor","minHeight","textAlign","color","TextPlusImg","Section","AtomicElement","theme","child","getFootPrint","footPrint","layoutLength","Sections","banner","quotes","textPlusImg","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;I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Q;EACnB,SAAAA,WAAc;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIR,OAAO,CAAC,IAAI3C,MAAM,EAAE,CAAC;IACvC,IAAI,CAACoD,MAAM,GAAG,IAAIT,OAAO,CAAC,IAAIvD,MAAM,EAAE,CAAC;IACvC,IAAI,CAACiE,WAAW,GAAG,IAAIV,OAAO,CAAC,IAAID,WAAW,EAAE,CAAC;IACjD,IAAI,CAACY,QAAQ,GAAG,CAAC,IAAI,CAACH,MAAM,EAAE,IAAI,CAACE,WAAW,EAAE,IAAI,CAACD,MAAM,CAAC;;EAC7D,IAAAG,OAAA,GAAAL,QAAA,CAAA1F,SAAA;EAAA+F,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAiB;IACf,OACE;MACE,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,YAAY;MACjB,GAAG,EAAE;KACN;GAEJ;EAAAD,OAAA,CACDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAE;IAC3B,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAQC,OAAO;GAChB;EAAA,OAAAT,QAAA;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/atomicElement.js","../src/quotes/elements/layout1.js","../src/quotes/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../src/constants.js","../src/textPlusImg/elements/layout1.js","../src/textPlusImg/Component.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\r\n }\r\n\r\n layoutsLength(){\r\n return(\r\n this.layout.length\r\n )\r\n }\r\n\r\n build(content, layoutId){\r\n return(\r\n this.layout[layoutId](content)\r\n )\r\n }\r\n\r\n footprint(layout){\r\n let img = this.layoutFootprint[layout]\r\n let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\r\n}\r\n","import React from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', width: {xs: '100%', md: '30%'} }}>\r\n <Typography className=\"title-large\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"small\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Quotes extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['quotes_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', width: {xs: '100%', md: '30%'} }}>\r\n <Typography className=\"title-xlarge\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '50%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\n\r\nexport class Banner extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1]\r\n layoutFootprint = ['banner_layout_1.jpg']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'Name',\r\n },\r\n \r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n // <texinput display={!layout.img} id='Title'>\r\n // <texinput display={!layout.img} id='content'></texinput>\r\n // <texinput display={!layout.img} id='name'></texinput>\r\n //<texinput disable={!layout.img}>\r\n}","import React from \"react\";\r\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n //minHeight: '680px',//este no pueden ser estaticos\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl'>\r\n <Box\r\n sx={{\r\n minWidth: { xs: '100%', md: '45%' },\r\n display: 'flex',\r\n justifyContent: {\r\n xs: 'center',\r\n md: json.component.justify_content ? json.component.justify_content : 'center'\r\n }\r\n }}\r\n >\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import { Grid, Box, Button } from \"@mui/material\"\r\nimport React, { useState } from \"react\"\r\nimport { Slide } from \"@mui/material\";\r\nimport Grow from '@mui/material/Grow';\r\n\r\nexport default function Layout1(content) {\r\n\r\n const visible = true\r\n\r\n return (\r\n <Grid\r\n container\r\n direction=\"row\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n width={'100%'}\r\n spacing='16px'\r\n >\r\n <Grid item xs={12} md={5}>\r\n <Slide direction=\"right\" in={visible}>\r\n <Box sx={{ maxWidth: { xl: '600px', md: '400px', xs: '350px' } }} margin={'auto'}>\r\n <img height=\"auto\" width=\"100%\" src={content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'}></img>\r\n </Box>\r\n </Slide>\r\n </Grid>\r\n <Grid item xs={12} md={7}>\r\n <Grow\r\n in={visible}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(visible ? { timeout: 1000 } : {})}\r\n >\r\n <Box>\r\n <Box>\r\n <a className=\"title-xlarge\">{content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'}</a>\r\n </Box>\r\n <Box item height=\"auto\" minHeight={{ md: '200px', xs: 'auto' }} textAlign={'justify'}>\r\n <p>{content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'}</p>\r\n </Box>\r\n <Box>\r\n <Button variant=\"contained\" sx={{ width: '30%' }}>\r\n {content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Box>\r\n </Grow>\r\n </Grid>\r\n\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class TextPlusImg extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Title',\r\n 'description':'Text',\r\n 'button_title':'Button Title',\r\n 'button_action':'Button Action',\r\n 'image':'Image',\r\n },\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import React from \"react\"\r\nimport { Quotes } from \"./quotes/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport CanvasContainer from \"./canvas/CanvasContainer\"\r\nimport { JK_RESOURCES } from \"./constants\"\r\nimport { TextPlusImg } from \"./textPlusImg/Component\"\r\n// Section is a common class for each component\r\nexport class Section {\r\n constructor(AtomicElement, theme) {\r\n this.child = AtomicElement\r\n }\r\n\r\n component(json) {\r\n console.log('json', json)\r\n return (\r\n <CanvasContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json, json.component.layout)}\r\n </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout) {\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return (\r\n { req: footPrint.req, img: `${JK_RESOURCES}${footPrint.img}` }\r\n )\r\n }\r\n\r\n layoutLength() {\r\n return (\r\n this.child.layoutsLength()\r\n )\r\n }\r\n\r\n}\r\n\r\n//Sections is the interface with admin and store\r\nexport class Sections {\r\n constructor() {\r\n this.banner = new Section(new Banner())\r\n this.quotes = new Section(new Quotes())\r\n this.textPlusImg = new Section(new TextPlusImg())\r\n this.sections = [this.banner, this.textPlusImg, this.quotes]\r\n }\r\n\r\n getSectionList() {\r\n return (\r\n {\r\n '0': 'Banner',\r\n '1': 'Text + Img',\r\n '2': 'Quotes',\r\n }\r\n )\r\n }\r\n getLayoutsFromSection(index) {\r\n let section = this.sections[index]\r\n return (section)\r\n }\r\n\r\n}"],"names":["AtomicElements","layout","layoutFootprint","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","Layout1","visible","React","createElement","Slide","direction","Box","sx","display","flexDirection","width","xs","md","Typography","className","marginBottom","component","subcomponent","title","description","Quotes","_AtomicElements","_inheritsLoose","_this","call","Button","variant","button_title","Banner","CanvasContainer","props","json","children","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","minWidth","justifyContent","justify_content","JK_RESOURCES","Grid","container","spacing","item","xl","margin","height","src","Grow","_extends","style","transformOrigin","timeout","minHeight","textAlign","TextPlusImg","Section","AtomicElement","theme","child","getFootPrint","footPrint","layoutLength","Sections","banner","quotes","textPlusImg","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;IACzB,IAAI,CAACC,kBAAkB,GAAG,EAAE;;EAC/B,IAAAC,MAAA,GAAAJ,cAAA,CAAAK,SAAA;EAAAD,MAAA,CAEDE,aAAa,GAAb,SAAAA,gBAAe;IACX,OACI,IAAI,CAACL,MAAM,CAACM,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACT,MAAM,CAACS,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAAL,MAAA,CAEDO,SAAS,GAAT,SAAAA,UAAUV,MAAM,EAAC;IACb,IAAIW,GAAG,GAAG,IAAI,CAACV,eAAe,CAACD,MAAM,CAAC;IACtC,IAAIY,GAAG,GAAG,IAAI,CAACV,kBAAkB,CAACF,MAAM,CAAC;IACzCa,OAAO,CAACC,GAAG,CAAC,YAAY,EAAEH,GAAG,CAAC;IAC9B,OACI;MAACC,GAAG,EAAHA,GAAG;MAAED,GAAG,EAAHA;KAAI;GAEjB;EAAA,OAAAZ,cAAA;AAAA;;ACvBU,SAASgB,OAAOA,CAAC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GAAG,EAAE4E,SAAS,CAAC5E,GAAG;MAAED,GAAG,OAAKuD,YAAY,GAAGsB,SAAS,CAAC7E;KAAO;GAEjE;EAAAR,MAAA,CAEDsF,YAAY,GAAZ,SAAAA,eAAe;IACb,OACE,IAAI,CAACH,KAAK,CAACjF,aAAa,EAAE;GAE7B;EAAA,OAAA8E,OAAA;AAAA;AAKH,IAAaO,QAAQ;EACnB,SAAAA,WAAc;IACZ,IAAI,CAACC,MAAM,GAAG,IAAIR,OAAO,CAAC,IAAIxC,MAAM,EAAE,CAAC;IACvC,IAAI,CAACiD,MAAM,GAAG,IAAIT,OAAO,CAAC,IAAIhD,MAAM,EAAE,CAAC;IACvC,IAAI,CAAC0D,WAAW,GAAG,IAAIV,OAAO,CAAC,IAAID,WAAW,EAAE,CAAC;IACjD,IAAI,CAACY,QAAQ,GAAG,CAAC,IAAI,CAACH,MAAM,EAAE,IAAI,CAACE,WAAW,EAAE,IAAI,CAACD,MAAM,CAAC;;EAC7D,IAAAG,OAAA,GAAAL,QAAA,CAAAtF,SAAA;EAAA2F,OAAA,CAEDC,cAAc,GAAd,SAAAA,iBAAiB;IACf,OACE;MACE,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,YAAY;MACjB,GAAG,EAAE;KACN;GAEJ;EAAAD,OAAA,CACDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAE;IAC3B,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAQC,OAAO;GAChB;EAAA,OAAAT,QAAA;AAAA;;;;"}
|
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Slide, Box, Typography, Button, Container, Grid } from '@mui/material';
|
|
3
3
|
import Grow from '@mui/material/Grow';
|
|
4
4
|
|
|
@@ -55,12 +55,20 @@ var AtomicElements = /*#__PURE__*/function () {
|
|
|
55
55
|
}();
|
|
56
56
|
|
|
57
57
|
function Layout1(content) {
|
|
58
|
-
var
|
|
59
|
-
show = _useState[0];
|
|
58
|
+
var visible = true;
|
|
60
59
|
return /*#__PURE__*/React.createElement(Slide, {
|
|
61
60
|
direction: "left",
|
|
62
|
-
"in":
|
|
63
|
-
}, /*#__PURE__*/React.createElement(Box,
|
|
61
|
+
"in": visible
|
|
62
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
63
|
+
sx: {
|
|
64
|
+
display: 'flex',
|
|
65
|
+
flexDirection: 'column',
|
|
66
|
+
width: {
|
|
67
|
+
xs: '100%',
|
|
68
|
+
md: '30%'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
64
72
|
className: "title-large",
|
|
65
73
|
sx: {
|
|
66
74
|
marginBottom: '16px'
|
|
@@ -90,16 +98,18 @@ var Quotes = /*#__PURE__*/function (_AtomicElements) {
|
|
|
90
98
|
}(AtomicElements);
|
|
91
99
|
|
|
92
100
|
function Layout1$1(content) {
|
|
93
|
-
var
|
|
94
|
-
show = _useState[0];
|
|
101
|
+
var visible = true;
|
|
95
102
|
return /*#__PURE__*/React.createElement(Slide, {
|
|
96
103
|
direction: "left",
|
|
97
|
-
"in":
|
|
104
|
+
"in": visible
|
|
98
105
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
99
106
|
sx: {
|
|
100
107
|
display: 'flex',
|
|
101
108
|
flexDirection: 'column',
|
|
102
|
-
|
|
109
|
+
width: {
|
|
110
|
+
xs: '100%',
|
|
111
|
+
md: '30%'
|
|
112
|
+
}
|
|
103
113
|
}
|
|
104
114
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
105
115
|
className: "title-xlarge",
|
|
@@ -114,7 +124,7 @@ function Layout1$1(content) {
|
|
|
114
124
|
}, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'), /*#__PURE__*/React.createElement(Button, {
|
|
115
125
|
variant: "contained",
|
|
116
126
|
sx: {
|
|
117
|
-
width: '
|
|
127
|
+
width: '50%',
|
|
118
128
|
marginBottom: '16px'
|
|
119
129
|
}
|
|
120
130
|
}, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón')));
|
|
@@ -155,42 +165,40 @@ function CanvasContainer(props) {
|
|
|
155
165
|
backgroundRepeat: 'no-repeat'
|
|
156
166
|
}
|
|
157
167
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
158
|
-
maxWidth: "xl"
|
|
168
|
+
maxWidth: "xl"
|
|
169
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
159
170
|
sx: {
|
|
171
|
+
minWidth: {
|
|
172
|
+
xs: '100%',
|
|
173
|
+
md: '45%'
|
|
174
|
+
},
|
|
160
175
|
display: 'flex',
|
|
161
176
|
justifyContent: {
|
|
162
177
|
xs: 'center',
|
|
163
178
|
md: json.component.justify_content ? json.component.justify_content : 'center'
|
|
164
179
|
}
|
|
165
180
|
}
|
|
166
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
167
|
-
sx: {
|
|
168
|
-
minWidth: {
|
|
169
|
-
xs: '100%',
|
|
170
|
-
md: '30%'
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
181
|
}, children)));
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
|
|
177
185
|
|
|
178
186
|
function Layout1$2(content) {
|
|
179
|
-
var
|
|
180
|
-
show = _useState[0];
|
|
187
|
+
var visible = true;
|
|
181
188
|
return /*#__PURE__*/React.createElement(Grid, {
|
|
182
189
|
container: true,
|
|
183
190
|
direction: "row",
|
|
184
191
|
justifyContent: "center",
|
|
185
192
|
alignItems: "center",
|
|
186
|
-
width: '100%'
|
|
193
|
+
width: '100%',
|
|
194
|
+
spacing: "16px"
|
|
187
195
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
188
196
|
item: true,
|
|
189
|
-
xs:
|
|
190
|
-
|
|
197
|
+
xs: 12,
|
|
198
|
+
md: 5
|
|
191
199
|
}, /*#__PURE__*/React.createElement(Slide, {
|
|
192
200
|
direction: "right",
|
|
193
|
-
"in":
|
|
201
|
+
"in": visible
|
|
194
202
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
195
203
|
sx: {
|
|
196
204
|
maxWidth: {
|
|
@@ -204,51 +212,33 @@ function Layout1$2(content) {
|
|
|
204
212
|
height: "auto",
|
|
205
213
|
width: "100%",
|
|
206
214
|
src: content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'
|
|
207
|
-
})))), /*#__PURE__*/React.createElement(
|
|
208
|
-
|
|
215
|
+
})))), /*#__PURE__*/React.createElement(Grid, {
|
|
216
|
+
item: true,
|
|
217
|
+
xs: 12,
|
|
218
|
+
md: 7
|
|
219
|
+
}, /*#__PURE__*/React.createElement(Grow, _extends({
|
|
220
|
+
"in": visible,
|
|
209
221
|
style: {
|
|
210
222
|
transformOrigin: '0 0 0'
|
|
211
223
|
}
|
|
212
|
-
},
|
|
224
|
+
}, {
|
|
213
225
|
timeout: 1000
|
|
214
|
-
}
|
|
215
|
-
item: true,
|
|
216
|
-
sx: true
|
|
217
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
218
|
-
container: true,
|
|
219
|
-
direction: "column",
|
|
220
|
-
justifyContent: "center",
|
|
221
|
-
alignItems: "start",
|
|
222
|
-
style: {
|
|
223
|
-
border: '1px',
|
|
224
|
-
borderColor: 'black',
|
|
225
|
-
padding: '32px'
|
|
226
|
-
}
|
|
227
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
228
|
-
item: true,
|
|
229
|
-
sx: true
|
|
230
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
226
|
+
} ), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("a", {
|
|
231
227
|
className: "title-xlarge"
|
|
232
|
-
}, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : '
|
|
228
|
+
}, content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título')), /*#__PURE__*/React.createElement(Box, {
|
|
233
229
|
item: true,
|
|
234
|
-
sx: true,
|
|
235
|
-
width: {
|
|
236
|
-
md: '70vh',
|
|
237
|
-
xs: 'auto'
|
|
238
|
-
},
|
|
239
230
|
height: "auto",
|
|
240
231
|
minHeight: {
|
|
241
232
|
md: '200px',
|
|
242
233
|
xs: 'auto'
|
|
243
234
|
},
|
|
244
235
|
textAlign: 'justify'
|
|
245
|
-
}, /*#__PURE__*/React.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : '
|
|
246
|
-
item: true,
|
|
247
|
-
sx: true
|
|
248
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
236
|
+
}, /*#__PURE__*/React.createElement("p", null, content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción')), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Button, {
|
|
249
237
|
variant: "contained",
|
|
250
|
-
|
|
251
|
-
|
|
238
|
+
sx: {
|
|
239
|
+
width: '30%'
|
|
240
|
+
}
|
|
241
|
+
}, content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'))))));
|
|
252
242
|
}
|
|
253
243
|
|
|
254
244
|
var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
|
package/dist/index.modern.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.js","sources":["../src/atomicElement.js","../src/quotes/elements/layout1.js","../src/quotes/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../src/constants.js","../src/textPlusImg/elements/layout1.js","../src/textPlusImg/Component.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\r\n }\r\n\r\n layoutsLength(){\r\n return(\r\n this.layout.length\r\n )\r\n }\r\n\r\n build(content, layoutId){\r\n return(\r\n this.layout[layoutId](content)\r\n )\r\n }\r\n\r\n footprint(layout){\r\n let img = this.layoutFootprint[layout]\r\n let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\r\n}\r\n","import React, { useState } from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\r\n <Box>\r\n <Typography className=\"title-large\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"small\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Quotes extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['quotes_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { useState } from 'react'\r\nimport { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Slide direction=\"left\" in={show}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>\r\n <Typography className=\"title-xlarge\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '100%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Slide>\r\n\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\n\r\nexport class Banner extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1]\r\n layoutFootprint = ['banner_layout_1.jpg']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'Name',\r\n },\r\n \r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n // <texinput display={!layout.img} id='Title'>\r\n // <texinput display={!layout.img} id='content'></texinput>\r\n // <texinput display={!layout.img} id='name'></texinput>\r\n //<texinput disable={!layout.img}>\r\n}","import React from \"react\";\r\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n //minHeight: '680px',//este no pueden ser estaticos\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl' sx={{ display: 'flex', justifyContent: { xs: 'center', md: json.component.justify_content ? json.component.justify_content : 'center' } }} >\r\n <Box sx={{ minWidth: { xs: '100%', md: '30%' } }}>\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import { Grid, Box, Button } from \"@mui/material\"\r\nimport React, { useState } from \"react\"\r\nimport { Slide } from \"@mui/material\";\r\nimport Grow from '@mui/material/Grow';\r\n\r\nexport default function Layout1(content) {\r\n\r\n const [show, setShow] = useState(true)\r\n\r\n return (\r\n <Grid\r\n container\r\n direction=\"row\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n width={'100%'}\r\n >\r\n <Grid item xs className=\"\">\r\n <Slide direction=\"right\" in={show}>\r\n <Box sx={{ maxWidth: { xl: '600px', md: '400px', xs: '350px' } }} margin={'auto'}>\r\n <img height=\"auto\" width=\"100%\" src={content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'}></img>\r\n </Box>\r\n </Slide>\r\n </Grid>\r\n <Grow\r\n in={show}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(show ? { timeout: 1000 } : {})}\r\n >\r\n <Grid item sx >\r\n <Grid container direction=\"column\" justifyContent=\"center\" alignItems=\"start\" style={{ border: '1px', borderColor: 'black', padding: '32px' }}>\r\n <Grid item sx>\r\n <a className=\"title-xlarge\">{content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Title'}</a>\r\n </Grid>\r\n <Grid item sx width={{ md: '70vh', xs: 'auto' }} height=\"auto\" minHeight={{ md: '200px', xs: 'auto' }} textAlign={'justify'}>\r\n <p>{content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Content'}</p>\r\n </Grid>\r\n <Grid item sx>\r\n <Button variant=\"contained\" color=\"secondary\">{content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Content'}</Button>\r\n </Grid>\r\n </Grid>\r\n </Grid>\r\n </Grow>\r\n\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class TextPlusImg extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Title',\r\n 'description':'Text',\r\n 'button_title':'Button Title',\r\n 'button_action':'Button Action',\r\n 'image':'Image',\r\n },\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import React from \"react\"\r\nimport { Quotes } from \"./quotes/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport CanvasContainer from \"./canvas/CanvasContainer\"\r\nimport { JK_RESOURCES } from \"./constants\"\r\nimport { TextPlusImg } from \"./textPlusImg/Component\"\r\n// Section is a common class for each component\r\nexport class Section {\r\n constructor(AtomicElement, theme) {\r\n this.child = AtomicElement\r\n }\r\n\r\n component(json) {\r\n console.log('json', json)\r\n return (\r\n <CanvasContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json, json.component.layout)}\r\n </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout) {\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return (\r\n { req: footPrint.req, img: `${JK_RESOURCES}${footPrint.img}` }\r\n )\r\n }\r\n\r\n layoutLength() {\r\n return (\r\n this.child.layoutsLength()\r\n )\r\n }\r\n\r\n}\r\n\r\n//Sections is the interface with admin and store\r\nexport class Sections {\r\n constructor() {\r\n this.banner = new Section(new Banner())\r\n this.quotes = new Section(new Quotes())\r\n this.textPlusImg = new Section(new TextPlusImg())\r\n this.sections = [this.banner, this.textPlusImg, this.quotes]\r\n }\r\n\r\n getSectionList() {\r\n return (\r\n {\r\n '0': 'Banner',\r\n '1': 'Text + Img',\r\n '2': 'Quotes',\r\n }\r\n )\r\n }\r\n getLayoutsFromSection(index) {\r\n let section = this.sections[index]\r\n return (section)\r\n }\r\n\r\n}"],"names":["AtomicElements","layout","layoutFootprint","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","Layout1","_useState","useState","show","React","createElement","Slide","direction","Box","Typography","className","sx","marginBottom","component","subcomponent","title","description","Quotes","_AtomicElements","_inheritsLoose","_this","call","display","flexDirection","justifyContent","Button","variant","width","button_title","Banner","CanvasContainer","props","json","children","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","xs","md","justify_content","minWidth","JK_RESOURCES","Grid","container","item","xl","margin","height","src","Grow","_extends","style","transformOrigin","timeout","border","borderColor","minHeight","textAlign","color","TextPlusImg","Section","AtomicElement","theme","child","getFootPrint","footPrint","layoutLength","Sections","banner","quotes","textPlusImg","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAaA,cAAc;EACvB,SAAAA,iBAAa;IACT,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,IAAI,CAACC,eAAe,GAAG,EAAE;IACzB,IAAI,CAACC,kBAAkB,GAAG,EAAE;;EAC/B,IAAAC,MAAA,GAAAJ,cAAA,CAAAK,SAAA;EAAAD,MAAA,CAEDE,aAAa,GAAb,SAAAA,gBAAe;IACX,OACI,IAAI,CAACL,MAAM,CAACM,MAAM;GAEzB;EAAAH,MAAA,CAEDI,KAAK,GAAL,SAAAA,MAAMC,OAAO,EAAEC,QAAQ,EAAC;IACpB,OACI,IAAI,CAACT,MAAM,CAACS,QAAQ,CAAC,CAACD,OAAO,CAAC;GAErC;EAAAL,MAAA,CAEDO,SAAS,GAAT,S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GAAd,SAAAA,iBAAiB;IACf,OACE;MACE,GAAG,EAAE,QAAQ;MACb,GAAG,EAAE,YAAY;MACjB,GAAG,EAAE;KACN;GAEJ;EAAAD,OAAA,CACDE,qBAAqB,GAArB,SAAAA,sBAAsBC,KAAK,EAAE;IAC3B,IAAIC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC;IAClC,OAAQC,OAAO;GAChB;EAAA,OAAAT,QAAA;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/atomicElement.js","../src/quotes/elements/layout1.js","../src/quotes/Component.js","../src/banner/elements/layout1.js","../src/banner/Component.js","../src/canvas/CanvasContainer.js","../src/constants.js","../src/textPlusImg/elements/layout1.js","../src/textPlusImg/Component.js","../src/Section.js"],"sourcesContent":["export class AtomicElements {\r\n constructor(){\r\n this.layout = []\r\n this.layoutFootprint = []\r\n this.layoutFootprintReq = []\r\n }\r\n\r\n layoutsLength(){\r\n return(\r\n this.layout.length\r\n )\r\n }\r\n\r\n build(content, layoutId){\r\n return(\r\n this.layout[layoutId](content)\r\n )\r\n }\r\n\r\n footprint(layout){\r\n let img = this.layoutFootprint[layout]\r\n let req = this.layoutFootprintReq[layout]\r\n console.log('img atomic', img)\r\n return(\r\n {req, img}\r\n )\r\n }\r\n\r\n}\r\n","import React from \"react\"\r\nimport { Box, Typography, Slide } from '@mui/material'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', width: {xs: '100%', md: '30%'} }}>\r\n <Typography className=\"title-large\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"small\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class Quotes extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['quotes_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import { Box, Button, Typography, Slide } from '@mui/material'\r\nimport React from 'react'\r\n\r\nexport default function Layout1(content) {\r\n const visible = true\r\n return (\r\n <Slide direction=\"left\" in={visible}>\r\n <Box sx={{ display: 'flex', flexDirection: 'column', width: {xs: '100%', md: '30%'} }}>\r\n <Typography className=\"title-xlarge\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].title ?\r\n content.component.subcomponent[0].title\r\n : 'Agregue título'}\r\n </Typography>\r\n <Typography className=\"title\" sx={{ marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].description ?\r\n content.component.subcomponent[0].description\r\n : 'Agregue descripción'}\r\n </Typography>\r\n <Button variant='contained' sx={{ width: '50%', marginBottom: '16px' }}>\r\n {content.component.subcomponent[0].button_title ?\r\n content.component.subcomponent[0].button_title\r\n : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Slide>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\nimport Layout2 from './elements/layout2'\r\n\r\nexport class Banner extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n\r\n layout = [Layout1]\r\n layoutFootprint = ['banner_layout_1.jpg']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n },\r\n {\r\n 'title':'Tittle',\r\n 'content':'Content',\r\n 'name':'Name',\r\n },\r\n \r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n // <texinput display={!layout.img} id='Title'>\r\n // <texinput display={!layout.img} id='content'></texinput>\r\n // <texinput display={!layout.img} id='name'></texinput>\r\n //<texinput disable={!layout.img}>\r\n}","import React from \"react\";\r\nimport { Box, Container } from \"@mui/material\";\r\n\r\nexport default function CanvasContainer(props) {\r\n const { json, children } = props\r\n\r\n return (\r\n <Box\r\n sx={{\r\n //minHeight: '680px',//este no pueden ser estaticos\r\n padding: '32px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n backgroundColor:\r\n json.component.bg_type === 1\r\n ? json.component.bg_color1\r\n : undefined,\r\n backgroundImage:\r\n json.component.bg_type === 2\r\n ? `linear-gradient(${json.component.bg_color1}, ${json.component.bg_color2})`\r\n : json.component.bg_type === 3\r\n ? `url(${json.component.bg_image.url})`\r\n : undefined,\r\n backgroundPosition: 'center',\r\n backgroundSize: 'cover',\r\n backgroundRepeat: 'no-repeat',\r\n }}\r\n >\r\n <Container maxWidth='xl'>\r\n <Box\r\n sx={{\r\n minWidth: { xs: '100%', md: '45%' },\r\n display: 'flex',\r\n justifyContent: {\r\n xs: 'center',\r\n md: json.component.justify_content ? json.component.justify_content : 'center'\r\n }\r\n }}\r\n >\r\n {children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n}","export const JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/'","import { Grid, Box, Button } from \"@mui/material\"\r\nimport React, { useState } from \"react\"\r\nimport { Slide } from \"@mui/material\";\r\nimport Grow from '@mui/material/Grow';\r\n\r\nexport default function Layout1(content) {\r\n\r\n const visible = true\r\n\r\n return (\r\n <Grid\r\n container\r\n direction=\"row\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n width={'100%'}\r\n spacing='16px'\r\n >\r\n <Grid item xs={12} md={5}>\r\n <Slide direction=\"right\" in={visible}>\r\n <Box sx={{ maxWidth: { xl: '600px', md: '400px', xs: '350px' } }} margin={'auto'}>\r\n <img height=\"auto\" width=\"100%\" src={content.component.subcomponent[0].img ? content.component.subcomponent[0].img : 'https://thumbs.dreamstime.com/z/ning%C3%BAn-s%C3%ADmbolo-del-vector-de-la-imagen-icono-disponible-perdido-ninguna-galer%C3%ADa-para-este-momento-139140396.jpg'}></img>\r\n </Box>\r\n </Slide>\r\n </Grid>\r\n <Grid item xs={12} md={7}>\r\n <Grow\r\n in={visible}\r\n style={{ transformOrigin: '0 0 0' }}\r\n {...(visible ? { timeout: 1000 } : {})}\r\n >\r\n <Box>\r\n <Box>\r\n <a className=\"title-xlarge\">{content.component.subcomponent[0].title ? content.component.subcomponent[0].title : 'Agregue título'}</a>\r\n </Box>\r\n <Box item height=\"auto\" minHeight={{ md: '200px', xs: 'auto' }} textAlign={'justify'}>\r\n <p>{content.component.subcomponent[0].description ? content.component.subcomponent[0].description : 'Agregue descripción'}</p>\r\n </Box>\r\n <Box>\r\n <Button variant=\"contained\" sx={{ width: '30%' }}>\r\n {content.component.subcomponent[0].button_title ? content.component.subcomponent[0].button_title : 'Nombre botón'}\r\n </Button>\r\n </Box>\r\n </Box>\r\n </Grow>\r\n </Grid>\r\n\r\n </Grid>\r\n )\r\n}","import { AtomicElements } from \"../atomicElement\"\r\nimport Layout1 from './elements/layout1'\r\n\r\nexport class TextPlusImg extends AtomicElements {\r\n constructor() {\r\n super()\r\n }\r\n layout = [Layout1]\r\n layoutFootprint = ['text_image_layout_1.png']\r\n layoutFootprintReq = [\r\n {\r\n 'title':'Title',\r\n 'description':'Text',\r\n 'button_title':'Button Title',\r\n 'button_action':'Button Action',\r\n 'image':'Image',\r\n },\r\n ]\r\n //Methods heredados\r\n // layout, layouts(), build() \r\n \r\n}","import React from \"react\"\r\nimport { Quotes } from \"./quotes/Component\"\r\nimport { Banner } from \"./banner/Component\"\r\nimport CanvasContainer from \"./canvas/CanvasContainer\"\r\nimport { JK_RESOURCES } from \"./constants\"\r\nimport { TextPlusImg } from \"./textPlusImg/Component\"\r\n// Section is a common class for each component\r\nexport class Section {\r\n constructor(AtomicElement, theme) {\r\n this.child = AtomicElement\r\n }\r\n\r\n component(json) {\r\n console.log('json', json)\r\n return (\r\n <CanvasContainer json={json}>\r\n {/* Child is the instance passed as parameter in section, next class */}\r\n {this.child.build(json, json.component.layout)}\r\n </CanvasContainer>\r\n )\r\n }\r\n\r\n getFootPrint(layout) {\r\n let footPrint = this.child.footprint(layout)\r\n console.log('section', footPrint)\r\n return (\r\n { req: footPrint.req, img: `${JK_RESOURCES}${footPrint.img}` }\r\n )\r\n }\r\n\r\n layoutLength() {\r\n return (\r\n this.child.layoutsLength()\r\n )\r\n }\r\n\r\n}\r\n\r\n//Sections is the interface with admin and store\r\nexport class Sections {\r\n constructor() {\r\n this.banner = new Section(new Banner())\r\n this.quotes = new Section(new Quotes())\r\n this.textPlusImg = new Section(new TextPlusImg())\r\n this.sections = [this.banner, this.textPlusImg, this.quotes]\r\n }\r\n\r\n getSectionList() {\r\n return (\r\n {\r\n '0': 'Banner',\r\n '1': 'Text + Img',\r\n '2': 'Quotes',\r\n }\r\n )\r\n }\r\n getLayoutsFromSection(index) {\r\n let section = this.sections[index]\r\n return (section)\r\n }\r\n\r\n}"],"names":["AtomicElements","layout","layoutFootprint","layoutFootprintReq","_proto","prototype","layoutsLength","length","build","content","layoutId","footprint","img","req","console","log","Layout1","visible","React","createElement","Slide","direction","Box","sx","display","flexDirection","width","xs","md","Typography","className","marginBottom","component","subcomponent","title","description","Quotes","_AtomicElements","_inheritsLoose","_this","call","Button","variant","button_title","Banner","CanvasContainer","props","json","children","padding","alignItems","backgroundColor","bg_type","bg_color1","undefined","backgroundImage","bg_color2","bg_image","url","backgroundPosition","backgroundSize","backgroundRepeat","Container","maxWidth","minWidth","justifyContent","justify_content","JK_RESOURCES","Grid","container","spacing","item","xl","margin","height","src","Grow","_extends","style","transformOrigin","timeout","minHeight","textAlign","TextPlusImg","Section","AtomicElement","theme","child","getFootPrint","footPrint","layoutLength","Sections","banner","quotes","textPlusImg","sections","_proto2","getSectionList","getLayoutsFromSection","index","section"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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