forstok-ui-lib 5.2.29 → 5.2.30

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.
@@ -0,0 +1,1486 @@
1
+ import { Fragment } from 'react';
2
+ import ContentLoader from 'react-content-loader';
3
+
4
+ import { getSizeContainer } from '../../assets/javascripts/function';
5
+ import { ContentLoaderListWrapper, ContentLoaderDetailWrapper, ContentLoaderListContainer, ContentLoaderAdditionWrapper, ContentLoaderNonListContainer, ContentLoaderDetailItemContainer, ContentLoaderTableListContainer, ContentLoaderPaginationWrapper, ContentLoaderPopupWrapper, ContentLoaderCardWrapper } from './styles';
6
+
7
+ const boxWidth = getSizeContainer().width;
8
+ const boxHeight = getSizeContainer().height;
9
+
10
+ export const ContentLoaderActivityList = () => <ContentLoader
11
+ height={260}
12
+ width='100%'
13
+ speed={1}
14
+ backgroundColor='rgb(0,0,0)'
15
+ foregroundColor='rgb(0,0,0)'
16
+ backgroundOpacity={0.06}
17
+ foregroundOpacity={0.12}>
18
+ <rect x='10' y='15' rx='50' ry='50' width='35' height='35' />
19
+ <rect x='55' y='15' rx='0' ry='0' width='330' height='13' />
20
+ <rect x='55' y='35' rx='0' ry='0' width='330' height='11' />
21
+ <rect x='10' y='65' rx='50' ry='50' width='35' height='35' />
22
+ <rect x='55' y='65' rx='0' ry='0' width='330' height='13' />
23
+ <rect x='55' y='85' rx='0' ry='0' width='330' height='11' />
24
+ <rect x='10' y='115' rx='50' ry='50' width='35' height='35' />
25
+ <rect x='55' y='115' rx='0' ry='0' width='330' height='13' />
26
+ <rect x='55' y='135' rx='0' ry='0' width='330' height='11' />
27
+ <rect x='10' y='165' rx='50' ry='50' width='35' height='35' />
28
+ <rect x='55' y='165' rx='0' ry='0' width='330' height='13' />
29
+ <rect x='55' y='185' rx='0' ry='0' width='330' height='11' />
30
+ <rect x='10' y='215' rx='50' ry='50' width='35' height='35' />
31
+ <rect x='55' y='215' rx='0' ry='0' width='330' height='13' />
32
+ <rect x='55' y='235' rx='0' ry='0' width='330' height='11' />
33
+ </ContentLoader>
34
+ export const ContentLoaderAccountsList = () => <ContentLoader
35
+ height={284}
36
+ width='100%'
37
+ speed={1}
38
+ backgroundColor='rgb(0,0,0)'
39
+ foregroundColor='rgb(0,0,0)'
40
+ backgroundOpacity={0.06}
41
+ foregroundOpacity={0.12}
42
+ viewBox='0 0 290 284'>
43
+ <rect x='10' y='15' rx='0' ry='0' width='40' height='40' />
44
+ <rect x='62' y='15' rx='0' ry='0' width='90' height='13' />
45
+ <rect x='62' y='30' rx='0' ry='0' width='185' height='13' />
46
+ <rect x='62' y='45' rx='0' ry='0' width='50' height='11' />
47
+ <rect x='257' y='23' rx='50' ry='50' width='25' height='25' />
48
+ <rect x='10' y='70' rx='0' ry='0' width='40' height='40' />
49
+ <rect x='62' y='70' rx='0' ry='0' width='90' height='13' />
50
+ <rect x='62' y='85' rx='0' ry='0' width='185' height='13' />
51
+ <rect x='62' y='100' rx='0' ry='0' width='50' height='11' />
52
+ <rect x='257' y='77' rx='50' ry='50' width='25' height='25' />
53
+ <rect x='10' y='125' rx='0' ry='0' width='40' height='40' />
54
+ <rect x='62' y='125' rx='0' ry='0' width='90' height='13' />
55
+ <rect x='62' y='140' rx='0' ry='0' width='185' height='13' />
56
+ <rect x='62' y='155' rx='0' ry='0' width='50' height='11' />
57
+ <rect x='257' y='131' rx='50' ry='50' width='25' height='25' />
58
+ <rect x='10' y='180' rx='0' ry='0' width='40' height='40' />
59
+ <rect x='62' y='180' rx='0' ry='0' width='90' height='13' />
60
+ <rect x='62' y='195' rx='0' ry='0' width='185' height='13' />
61
+ <rect x='62' y='210' rx='0' ry='0' width='50' height='11' />
62
+ <rect x='257' y='185' rx='50' ry='50' width='25' height='25' />
63
+ <rect x='10' y='235' rx='0' ry='0' width='40' height='40' />
64
+ <rect x='62' y='235' rx='0' ry='0' width='90' height='13' />
65
+ <rect x='62' y='250' rx='0' ry='0' width='185' height='13' />
66
+ <rect x='62' y='265' rx='0' ry='0' width='50' height='11' />
67
+ <rect x='257' y='239' rx='50' ry='50' width='25' height='25' />
68
+ </ContentLoader>
69
+ export const ContentLoaderAnalyticsMenu = () => <ContentLoader
70
+ height={60}
71
+ width='100%'
72
+ speed={1}
73
+ backgroundColor='rgb(0,0,0)'
74
+ foregroundColor='rgb(0,0,0)'
75
+ backgroundOpacity={0.06}
76
+ foregroundOpacity={0.12}>
77
+ <rect x='0' y='15' rx='0' ry='0' width='100%' height='36' />
78
+ </ContentLoader>
79
+ export const ContentLoaderOrderList = () => {
80
+ const xA = 100, wA = boxWidth - 600;
81
+ const xB = boxWidth - 405, wB = 120;
82
+ const xC = boxWidth - 275, wC = 80;
83
+ const xD = boxWidth - 190, wD = 140;
84
+ const xE = boxWidth - 45, wE = 30;
85
+ const xF = 9, wF= boxWidth-18;
86
+ const x1 = 95, w1 = boxWidth - 777;
87
+ const x2 = boxWidth - 665, w2 = 26;
88
+ const x3 = boxWidth - 625, w3 = 90;
89
+ const x4 = boxWidth - 515, w4 = 140;
90
+ const x5 = boxWidth - 365, w5 = 160;
91
+ const x6 = boxWidth - 190, w6 = 140;
92
+ return (
93
+ <ContentLoaderListContainer>
94
+ <ContentLoaderListWrapper>
95
+ <ContentLoader
96
+ speed={1}
97
+ width={boxWidth}
98
+ height='100%'
99
+ backgroundColor='rgb(0,0,0)'
100
+ foregroundColor='rgb(0,0,0)'
101
+ backgroundOpacity={0.06}
102
+ foregroundOpacity={0.12}
103
+ style={{ position: 'relative', zIndex: '2'}}>
104
+ <rect x="52" y="15" rx="2" ry="2" width="31" height="31" />
105
+ <rect x={xA} y="15" rx="2" ry="2" width={wA} height="31" />
106
+ <rect x={xB} y="15" rx="2" ry="2" width={wB} height="32" />
107
+ <rect x={xC} y="15" rx="2" ry="2" width={wC} height="32" />
108
+ <rect x={xD} y="15" rx="2" ry="2" width={wD} height="32" />
109
+ <rect x={xE} y="15" rx="2" ry="2" width={wE} height="32" />
110
+ <rect x='52' y="80" rx="2" ry="2" width='200' height="15" />
111
+ <rect x={xF} y="110" rx="0" ry="0" width={wF} height="2" />
112
+ <rect x="52" y="127" rx="2" ry="2" width="31" height="31" />
113
+ <rect x={x1} y="127" rx="2" ry="2" width={w1} height="50" />
114
+ <rect x={x2} y="127" rx="2" ry="2" width={w2} height="31" />
115
+ <rect x={x3} y="127" rx="2" ry="2" width={w3} height="31" />
116
+ <rect x={x4} y="127" rx="2" ry="2" width={w4} height="31" />
117
+ <rect x={x5} y="127" rx="2" ry="2" width={w5} height="31" />
118
+ <rect x={x6} y="127" rx="2" ry="2" width={w6} height="65" />
119
+ </ContentLoader>
120
+ </ContentLoaderListWrapper>
121
+ <ContentLoaderListWrapper>
122
+ <ContentLoader
123
+ speed={1}
124
+ width={boxWidth}
125
+ height='100%'
126
+ backgroundColor='rgb(0,0,0)'
127
+ foregroundColor='rgb(0,0,0)'
128
+ backgroundOpacity={0.06}
129
+ foregroundOpacity={0.12}
130
+ style={{ position: 'relative', zIndex: '2'}}>
131
+ <rect x="52" y="15" rx="2" ry="2" width="31" height="31" />
132
+ <rect x={xA} y="15" rx="2" ry="2" width={wA} height="31" />
133
+ <rect x={xB} y="15" rx="2" ry="2" width={wB} height="32" />
134
+ <rect x={xC} y="15" rx="2" ry="2" width={wC} height="32" />
135
+ <rect x={xD} y="15" rx="2" ry="2" width={wD} height="32" />
136
+ <rect x={xE} y="15" rx="2" ry="2" width={wE} height="32" />
137
+ <rect x='52' y="80" rx="2" ry="2" width='200' height="15" />
138
+ <rect x={xF} y="110" rx="0" ry="0" width={wF} height="2" />
139
+ <rect x="52" y="127" rx="2" ry="2" width="31" height="31" />
140
+ <rect x={x1} y="127" rx="2" ry="2" width={w1} height="50" />
141
+ <rect x={x2} y="127" rx="2" ry="2" width={w2} height="31" />
142
+ <rect x={x3} y="127" rx="2" ry="2" width={w3} height="31" />
143
+ <rect x={x4} y="127" rx="2" ry="2" width={w4} height="31" />
144
+ <rect x={x5} y="127" rx="2" ry="2" width={w5} height="31" />
145
+ <rect x={x6} y="127" rx="2" ry="2" width={w6} height="65" />
146
+ </ContentLoader>
147
+ </ContentLoaderListWrapper>
148
+ <ContentLoaderListWrapper>
149
+ <ContentLoader
150
+ speed={1}
151
+ width={boxWidth}
152
+ height='100%'
153
+ backgroundColor='rgb(0,0,0)'
154
+ foregroundColor='rgb(0,0,0)'
155
+ backgroundOpacity={0.06}
156
+ foregroundOpacity={0.12}
157
+ style={{ position: 'relative', zIndex: '2'}}>
158
+ <rect x="52" y="15" rx="2" ry="2" width="31" height="31" />
159
+ <rect x={xA} y="15" rx="2" ry="2" width={wA} height="31" />
160
+ <rect x={xB} y="15" rx="2" ry="2" width={wB} height="32" />
161
+ <rect x={xC} y="15" rx="2" ry="2" width={wC} height="32" />
162
+ <rect x={xD} y="15" rx="2" ry="2" width={wD} height="32" />
163
+ <rect x={xE} y="15" rx="2" ry="2" width={wE} height="32" />
164
+ <rect x='52' y="80" rx="2" ry="2" width='200' height="15" />
165
+ <rect x={xF} y="110" rx="0" ry="0" width={wF} height="2" />
166
+ <rect x="52" y="127" rx="2" ry="2" width="31" height="31" />
167
+ <rect x={x1} y="127" rx="2" ry="2" width={w1} height="50" />
168
+ <rect x={x2} y="127" rx="2" ry="2" width={w2} height="31" />
169
+ <rect x={x3} y="127" rx="2" ry="2" width={w3} height="31" />
170
+ <rect x={x4} y="127" rx="2" ry="2" width={w4} height="31" />
171
+ <rect x={x5} y="127" rx="2" ry="2" width={w5} height="31" />
172
+ <rect x={x6} y="127" rx="2" ry="2" width={w6} height="65" />
173
+ </ContentLoader>
174
+ </ContentLoaderListWrapper>
175
+ <ContentLoaderListWrapper>
176
+ <ContentLoader
177
+ speed={1}
178
+ width={boxWidth}
179
+ height='100%'
180
+ backgroundColor='rgb(0,0,0)'
181
+ foregroundColor='rgb(0,0,0)'
182
+ backgroundOpacity={0.06}
183
+ foregroundOpacity={0.12}
184
+ style={{ position: 'relative', zIndex: '2'}}>
185
+ <rect x="52" y="15" rx="2" ry="2" width="31" height="31" />
186
+ <rect x={xA} y="15" rx="2" ry="2" width={wA} height="31" />
187
+ <rect x={xB} y="15" rx="2" ry="2" width={wB} height="32" />
188
+ <rect x={xC} y="15" rx="2" ry="2" width={wC} height="32" />
189
+ <rect x={xD} y="15" rx="2" ry="2" width={wD} height="32" />
190
+ <rect x={xE} y="15" rx="2" ry="2" width={wE} height="32" />
191
+ <rect x='52' y="80" rx="2" ry="2" width='200' height="15" />
192
+ <rect x={xF} y="110" rx="0" ry="0" width={wF} height="2" />
193
+ <rect x="52" y="127" rx="2" ry="2" width="31" height="31" />
194
+ <rect x={x1} y="127" rx="2" ry="2" width={w1} height="50" />
195
+ <rect x={x2} y="127" rx="2" ry="2" width={w2} height="31" />
196
+ <rect x={x3} y="127" rx="2" ry="2" width={w3} height="31" />
197
+ <rect x={x4} y="127" rx="2" ry="2" width={w4} height="31" />
198
+ <rect x={x5} y="127" rx="2" ry="2" width={w5} height="31" />
199
+ <rect x={x6} y="127" rx="2" ry="2" width={w6} height="65" />
200
+ </ContentLoader>
201
+ </ContentLoaderListWrapper>
202
+ <ContentLoaderListWrapper>
203
+ <ContentLoader
204
+ speed={1}
205
+ width={boxWidth}
206
+ height='100%'
207
+ backgroundColor='rgb(0,0,0)'
208
+ foregroundColor='rgb(0,0,0)'
209
+ backgroundOpacity={0.06}
210
+ foregroundOpacity={0.12}
211
+ style={{ position: 'relative', zIndex: '2'}}>
212
+ <rect x="52" y="15" rx="2" ry="2" width="31" height="31" />
213
+ <rect x={xA} y="15" rx="2" ry="2" width={wA} height="31" />
214
+ <rect x={xB} y="15" rx="2" ry="2" width={wB} height="32" />
215
+ <rect x={xC} y="15" rx="2" ry="2" width={wC} height="32" />
216
+ <rect x={xD} y="15" rx="2" ry="2" width={wD} height="32" />
217
+ <rect x={xE} y="15" rx="2" ry="2" width={wE} height="32" />
218
+ <rect x='52' y="80" rx="2" ry="2" width='200' height="15" />
219
+ <rect x={xF} y="110" rx="0" ry="0" width={wF} height="2" />
220
+ <rect x="52" y="127" rx="2" ry="2" width="31" height="31" />
221
+ <rect x={x1} y="127" rx="2" ry="2" width={w1} height="50" />
222
+ <rect x={x2} y="127" rx="2" ry="2" width={w2} height="31" />
223
+ <rect x={x3} y="127" rx="2" ry="2" width={w3} height="31" />
224
+ <rect x={x4} y="127" rx="2" ry="2" width={w4} height="31" />
225
+ <rect x={x5} y="127" rx="2" ry="2" width={w5} height="31" />
226
+ <rect x={x6} y="127" rx="2" ry="2" width={w6} height="65" />
227
+ </ContentLoader>
228
+ </ContentLoaderListWrapper>
229
+ </ContentLoaderListContainer>
230
+ )
231
+ }
232
+ export const ContentLoaderOrderDetail = () => {
233
+ const xA = 84, wA = boxWidth - 700;
234
+ const xB = boxWidth - 432, wB = 120;
235
+ const xC = boxWidth - 302, wC = 80;
236
+ const xD = boxWidth - 217, wD = 140;
237
+ const xE = boxWidth - 72, wE = 30;
238
+ const x1 = 95, w1 = boxWidth - 777;
239
+ const x2 = boxWidth - 665, w2 = 26;
240
+ const x3 = boxWidth - 625, w3 = 90;
241
+ const x4 = boxWidth - 515, w4 = 140;
242
+ const x5 = boxWidth - 365, w5 = 160;
243
+ const x6 = boxWidth - 190, w6 = 140;
244
+ const z1 = 121, y1 = boxWidth - 777;
245
+ const z3 = boxWidth - 629, y3 = 90;
246
+ const z4 = boxWidth - 529, y4 = 140;
247
+ const z5 = boxWidth - 389, y5 = 160;
248
+ const z6 = boxWidth - 214, y6 = 140;
249
+ return (
250
+ <ContentLoaderDetailWrapper>
251
+ <ContentLoader
252
+ speed={1}
253
+ width={boxWidth}
254
+ height='100%'
255
+ backgroundColor='rgb(0,0,0)'
256
+ foregroundColor='rgb(0,0,0)'
257
+ backgroundOpacity={0.06}
258
+ foregroundOpacity={0.12}
259
+ style={{ position: 'relative', zIndex: '2'}}>
260
+ <rect x="38" y="18" rx="2" ry="2" width="36" height="36" />
261
+ <rect x={xA} y="18" rx="2" ry="2" width={wA} height="36" />
262
+ <rect x={xB} y="20" rx="2" ry="2" width={wB} height="32" />
263
+ <rect x={xC} y="20" rx="2" ry="2" width={wC} height="32" />
264
+ <rect x={xD} y="20" rx="2" ry="2" width={wD} height="32" />
265
+ <rect x={xE} y="20" rx="2" ry="2" width={wE} height="32" />
266
+ <rect x="38" y="85" rx="2" ry="2" width="110" height="31" />
267
+ <rect x="152" y="85" rx="2" ry="2" width="110" height="31" />
268
+ <rect x="266" y="85" rx="2" ry="2" width="110" height="31" />
269
+ <rect x="64" y="150" rx="2" ry="2" width="31" height="61" />
270
+ <rect x={z1} y="150" rx="2" ry="2" width={y1} height="61" />
271
+ <rect x={z3} y="150" rx="2" ry="2" width={y3} height="61" />
272
+ <rect x={z4} y="150" rx="2" ry="2" width={y4} height="61" />
273
+ <rect x={z5} y="150" rx="2" ry="2" width={y5} height="61" />
274
+ <rect x={z6} y="150" rx="2" ry="2" width={y6} height="61" />
275
+ <rect x="38" y="284" rx="2" ry="2" width="285" height="31" />
276
+ <rect x="389" y="284" rx="2" ry="2" width="285" height="31" />
277
+ <rect x="38" y="324" rx="2" ry="2" width="285" height="31" />
278
+ <rect x="389" y="324" rx="2" ry="2" width="285" height="31" />
279
+ <rect x="38" y="364" rx="2" ry="2" width="285" height="31" />
280
+ <rect x="389" y="364" rx="2" ry="2" width="285" height="31" />
281
+ <rect x="38" y="404" rx="2" ry="2" width="285" height="31" />
282
+ <rect x="389" y="404" rx="2" ry="2" width="285" height="31" />
283
+ <rect x="38" y="444" rx="2" ry="2" width="285" height="31" />
284
+ <rect x="389" y="444" rx="2" ry="2" width="285" height="31" />
285
+ <rect x="38" y="515" rx="2" ry="2" width="31" height="31" />
286
+ <rect x={x1} y="515" rx="2" ry="2" width={w1} height="31" />
287
+ <rect x={x2} y="515" rx="2" ry="2" width={w2} height="31" />
288
+ <rect x={x3} y="515" rx="2" ry="2" width={w3} height="31" />
289
+ <rect x={x4} y="515" rx="2" ry="2" width={w4} height="31" />
290
+ <rect x={x5} y="515" rx="2" ry="2" width={w5} height="31" />
291
+ <rect x={x6} y="515" rx="2" ry="2" width={w6} height="31" />
292
+ <rect x="38" y="555" rx="2" ry="2" width="31" height="31" />
293
+ <rect x={x1} y="555" rx="2" ry="2" width={w1} height="31" />
294
+ <rect x={x2} y="555" rx="2" ry="2" width={w2} height="31" />
295
+ <rect x={x3} y="555" rx="2" ry="2" width={w3} height="31" />
296
+ <rect x={x4} y="555" rx="2" ry="2" width={w4} height="31" />
297
+ <rect x={x5} y="555" rx="2" ry="2" width={w5} height="31" />
298
+ <rect x={x6} y="555" rx="2" ry="2" width={w6} height="31" />
299
+ <rect x={x6} y="604" rx="2" ry="2" width={w6} height="31" />
300
+ <rect x={x6} y="654" rx="2" ry="2" width={w6} height="31" />
301
+ <rect x="38" y="684" rx="2" ry="2" width={wA} height="36" />
302
+ </ContentLoader>
303
+ </ContentLoaderDetailWrapper>
304
+ )
305
+ }
306
+ export const ContentLoaderMasterDetail = () => {
307
+ const xA = 38, wA = boxWidth - 250;
308
+ const xB = boxWidth - 150, wB = 60;
309
+ const xC = boxWidth - 80, wC = 30;
310
+ const x1 = 38, w1 = 140;
311
+ const x2 = (x1 + w1 + 5), w2 = 200;
312
+ const x3 = (x2 + w2 + 5), w3 = 140;
313
+ const x4 = (x3 + w3 + 5), w4 = 140;
314
+ const x5 = (x4 + w4 + 5), w5 = 140;
315
+ const x6 = (x5 + w5 + 5), w6 = 140;
316
+ const z1 = 38;
317
+ const z2 = z1 + 70;
318
+ const z3 = z2 + 70;
319
+ const z4 = z3 + 70;
320
+ const z5 = z4 + 70;
321
+ return (
322
+ <ContentLoaderDetailWrapper>
323
+ <ContentLoader
324
+ speed={1}
325
+ width={boxWidth}
326
+ height='100%'
327
+ backgroundColor='rgb(0,0,0)'
328
+ foregroundColor='rgb(0,0,0)'
329
+ backgroundOpacity={0.06}
330
+ foregroundOpacity={0.12}
331
+ style={{ position: 'relative', zIndex: '2'}}>
332
+ <rect x={xA} y="20" rx="2" ry="2" width={wA} height="30" />
333
+ <rect x={xB} y="20" rx="2" ry="2" width={wB} height="30" />
334
+ <rect x={xC} y="20" rx="2" ry="2" width={wC} height="30" />
335
+ <rect x="50" y="80" rx="2" ry="2" width="110" height="31" />
336
+ <rect x="170" y="80" rx="2" ry="2" width="110" height="31" />
337
+ <rect x="290" y="80" rx="2" ry="2" width="110" height="31" />
338
+ <rect x="38" y="130" rx="2" ry="2" width="150" height="20" />
339
+ <rect x="200" y="130" rx="2" ry="2" width="285" height="20" />
340
+ <rect x="38" y="165" rx="2" ry="2" width="150" height="20" />
341
+ <rect x="200" y="165" rx="2" ry="2" width="285" height="20" />
342
+ <rect x="38" y="200" rx="2" ry="2" width="150" height="20" />
343
+ <rect x="200" y="200" rx="2" ry="2" width="285" height="20" />
344
+ <rect x="38" y="235" rx="2" ry="2" width="150" height="20" />
345
+ <rect x="200" y="235" rx="2" ry="2" width="285" height="20" />
346
+ <rect x="38" y="270" rx="2" ry="2" width="150" height="20" />
347
+ <rect x="200" y="270" rx="2" ry="2" width="285" height="20" />
348
+ <rect x={x1} y="320" rx="2" ry="2" width={w1} height="31" />
349
+ <rect x={x2} y="320" rx="2" ry="2" width={w2} height="31" />
350
+ <rect x={x3} y="320" rx="2" ry="2" width={w3} height="31" />
351
+ <rect x={x4} y="320" rx="2" ry="2" width={w4} height="31" />
352
+ <rect x={x5} y="320" rx="2" ry="2" width={w5} height="31" />
353
+ <rect x={x6} y="320" rx="2" ry="2" width={w6} height="31" />
354
+ <rect x={x1} y="370" rx="2" ry="2" width={w1} height="31" />
355
+ <rect x={x2} y="370" rx="2" ry="2" width={w2} height="31" />
356
+ <rect x={x3} y="370" rx="2" ry="2" width={w3} height="31" />
357
+ <rect x={x4} y="370" rx="2" ry="2" width={w4} height="31" />
358
+ <rect x={x5} y="370" rx="2" ry="2" width={w5} height="31" />
359
+ <rect x={x6} y="370" rx="2" ry="2" width={w6} height="31" />
360
+ <rect x={x1} y="420" rx="2" ry="2" width={w1} height="31" />
361
+ <rect x={x2} y="420" rx="2" ry="2" width={w2} height="31" />
362
+ <rect x={x3} y="420" rx="2" ry="2" width={w3} height="31" />
363
+ <rect x={x4} y="420" rx="2" ry="2" width={w4} height="31" />
364
+ <rect x={x5} y="420" rx="2" ry="2" width={w5} height="31" />
365
+ <rect x={x6} y="420" rx="2" ry="2" width={w6} height="31" />
366
+ <rect x={x1} y="470" rx="2" ry="2" width={w1} height="31" />
367
+ <rect x={x2} y="470" rx="2" ry="2" width={w2} height="31" />
368
+ <rect x={x3} y="470" rx="2" ry="2" width={w3} height="31" />
369
+ <rect x={x4} y="470" rx="2" ry="2" width={w4} height="31" />
370
+ <rect x={x5} y="470" rx="2" ry="2" width={w5} height="31" />
371
+ <rect x={x6} y="470" rx="2" ry="2" width={w6} height="31" />
372
+ <rect x="38" y="530" rx="2" ry="2" width="200" height="15" />
373
+ <rect x={z1} y="560" rx="2" ry="2" width="50" height="50" />
374
+ <rect x={z2} y="560" rx="2" ry="2" width="50" height="50" />
375
+ <rect x={z3} y="560" rx="2" ry="2" width="50" height="50" />
376
+ <rect x={z4} y="560" rx="2" ry="2" width="50" height="50" />
377
+ <rect x={z5} y="560" rx="2" ry="2" width="50" height="50" />
378
+ </ContentLoader>
379
+ </ContentLoaderDetailWrapper>
380
+ )
381
+ }
382
+ export const ContentLoaderAddition = () => {
383
+ let _boxWidth = (boxWidth >= 994) ? (boxWidth >= 1031 ? (boxWidth >= 1031 ? (boxWidth >= 1112 ? (boxWidth >= 1336 ? boxWidth - 100 : boxWidth - 100 ) : boxWidth - 100 ) : boxWidth - 60 ) : boxWidth - 60) : 994;
384
+ const z1 = 95, y1 = _boxWidth - 777;
385
+ const z3 = _boxWidth - 665, y3 = 90;
386
+ const z4 = _boxWidth - 555, y4 = 140;
387
+ const z5 = _boxWidth - 405, y5 = 160;
388
+ const z6 = _boxWidth - 230, y6 = 140;
389
+ return (
390
+ <ContentLoaderAdditionWrapper>
391
+ <ContentLoader
392
+ speed={1}
393
+ width={_boxWidth}
394
+ height='100%'
395
+ backgroundColor='rgb(0,0,0)'
396
+ foregroundColor='rgb(0,0,0)'
397
+ backgroundOpacity={0.06}
398
+ foregroundOpacity={0.12}
399
+ style={{ position: 'relative', zIndex: '2'}}>
400
+ <rect x="38" y="15" rx="2" ry="2" width="31" height="61" />
401
+ <rect x={z1} y="15" rx="2" ry="2" width={y1} height="61" />
402
+ <rect x={z3} y="15" rx="2" ry="2" width={y3} height="61" />
403
+ <rect x={z4} y="15" rx="2" ry="2" width={y4} height="61" />
404
+ <rect x={z5} y="15" rx="2" ry="2" width={y5} height="61" />
405
+ <rect x={z6} y="15" rx="2" ry="2" width={y6} height="61" />
406
+ </ContentLoader>
407
+ </ContentLoaderAdditionWrapper>
408
+ )
409
+ }
410
+
411
+ export const ContentLoaderNonOrderList = () => {
412
+ const x1 = 29, w1 = (boxWidth >= 1336 ? 150: (boxWidth >= 1112 ? 110: 100));
413
+ const x2 = (x1 + w1 + 12), w2 = (boxWidth >= 1336 ? 120: (boxWidth >= 1112 ? 110: 100));
414
+ const x3 = (x2 + w2 + 12), w3 = (boxWidth >= 1336 ? 110: (boxWidth >= 1112 ? 110: 105));
415
+ const x4 = (x3 + w3 + 12), w4 = (boxWidth >= 1336 ? 140: (boxWidth >= 1112 ? 140: 130));
416
+ const x5 = (x4 + w4 + 12), w5 = (boxWidth >= 1336 ? 130: (boxWidth >= 1112 ? 120: 100));
417
+ const x6 = (x5 + w5 + 12), w6 = (boxWidth >= 1336 ? 115: (boxWidth >= 1112 ? 105: 100));
418
+ const x7 = (x6 + w6 + 12), w7 = (boxWidth >= 1336 ? 150: (boxWidth >= 1112 ? 110: 100));
419
+ const x8 = (boxWidth - 100 - 24), w8 = 100;
420
+ const yverDivide = boxHeight ? Math.ceil((boxHeight - 78) / 70) : 0;
421
+ let _x = (x7 + w7 + 12);
422
+ let _loaderArray: any = [];
423
+ for (let i = 0; (_x + 122) < x8; i++) {
424
+ _loaderArray.push({
425
+ x: x7 + w7 + 12 + (i * (110 + 12)),
426
+ w: 110
427
+ });
428
+ _x = x7 + w7 + 12 + (i * (110 + 12));
429
+ }
430
+ return (
431
+ <ContentLoaderNonListContainer className='_refLoadingList'>
432
+ <ContentLoader
433
+ speed={1}
434
+ width={boxWidth}
435
+ height='100%'
436
+ backgroundColor='rgb(0,0,0)'
437
+ foregroundColor='rgb(0,0,0)'
438
+ backgroundOpacity={0.06}
439
+ foregroundOpacity={0.12}
440
+ style={{ position: 'relative', zIndex: '2'}}>
441
+ <rect x={x1} y="23" rx="2" ry="2" width={w1} height="16" />
442
+ <rect x={x2} y="23" rx="2" ry="2" width={w2} height="16" />
443
+ <rect x={x3} y="23" rx="2" ry="2" width={w3} height="16" />
444
+ <rect x={x4} y="23" rx="2" ry="2" width={w4} height="16" />
445
+ <rect x={x5} y="23" rx="2" ry="2" width={w5} height="16" />
446
+ <rect x={x6} y="23" rx="2" ry="2" width={w6} height="16" />
447
+ <rect x={x7} y="23" rx="2" ry="2" width={w7} height="16" />
448
+ {
449
+ _loaderArray.map((_loader: any, idx: number) => {
450
+ return (
451
+ <Fragment key={idx}>
452
+ <rect x={_loader.x} y="23" rx="2" ry="2" width={_loader.w} height="16" />
453
+ </Fragment>
454
+ )
455
+ })
456
+ }
457
+ <rect x={x8} y="23" rx="2" ry="2" width={w8} height="16" />
458
+ {
459
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
460
+ const newY = (c * 70) + 78
461
+ return (
462
+ <Fragment key={c}>
463
+ <rect x={x1} y={newY} rx="2" ry="2" width={w1} height="31" />
464
+ <rect x={x2} y={newY} rx="2" ry="2" width={w2} height="31" />
465
+ <rect x={x3} y={newY} rx="2" ry="2" width={w3} height="31" />
466
+ <rect x={x4} y={newY} rx="2" ry="2" width={w4} height="31" />
467
+ <rect x={x5} y={newY} rx="2" ry="2" width={w5} height="31" />
468
+ <rect x={x6} y={newY} rx="2" ry="2" width={w6} height="31" />
469
+ <rect x={x7} y={newY} rx="2" ry="2" width={w7} height="31" />
470
+ {
471
+ _loaderArray.map((_loader: any, idx: number) => {
472
+ return(
473
+ <Fragment key={idx}>
474
+ <rect x={_loader.x} y={newY} rx="2" ry="2" width={_loader.w} height="31" />
475
+ </Fragment>
476
+ )
477
+ })
478
+ }
479
+ <rect x={x8} y={newY} rx="2" ry="2" width={w8} height="31" />
480
+ </Fragment>
481
+ )
482
+ })
483
+ }
484
+ </ContentLoader>
485
+ </ContentLoaderNonListContainer>
486
+ )
487
+ }
488
+ export const ContentLoaderPagination = () => {
489
+ const halfwidth= boxWidth/2;
490
+ const x1= (halfwidth - (5*(27 +5)));
491
+ const x2= (halfwidth - (4*(27 +5)));
492
+ const x3= (halfwidth - (3*(27 +5)));
493
+ const x4= (halfwidth - (2*(27 +5)));
494
+ const x5= (halfwidth - (1*(27 +5)));
495
+ const x6= (halfwidth + (0*(27 +5)));
496
+ const x7= (halfwidth + (1*(27 +5)));
497
+ const x8= (halfwidth + (2*(27 +5)));
498
+ const x9= (halfwidth + (3*(27 +5)));
499
+ const x10= (halfwidth + (4*(27 +5)));
500
+ return (
501
+ <ContentLoaderPaginationWrapper className='_refLoadingPage'>
502
+ <ContentLoader
503
+ speed={1}
504
+ width={boxWidth}
505
+ height='100%'
506
+ backgroundColor='rgb(0,0,0)'
507
+ foregroundColor='rgb(0,0,0)'
508
+ backgroundOpacity={0.06}
509
+ foregroundOpacity={0.12}
510
+ style={{ position: 'relative', zIndex: '2'}}>
511
+ <rect x={x1} y="23" rx="2" ry="2" width="27" height="27" />
512
+ <rect x={x2} y="23" rx="2" ry="2" width="27" height="27" />
513
+ <rect x={x3} y="23" rx="2" ry="2" width="27" height="27" />
514
+ <rect x={x4} y="23" rx="2" ry="2" width="27" height="27" />
515
+ <rect x={x5} y="23" rx="2" ry="2" width="27" height="27" />
516
+ <rect x={x6} y="23" rx="2" ry="2" width="27" height="27" />
517
+ <rect x={x7} y="23" rx="2" ry="2" width="27" height="27" />
518
+ <rect x={x8} y="23" rx="2" ry="2" width="27" height="27" />
519
+ <rect x={x9} y="23" rx="2" ry="2" width="27" height="27" />
520
+ <rect x={x10} y="23" rx="2" ry="2" width="27" height="27" />
521
+ <rect x={x4} y="60" rx="2" ry="2" width="128" height="6" />
522
+ </ContentLoader>
523
+ </ContentLoaderPaginationWrapper>
524
+ )
525
+ }
526
+ export const ContentLoaderInvoiceListPaymentreceiveDetail = () => <ContentLoaderTableListContainer className='_refLoadingList'>
527
+ <ContentLoader
528
+ speed={1}
529
+ width={boxWidth}
530
+ height={250}
531
+ backgroundColor='rgb(0,0,0)'
532
+ foregroundColor='rgb(0,0,0)'
533
+ backgroundOpacity={0.06}
534
+ foregroundOpacity={0.12}
535
+ style={{ width: '100%', maxWidth: '1336px', minWidth: '1024px' }}>
536
+ <rect x="40" y="0" rx="2" ry="2" width="130" height="21" />
537
+ <rect x="190" y="0" rx="2" ry="2" width="130" height="21" />
538
+ <rect x="330" y="0" rx="2" ry="2" width="250" height="21" />
539
+ <rect x="600" y="0" rx="2" ry="2" width="200" height="21" />
540
+ <rect x={boxWidth-240} y="0" rx="2" ry="2" width="200" height="21" />
541
+ <rect x="40" y="50" rx="2" ry="2" width="130" height="31" />
542
+ <rect x="190" y="50" rx="2" ry="2" width="130" height="31" />
543
+ <rect x="330" y="50" rx="2" ry="2" width="250" height="31" />
544
+ <rect x="600" y="50" rx="2" ry="2" width="200" height="31" />
545
+ <rect x={boxWidth-240} y="50" rx="2" ry="2" width="200" height="31" />
546
+ <rect x="40" y="100" rx="2" ry="2" width="130" height="31" />
547
+ <rect x="190" y="100" rx="2" ry="2" width="130" height="31" />
548
+ <rect x="330" y="100" rx="2" ry="2" width="250" height="31" />
549
+ <rect x="600" y="100" rx="2" ry="2" width="200" height="31" />
550
+ <rect x={boxWidth-240} y="100" rx="2" ry="2" width="200" height="31" />
551
+ <rect x="40" y="150" rx="2" ry="2" width="130" height="31" />
552
+ <rect x="190" y="150" rx="2" ry="2" width="130" height="31" />
553
+ <rect x="330" y="150" rx="2" ry="2" width="250" height="31" />
554
+ <rect x="600" y="150" rx="2" ry="2" width="200" height="31" />
555
+ <rect x={boxWidth-240} y="150" rx="2" ry="2" width="200" height="31" />
556
+ <rect x="40" y="200" rx="2" ry="2" width="130" height="31" />
557
+ <rect x="190" y="200" rx="2" ry="2" width="130" height="31" />
558
+ <rect x="330" y="200" rx="2" ry="2" width="250" height="31" />
559
+ <rect x="600" y="200" rx="2" ry="2" width="200" height="31" />
560
+ <rect x={boxWidth-240} y="200" rx="2" ry="2" width="200" height="31" />
561
+ </ContentLoader>
562
+ </ContentLoaderTableListContainer>
563
+ export const ContentLoaderPopupReadyToShip = () => <ContentLoaderPopupWrapper>
564
+ <ContentLoader
565
+ speed={1}
566
+ width={900}
567
+ height={255}
568
+ backgroundColor='rgb(0,0,0)'
569
+ foregroundColor='rgb(0,0,0)'
570
+ backgroundOpacity={0.06}
571
+ foregroundOpacity={0.12}
572
+ style={{ width: '100%', maxWidth: '900px', minWidth: '800px' }}>
573
+ <rect x="20" y="25" rx="2" ry="2" width="25" height="22"></rect>
574
+ <rect x="55" y="20" rx="2" ry="2" width="32" height="32"></rect>
575
+ <rect x="97" y="20" rx="2" ry="2" width="250" height="32"></rect>
576
+ <rect x="500" y="20" rx="2" ry="2" width="170" height="32"></rect>
577
+ <rect x="680" y="20" rx="2" ry="2" width="170" height="32"></rect>
578
+ <rect x="860" y="20" rx="2" ry="2" width="25" height="22"></rect>
579
+ <rect x="20" y="70" rx="2" ry="2" width="25" height="22"></rect>
580
+ <rect x="55" y="65" rx="2" ry="2" width="32" height="32"></rect>
581
+ <rect x="97" y="65" rx="2" ry="2" width="250" height="32"></rect>
582
+ <rect x="500" y="65" rx="2" ry="2" width="170" height="32"></rect>
583
+ <rect x="680" y="65" rx="2" ry="2" width="170" height="32"></rect>
584
+ <rect x="860" y="65" rx="2" ry="2" width="25" height="22"></rect>
585
+ <rect x="20" y="115" rx="2" ry="2" width="25" height="22"></rect>
586
+ <rect x="55" y="110" rx="2" ry="2" width="32" height="32"></rect>
587
+ <rect x="97" y="110" rx="2" ry="2" width="250" height="32"></rect>
588
+ <rect x="500" y="110" rx="2" ry="2" width="170" height="32"></rect>
589
+ <rect x="680" y="110" rx="2" ry="2" width="170" height="32"></rect>
590
+ <rect x="860" y="110" rx="2" ry="2" width="25" height="22"></rect>
591
+ <rect x="20" y="160" rx="2" ry="2" width="25" height="22"></rect>
592
+ <rect x="55" y="155" rx="2" ry="2" width="32" height="32"></rect>
593
+ <rect x="97" y="155" rx="2" ry="2" width="250" height="32"></rect>
594
+ <rect x="500" y="155" rx="2" ry="2" width="170" height="32"></rect>
595
+ <rect x="680" y="155" rx="2" ry="2" width="170" height="32"></rect>
596
+ <rect x="860" y="155" rx="2" ry="2" width="25" height="22"></rect>
597
+ <rect x="20" y="205" rx="2" ry="2" width="25" height="22"></rect>
598
+ <rect x="55" y="200" rx="2" ry="2" width="32" height="32"></rect>
599
+ <rect x="97" y="200" rx="2" ry="2" width="250" height="32"></rect>
600
+ <rect x="500" y="200" rx="2" ry="2" width="170" height="32"></rect>
601
+ <rect x="680" y="200" rx="2" ry="2" width="170" height="32"></rect>
602
+ <rect x="860" y="200" rx="2" ry="2" width="25" height="22"></rect>
603
+ </ContentLoader>
604
+ </ContentLoaderPopupWrapper>
605
+ export const ContentLoaderPopupListOrder = () => <ContentLoaderPopupWrapper>
606
+ <ContentLoader
607
+ speed={1}
608
+ width={840}
609
+ height={255}
610
+ backgroundColor='rgb(0,0,0)'
611
+ foregroundColor='rgb(0,0,0)'
612
+ backgroundOpacity={0.06}
613
+ foregroundOpacity={0.12}
614
+ style={{ width: '100%', maxWidth: '840px', minWidth: '800px' }}>
615
+ <rect x="20" y="25" rx="2" ry="2" width="25" height="22"></rect>
616
+ <rect x="55" y="20" rx="2" ry="2" width="32" height="32"></rect>
617
+ <rect x="97" y="20" rx="2" ry="2" width="250" height="32"></rect>
618
+ <rect x="620" y="20" rx="2" ry="2" width="170" height="32"></rect>
619
+ <rect x="800" y="20" rx="2" ry="2" width="25" height="22"></rect>
620
+ <rect x="60" y="80" rx="2" ry="2" width="200" height="20"></rect>
621
+ <rect x="440" y="80" rx="2" ry="2" width="90" height="20"></rect>
622
+ <rect x="560" y="80" rx="2" ry="2" width="90" height="20"></rect>
623
+ <rect x="680" y="80" rx="2" ry="2" width="90" height="20"></rect>
624
+ <rect x="60" y="130" rx="2" ry="2" width="200" height="20"></rect>
625
+ <rect x="440" y="130" rx="2" ry="2" width="90" height="20"></rect>
626
+ <rect x="560" y="130" rx="2" ry="2" width="90" height="20"></rect>
627
+ <rect x="680" y="130" rx="2" ry="2" width="90" height="20"></rect>
628
+ <rect x="20" y="210" rx="2" ry="2" width="25" height="22"></rect>
629
+ <rect x="55" y="205" rx="2" ry="2" width="32" height="32"></rect>
630
+ <rect x="97" y="205" rx="2" ry="2" width="250" height="32"></rect>
631
+ <rect x="620" y="205" rx="2" ry="2" width="170" height="32"></rect>
632
+ <rect x="800" y="205" rx="2" ry="2" width="25" height="22"></rect>
633
+ </ContentLoader>
634
+ </ContentLoaderPopupWrapper>
635
+ export const ContentLoaderPopupPicklist = () => <ContentLoaderPopupWrapper>
636
+ <ContentLoader
637
+ speed={1}
638
+ width={1000}
639
+ height={340}
640
+ backgroundColor='rgb(0,0,0)'
641
+ foregroundColor='rgb(0,0,0)'
642
+ backgroundOpacity={0.06}
643
+ foregroundOpacity={0.12}
644
+ style={{ width: '100%', maxWidth: '1000px', minWidth: '800px' }}>
645
+ <rect x="130" y="20" rx="2" ry="2" width="100" height="21" />
646
+ <rect x="510" y="20" rx="2" ry="2" width="100" height="21" />
647
+ <rect x="130" y="51" rx="2" ry="2" width="360" height="36" />
648
+ <rect x="510" y="51" rx="2" ry="2" width="360" height="36" />
649
+ <rect x="130" y="110" rx="2" ry="2" width="100" height="21" />
650
+ <rect x="510" y="110" rx="2" ry="2" width="100" height="21" />
651
+ <rect x="130" y="141" rx="2" ry="2" width="360" height="36" />
652
+ <rect x="510" y="141" rx="2" ry="2" width="360" height="36" />
653
+ <rect x="52" y="200" rx="2" ry="2" width="31" height="31" />
654
+ <rect x="95" y="200" rx="2" ry="2" width="110" height="31" />
655
+ <rect x="217" y="200" rx="2" ry="2" width="110" height="31" />
656
+ <rect x="339" y="200" rx="2" ry="2" width="110" height="31" />
657
+ <rect x="461" y="200" rx="2" ry="2" width="110" height="31" />
658
+ <rect x="583" y="200" rx="2" ry="2" width="110" height="31" />
659
+ <rect x="705" y="200" rx="2" ry="2" width="110" height="31" />
660
+ <rect x="827" y="200" rx="2" ry="2" width="110" height="31" />
661
+ <rect x="52" y="240" rx="2" ry="2" width="31" height="31" />
662
+ <rect x="95" y="240" rx="2" ry="2" width="110" height="31" />
663
+ <rect x="217" y="240" rx="2" ry="2" width="110" height="31" />
664
+ <rect x="339" y="240" rx="2" ry="2" width="110" height="31" />
665
+ <rect x="461" y="240" rx="2" ry="2" width="110" height="31" />
666
+ <rect x="583" y="240" rx="2" ry="2" width="110" height="31" />
667
+ <rect x="705" y="240" rx="2" ry="2" width="110" height="31" />
668
+ <rect x="827" y="240" rx="2" ry="2" width="110" height="31" />
669
+ <rect x="52" y="280" rx="2" ry="2" width="31" height="31" />
670
+ <rect x="95" y="280" rx="2" ry="2" width="110" height="31" />
671
+ <rect x="217" y="280" rx="2" ry="2" width="110" height="31" />
672
+ <rect x="339" y="280" rx="2" ry="2" width="110" height="31" />
673
+ <rect x="461" y="280" rx="2" ry="2" width="110" height="31" />
674
+ <rect x="583" y="280" rx="2" ry="2" width="110" height="31" />
675
+ <rect x="705" y="280" rx="2" ry="2" width="110" height="31" />
676
+ <rect x="827" y="280" rx="2" ry="2" width="110" height="31" />
677
+ </ContentLoader>
678
+ </ContentLoaderPopupWrapper>
679
+ export const ContentLoaderPopupPaymentReceive = () => <ContentLoaderPopupWrapper>
680
+ <ContentLoader
681
+ speed={1}
682
+ width={1000}
683
+ height={340}
684
+ backgroundColor='rgb(0,0,0)'
685
+ foregroundColor='rgb(0,0,0)'
686
+ backgroundOpacity={0.06}
687
+ foregroundOpacity={0.12}
688
+ style={{ width: '100%', maxWidth: '1000px', minWidth: '800px' }}>
689
+ <rect x="40" y="20" rx="2" ry="2" width="80" height="21" />
690
+ <rect x="40" y="51" rx="2" ry="2" width="260" height="30" />
691
+ <rect x="40" y="110" rx="2" ry="2" width="80" height="21" />
692
+ <rect x="320" y="110" rx="2" ry="2" width="80" height="21" />
693
+ <rect x="40" y="141" rx="2" ry="2" width="260" height="30" />
694
+ <rect x="320" y="141" rx="2" ry="2" width="260" height="30" />
695
+ <rect x="55" y="200" rx="2" ry="2" width="220" height="30" />
696
+ <rect x="320" y="200" rx="2" ry="2" width="260" height="30" />
697
+ <rect x="55" y="245" rx="2" ry="2" width="220" height="30" />
698
+ <rect x="320" y="245" rx="2" ry="2" width="260" height="30" />
699
+ <rect x="55" y="290" rx="2" ry="2" width="220" height="30" />
700
+ <rect x="320" y="290" rx="2" ry="2" width="260" height="30" />
701
+ </ContentLoader>
702
+ </ContentLoaderPopupWrapper>
703
+ export const ContentLoaderPopupStoreSelect = () => <ContentLoaderPopupWrapper>
704
+ <ContentLoader
705
+ speed={1}
706
+ width={325.5}
707
+ height={30}
708
+ backgroundColor='rgb(0,0,0)'
709
+ foregroundColor='rgb(0,0,0)'
710
+ backgroundOpacity={0.06}
711
+ foregroundOpacity={0.12}>
712
+ <rect x="0" y="0" rx="5" ry="5" width="325.5" height="30" />
713
+ </ContentLoader>
714
+ </ContentLoaderPopupWrapper>
715
+ export const ContentLoaderFilters = () => <ContentLoader
716
+ height={31}
717
+ width={500}
718
+ speed={1}
719
+ backgroundColor='rgb(0,0,0)'
720
+ foregroundColor='rgb(0,0,0)'
721
+ backgroundOpacity={0.06}
722
+ foregroundOpacity={0.12}>
723
+ <rect x='0' y='5' rx='8' ry='8' width='90' height='20' />
724
+ <rect x='100' y='5' rx='8' ry='8' width='90' height='20' />
725
+ <rect x='200' y='5' rx='8' ry='8' width='90' height='20' />
726
+ <rect x='300' y='5' rx='8' ry='8' width='90' height='20' />
727
+ <rect x='400' y='5' rx='8' ry='8' width='90' height='20' />
728
+ </ContentLoader>
729
+ export const ContentLoaderFilterCategories = () => <ContentLoader
730
+ height={172}
731
+ width={210}
732
+ speed={1}
733
+ backgroundColor='rgb(0,0,0)'
734
+ foregroundColor='rgb(0,0,0)'
735
+ backgroundOpacity={0.06}
736
+ foregroundOpacity={0.12}>
737
+ <rect x='4' y='12' rx='4' ry='4' width='14' height='14' />
738
+ <rect x='28' y='12' rx='2' ry='2' width='170' height='14' />
739
+ <rect x='4' y='36' rx='4' ry='4' width='14' height='14' />
740
+ <rect x='28' y='36' rx='2' ry='2' width='170' height='14' />
741
+ <rect x='4' y='60' rx='4' ry='4' width='14' height='14' />
742
+ <rect x='28' y='60' rx='2' ry='2' width='170' height='14' />
743
+ <rect x='4' y='84' rx='4' ry='4' width='14' height='14' />
744
+ <rect x='28' y='84' rx='2' ry='2' width='170' height='14' />
745
+ <rect x='4' y='108' rx='4' ry='4' width='14' height='14' />
746
+ <rect x='28' y='108' rx='2' ry='2' width='170' height='14' />
747
+ <rect x='4' y='132' rx='4' ry='4' width='14' height='14' />
748
+ <rect x='28' y='132' rx='2' ry='2' width='170' height='14' />
749
+ <rect x='4' y='156' rx='4' ry='4' width='14' height='14' />
750
+ <rect x='28' y='156' rx='2' ry='2' width='170' height='14' />
751
+ </ContentLoader>
752
+ export const ContentLoaderTableList = () => {
753
+ const _boxHeight = boxHeight - 96;
754
+ const startX = 55;
755
+ const startY = 20;
756
+ const widthRowwithPad = 120;
757
+ const heightRowwithPad = 50;
758
+ const widthRow = 100;
759
+ const xverDivide = Math.floor((boxWidth - (startX *2)) / widthRowwithPad);
760
+ const yverDivide = Math.floor((_boxHeight - startY) / heightRowwithPad);
761
+ return (
762
+ <ContentLoaderTableListContainer>
763
+ <ContentLoader
764
+ speed={1}
765
+ width={boxWidth}
766
+ height= {_boxHeight}
767
+ backgroundColor='rgb(0,0,0)'
768
+ foregroundColor='rgb(0,0,0)'
769
+ backgroundOpacity={0.06}
770
+ foregroundOpacity={0.12}
771
+ style={{ position: 'relative', zIndex: '2'}}>
772
+ {
773
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
774
+ const top = c + (heightRowwithPad * (c+1)) - (heightRowwithPad - startY)
775
+ return Array.apply(0, Array(xverDivide)).map((x, i) => {
776
+ const left = i + (widthRowwithPad * (i+1)) - (widthRowwithPad - startX)
777
+ return <rect key={i} x={left} y={top} rx="2" ry="2" width={widthRow} height={c === 0 ? 16 : 30} />
778
+ })
779
+ })
780
+ }
781
+ </ContentLoader>
782
+ </ContentLoaderTableListContainer>
783
+ )
784
+ }
785
+ export const ContentLoaderMasterList = () => {
786
+ const _boxHeight = boxHeight - 286;
787
+ const x1 = 29, w1 = (boxWidth >= 1336 ? 370: (boxWidth >= 1112 ? 250: 150));
788
+ const x2 = (x1 + w1 + 12), w2 = (boxWidth >= 1336 ? 130: (boxWidth >= 1112 ? 110: 100));
789
+ const x3 = (x2 + w2 + 12), w3 = (boxWidth >= 1336 ? 100: (boxWidth >= 1112 ? 95: 95));
790
+ const x4 = (x3 + w3 + 12), w4 = (boxWidth >= 1336 ? 90: (boxWidth >= 1112 ? 80: 80));
791
+ const x5 = (x4 + w4 + 12), w5 = (boxWidth >= 1336 ? 85: (boxWidth >= 1112 ? 75: 75));
792
+ const x6 = (x5 + w5 + 12), w6 = (boxWidth >= 1336 ? 80: (boxWidth >= 1112 ? 70: 70));
793
+ const x7 = (x6 + w6 + 12), w7 = (boxWidth >= 1336 ? 70: (boxWidth >= 1112 ? 60: 60));
794
+ const x8 = (x7 + w7 + 12), w8 = (boxWidth >= 1336 ? 95: (boxWidth >= 1112 ? 85: 85));
795
+ const x9 = (boxWidth - 100 - 24), w9 = 100;
796
+ const yverDivide = boxHeight ? (Math.ceil((_boxHeight - 78) / 70) > 0 ? Math.ceil((_boxHeight - 78) / 70) : 0) : 0;
797
+ let _x = (x8 + w8 + 12);
798
+ let _loaderArray: any = [];
799
+ for (let i = 0; (_x + 122) < x9; i++) {
800
+ _loaderArray.push({
801
+ x: x8 + w8 + 12 + (i * (110 + 12)),
802
+ w: 110
803
+ });
804
+ _x = x8 + w8 + 12 + (i * (110 + 12));
805
+ }
806
+ return (
807
+ <ContentLoaderNonListContainer>
808
+ <ContentLoader
809
+ speed={1}
810
+ width={boxWidth}
811
+ height='100%'
812
+ backgroundColor='rgb(0,0,0)'
813
+ foregroundColor='rgb(0,0,0)'
814
+ backgroundOpacity={0.06}
815
+ foregroundOpacity={0.12}
816
+ style={{ position: 'relative', zIndex: '2'}}>
817
+ <rect x={x1} y="23" rx="2" ry="2" width={w1} height="16" />
818
+ <rect x={x2} y="23" rx="2" ry="2" width={w2} height="16" />
819
+ <rect x={x3} y="23" rx="2" ry="2" width={w3} height="16" />
820
+ <rect x={x4} y="23" rx="2" ry="2" width={w4} height="16" />
821
+ <rect x={x5} y="23" rx="2" ry="2" width={w5} height="16" />
822
+ <rect x={x6} y="23" rx="2" ry="2" width={w6} height="16" />
823
+ <rect x={x7} y="23" rx="2" ry="2" width={w7} height="16" />
824
+ <rect x={x8} y="23" rx="2" ry="2" width={w8} height="16" />
825
+ {
826
+ _loaderArray.map((_loader: any, idx: number) => {
827
+ return (
828
+ <Fragment key={idx}>
829
+ <rect x={_loader.x} y="23" rx="2" ry="2" width={_loader.w} height="16" />
830
+ </Fragment>
831
+ )
832
+ })
833
+ }
834
+ <rect x={x9} y="23" rx="2" ry="2" width={w9} height="16" />
835
+ {
836
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
837
+ const newY = (c * 70) + 78
838
+ return (
839
+ <Fragment key={c}>
840
+ <rect x={x1} y={newY} rx="2" ry="2" width={w1} height="31" />
841
+ <rect x={x2} y={newY} rx="2" ry="2" width={w2} height="31" />
842
+ <rect x={x3} y={newY} rx="2" ry="2" width={w3} height="31" />
843
+ <rect x={x4} y={newY} rx="2" ry="2" width={w4} height="31" />
844
+ <rect x={x5} y={newY} rx="2" ry="2" width={w5} height="31" />
845
+ <rect x={x6} y={newY} rx="2" ry="2" width={w6} height="31" />
846
+ <rect x={x7} y={newY} rx="2" ry="2" width={w7} height="31" />
847
+ <rect x={x8} y={newY} rx="2" ry="2" width={w8} height="31" />
848
+ {
849
+ _loaderArray.map((_loader: any, idx: number) => {
850
+ return(
851
+ <Fragment key={idx}>
852
+ <rect x={_loader.x} y={newY} rx="2" ry="2" width={_loader.w} height="31" />
853
+ </Fragment>
854
+ )
855
+ })
856
+ }
857
+ <rect x={x9} y={newY} rx="2" ry="2" width={w9} height="31" />
858
+ </Fragment>
859
+ )
860
+ })
861
+ }
862
+ </ContentLoader>
863
+ </ContentLoaderNonListContainer>
864
+ )
865
+ }
866
+ export const ContentLoaderPopupLinkedListing = () => <ContentLoader
867
+ height={270}
868
+ width={800}
869
+ speed={1}
870
+ backgroundColor='rgb(0,0,0)'
871
+ foregroundColor='rgb(0,0,0)'
872
+ backgroundOpacity={0.06}
873
+ foregroundOpacity={0.12}>
874
+ <rect x='15' y='25' width='425' height='15' />
875
+ <rect x='490' y='25' width='150' height='15' />
876
+ <rect x='670' y='25' width='95' height='15' />
877
+ <rect x='15' y='60' rx='8' ry='8' width='30' height='30' />
878
+ <rect x='60' y='60' width='380' height='30' />
879
+ <rect x='490' y='60' width='150' height='30' />
880
+ <rect x='670' y='60' width='95' height='30' />
881
+ <rect x='15' y='110' rx='8' ry='8' width='30' height='30' />
882
+ <rect x='60' y='110' width='380' height='30' />
883
+ <rect x='490' y='110' width='150' height='30' />
884
+ <rect x='670' y='110' width='95' height='30' />
885
+ <rect x='15' y='160' rx='8' ry='8' width='30' height='30' />
886
+ <rect x='60' y='160' width='380' height='30' />
887
+ <rect x='490' y='160' width='150' height='30' />
888
+ <rect x='670' y='160' width='95' height='30' />
889
+ <rect x='15' y='210' rx='8' ry='8' width='30' height='30' />
890
+ <rect x='60' y='210' width='380' height='30' />
891
+ <rect x='490' y='210' width='150' height='30' />
892
+ <rect x='670' y='210' width='95' height='30' />
893
+ </ContentLoader>
894
+ export const ContentLoaderPopupBundle = () => <ContentLoader
895
+ height={270}
896
+ width={800}
897
+ speed={1}
898
+ backgroundColor='rgb(0,0,0)'
899
+ foregroundColor='rgb(0,0,0)'
900
+ backgroundOpacity={0.06}
901
+ foregroundOpacity={0.12}>
902
+ <rect x='15' y='60' width='300' height='15' />
903
+ <rect x='330' y='25' width='100' height='15' />
904
+ <rect x='450' y='25' width='75' height='15' />
905
+ <rect x='540' y='25' width='130' height='15' />
906
+ <rect x='690' y='25' width='75' height='15' />
907
+ <rect x='15' y='60' width='300' height='30' />
908
+ <rect x='330' y='60' width='100' height='30' />
909
+ <rect x='450' y='60' width='75' height='30' />
910
+ <rect x='540' y='60' width='130' height='30' />
911
+ <rect x='690' y='60' width='75' height='30' />
912
+ <rect x='15' y='110' width='300' height='30' />
913
+ <rect x='330' y='110' width='100' height='30' />
914
+ <rect x='450' y='110' width='75' height='30' />
915
+ <rect x='540' y='110' width='130' height='30' />
916
+ <rect x='690' y='110' width='75' height='30' />
917
+ <rect x='15' y='160' width='300' height='30' />
918
+ <rect x='330' y='160' width='100' height='30' />
919
+ <rect x='450' y='160' width='75' height='30' />
920
+ <rect x='540' y='160' width='130' height='30' />
921
+ <rect x='690' y='160' width='75' height='30' />
922
+ <rect x='15' y='210' width='300' height='30' />
923
+ <rect x='330' y='210' width='100' height='30' />
924
+ <rect x='450' y='210' width='75' height='30' />
925
+ <rect x='540' y='210' width='130' height='30' />
926
+ <rect x='690' y='210' width='75' height='30' />
927
+ </ContentLoader>
928
+ export const ContentLoaderMasterListingDetail = () => {
929
+ const w = (boxWidth >= 1336 ? 645: (boxWidth >= 1112 ? 400: 300));
930
+ const wh = (w + 45);
931
+ const x = (w + 90);
932
+ return (
933
+ <ContentLoaderDetailItemContainer>
934
+ <ContentLoader
935
+ speed={1}
936
+ width={boxWidth}
937
+ height={300}
938
+ backgroundColor='rgb(0,0,0)'
939
+ foregroundColor='rgb(0,0,0)'
940
+ backgroundOpacity={0.06}
941
+ foregroundOpacity={0.12}
942
+ style={{ position: 'relative', zIndex: '2'}}>
943
+ <rect x='15' y='25' rx="2" ry="2" width={wh} height='15' />
944
+ <rect x={x} y='25' rx="2" ry="2" width='250' height='15' />
945
+ <rect x='15' y='60' rx='8' ry='8' width='30' height='30' />
946
+ <rect x='60' y='60' rx="2" ry="2" width={w} height='30' />
947
+ <rect x={x} y='60' rx="2" ry="2" width='250' height='30' />
948
+ <rect x='15' y='110' rx='8' ry='8' width='30' height='30' />
949
+ <rect x='60' y='110' rx="2" ry="2" width={w} height='30' />
950
+ <rect x={x} y='110' rx="2" ry="2" width='250' height='30' />
951
+ <rect x='15' y='160' rx='8' ry='8' width='30' height='30' />
952
+ <rect x='60' y='160' rx="2" ry="2" width={w} height='30' />
953
+ <rect x={x} y='160' rx="2" ry="2" width='250' height='30' />
954
+ <rect x='15' y='210' rx='8' ry='8' width='30' height='30' />
955
+ <rect x='60' y='210' rx="2" ry="2" width={w} height='30' />
956
+ <rect x={x} y='210' rx="2" ry="2" width='250' height='30' />
957
+ </ContentLoader>
958
+ </ContentLoaderDetailItemContainer>
959
+ )
960
+ }
961
+ export const ContentLoaderMasterBundleDetail = () => {
962
+ const w = (boxWidth >= 1336 ? 540: (boxWidth >= 1112 ? 320: 250));
963
+ const x1 = (w + 30), w1 = 150;
964
+ const x2 = (x1 + w1 + 15), w2 = 80;
965
+ const x3 = (x2 + w2 + 15), w3 = 150;
966
+ const x4 = (x3 + w3 + 15), w4 = 80;
967
+ return (
968
+ <ContentLoaderDetailItemContainer>
969
+ <ContentLoader
970
+ speed={1}
971
+ width={boxWidth}
972
+ height={300}
973
+ backgroundColor='rgb(0,0,0)'
974
+ foregroundColor='rgb(0,0,0)'
975
+ backgroundOpacity={0.06}
976
+ foregroundOpacity={0.12}
977
+ style={{ position: 'relative', zIndex: '2' }}>
978
+ <rect x='15' y='25' rx="2" ry="2" width={w} height='15' />
979
+ <rect x={x1} y='25' rx="2" ry="2" width={w1} height='15' />
980
+ <rect x={x2} y='25' rx="2" ry="2" width={w2} height='15' />
981
+ <rect x={x3} y='25' rx="2" ry="2" width={w3} height='15' />
982
+ <rect x={x4} y='25' rx="2" ry="2" width={w4} height='15' />
983
+ <rect x='15' y='60' rx="2" ry="2" width={w} height='30' />
984
+ <rect x={x1} y='60' rx="2" ry="2" width={w1} height='30' />
985
+ <rect x={x2} y='60' rx="2" ry="2" width={w2} height='30' />
986
+ <rect x={x3} y='60' rx="2" ry="2" width={w3} height='30' />
987
+ <rect x={x4} y='60' rx="2" ry="2" width={w4} height='30' />
988
+ <rect x='15' y='110' rx="2" ry="2" width={w} height='30' />
989
+ <rect x={x1} y='110' rx="2" ry="2" width={w1} height='30' />
990
+ <rect x={x2} y='110' rx="2" ry="2" width={w2} height='30' />
991
+ <rect x={x3} y='110' rx="2" ry="2" width={w3} height='30' />
992
+ <rect x={x4} y='110' rx="2" ry="2" width={w4} height='30' />
993
+ <rect x='15' y='160' rx="2" ry="2" width={w} height='30' />
994
+ <rect x={x1} y='160' rx="2" ry="2" width={w1} height='30' />
995
+ <rect x={x2} y='160' rx="2" ry="2" width={w2} height='30' />
996
+ <rect x={x3} y='160' rx="2" ry="2" width={w3} height='30' />
997
+ <rect x={x4} y='160' rx="2" ry="2" width={w4} height='30' />
998
+ <rect x='15' y='210' rx="2" ry="2" width={w} height='30' />
999
+ <rect x={x1} y='210' rx="2" ry="2" width={w1} height='30' />
1000
+ <rect x={x2} y='210' rx="2" ry="2" width={w2} height='30' />
1001
+ <rect x={x3} y='210' rx="2" ry="2" width={w3} height='30' />
1002
+ <rect x={x4} y='210' rx="2" ry="2" width={w4} height='30' />
1003
+ </ContentLoader>
1004
+ </ContentLoaderDetailItemContainer>
1005
+ )
1006
+ }
1007
+ export const ContentLoaderPopupChooseStore = () => <ContentLoader
1008
+ height={80}
1009
+ width={600}
1010
+ speed={1}
1011
+ backgroundColor='rgb(0,0,0)'
1012
+ foregroundColor='rgb(0,0,0)'
1013
+ backgroundOpacity={0.06}
1014
+ foregroundOpacity={0.12}>
1015
+ <rect x='0' y='0' rx="5" ry="5" width='172' height='34' />
1016
+ <rect x='178' y='0' rx="5" ry="5" width='172' height='34' />
1017
+ <rect x='356' y='0' rx="5" ry="5" width='100' height='34' />
1018
+ <rect x='462' y='0' rx="5" ry="5" width='100' height='34' />
1019
+ <rect x='0' y='40' rx="5" ry="5" width='172' height='34' />
1020
+ <rect x='178' y='40' rx="5" ry="5" width='100' height='34' />
1021
+ <rect x='284' y='40' rx="5" ry="5" width='140' height='34' />
1022
+ <rect x='430' y='40' rx="5" ry="5" width='100' height='34' />
1023
+ </ContentLoader>
1024
+ export const ContentLoaderEditBundle = () => <ContentLoader
1025
+ height={500}
1026
+ width={1150}
1027
+ speed={1}
1028
+ backgroundColor='rgb(0,0,0)'
1029
+ foregroundColor='rgb(0,0,0)'
1030
+ backgroundOpacity={0.06}
1031
+ foregroundOpacity={0.12}>
1032
+ <rect x='0' y='25' width='35' height='35' />
1033
+ <rect x='50' y='25' width='400' height='35' />
1034
+ <rect x='50' y='75' width='170' height='35' />
1035
+ <rect x='235' y='75' width='170' height='35' />
1036
+ <rect x='420' y='75' width='170' height='35' />
1037
+ <rect x='605' y='75' width='170' height='35' />
1038
+ <rect x='50' y='125' width='170' height='35' />
1039
+ <rect x='0' y='245' width='200' height='35' />
1040
+ <rect x='420' y='305' width='150' height='25' />
1041
+ <rect x='585' y='305' width='150' height='25' />
1042
+ <rect x='750' y='305' width='150' height='25' />
1043
+ <rect x='915' y='305' width='150' height='25' />
1044
+ <rect x='0' y='345' width='25' height='25' />
1045
+ <rect x='40' y='345' width='360' height='25' />
1046
+ <rect x='420' y='345' width='150' height='25' />
1047
+ <rect x='585' y='345' width='150' height='25' />
1048
+ <rect x='750' y='345' width='150' height='25' />
1049
+ <rect x='915' y='345' width='150' height='25' />
1050
+ <rect x='750' y='395' width='315' height='25' />
1051
+ </ContentLoader>
1052
+ export const ContentLoaderOnlyHeaderTableList = () => {
1053
+ const _boxHeight = 100;
1054
+ const startX = 55;
1055
+ const widthRowwithPad = 120;
1056
+ const widthRow = 100;
1057
+ const xverDivide = Math.floor((boxWidth - (startX *2)) / widthRowwithPad);
1058
+ return (
1059
+ <ContentLoaderTableListContainer>
1060
+ <ContentLoader
1061
+ speed={1}
1062
+ width={boxWidth}
1063
+ height= {_boxHeight}
1064
+ backgroundColor='rgb(0,0,0)'
1065
+ foregroundColor='rgb(0,0,0)'
1066
+ backgroundOpacity={0.06}
1067
+ foregroundOpacity={0.12}
1068
+ style={{ position: 'relative', zIndex: '2' }}>
1069
+ {
1070
+ [0].map((a, c) => {
1071
+ const top = 20
1072
+ return Array.apply(0, Array(xverDivide)).map((x, i) => {
1073
+ const left = i + (widthRowwithPad * (i+1)) - (widthRowwithPad - startX)
1074
+ return <rect key={i} x={left} y={top} rx="2" ry="2" width={widthRow} height={c === 0 ? 16 : 30} />
1075
+ })
1076
+ })
1077
+ }
1078
+ </ContentLoader>
1079
+ </ContentLoaderTableListContainer>
1080
+ )
1081
+ }
1082
+ export const ContentLoaderOnlyBodyTableList = () => {
1083
+ const _boxHeight = window.innerHeight - 96;
1084
+ const startX = 55;
1085
+ const startY = 20;
1086
+ const widthRowwithPad = 120;
1087
+ const heightRowwithPad = 50;
1088
+ const widthRow = 100;
1089
+ const xverDivide = Math.floor((boxWidth - (startX *2)) / widthRowwithPad);
1090
+ const yverDivide = Math.floor((_boxHeight - startY) / heightRowwithPad);
1091
+ return (
1092
+ <ContentLoaderTableListContainer>
1093
+ <ContentLoader
1094
+ speed={1}
1095
+ width={boxWidth}
1096
+ height= {_boxHeight}
1097
+ backgroundColor='rgb(0,0,0)'
1098
+ foregroundColor='rgb(0,0,0)'
1099
+ backgroundOpacity={0.06}
1100
+ foregroundOpacity={0.12}
1101
+ style={{ position: 'relative', zIndex: '2' }}>
1102
+ {
1103
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
1104
+ const top = c + (heightRowwithPad * (c+1)) - (heightRowwithPad - startY)
1105
+ return Array.apply(0, Array(xverDivide)).map((x, i) => {
1106
+ const left = i + (widthRowwithPad * (i+1)) - (widthRowwithPad - startX)
1107
+ return <rect key={i} x={left} y={top} rx="2" ry="2" width={widthRow} height="30" />
1108
+ })
1109
+ })
1110
+ }
1111
+ </ContentLoader>
1112
+ </ContentLoaderTableListContainer>
1113
+ )
1114
+ }
1115
+ export const ContentLoaderDashboardCard = () => <ContentLoaderCardWrapper>
1116
+ <ContentLoader
1117
+ height={220}
1118
+ width='100%'
1119
+ speed={1}
1120
+ backgroundColor='rgb(0,0,0)'
1121
+ foregroundColor='rgb(0,0,0)'
1122
+ backgroundOpacity={0.06}
1123
+ foregroundOpacity={0.12}>
1124
+ <rect x='0' y='0' rx='0' ry='0' width='200' height='50' />
1125
+ <rect x='0' y='70' rx='0' ry='0' width='100%' height='25' />
1126
+ <rect x='0' y='105' rx='0' ry='0' width='100%' height='15' />
1127
+ <rect x='0' y='130' rx='0' ry='0' width='100%' height='15' />
1128
+ <rect x='0' y='155' rx='0' ry='0' width='100%' height='15' />
1129
+ <rect x='0' y='180' rx='0' ry='0' width='100%' height='15' />
1130
+ <rect x='0' y='205' rx='0' ry='0' width='100%' height='15' />
1131
+ </ContentLoader>
1132
+ </ContentLoaderCardWrapper>
1133
+ export const ContentLoaderOnlyBodyDashboardCard = () => <ContentLoader
1134
+ height={650}
1135
+ width='100%'
1136
+ speed={1}
1137
+ backgroundColor='rgb(0,0,0)'
1138
+ foregroundColor='rgb(0,0,0)'
1139
+ backgroundOpacity={0.06}
1140
+ foregroundOpacity={0.12}>
1141
+ <rect x='0' y='30' rx='0' ry='0' width='50%' height='20' />
1142
+ <rect x='0' y='55' rx='0' ry='0' width='50%' height='20' />
1143
+ <rect x='0' y='80' rx='0' ry='0' width='50%' height='20' />
1144
+ <rect x='0' y='105' rx='0' ry='0' width='50%' height='20' />
1145
+ <rect x='0' y='130' rx='0' ry='0' width='50%' height='20' />
1146
+ <rect x='0' y='155' rx='0' ry='0' width='50%' height='20' />
1147
+ <rect x='0' y='180' rx='0' ry='0' width='50%' height='20' />
1148
+ <rect x='0' y='205' rx='0' ry='0' width='50%' height='20' />
1149
+ <rect x='0' y='250' rx='0' ry='0' width='100%' height='250' />
1150
+ <rect x='0' y='525' rx='0' ry='0' width='100%' height='15' />
1151
+ <rect x='0' y='550' rx='0' ry='0' width='100%' height='15' />
1152
+ <rect x='0' y='575' rx='0' ry='0' width='100%' height='15' />
1153
+ </ContentLoader>
1154
+ export const ContentLoaderChatStores = () => <ContentLoader
1155
+ height={220}
1156
+ width='100%'
1157
+ speed={1}
1158
+ backgroundColor='rgb(0,0,0)'
1159
+ foregroundColor='rgb(0,0,0)'
1160
+ backgroundOpacity={0.06}
1161
+ foregroundOpacity={0.12}>
1162
+ <rect x='0' y='0' rx='0' ry='0' width='100%' height='14' />
1163
+ <rect x='0' y='28' rx='0' ry='0' width='100%' height='14' />
1164
+ <rect x='0' y='56' rx='0' ry='0' width='100%' height='14' />
1165
+ <rect x='0' y='84' rx='0' ry='0' width='100%' height='14' />
1166
+ <rect x='0' y='112' rx='0' ry='0' width='100%' height='14' />
1167
+ <rect x='0' y='140' rx='0' ry='0' width='100%' height='14' />
1168
+ <rect x='0' y='168' rx='0' ry='0' width='100%' height='14' />
1169
+ </ContentLoader>
1170
+ export const ContentLoaderChatAccounts = ({ mode }: { mode?: string }) => {
1171
+ const _refChatContainer = document.querySelector('._refChatContainer') as HTMLElement;
1172
+ const _boxWidth = _refChatContainer ? _refChatContainer.offsetWidth : 0;
1173
+ const _boxHeight = mode === 'single' ? 65 : (_refChatContainer ? (_refChatContainer.offsetHeight - 140 >= 0 ? _refChatContainer.offsetHeight : 0 ) : 0);
1174
+ const w1 = _boxWidth - 48 - 88 - 20;
1175
+ const x2 = w1 + 60 + 16;
1176
+ const yverDivide= mode === 'single' ? 1 : Math.floor(_boxHeight / 64);
1177
+ let lastY = 0;
1178
+ return (
1179
+ <ContentLoader
1180
+ height={_boxHeight}
1181
+ width='100%'
1182
+ speed={1}
1183
+ backgroundColor='rgb(0,0,0)'
1184
+ foregroundColor='rgb(0,0,0)'
1185
+ backgroundOpacity={0.06}
1186
+ foregroundOpacity={0.12}>
1187
+ {
1188
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
1189
+ const y1 = 14 + lastY
1190
+ const y2 = 32 + lastY
1191
+ const y3 = 64 + lastY
1192
+ lastY = y3
1193
+ return (
1194
+ <Fragment key={c}>
1195
+ <rect x='16' y={y1} rx='4' ry='4' width='32' height='32' />
1196
+ <rect x='60' y={y1} rx='0' ry='0' width={w1} height='14' />
1197
+ <rect x='60' y={y2} rx='0' ry='0' width={w1} height='14' />
1198
+ <rect x={x2} y={y1} rx='0' ry='0' width='66' height='14' />
1199
+ <rect x={x2} y={y2} rx='0' ry='0' width='66' height='14' />
1200
+
1201
+ <rect x='0' y={y3} rx='0' ry='0' width='100%' height='1' />
1202
+ </Fragment>
1203
+ )
1204
+ })
1205
+ }
1206
+ </ContentLoader>
1207
+ )
1208
+ }
1209
+ export const ContentLoaderChatProducts = ({ mode }: { mode?: string })=> {
1210
+ const _refTabsContent = document.querySelector('._refTabsContent') as HTMLDivElement;
1211
+ const _refChatContainer = document.querySelector('._refChatContainer') as HTMLElement;
1212
+ const _boxWidth = _refTabsContent ? (_refTabsContent.offsetWidth - 30 >= 0 ? _refTabsContent.offsetWidth - 30 : 0) : 0;
1213
+ const _boxHeight = mode === 'single' ? 65 : (_refChatContainer ? (_refChatContainer.offsetHeight - 204 >= 0 ? _refChatContainer.offsetHeight - 204 : 0 ) : 0);
1214
+ const w1 = _boxWidth - 48 - 88;
1215
+ const x2 = w1 + 60 + 16 + 22;
1216
+ const yverDivide= mode === 'single' ? 1 : Math.floor(_boxHeight / 64);
1217
+ let lastY = 0;
1218
+ if (_boxWidth <= 0) {
1219
+ return false;
1220
+ }
1221
+ return (
1222
+ <ContentLoader
1223
+ height={_boxHeight}
1224
+ width='100%'
1225
+ speed={1}
1226
+ backgroundColor='rgb(0,0,0)'
1227
+ foregroundColor='rgb(0,0,0)'
1228
+ backgroundOpacity={0.06}
1229
+ foregroundOpacity={0.12}>
1230
+ {
1231
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
1232
+ const y1 = 14 + lastY
1233
+ const y2 = 32 + lastY
1234
+ const y3 = 64 + lastY
1235
+ lastY = y3
1236
+ return (
1237
+ <Fragment key={c}>
1238
+ <rect x='16' y={y1} rx='4' ry='4' width='14' height='14' />
1239
+ <rect x='38' y={y1} rx='4' ry='4' width='32' height='32' />
1240
+ <rect x='78' y={y1} rx='0' ry='0' width={w1} height='14' />
1241
+ <rect x='78' y={y2} rx='0' ry='0' width={w1} height='20' />
1242
+ <rect x={x2} y={y1} rx='0' ry='0' width='20' height='14' />
1243
+ <rect x={x2} y={y2} rx='0' ry='0' width='20' height='14' />
1244
+ <rect x='0' y={y3} rx='0' ry='0' width='100%' height='1' />
1245
+ </Fragment>
1246
+ )
1247
+ })
1248
+ }
1249
+ </ContentLoader>
1250
+ )
1251
+ }
1252
+ export const ContentLoaderChatMessages = ({ mode }: { mode?: string }) => {
1253
+ const _refChatArticleContainers = document.querySelectorAll('._refChatContainer > article') as NodeListOf<HTMLElement>;
1254
+ const _refChatContainer = document.querySelector('._refChatContainer') as HTMLElement;
1255
+ let _boxWidth = _refChatArticleContainers[0] ? (_refChatArticleContainers[0].offsetWidth >= 0 ? _refChatArticleContainers[0].offsetWidth : 0) : 0;
1256
+ _boxWidth = _boxWidth <= 0 ? (_refChatContainer ? (_refChatContainer.offsetWidth >= 0 ? _refChatContainer.offsetWidth : 0) : 0) : _boxWidth;
1257
+ const _boxHeight = mode === 'single' ? 234 : (_refChatContainer ? (_refChatContainer.offsetHeight >= 0 ? _refChatContainer.offsetHeight : 0) : 0);
1258
+ const w1 = (_boxWidth - (16*2) <= 360 ? _boxWidth - (16*2) : 360);
1259
+ const x1 = _boxWidth - w1 - 16;
1260
+ const h1 = _boxHeight - 145;
1261
+ const yverDivide= mode === 'single' ? 1 : Math.floor(h1 / 76);
1262
+ let lastY = 0;
1263
+ return (
1264
+ <ContentLoader
1265
+ height={h1}
1266
+ width='100%'
1267
+ speed={1}
1268
+ backgroundColor='rgb(0,0,0)'
1269
+ foregroundColor='rgb(0,0,0)'
1270
+ backgroundOpacity={0.06}
1271
+ foregroundOpacity={0.12}>
1272
+ {
1273
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
1274
+ const y3 = (c === 0) ? h1 - 76 : lastY - 76
1275
+ lastY = y3
1276
+ return (
1277
+ <rect key={c} x={(c >= 3) ? '16' : x1 } y={y3} rx='10' ry='10' width={w1} height='60' />
1278
+ )
1279
+ })
1280
+ }
1281
+ </ContentLoader>
1282
+ )
1283
+ }
1284
+ export const ContentLoaderSetting = () => <ContentLoader
1285
+ speed={1}
1286
+ width='100%'
1287
+ height={550}
1288
+ backgroundColor='rgb(0,0,0)'
1289
+ foregroundColor='rgb(0,0,0)'
1290
+ backgroundOpacity={0.06}
1291
+ foregroundOpacity={0.12}>
1292
+ <rect x="0" y="0" rx="2" ry="2" width="125" height="15" />
1293
+ <rect x="0" y="25" rx="2" ry="2" width="620" height="25" />
1294
+ <rect x="0" y="60" rx="2" ry="2" width="450" height="25" />
1295
+ <rect x="0" y="110" rx="2" ry="2" width="125" height="15" />
1296
+ <rect x="0" y="135" rx="2" ry="2" width="620" height="25" />
1297
+ <rect x="0" y="170" rx="2" ry="2" width="450" height="25" />
1298
+ <rect x="0" y="220" rx="2" ry="2" width="125" height="15" />
1299
+ <rect x="0" y="245" rx="2" ry="2" width="620" height="25" />
1300
+ <rect x="0" y="280" rx="2" ry="2" width="450" height="25" />
1301
+ <rect x="0" y="330" rx="2" ry="2" width="125" height="15" />
1302
+ <rect x="0" y="355" rx="2" ry="2" width="450" height="80" />
1303
+ <rect x="0" y="460" rx="2" ry="2" width="125" height="15" />
1304
+ <rect x="0" y="485" rx="2" ry="2" width="450" height="80" />
1305
+ <rect x="0" y="585" rx="2" ry="2" width="125" height="15" />
1306
+ <rect x="0" y="610" rx="2" ry="2" width="170" height="25" />
1307
+ <rect x="180" y="610" rx="2" ry="2" width="170" height="25" />
1308
+ <rect x="0" y="645" rx="2" ry="2" width="170" height="25" />
1309
+ <rect x="180" y="645" rx="2" ry="2" width="170" height="25" />
1310
+ <rect x="0" y="695" rx="2" ry="2" width="125" height="15" />
1311
+ <rect x="0" y="720" rx="2" ry="2" width="450" height="25" />
1312
+ <rect x="0" y="755" rx="2" ry="2" width="400" height="25" />
1313
+ </ContentLoader>
1314
+ export const ContentLoaderReportingDashboard = () => <ContentLoaderCardWrapper>
1315
+ <ContentLoader
1316
+ speed={1}
1317
+ width={boxWidth}
1318
+ height= {500}
1319
+ backgroundColor='rgb(0,0,0)'
1320
+ foregroundColor='rgb(0,0,0)'
1321
+ backgroundOpacity={0.06}
1322
+ foregroundOpacity={0.12}
1323
+ style={{ position: 'relative', zIndex: '2' }}>
1324
+ <rect x="10" y="10" rx="2" ry="2" width="210" height="25" />
1325
+ <rect x="10" y="60" rx="2" ry="2" width="210" height="20" />
1326
+ <rect x="10" y="95" rx="2" ry="2" width="210" height="20" />
1327
+ <rect x="10" y="130" rx="2" ry="2" width="210" height="20" />
1328
+ <rect x="10" y="165" rx="2" ry="2" width="210" height="20" />
1329
+ <rect x="10" y="200" rx="2" ry="2" width="210" height="20" />
1330
+ <rect x="10" y="235" rx="2" ry="2" width="210" height="20" />
1331
+ <rect x="10" y="270" rx="2" ry="2" width="210" height="20" />
1332
+ <rect x="10" y="305" rx="2" ry="2" width="210" height="20" />
1333
+ <rect x="280" y="10" rx="2" ry="2" width="210" height="25" />
1334
+ <rect x="280" y="60" rx="2" ry="2" width="210" height="20" />
1335
+ <rect x="280" y="95" rx="2" ry="2" width="210" height="20" />
1336
+ <rect x="280" y="130" rx="2" ry="2" width="210" height="20" />
1337
+ <rect x="280" y="165" rx="2" ry="2" width="210" height="20" />
1338
+ <rect x="280" y="200" rx="2" ry="2" width="210" height="20" />
1339
+ <rect x="280" y="235" rx="2" ry="2" width="210" height="20" />
1340
+ <rect x="280" y="270" rx="2" ry="2" width="210" height="20" />
1341
+ <rect x="280" y="305" rx="2" ry="2" width="210" height="20" />
1342
+ <rect x="550" y="10" rx="2" ry="2" width="210" height="25" />
1343
+ <rect x="550" y="60" rx="2" ry="2" width="210" height="20" />
1344
+ <rect x="550" y="95" rx="2" ry="2" width="210" height="20" />
1345
+ <rect x="550" y="130" rx="2" ry="2" width="210" height="20" />
1346
+ <rect x="550" y="165" rx="2" ry="2" width="210" height="20" />
1347
+ <rect x="550" y="200" rx="2" ry="2" width="210" height="20" />
1348
+ <rect x="550" y="235" rx="2" ry="2" width="210" height="20" />
1349
+ <rect x="550" y="270" rx="2" ry="2" width="210" height="20" />
1350
+ <rect x="550" y="305" rx="2" ry="2" width="210" height="20" />
1351
+ </ContentLoader>
1352
+ </ContentLoaderCardWrapper>
1353
+ export const ContentLoaderCategoryList = () => {
1354
+ const _boxHeight = window.innerHeight - 286;
1355
+ const x1 = 32, w1 = (boxWidth >= 1336 ? 400: (boxWidth >= 1112 ? 400: 300));
1356
+ const x2 = (x1 + w1 + 12), w2 = boxWidth - w1 - 85;
1357
+ const yverDivide = _boxHeight ? Math.ceil((_boxHeight - 78) / 70) : 0;
1358
+ return (
1359
+ <ContentLoaderNonListContainer>
1360
+ <ContentLoader
1361
+ speed={1}
1362
+ width={boxWidth}
1363
+ height='100%'
1364
+ backgroundColor='rgb(0,0,0)'
1365
+ foregroundColor='rgb(0,0,0)'
1366
+ backgroundOpacity={0.06}
1367
+ foregroundOpacity={0.12}
1368
+ style={{ position: 'relative', zIndex: '2' }}>
1369
+ <rect x={x1} y="23" rx="2" ry="2" width={w1} height="16" />
1370
+ <rect x={x2} y="23" rx="2" ry="2" width={w2} height="16" />
1371
+ {
1372
+ Array.apply(0, Array(yverDivide)).map((a, c) => {
1373
+ const newY = (c * 70) + 78;
1374
+ return (
1375
+ <Fragment key={c}>
1376
+ <rect x={x1} y={newY} rx="2" ry="2" width={w1} height="31" />
1377
+ <rect x={x2} y={newY} rx="2" ry="2" width={w2} height="31" />
1378
+ </Fragment>
1379
+ )
1380
+ })
1381
+ }
1382
+ </ContentLoader>
1383
+ </ContentLoaderNonListContainer>
1384
+ )
1385
+ }
1386
+ export const ContentLoaderPopupPaymentReceived = () => <ContentLoaderPopupWrapper>
1387
+ <ContentLoader
1388
+ speed={1}
1389
+ width={1000}
1390
+ height={300}
1391
+ backgroundColor='rgb(0,0,0)'
1392
+ foregroundColor='rgb(0,0,0)'
1393
+ backgroundOpacity={0.06}
1394
+ foregroundOpacity={0.12}
1395
+ style={{ width: '100%', maxWidth: '1000px', minWidth: '800px' }}>
1396
+ <rect x="60" y="20" rx="2" ry="2" width="100" height="21" />
1397
+ <rect x="60" y="51" rx="2" ry="2" width="280" height="36" />
1398
+ <rect x="360" y="20" rx="2" ry="2" width="100" height="21" />
1399
+ <rect x="360" y="51" rx="2" ry="2" width="280" height="36" />
1400
+ <rect x="660" y="20" rx="2" ry="2" width="100" height="21" />
1401
+ <rect x="660" y="51" rx="2" ry="2" width="280" height="36" />
1402
+ <rect x="52" y="130" rx="2" ry="2" width="31" height="31" />
1403
+ <rect x="95" y="130" rx="2" ry="2" width="110" height="31" />
1404
+ <rect x="217" y="130" rx="2" ry="2" width="110" height="31" />
1405
+ <rect x="339" y="130" rx="2" ry="2" width="110" height="31" />
1406
+ <rect x="461" y="130" rx="2" ry="2" width="110" height="31" />
1407
+ <rect x="583" y="130" rx="2" ry="2" width="110" height="31" />
1408
+ <rect x="705" y="130" rx="2" ry="2" width="110" height="31" />
1409
+ <rect x="827" y="130" rx="2" ry="2" width="110" height="31" />
1410
+ <rect x="52" y="170" rx="2" ry="2" width="31" height="31" />
1411
+ <rect x="95" y="170" rx="2" ry="2" width="110" height="31" />
1412
+ <rect x="217" y="170" rx="2" ry="2" width="110" height="31" />
1413
+ <rect x="339" y="170" rx="2" ry="2" width="110" height="31" />
1414
+ <rect x="461" y="170" rx="2" ry="2" width="110" height="31" />
1415
+ <rect x="583" y="170" rx="2" ry="2" width="110" height="31" />
1416
+ <rect x="705" y="170" rx="2" ry="2" width="110" height="31" />
1417
+ <rect x="827" y="170" rx="2" ry="2" width="110" height="31" />
1418
+ <rect x="52" y="210" rx="2" ry="2" width="31" height="31" />
1419
+ <rect x="95" y="210" rx="2" ry="2" width="110" height="31" />
1420
+ <rect x="217" y="210" rx="2" ry="2" width="110" height="31" />
1421
+ <rect x="339" y="210" rx="2" ry="2" width="110" height="31" />
1422
+ <rect x="461" y="210" rx="2" ry="2" width="110" height="31" />
1423
+ <rect x="583" y="210" rx="2" ry="2" width="110" height="31" />
1424
+ <rect x="705" y="210" rx="2" ry="2" width="110" height="31" />
1425
+ <rect x="827" y="210" rx="2" ry="2" width="110" height="31" />
1426
+ <rect x="52" y="250" rx="2" ry="2" width="31" height="31" />
1427
+ <rect x="95" y="250" rx="2" ry="2" width="110" height="31" />
1428
+ <rect x="217" y="250" rx="2" ry="2" width="110" height="31" />
1429
+ <rect x="339" y="250" rx="2" ry="2" width="110" height="31" />
1430
+ <rect x="461" y="250" rx="2" ry="2" width="110" height="31" />
1431
+ <rect x="583" y="250" rx="2" ry="2" width="110" height="31" />
1432
+ <rect x="705" y="250" rx="2" ry="2" width="110" height="31" />
1433
+ <rect x="827" y="250" rx="2" ry="2" width="110" height="31" />
1434
+ </ContentLoader>
1435
+ </ContentLoaderPopupWrapper>
1436
+ export const ContentLoaderNotifUpdate = () => {
1437
+ return (
1438
+ <ContentLoader
1439
+ height={36}
1440
+ width='100%'
1441
+ speed={1}
1442
+ backgroundColor='rgb(0,0,0)'
1443
+ foregroundColor='rgb(0,0,0)'
1444
+ backgroundOpacity={0.06}
1445
+ foregroundOpacity={0.12}>
1446
+ <rect x='0' y='0' rx='0' ry='0' width='100%' height='36'/>
1447
+ </ContentLoader>
1448
+ )
1449
+ }
1450
+ export const ContentLoaderPromotionHover = () => {
1451
+ return (
1452
+ <ContentLoader
1453
+ height={151}
1454
+ width='100%'
1455
+ speed={1}
1456
+ backgroundColor='rgb(0,0,0)'
1457
+ foregroundColor='rgb(0,0,0)'
1458
+ backgroundOpacity={0.06}
1459
+ foregroundOpacity={0.12}>
1460
+ <rect x='0' y='4' rx='0' ry='0' width='135' height='14'/>
1461
+ <rect x='150' y='4' rx='0' ry='0' width='140' height='14'/>
1462
+ <rect x='0' y='32' rx='0' ry='0' width='135' height='14'/>
1463
+ <rect x='150' y='32' rx='0' ry='0' width='140' height='14'/>
1464
+ <rect x='0' y='60' rx='0' ry='0' width='135' height='14'/>
1465
+ <rect x='150' y='60' rx='0' ry='0' width='140' height='14'/>
1466
+ <rect x='0' y='88' rx='0' ry='0' width='135' height='14'/>
1467
+ <rect x='150' y='88' rx='0' ry='0' width='140' height='14'/>
1468
+ <rect x='0' y='116' rx='0' ry='0' width='135' height='14'/>
1469
+ <rect x='150' y='116' rx='0' ry='0' width='140' height='14'/>
1470
+ <rect x='150' y='132' rx='0' ry='0' width='140' height='14'/>
1471
+ </ContentLoader>
1472
+ )
1473
+ }
1474
+ export const ContentLoaderOneLinePromotion = () => {
1475
+ return <ContentLoader
1476
+ height={16}
1477
+ width={86}
1478
+ speed={1}
1479
+ backgroundColor='rgb(0,0,0)'
1480
+ foregroundColor='rgb(0,0,0)'
1481
+ backgroundOpacity={0.06}
1482
+ foregroundOpacity={0.12}
1483
+ viewBox={`0 0 86 16`}>
1484
+ <rect x='0' y='2' rx='5' ry='5' width={80} height={14} />
1485
+ </ContentLoader>
1486
+ }