monica-alexandria 3.2.11 → 3.2.13
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.es.js +120 -117
- package/dist/index.js +5 -2
- package/package.json +1 -1
- package/src/export/components/card/Card_.js +8 -0
- package/src/export/components/card/On_Click_Card.js +5 -0
- package/src/export/components/card/index.js +2 -1
- package/src/export/components/card/Card_Admin_User.js +0 -38
- package/src/export/components/card/Card_Button.js +0 -58
- package/src/export/components/card/Card_Cover.js +0 -103
package/dist/index.es.js
CHANGED
|
@@ -221,7 +221,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
221
221
|
fill: var(--errorLight) !important;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
`,S=t=>e.createElement(L,{className:t.className,noPadding:t.noPadding,variant_Size:t.variant_Size,onClick:t.onClick},t.icon_Left?e.createElement(d,{Icon:t.icon_Left}):null,t.text_Button?e.createElement("span",null,t.text_Button):null,t.icon_Right?e.createElement(d,{Icon:t.icon_Right}):null),A=o
|
|
224
|
+
`,S=t=>e.createElement(L,{className:t.className,noPadding:t.noPadding,variant_Size:t.variant_Size,onClick:t.onClick},t.icon_Left?e.createElement(d,{Icon:t.icon_Left}):null,t.text_Button?e.createElement("span",null,t.text_Button):null,t.icon_Right?e.createElement(d,{Icon:t.icon_Right}):null),A=o.div`
|
|
225
225
|
box-shadow: ${e=>e.theme.out};
|
|
226
226
|
border-radius: var(--smallRadius);
|
|
227
227
|
transition: box-shadow .5s;
|
|
@@ -246,7 +246,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
246
246
|
box-shadow: ${e=>e.theme.outFocus};
|
|
247
247
|
transition: box-shadow .5s;
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
`,I=o(A)`
|
|
250
250
|
cursor: pointer;
|
|
251
251
|
|
|
252
252
|
header{
|
|
@@ -295,7 +295,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
295
295
|
text-align: center;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
`,$=o.div`
|
|
299
299
|
|
|
300
300
|
img{
|
|
301
301
|
object-fit: cover;
|
|
@@ -303,7 +303,10 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
303
303
|
width: 11rem;
|
|
304
304
|
border-radius: 50%;
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
`;o.div`
|
|
307
|
+
display: flex;
|
|
308
|
+
gap: 1rem;
|
|
309
|
+
`;const T=t=>e.createElement(I,{variant_CardText:t.variant_CardText,onClick:t.onClick},t.svg_Card||t.text_Card||t.img_SmallCard?e.createElement("header",null,t.svg_Card?e.createElement("figure",null,e.createElement(d,{Icon:t.svg_Card})):t.img_SmallCard?e.createElement($,null,e.createElement("img",{src:t.img_SmallCard})):e.createElement("span",null,t.text_Card)):t.img_Card?e.createElement("picture",null,e.createElement("img",{src:t.img_Card})):null,t.text_CardTitle||t.text_CardSub?e.createElement("footer",null,t.text_CardTitle&&e.createElement("h2",null,t.text_CardTitle),t.text_CardSub&&e.createElement("h5",null,t.text_CardSub),t.children):null),R=t=>e.createElement(A,{onClick:propsm.onClick},t.chidlren),B=`(max-width: ${`${576}px`})`,N=`(max-width: ${`${768}px`})`,Z=`(max-width: ${`${992}px`})`,z=`(max-width: ${`${1440}px`})`,P=o.div`
|
|
307
310
|
position: fixed;
|
|
308
311
|
top: 0;
|
|
309
312
|
left: 0;
|
|
@@ -311,7 +314,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
311
314
|
width: 100%;
|
|
312
315
|
min-height: 100vh;
|
|
313
316
|
background: ${e=>e.theme.overlay};
|
|
314
|
-
`,
|
|
317
|
+
`,G=o.div`
|
|
315
318
|
position: fixed;
|
|
316
319
|
top: 6.5rem;
|
|
317
320
|
left: 50%;
|
|
@@ -322,14 +325,14 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
322
325
|
padding: var(--normalPads);
|
|
323
326
|
border-radius: var(--smallRadius);
|
|
324
327
|
background: ${e=>e.theme.background};
|
|
325
|
-
`,
|
|
328
|
+
`,H=o.div`
|
|
326
329
|
margin-top: 2rem;
|
|
327
330
|
padding: 1rem 2rem;
|
|
328
331
|
display: flex;
|
|
329
332
|
align-items: center;
|
|
330
333
|
justify-content: space-between;
|
|
331
334
|
|
|
332
|
-
@media ${
|
|
335
|
+
@media ${N}{
|
|
333
336
|
|
|
334
337
|
button{
|
|
335
338
|
|
|
@@ -338,9 +341,9 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
338
341
|
}
|
|
339
342
|
}
|
|
340
343
|
}
|
|
341
|
-
`,
|
|
344
|
+
`,F=t=>e.createElement(P,null,e.createElement(G,null,e.createElement("h4",null,t.text_Confirmation),e.createElement(H,null,e.createElement(k,{onClick:t.onClick_Primary,icon_Left:t.icon_Primary,text_Button:t.text_Primary}),e.createElement(M,{onClick:t.onClick_Secondary,icon_Left:t.icon_Secondary,text_Button:t.text_Secondary})))),D=o.div`
|
|
342
345
|
|
|
343
|
-
`,
|
|
346
|
+
`,V=o.div`
|
|
344
347
|
display: grid;
|
|
345
348
|
grid-template-columns: var(--smallIcon) 1fr;
|
|
346
349
|
align-items: flex-start;
|
|
@@ -350,7 +353,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
350
353
|
svg{
|
|
351
354
|
width: var(--smallIcon);
|
|
352
355
|
}
|
|
353
|
-
`,
|
|
356
|
+
`,K=o(V)`
|
|
354
357
|
|
|
355
358
|
h6{
|
|
356
359
|
color: var(--greyDark);
|
|
@@ -359,7 +362,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
359
362
|
svg{
|
|
360
363
|
fill: var(--greyDark);
|
|
361
364
|
}
|
|
362
|
-
`;o(
|
|
365
|
+
`;o(V)`
|
|
363
366
|
|
|
364
367
|
h6{
|
|
365
368
|
color: var(--success);
|
|
@@ -368,7 +371,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
368
371
|
svg{
|
|
369
372
|
fill: var(--success);
|
|
370
373
|
}
|
|
371
|
-
`;const
|
|
374
|
+
`;const j=o(V)`
|
|
372
375
|
|
|
373
376
|
h6{
|
|
374
377
|
color: var(--warning);
|
|
@@ -377,7 +380,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
377
380
|
svg{
|
|
378
381
|
fill: var(--warning);
|
|
379
382
|
}
|
|
380
|
-
`,
|
|
383
|
+
`,q=o(V)`
|
|
381
384
|
|
|
382
385
|
h6{
|
|
383
386
|
color: var(--error);
|
|
@@ -386,7 +389,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
386
389
|
svg{
|
|
387
390
|
fill: var(--error);
|
|
388
391
|
}
|
|
389
|
-
`,
|
|
392
|
+
`,O=o.div`
|
|
390
393
|
position: absolute;
|
|
391
394
|
top: .8rem;
|
|
392
395
|
right: .8rem;
|
|
@@ -395,7 +398,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
395
398
|
width: var(--smallIcon);
|
|
396
399
|
fill: var(--warning);
|
|
397
400
|
}
|
|
398
|
-
`,
|
|
401
|
+
`,W=o.input`
|
|
399
402
|
width: 100%;
|
|
400
403
|
border: none;
|
|
401
404
|
background: ${e=>e.theme.background};
|
|
@@ -416,7 +419,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
416
419
|
outline: 0;
|
|
417
420
|
box-shadow: ${e=>e.theme.inFocus};
|
|
418
421
|
}
|
|
419
|
-
`,
|
|
422
|
+
`,U=o.textarea`
|
|
420
423
|
width: 100%;
|
|
421
424
|
border: none;
|
|
422
425
|
background: ${e=>e.theme.background};
|
|
@@ -438,9 +441,9 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
438
441
|
outline: 0;
|
|
439
442
|
box-shadow: ${e=>e.theme.inFocus};
|
|
440
443
|
}
|
|
441
|
-
`,
|
|
444
|
+
`,X=o.label`
|
|
442
445
|
color: ${e=>e.theme.high};
|
|
443
|
-
`,
|
|
446
|
+
`,J=o.div`
|
|
444
447
|
padding: var(--normalPads);
|
|
445
448
|
background: ${e=>e.theme.low};
|
|
446
449
|
border-radius: var(--normalRadius);
|
|
@@ -448,11 +451,11 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
448
451
|
h3{
|
|
449
452
|
margin-bottom: 4rem;
|
|
450
453
|
}
|
|
451
|
-
`,
|
|
454
|
+
`,Y=o(W)`
|
|
452
455
|
padding-top: 3rem;
|
|
453
|
-
`,
|
|
456
|
+
`,Q=o(X)`
|
|
454
457
|
font-size: var(--smallText);
|
|
455
|
-
`,
|
|
458
|
+
`,ee=o.div`
|
|
456
459
|
position: relative;
|
|
457
460
|
|
|
458
461
|
label{
|
|
@@ -504,7 +507,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
504
507
|
display: none;
|
|
505
508
|
}
|
|
506
509
|
}
|
|
507
|
-
`,
|
|
510
|
+
`,te=o.ul`
|
|
508
511
|
margin-top: 2rem;
|
|
509
512
|
|
|
510
513
|
li{
|
|
@@ -519,7 +522,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
519
522
|
fill: ${e=>e.theme.color};
|
|
520
523
|
}
|
|
521
524
|
}
|
|
522
|
-
`,
|
|
525
|
+
`,ne=t=>e.createElement(ee,null,e.createElement(Y,{value:t.value,className:t.class_Name,placeholder:t.text_Placeholder,id:t.id_Input,autoComplete:"off",type:"text",onChange:t.onChange_Input,defaultValue:t.text_Defaultvalue,onKeyPress:t.onKeyPress_Input,onKeyDown:t.onKeyDown_Input,disabled:t.bool_DisabledInput}),e.createElement(Q,null,t.text_Placeholder),t.variant_List?e.createElement(k,{variant_Size:"small",text_Button:t.text_AddInput,icon_Left:"Add",className:"FormAddButton",onClick:t.onClick_AddInput}):null,t.bool_Required?e.createElement(O,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.array_Errors?e.createElement(D,{className:"ValidatorErrors"},t.array_Errors.map((t=>e.createElement(q,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.array_Tips&&t.array_Helpers?e.createElement(D,{className:"ValidatorHelpers"},t.array_Helpers.map((t=>e.createElement(j,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),t.array_Tips.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.array_Tips?e.createElement(D,{className:"ValidatorHelpers"},t.array_Tips.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.array_Helpers?e.createElement(D,{className:"ValidatorHelpers"},t.array_Helpers.map((t=>e.createElement(j,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null,t.variant_List?e.createElement(te,null,t.array_List.map((n=>e.createElement("li",null,e.createElement(d,{Icon:t.icon_List}),e.createElement("h6",null,n),e.createElement(S,{variant_Size:"small",icon_Left:"Delete"}))))):null),re=o.div`
|
|
523
526
|
position: relative;
|
|
524
527
|
|
|
525
528
|
select{
|
|
@@ -552,27 +555,27 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
552
555
|
right: 1rem;
|
|
553
556
|
}
|
|
554
557
|
|
|
555
|
-
`,
|
|
558
|
+
`,ae=t=>e.createElement(re,null,e.createElement(d,{Icon:"Dropdown",class_Icon:"Dropdown_IconAdapt"}),t.array_Dropdown?e.createElement("select",{className:t.class_Select},t.array_Dropdown.map(((t,n)=>e.createElement("option",{key:n},t)))):null,t.children),oe=t({language:"el",setLanguage:()=>{}}),ie=t({region:"Greece",setRegion:()=>{}}),ce=t({activeMenu:"Main",setActiveMenu:()=>{}}),le=t({hamState:!1,setHamState:()=>{}}),se=t({theme:"light",setTheme:()=>{}}),de=t({slider:!1,toggleSlider:()=>{}}),ue=o.div`
|
|
556
559
|
|
|
557
|
-
`,
|
|
560
|
+
`,me=o.div`
|
|
558
561
|
display: grid;
|
|
559
562
|
align-items: flex-start;
|
|
560
563
|
justify-content: flex-start;
|
|
561
564
|
grid-template-columns: auto auto;
|
|
562
565
|
grid-column-gap: 2rem;
|
|
563
566
|
margin-bottom: 1rem;
|
|
564
|
-
`,
|
|
567
|
+
`,he=t=>{const{region:r}=n(ie);return e.createElement(ue,null,e.createElement(me,null,e.createElement(ae,null,e.createElement("select",{className:"Dropdown_EmojiAdapt"},"Greece"===r?e.createElement("option",{selected:!0},"🇬🇷 +30"):"Deutschland"===r?e.createElement("option",{selected:!0},"🇩🇪 +49"):e.createElement("option",{selected:!0},"🇬🇷 +30"))),e.createElement(ae,{array_Dropdown:t.array_PhoneDropdown})),e.createElement(ne,{text_Placeholder:t.text_PhonePlaceholder,bool_Required:t.bool_Required,variant_List:!0,array_List:t.array_PhoneList,icon_List:t.icon_PhoneList}))},ge=o.div`
|
|
565
568
|
display: grid;
|
|
566
569
|
grid-template-columns: auto 1fr;
|
|
567
570
|
align-items: center;
|
|
568
571
|
grid-column-gap: 2rem;
|
|
569
|
-
`,
|
|
572
|
+
`,pe=t=>{const{region:r}=n(ie);return e.createElement(ge,null,e.createElement(ae,null,"Greece"===r?e.createElement("select",{className:"Dropdown_EmojiAdapt"},e.createElement("option",{selected:!0},"🇬🇷 +30"),e.createElement("option",null,"🇩🇪 +49")):"Deutschland"===r?e.createElement("select",{className:"Dropdown_EmojiAdapt"},e.createElement("option",{selected:!0},"🇩🇪 +49"),e.createElement("option",null,"🇬🇷 +30")):e.createElement("select",{className:"Dropdown_EmojiAdapt"},e.createElement("option",{selected:!0},"🇬🇷 +30"),e.createElement("option",null,"🇩🇪 +49"))),e.createElement(ne,{class_Input:t.class_Input,text_Placeholder:t.text_Placeholder,id_Input:t.id_Input,onChange_Input:t.onChange_Input,text_Defaultvalue:t.text_Defaultvalue,onKeyPress_Input:t.onKeyPress_Input,onKeyDown_Input:t.onKeyDown_Input}))},ve=o.div`
|
|
570
573
|
margin-bottom: 2rem;
|
|
571
574
|
|
|
572
575
|
h4{
|
|
573
576
|
padding-bottom: 1rem;
|
|
574
577
|
}
|
|
575
|
-
`,
|
|
578
|
+
`,ye=t=>e.createElement(ve,{key:t.key},t.text_BuilderTitle?e.createElement("h4",null,t.text_BuilderTitle):null,t.children),_e=o.div`
|
|
576
579
|
display: grid;
|
|
577
580
|
grid-template-columns: auto 1fr;
|
|
578
581
|
align-items: flex-start;
|
|
@@ -593,7 +596,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
593
596
|
cursor: not-allowed;
|
|
594
597
|
pointer-events: none;
|
|
595
598
|
}
|
|
596
|
-
`,
|
|
599
|
+
`,Ee=o.div`
|
|
597
600
|
position: relative;
|
|
598
601
|
height: 2rem;
|
|
599
602
|
width: 2rem;
|
|
@@ -647,12 +650,12 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
647
650
|
opacity: 1 !important;
|
|
648
651
|
}
|
|
649
652
|
}
|
|
650
|
-
`,
|
|
653
|
+
`,fe=o.div`
|
|
651
654
|
input{
|
|
652
655
|
opacity: ${e=>!0===e.bool_Checked?"1":"0.4"};
|
|
653
656
|
cursor: ${e=>!0===e.bool_Checked?"auto":"not-allowed !important"};
|
|
654
657
|
}
|
|
655
|
-
`,
|
|
658
|
+
`,xe=t=>e.createElement(_e,{key:t.key},t.variant_Input?e.createElement(fe,{bool_Checked:t.bool_Checked},e.createElement(ne,{text_Placeholder:t.text_CheckboxPlaceholder,bool_DisabledInput:!t.bool_Checked})):e.createElement("label",{for:t.id_Checkbox},e.createElement("p",null,t.text_CheckboxLabel)),e.createElement(Ee,{className:"Check"},e.createElement("input",{type:"checkbox",id:t.id_Checkbox,checked:t.bool_Checked,onClick:t.onClick_Checkbox}),e.createElement("span",{className:"CheckCustom"}),e.createElement(d,{Icon:"Check",class_Icon:"CheckIcon"}))),ke=o.div`
|
|
656
659
|
display: grid;
|
|
657
660
|
grid-template-columns: auto 1fr;
|
|
658
661
|
align-items: flex-start;
|
|
@@ -667,7 +670,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
667
670
|
background: ${e=>e.theme.low};
|
|
668
671
|
}
|
|
669
672
|
}
|
|
670
|
-
`,
|
|
673
|
+
`,we=o.div`
|
|
671
674
|
position: relative;
|
|
672
675
|
height: 2rem;
|
|
673
676
|
width: 2rem;
|
|
@@ -721,7 +724,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
721
724
|
opacity: 1 !important;
|
|
722
725
|
}
|
|
723
726
|
}
|
|
724
|
-
`,
|
|
727
|
+
`,Me=t=>e.createElement(ke,{key:t.key},t.variant_Input?e.createElement(ne,{text_Placeholder:t.text_RadioPlaceholder}):e.createElement("label",{for:t.id_Radio},e.createElement("p",null,t.text_RadioLabel)),e.createElement(we,{className:"RadioCircle"},e.createElement("input",{name:t.name_Radio,type:"radio",id:t.id_Radio,checked:t.bool_RadioChecked}),e.createElement("span",{className:"RadioCustom"}),e.createElement(d,{Icon:"Sun",class_Icon:"RadioIcon"}))),be=o.div`
|
|
725
728
|
position: relative;
|
|
726
729
|
|
|
727
730
|
.ValidatorHelpers{
|
|
@@ -742,18 +745,18 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
742
745
|
display: none;
|
|
743
746
|
}
|
|
744
747
|
}
|
|
745
|
-
`,
|
|
748
|
+
`,Ce=o.h6`
|
|
746
749
|
text-align: right;
|
|
747
750
|
|
|
748
751
|
span{
|
|
749
752
|
color: ${e=>e.capped?"var(--error)":"inherit"};
|
|
750
753
|
}
|
|
751
|
-
`,be=t=>{const[n,r]=e.useState(0);return e.createElement(we,null,e.createElement(O,{placeholder:t.text_Placeholder,rows:t.rows?t.rows:"5",onChange:t.onChange_Textarea?t.onChange_Textarea:e=>(e=>{r(e.target.value.length)})(e)},t.text_Prefill),t.int_Limit?e.createElement(Me,{capped:n>t.int_Limit}," ",e.createElement("span",null,n)," / ",t.int_Limit):null,t.bool_Required?e.createElement(j,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.array_Errors?e.createElement(H,{className:"ValidatorErrors"},t.array_Errors.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.array_Tips&&t.array_Helpers?e.createElement(H,{className:"ValidatorHelpers"},t.array_Helpers.map((t=>e.createElement(V,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),t.array_Tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.array_Tips?e.createElement(H,{className:"ValidatorHelpers"},t.array_Tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.array_Helpers?e.createElement(H,{className:"ValidatorHelpers"},t.array_Helpers.map((t=>e.createElement(V,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null)};function Ce(e){return Array.isArray?Array.isArray(e):"[object Array]"===Re(e)}function Le(e){return"string"==typeof e}function Se(e){return"number"==typeof e}function Ae(e){return!0===e||!1===e||function(e){return Ie(e)&&null!==e}(e)&&"[object Boolean]"==Re(e)}function Ie(e){return"object"==typeof e}function $e(e){return null!=e}function Te(e){return!e.trim().length}function Re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Be=Object.prototype.hasOwnProperty;class Ne{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Ze(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Ze(e){let t=null,n=null,r=null,a=1,o=null;if(Le(e)||Ce(e))r=e,t=ze(e),n=Pe(e);else{if(!Be.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(r=i,Be.call(e,"weight")&&(a=e.weight,a<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=ze(i),n=Pe(i),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function ze(e){return Ce(e)?e:e.split(".")}function Pe(e){return Ce(e)?e.join("."):e}var Ge={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const a=(e,t,o)=>{if($e(e))if(t[o]){const i=e[t[o]];if(!$e(i))return;if(o===t.length-1&&(Le(i)||Se(i)||Ae(i)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(i));else if(Ce(i)){r=!0;for(let e=0,n=i.length;e<n;e+=1)a(i[e],t,o+1)}else t.length&&a(i,t,o+1)}else n.push(e)};return a(e,Le(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const He=/[^ ]+/g;class Fe{constructor({getFn:e=Ge.getFn,fieldNormWeight:t=Ge.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const a=t.match(He).length;if(n.has(a))return n.get(a);const o=1/Math.pow(a,.5*e),i=parseFloat(Math.round(o*r)/r);return n.set(a,i),i},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Le(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();Le(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!$e(e)||Te(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if($e(a))if(Ce(a)){let e=[];const t=[{nestedArrIndex:-1,value:a}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if($e(r))if(Le(r)&&!Te(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Ce(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(Le(a)&&!Te(a)){let e={v:a,n:this.norm.get(a)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function De(e,t,{getFn:n=Ge.getFn,fieldNormWeight:r=Ge.fieldNormWeight}={}){const a=new Fe({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Ze)),a.setSources(t),a.create(),a}function Ve(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Ge.distance,ignoreLocation:o=Ge.ignoreLocation}={}){const i=t/e.length;if(o)return i;const c=Math.abs(r-n);return a?i+c/a:c?1:i}function Ke(e,t,n,{location:r=Ge.location,distance:a=Ge.distance,threshold:o=Ge.threshold,findAllMatches:i=Ge.findAllMatches,minMatchCharLength:c=Ge.minMatchCharLength,includeMatches:l=Ge.includeMatches,ignoreLocation:s=Ge.ignoreLocation}={}){if(t.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const d=t.length,u=e.length,m=Math.max(0,Math.min(r,u));let h=o,g=m;const p=c>1||l,v=p?Array(u):[];let y;for(;(y=e.indexOf(t,g))>-1;){let e=Ve(t,{currentLocation:y,expectedLocation:m,distance:a,ignoreLocation:s});if(h=Math.min(e,h),g=y+d,p){let e=0;for(;e<d;)v[y+e]=1,e+=1}}g=-1;let _=[],E=1,f=d+u;const x=1<<d-1;for(let r=0;r<d;r+=1){let o=0,c=f;for(;o<c;){Ve(t,{errors:r,currentLocation:m+c,expectedLocation:m,distance:a,ignoreLocation:s})<=h?o=c:f=c,c=Math.floor((f-o)/2+o)}f=c;let l=Math.max(1,m-c+1),y=i?u:Math.min(m+c,u)+d,k=Array(y+2);k[y+1]=(1<<r)-1;for(let o=y;o>=l;o-=1){let i=o-1,c=n[e.charAt(i)];if(p&&(v[i]=+!!c),k[o]=(k[o+1]<<1|1)&c,r&&(k[o]|=(_[o+1]|_[o])<<1|1|_[o+1]),k[o]&x&&(E=Ve(t,{errors:r,currentLocation:i,expectedLocation:m,distance:a,ignoreLocation:s}),E<=h)){if(h=E,g=i,g<=m)break;l=Math.max(1,2*m-g)}}if(Ve(t,{errors:r+1,currentLocation:m,expectedLocation:m,distance:a,ignoreLocation:s})>h)break;_=k}const k={isMatch:g>=0,score:Math.max(.001,E)};if(p){const e=function(e=[],t=Ge.minMatchCharLength){let n=[],r=-1,a=-1,o=0;for(let i=e.length;o<i;o+=1){let i=e[o];i&&-1===r?r=o:i||-1===r||(a=o-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(v,c);e.length?l&&(k.indices=e):k.isMatch=!1}return k}function je(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}class qe{constructor(e,{location:t=Ge.location,threshold:n=Ge.threshold,distance:r=Ge.distance,includeMatches:a=Ge.includeMatches,findAllMatches:o=Ge.findAllMatches,minMatchCharLength:i=Ge.minMatchCharLength,isCaseSensitive:c=Ge.isCaseSensitive,ignoreLocation:l=Ge.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:a,findAllMatches:o,minMatchCharLength:i,isCaseSensitive:c,ignoreLocation:l},this.pattern=c?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const s=(e,t)=>{this.chunks.push({pattern:e,alphabet:je(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,n=d-t;for(;e<n;)s(this.pattern.substr(e,32),e),e+=32;if(t){const e=d-32;s(this.pattern.substr(e),e)}}else s(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:a,threshold:o,findAllMatches:i,minMatchCharLength:c,ignoreLocation:l}=this.options;let s=[],d=0,u=!1;this.chunks.forEach((({pattern:t,alphabet:m,startIndex:h})=>{const{isMatch:g,score:p,indices:v}=Ke(e,t,m,{location:r+h,distance:a,threshold:o,findAllMatches:i,minMatchCharLength:c,includeMatches:n,ignoreLocation:l});g&&(u=!0),d+=p,g&&v&&(s=[...s,...v])}));let m={isMatch:u,score:u?d/this.chunks.length:1};return u&&n&&(m.indices=s),m}}class Oe{constructor(e){this.pattern=e}static isMultiMatch(e){return We(e,this.multiRegex)}static isSingleMatch(e){return We(e,this.singleRegex)}search(){}}function We(e,t){const n=e.match(t);return n?n[1]:null}class Ue extends Oe{constructor(e,{location:t=Ge.location,threshold:n=Ge.threshold,distance:r=Ge.distance,includeMatches:a=Ge.includeMatches,findAllMatches:o=Ge.findAllMatches,minMatchCharLength:i=Ge.minMatchCharLength,isCaseSensitive:c=Ge.isCaseSensitive,ignoreLocation:l=Ge.ignoreLocation}={}){super(e),this._bitapSearch=new qe(e,{location:t,threshold:n,distance:r,includeMatches:a,findAllMatches:o,minMatchCharLength:i,isCaseSensitive:c,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Xe extends Oe{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],a=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const Je=[class extends Oe{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Xe,class extends Oe{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Oe{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Oe{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Oe{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Oe{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Ue],Ye=Je.length,Qe=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const et=new Set([Ue.type,Xe.type]);class tt{constructor(e,{isCaseSensitive:t=Ge.isCaseSensitive,includeMatches:n=Ge.includeMatches,minMatchCharLength:r=Ge.minMatchCharLength,ignoreLocation:a=Ge.ignoreLocation,findAllMatches:o=Ge.findAllMatches,location:i=Ge.location,threshold:c=Ge.threshold,distance:l=Ge.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:a,location:i,threshold:c,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Qe).filter((e=>e&&!!e.trim())),r=[];for(let e=0,a=n.length;e<a;e+=1){const a=n[e];let o=!1,i=-1;for(;!o&&++i<Ye;){const e=Je[i];let n=e.isMultiMatch(a);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(i=-1;++i<Ye;){const e=Je[i];let n=e.isSingleMatch(a);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let a=0,o=[],i=0;for(let r=0,c=t.length;r<c;r+=1){const c=t[r];o.length=0,a=0;for(let t=0,r=c.length;t<r;t+=1){const r=c[t],{isMatch:l,indices:s,score:d}=r.search(e);if(!l){i=0,a=0,o.length=0;break}if(a+=1,i+=d,n){const e=r.constructor.type;et.has(e)?o=[...o,...s]:o.push(s)}}if(a){let e={isMatch:!0,score:i/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const nt=[];function rt(e,t){for(let n=0,r=nt.length;n<r;n+=1){let r=nt[n];if(r.condition(e,t))return new r(e,t)}return new qe(e,t)}const at="$and",ot="$or",it="$path",ct="$val",lt=e=>!(!e[at]&&!e[ot]),st=e=>({[at]:Object.keys(e).map((t=>({[t]:e[t]})))});function dt(e,t,{auto:n=!0}={}){const r=e=>{let a=Object.keys(e);const o=(e=>!!e[it])(e);if(!o&&a.length>1&&!lt(e))return r(st(e));if((e=>!Ce(e)&&Ie(e)&&!lt(e))(e)){const r=o?e[it]:a[0],i=o?e[ct]:e[r];if(!Le(i))throw new Error((e=>`Invalid value for key ${e}`)(r));const c={keyId:Pe(r),pattern:i};return n&&(c.searcher=rt(i,t)),c}let i={children:[],operator:a[0]};return a.forEach((t=>{const n=e[t];Ce(n)&&n.forEach((e=>{i.children.push(r(e))}))})),i};return lt(e)||(e=st(e)),r(e)}function ut(e,t){const n=e.matches;t.matches=[],$e(n)&&n.forEach((e=>{if(!$e(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let a={indices:n,value:r};e.key&&(a.key=e.key.src),e.idx>-1&&(a.refIndex=e.idx),t.matches.push(a)}))}function mt(e,t){t.score=e.score}class ht{constructor(e,t={},n){this.options={...Ge,...t},this.options.useExtendedSearch,this._keyStore=new Ne(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Fe))throw new Error("Incorrect 'index' type");this._myIndex=t||De(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){$e(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const a=this._docs[n];e(a,n)&&(this.removeAt(n),n-=1,r-=1,t.push(a))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:a,sortFn:o,ignoreFieldNorm:i}=this.options;let c=Le(e)?Le(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Ge.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:a})=>{const o=e?e.weight:null;n*=Math.pow(0===a&&o?Number.EPSILON:a,(o||1)*(t?1:r))})),e.score=n}))}(c,{ignoreFieldNorm:i}),a&&c.sort(o),Se(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:n=Ge.includeMatches,includeScore:r=Ge.includeScore}={}){const a=[];return n&&a.push(ut),r&&a.push(mt),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return a.length&&a.forEach((t=>{t(e,r)})),r}))}(c,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=rt(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:a})=>{if(!$e(e))return;const{isMatch:o,score:i,indices:c}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:i,value:e,norm:a,indices:c}]})})),r}_searchLogical(e){const t=dt(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:a}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:a});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}const a=[];for(let o=0,i=e.children.length;o<i;o+=1){const i=e.children[o],c=n(i,t,r);if(c.length)a.push(...c);else if(e.operator===at)return[]}return a},r=this._myIndex.records,a={},o=[];return r.forEach((({$:e,i:r})=>{if($e(e)){let i=n(t,e,r);i.length&&(a[r]||(a[r]={idx:r,item:e,matches:[]},o.push(a[r])),i.forEach((({matches:e})=>{a[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=rt(e,this.options),{keys:n,records:r}=this._myIndex,a=[];return r.forEach((({$:e,i:r})=>{if(!$e(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&a.push({idx:r,item:e,matches:o})})),a}_findMatches({key:e,value:t,searcher:n}){if(!$e(t))return[];let r=[];if(Ce(t))t.forEach((({v:t,i:a,n:o})=>{if(!$e(t))return;const{isMatch:i,score:c,indices:l}=n.searchIn(t);i&&r.push({score:c,key:e,value:t,idx:a,norm:o,indices:l})}));else{const{v:a,n:o}=t,{isMatch:i,score:c,indices:l}=n.searchIn(a);i&&r.push({score:c,key:e,value:a,norm:o,indices:l})}return r}}ht.version="6.6.2",ht.createIndex=De,ht.parseIndex=function(e,{getFn:t=Ge.getFn,fieldNormWeight:n=Ge.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new Fe({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o},ht.config=Ge,ht.parseQuery=dt,function(...e){nt.push(...e)}(tt);var gt=require("greek-utils");const pt=o(Y)`
|
|
752
|
-
`,
|
|
754
|
+
`,Le=t=>{const[n,r]=e.useState(0);return e.createElement(be,null,e.createElement(U,{placeholder:t.text_Placeholder,rows:t.rows?t.rows:"5",onChange:t.onChange_Textarea?t.onChange_Textarea:e=>(e=>{r(e.target.value.length)})(e)},t.text_Prefill),t.int_Limit?e.createElement(Ce,{capped:n>t.int_Limit}," ",e.createElement("span",null,n)," / ",t.int_Limit):null,t.bool_Required?e.createElement(O,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.array_Errors?e.createElement(D,{className:"ValidatorErrors"},t.array_Errors.map((t=>e.createElement(q,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.array_Tips&&t.array_Helpers?e.createElement(D,{className:"ValidatorHelpers"},t.array_Helpers.map((t=>e.createElement(j,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),t.array_Tips.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.array_Tips?e.createElement(D,{className:"ValidatorHelpers"},t.array_Tips.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.array_Helpers?e.createElement(D,{className:"ValidatorHelpers"},t.array_Helpers.map((t=>e.createElement(j,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null)};function Se(e){return Array.isArray?Array.isArray(e):"[object Array]"===Ne(e)}function Ae(e){return"string"==typeof e}function Ie(e){return"number"==typeof e}function $e(e){return!0===e||!1===e||function(e){return Te(e)&&null!==e}(e)&&"[object Boolean]"==Ne(e)}function Te(e){return"object"==typeof e}function Re(e){return null!=e}function Be(e){return!e.trim().length}function Ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Ze=Object.prototype.hasOwnProperty;class ze{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Pe(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Pe(e){let t=null,n=null,r=null,a=1,o=null;if(Ae(e)||Se(e))r=e,t=Ge(e),n=He(e);else{if(!Ze.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(r=i,Ze.call(e,"weight")&&(a=e.weight,a<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=Ge(i),n=He(i),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function Ge(e){return Se(e)?e:e.split(".")}function He(e){return Se(e)?e.join("."):e}var Fe={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const a=(e,t,o)=>{if(Re(e))if(t[o]){const i=e[t[o]];if(!Re(i))return;if(o===t.length-1&&(Ae(i)||Ie(i)||$e(i)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(i));else if(Se(i)){r=!0;for(let e=0,n=i.length;e<n;e+=1)a(i[e],t,o+1)}else t.length&&a(i,t,o+1)}else n.push(e)};return a(e,Ae(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const De=/[^ ]+/g;class Ve{constructor({getFn:e=Fe.getFn,fieldNormWeight:t=Fe.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const a=t.match(De).length;if(n.has(a))return n.get(a);const o=1/Math.pow(a,.5*e),i=parseFloat(Math.round(o*r)/r);return n.set(a,i),i},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Ae(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();Ae(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Re(e)||Be(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if(Re(a))if(Se(a)){let e=[];const t=[{nestedArrIndex:-1,value:a}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Re(r))if(Ae(r)&&!Be(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Se(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(Ae(a)&&!Be(a)){let e={v:a,n:this.norm.get(a)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Ke(e,t,{getFn:n=Fe.getFn,fieldNormWeight:r=Fe.fieldNormWeight}={}){const a=new Ve({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Pe)),a.setSources(t),a.create(),a}function je(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Fe.distance,ignoreLocation:o=Fe.ignoreLocation}={}){const i=t/e.length;if(o)return i;const c=Math.abs(r-n);return a?i+c/a:c?1:i}function qe(e,t,n,{location:r=Fe.location,distance:a=Fe.distance,threshold:o=Fe.threshold,findAllMatches:i=Fe.findAllMatches,minMatchCharLength:c=Fe.minMatchCharLength,includeMatches:l=Fe.includeMatches,ignoreLocation:s=Fe.ignoreLocation}={}){if(t.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const d=t.length,u=e.length,m=Math.max(0,Math.min(r,u));let h=o,g=m;const p=c>1||l,v=p?Array(u):[];let y;for(;(y=e.indexOf(t,g))>-1;){let e=je(t,{currentLocation:y,expectedLocation:m,distance:a,ignoreLocation:s});if(h=Math.min(e,h),g=y+d,p){let e=0;for(;e<d;)v[y+e]=1,e+=1}}g=-1;let _=[],E=1,f=d+u;const x=1<<d-1;for(let r=0;r<d;r+=1){let o=0,c=f;for(;o<c;){je(t,{errors:r,currentLocation:m+c,expectedLocation:m,distance:a,ignoreLocation:s})<=h?o=c:f=c,c=Math.floor((f-o)/2+o)}f=c;let l=Math.max(1,m-c+1),y=i?u:Math.min(m+c,u)+d,k=Array(y+2);k[y+1]=(1<<r)-1;for(let o=y;o>=l;o-=1){let i=o-1,c=n[e.charAt(i)];if(p&&(v[i]=+!!c),k[o]=(k[o+1]<<1|1)&c,r&&(k[o]|=(_[o+1]|_[o])<<1|1|_[o+1]),k[o]&x&&(E=je(t,{errors:r,currentLocation:i,expectedLocation:m,distance:a,ignoreLocation:s}),E<=h)){if(h=E,g=i,g<=m)break;l=Math.max(1,2*m-g)}}if(je(t,{errors:r+1,currentLocation:m,expectedLocation:m,distance:a,ignoreLocation:s})>h)break;_=k}const k={isMatch:g>=0,score:Math.max(.001,E)};if(p){const e=function(e=[],t=Fe.minMatchCharLength){let n=[],r=-1,a=-1,o=0;for(let i=e.length;o<i;o+=1){let i=e[o];i&&-1===r?r=o:i||-1===r||(a=o-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(v,c);e.length?l&&(k.indices=e):k.isMatch=!1}return k}function Oe(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}class We{constructor(e,{location:t=Fe.location,threshold:n=Fe.threshold,distance:r=Fe.distance,includeMatches:a=Fe.includeMatches,findAllMatches:o=Fe.findAllMatches,minMatchCharLength:i=Fe.minMatchCharLength,isCaseSensitive:c=Fe.isCaseSensitive,ignoreLocation:l=Fe.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:a,findAllMatches:o,minMatchCharLength:i,isCaseSensitive:c,ignoreLocation:l},this.pattern=c?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const s=(e,t)=>{this.chunks.push({pattern:e,alphabet:Oe(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,n=d-t;for(;e<n;)s(this.pattern.substr(e,32),e),e+=32;if(t){const e=d-32;s(this.pattern.substr(e),e)}}else s(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:a,threshold:o,findAllMatches:i,minMatchCharLength:c,ignoreLocation:l}=this.options;let s=[],d=0,u=!1;this.chunks.forEach((({pattern:t,alphabet:m,startIndex:h})=>{const{isMatch:g,score:p,indices:v}=qe(e,t,m,{location:r+h,distance:a,threshold:o,findAllMatches:i,minMatchCharLength:c,includeMatches:n,ignoreLocation:l});g&&(u=!0),d+=p,g&&v&&(s=[...s,...v])}));let m={isMatch:u,score:u?d/this.chunks.length:1};return u&&n&&(m.indices=s),m}}class Ue{constructor(e){this.pattern=e}static isMultiMatch(e){return Xe(e,this.multiRegex)}static isSingleMatch(e){return Xe(e,this.singleRegex)}search(){}}function Xe(e,t){const n=e.match(t);return n?n[1]:null}class Je extends Ue{constructor(e,{location:t=Fe.location,threshold:n=Fe.threshold,distance:r=Fe.distance,includeMatches:a=Fe.includeMatches,findAllMatches:o=Fe.findAllMatches,minMatchCharLength:i=Fe.minMatchCharLength,isCaseSensitive:c=Fe.isCaseSensitive,ignoreLocation:l=Fe.ignoreLocation}={}){super(e),this._bitapSearch=new We(e,{location:t,threshold:n,distance:r,includeMatches:a,findAllMatches:o,minMatchCharLength:i,isCaseSensitive:c,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ye extends Ue{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],a=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const Qe=[class extends Ue{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Ye,class extends Ue{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Ue{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Ue{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Ue{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Ue{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Je],et=Qe.length,tt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const nt=new Set([Je.type,Ye.type]);class rt{constructor(e,{isCaseSensitive:t=Fe.isCaseSensitive,includeMatches:n=Fe.includeMatches,minMatchCharLength:r=Fe.minMatchCharLength,ignoreLocation:a=Fe.ignoreLocation,findAllMatches:o=Fe.findAllMatches,location:i=Fe.location,threshold:c=Fe.threshold,distance:l=Fe.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:a,location:i,threshold:c,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(tt).filter((e=>e&&!!e.trim())),r=[];for(let e=0,a=n.length;e<a;e+=1){const a=n[e];let o=!1,i=-1;for(;!o&&++i<et;){const e=Qe[i];let n=e.isMultiMatch(a);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(i=-1;++i<et;){const e=Qe[i];let n=e.isSingleMatch(a);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let a=0,o=[],i=0;for(let r=0,c=t.length;r<c;r+=1){const c=t[r];o.length=0,a=0;for(let t=0,r=c.length;t<r;t+=1){const r=c[t],{isMatch:l,indices:s,score:d}=r.search(e);if(!l){i=0,a=0,o.length=0;break}if(a+=1,i+=d,n){const e=r.constructor.type;nt.has(e)?o=[...o,...s]:o.push(s)}}if(a){let e={isMatch:!0,score:i/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const at=[];function ot(e,t){for(let n=0,r=at.length;n<r;n+=1){let r=at[n];if(r.condition(e,t))return new r(e,t)}return new We(e,t)}const it="$and",ct="$or",lt="$path",st="$val",dt=e=>!(!e[it]&&!e[ct]),ut=e=>({[it]:Object.keys(e).map((t=>({[t]:e[t]})))});function mt(e,t,{auto:n=!0}={}){const r=e=>{let a=Object.keys(e);const o=(e=>!!e[lt])(e);if(!o&&a.length>1&&!dt(e))return r(ut(e));if((e=>!Se(e)&&Te(e)&&!dt(e))(e)){const r=o?e[lt]:a[0],i=o?e[st]:e[r];if(!Ae(i))throw new Error((e=>`Invalid value for key ${e}`)(r));const c={keyId:He(r),pattern:i};return n&&(c.searcher=ot(i,t)),c}let i={children:[],operator:a[0]};return a.forEach((t=>{const n=e[t];Se(n)&&n.forEach((e=>{i.children.push(r(e))}))})),i};return dt(e)||(e=ut(e)),r(e)}function ht(e,t){const n=e.matches;t.matches=[],Re(n)&&n.forEach((e=>{if(!Re(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let a={indices:n,value:r};e.key&&(a.key=e.key.src),e.idx>-1&&(a.refIndex=e.idx),t.matches.push(a)}))}function gt(e,t){t.score=e.score}class pt{constructor(e,t={},n){this.options={...Fe,...t},this.options.useExtendedSearch,this._keyStore=new ze(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ve))throw new Error("Incorrect 'index' type");this._myIndex=t||Ke(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Re(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const a=this._docs[n];e(a,n)&&(this.removeAt(n),n-=1,r-=1,t.push(a))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:a,sortFn:o,ignoreFieldNorm:i}=this.options;let c=Ae(e)?Ae(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Fe.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:a})=>{const o=e?e.weight:null;n*=Math.pow(0===a&&o?Number.EPSILON:a,(o||1)*(t?1:r))})),e.score=n}))}(c,{ignoreFieldNorm:i}),a&&c.sort(o),Ie(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:n=Fe.includeMatches,includeScore:r=Fe.includeScore}={}){const a=[];return n&&a.push(ht),r&&a.push(gt),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return a.length&&a.forEach((t=>{t(e,r)})),r}))}(c,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=ot(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:a})=>{if(!Re(e))return;const{isMatch:o,score:i,indices:c}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:i,value:e,norm:a,indices:c}]})})),r}_searchLogical(e){const t=mt(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:a}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:a});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}const a=[];for(let o=0,i=e.children.length;o<i;o+=1){const i=e.children[o],c=n(i,t,r);if(c.length)a.push(...c);else if(e.operator===it)return[]}return a},r=this._myIndex.records,a={},o=[];return r.forEach((({$:e,i:r})=>{if(Re(e)){let i=n(t,e,r);i.length&&(a[r]||(a[r]={idx:r,item:e,matches:[]},o.push(a[r])),i.forEach((({matches:e})=>{a[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=ot(e,this.options),{keys:n,records:r}=this._myIndex,a=[];return r.forEach((({$:e,i:r})=>{if(!Re(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&a.push({idx:r,item:e,matches:o})})),a}_findMatches({key:e,value:t,searcher:n}){if(!Re(t))return[];let r=[];if(Se(t))t.forEach((({v:t,i:a,n:o})=>{if(!Re(t))return;const{isMatch:i,score:c,indices:l}=n.searchIn(t);i&&r.push({score:c,key:e,value:t,idx:a,norm:o,indices:l})}));else{const{v:a,n:o}=t,{isMatch:i,score:c,indices:l}=n.searchIn(a);i&&r.push({score:c,key:e,value:a,norm:o,indices:l})}return r}}pt.version="6.6.2",pt.createIndex=Ke,pt.parseIndex=function(e,{getFn:t=Fe.getFn,fieldNormWeight:n=Fe.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new Ve({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o},pt.config=Fe,pt.parseQuery=mt,function(...e){at.push(...e)}(rt);var vt=require("greek-utils");const yt=o(ee)`
|
|
755
|
+
`,_t=o(Y)`
|
|
753
756
|
|
|
754
|
-
`,
|
|
757
|
+
`,Et=o(Q)`
|
|
755
758
|
|
|
756
|
-
`,
|
|
759
|
+
`,ft=o.ul`
|
|
757
760
|
margin-top: 1rem;
|
|
758
761
|
background: ${e=>e.theme.background};
|
|
759
762
|
box-shadow: ${e=>e.theme.out};
|
|
@@ -778,12 +781,12 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
778
781
|
.ElasticSelected{
|
|
779
782
|
background: ${e=>e.theme.low};
|
|
780
783
|
}
|
|
781
|
-
`,
|
|
784
|
+
`,xt=o(te)`
|
|
782
785
|
|
|
783
786
|
h5{
|
|
784
787
|
padding: var(--smallPads);
|
|
785
788
|
}
|
|
786
|
-
`,
|
|
789
|
+
`,kt=t=>{let n={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[t.key_SuggestionType]},o=t.json_File;const[i,c]=r({query:"",file:o,notfoundmessage:!1,defaultValue:t.text_DefaultValue}),[l,s]=r(!1),[u,m]=r(0),h=e=>{t.onSuggestions(e),c({...i,query:"",defaultValue:"string"==typeof e?e:e[t.key_SuggestionType]})},g=e=>{"ArrowUp"==e.key&&(e.preventDefault(),m(0===u?l.length-1:u-1)),"ArrowDown"==e.key&&(e.preventDefault(),u===l.length-1?m(0):m(u+1)),e.key&&"Enter"===e.key&&(e.preventDefault(),h("string"==typeof l[u]?l[u]:l[u][t.key_SuggestionType]))};return a((()=>{n.minMatchCharLength=t.minMatchCharacters?t.minMatchCharacters:1;const e=new pt(o,n);let r=i.query?e.search(i.query):o;r=r.slice(0,t.size),s(r)}),[i]),a((()=>{t.getInput&&l?.length>0?t.getInput(l[0]?.item):t.getSuggestions&&l?.length>0&&i.query.length?t.getSuggestions(l):t.getSuggestions&&!i.query.length&&t.getSuggestions([])}),[l]),console.log(i.defaultValue),e.createElement(yt,null,e.createElement(_t,{id:"elasticSearch",autoComplete:"off",type:"text",value:t.value,placeholder:t.text_Placeholder,onChange:e=>{const{target:n={}}=e,{value:r=""}=n;let a=vt.toGreek(r);c({...i,query:t.sanitize?a:r})},defaultValue:i.defaultValue,onKeyPress:e=>g(e),onKeyDown:e=>g(e),variant_List:t.variant_List}),e.createElement(Et,null,t.text_Placeholder),t.bool_Required?e.createElement(O,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.variant_List?e.createElement(k,{variant_Size:"small",text_Button:t.text_AddToList,icon_Left:"Add",className:"FormAddButton",onClick:t.onClick_AddToList}):null,i.query&&l?e.createElement(ft,null,l.slice(0,6).map(((n,r)=>e.createElement("li",{className:r===u%l.length?"ElasticSelected":"",key:r,onClick:()=>h(n?.item?n.item[t.key_SuggestionType]:n[t.key_SuggestionType])},e.createElement("p",null,n?.item?n.item[t.key_SuggestionType]:n[t.key_SuggestionType]))))):null,t.variant_List?e.createElement(xt,null,e.createElement("h5",null,t.text_Selecteditems),t.array_List.map((n=>e.createElement("li",null,e.createElement(d,{Icon:t.icon_List}),e.createElement("h6",null,n),e.createElement(S,{variant_Size:"small",icon_Left:"Delete",onClick:t.onCLick_ListDelete}))))):null)},wt=o.div`
|
|
787
790
|
display: flex;
|
|
788
791
|
gap: 1rem;
|
|
789
792
|
align-items: center;
|
|
@@ -808,7 +811,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
808
811
|
transform: rotate(55deg);
|
|
809
812
|
}
|
|
810
813
|
}
|
|
811
|
-
`,
|
|
814
|
+
`,Mt=o.div`
|
|
812
815
|
|
|
813
816
|
h6{
|
|
814
817
|
color: var(--focus) !important;
|
|
@@ -819,16 +822,16 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
819
822
|
font-weight: 600;
|
|
820
823
|
}
|
|
821
824
|
|
|
822
|
-
@media ${
|
|
825
|
+
@media ${Z} {
|
|
823
826
|
display: none;
|
|
824
827
|
}
|
|
825
|
-
`,
|
|
828
|
+
`,bt=t=>{const{theme:r}=n(se);return e.createElement(wt,{onClick:t.onClick_Logo},"dark"===r?e.createElement("img",{alt:"Doitforme dark logo",src:"https://genius1071.friktoriaservers.net/doitforme/logo/logo_dark.svg"}):e.createElement("img",{alt:"Doitforme light logo",src:"https://genius1071.friktoriaservers.net/doitforme/logo/logo_light.svg"}),e.createElement(Mt,null,e.createElement("h2",null,"Doitforme"),e.createElement("h6",null,"v3.0.0 'Morning'")))},Ct=o.div`
|
|
826
829
|
justify-self: center;
|
|
827
830
|
|
|
828
|
-
@media ${
|
|
831
|
+
@media ${N} {
|
|
829
832
|
justify-self: flex-end;
|
|
830
833
|
}
|
|
831
|
-
`,
|
|
834
|
+
`,Lt=t=>e.createElement(Ct,null,e.createElement(s,{variant_Size:"normal",text_Button:t.text_Cta,onClick:t.onClick_Cta})),St=o.div`
|
|
832
835
|
position: absolute;
|
|
833
836
|
top: 5rem;
|
|
834
837
|
right: 0rem;
|
|
@@ -883,7 +886,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
883
886
|
transform: translateX(110%);
|
|
884
887
|
transition: all .4s ease;
|
|
885
888
|
}
|
|
886
|
-
`,
|
|
889
|
+
`,At=o.div`
|
|
887
890
|
max-height: calc(100vh - 10rem);
|
|
888
891
|
overflow: auto;
|
|
889
892
|
|
|
@@ -897,7 +900,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
897
900
|
}
|
|
898
901
|
}
|
|
899
902
|
}
|
|
900
|
-
`,
|
|
903
|
+
`,It=o.div`
|
|
901
904
|
display: flex;
|
|
902
905
|
align-items: center;
|
|
903
906
|
gap: 1rem;
|
|
@@ -913,7 +916,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
913
916
|
&:hover{
|
|
914
917
|
background: ${e=>e.theme.low};
|
|
915
918
|
}
|
|
916
|
-
|
|
919
|
+
`,$t=o.div`
|
|
917
920
|
display: flex;
|
|
918
921
|
align-items: center;
|
|
919
922
|
justify-content: space-between;
|
|
@@ -968,19 +971,19 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
968
971
|
}
|
|
969
972
|
}
|
|
970
973
|
}
|
|
971
|
-
`,
|
|
974
|
+
`,Tt=o.div`
|
|
972
975
|
height: 2px;
|
|
973
976
|
width: 100%;
|
|
974
977
|
background: ${e=>e.theme.low};
|
|
975
|
-
|
|
978
|
+
`,Rt=o.div`
|
|
976
979
|
display: block;
|
|
977
|
-
`,
|
|
980
|
+
`,Bt=o.div`
|
|
978
981
|
display: none;
|
|
979
982
|
|
|
980
|
-
@media ${
|
|
983
|
+
@media ${N}{
|
|
981
984
|
display: block !important;
|
|
982
985
|
}
|
|
983
|
-
`,
|
|
986
|
+
`,Nt=t=>{const{setActiveMenu:r}=n(ce);return e.createElement(At,null,e.createElement(It,{onClick:()=>r("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Language)),e.createElement($t,{onClick:t.onClick_Greek_Language},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"})),e.createElement("h5",null,"Ελληνικά"))),e.createElement($t,{onClick:t.onClick_English_Language},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),e.createElement("h5",null,"English"))),e.createElement($t,{onClick:t.onClick_German_Language},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"})),e.createElement("h5",null,"Deutsch"))))},Zt=o.div`
|
|
984
987
|
display: flex;
|
|
985
988
|
align-items: center;
|
|
986
989
|
gap: .5rem;
|
|
@@ -1020,19 +1023,19 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1020
1023
|
transform: translateX(2.3rem);
|
|
1021
1024
|
}
|
|
1022
1025
|
}
|
|
1023
|
-
`,
|
|
1026
|
+
`,zt=t=>{const{theme:r,setTheme:a}=n(se);return e.createElement(Zt,{onClick:()=>a("dark"===r?"light":"dark")},e.createElement("picture",null,e.createElement(d,{Icon:"Sun"})),e.createElement("section",null,e.createElement("div",{className:"dark"===r?"Dark":"Light"})),e.createElement("picture",null,e.createElement(d,{Icon:"Moon"})))},Pt=o.div`
|
|
1024
1027
|
display: flex;
|
|
1025
1028
|
align-items: center;
|
|
1026
1029
|
justify-content: space-between;
|
|
1027
1030
|
gap: 1rem;
|
|
1028
1031
|
padding: var(--normalPads);
|
|
1029
|
-
`,zt=t=>{const{region:r}=n(ae),{setHamState:a}=n(ie),{setActiveMenu:o}=n(oe),{language:i}=n(re);return e.createElement(Lt,null,e.createElement(St,{onClick:()=>a(!1)},e.createElement(d,{Icon:"Xicon"}),e.createElement("h4",null,t.text_Title_Main)),e.createElement(Zt,null,e.createElement("h5",null,t.text_Theme_Main),e.createElement(Nt,null)),"Protected"===t.role?e.createElement(Tt,null,e.createElement(It,null),e.createElement(At,{onClick:t.onCLick_Account_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:t.img_Account_Main,alt:t.imgAlt_Account_Main})),e.createElement("h5",null,t.text_Account_Main)))):null,"Protected"===t.role?e.createElement(At,{onClick:t.onClick_Settings_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Settings"})),e.createElement("h5",null,t.text_Settings_Main))):null,e.createElement(At,{onClick:()=>o("Language")},e.createElement("main",null,e.createElement("picture",null,"el"===i?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"}):"de"===i?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"}):e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),"el"===i?e.createElement("h5",null,"Ελληνικά"):"de"===i?e.createElement("h5",null,"Deutsch"):e.createElement("h5",null,"English")),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),e.createElement(At,{onClick:()=>o("Region")},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Flag"})),e.createElement("h5",null,r)),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),"Protected"===t.role?e.createElement($t,null,e.createElement(It,null),e.createElement(At,{onClick:t.onCLick_Logout},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Logout"})),e.createElement("h5",null,t.text_Logout)))):e.createElement(Tt,null,e.createElement(It,null),e.createElement(At,{onClick:t.onCLick_Login},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Logout"})),e.createElement("h5",null,t.text_Login)))))};let Pt=[{country:"Andorra",code:"AD"},{country:"United Arab Emirates",code:"AE"},{country:"Afghanistan",code:"AF"},{country:"Antigua and Barbuda",code:"AG"},{country:"Anguilla",code:"AI"},{country:"Albania",code:"AL"},{country:"Armenia",code:"AM"},{country:"Angola",code:"AO"},{country:"Antarctica",code:"AQ"},{country:"Argentina",code:"AR"},{country:"American Samoa",code:"AS"},{country:"Austria",code:"AT"},{country:"Australia",code:"AU"},{country:"Aruba",code:"AW"},{country:"Åland Islands",code:"AX"},{country:"Azerbaijan",code:"AZ"},{country:"Bosnia and Herzegovina",code:"BA"},{country:"Barbados",code:"BB"},{country:"Bangladesh",code:"BD"},{country:"Belgium",code:"BE"},{country:"Burkina Faso",code:"BF"},{country:"Bulgaria",code:"BG"},{country:"Bahrain",code:"BH"},{country:"Burundi",code:"BI"},{country:"Benin",code:"BJ"},{country:"Saint Barthélemy",code:"BL"},{country:"Bermuda",code:"BM"},{country:"Brunei Darussalam",code:"BN"},{country:"Bolivia, Plurinational State of",code:"BO"},{country:"Bonaire, Sint Eustatius and Saba",code:"BQ"},{country:"Brazil",code:"BR"},{country:"Bahamas",code:"BS"},{country:"Bhutan",code:"BT"},{country:"Botswana",code:"BW"},{country:"Belarus",code:"BY"},{country:"Belize",code:"BZ"},{country:"Canada",code:"CA"},{country:"Cocos (Keeling) Islands",code:"CC"},{country:"Democratic Republic of the Congo",code:"CD"},{country:"Central African Republic",code:"CF"},{country:"Republic of the Congo",code:"CG"},{country:"Switzerland",code:"CH"},{country:"Côte d'Ivoire",code:"CI"},{country:"Cook Islands",code:"CK"},{country:"Chile",code:"CL"},{country:"Cameroon",code:"CM"},{country:"China",code:"CN"},{country:"Colombia",code:"CO"},{country:"Costa Rica",code:"CR"},{country:"Cuba",code:"CU"},{country:"Cabo Verde",code:"CV"},{country:"Curaçao",code:"CW"},{country:"Christmas Island",code:"CX"},{country:"Cyprus",code:"CY"},{country:"Czech Republic",code:"CZ"},{country:"Deutschland",code:"DE"},{country:"Djibouti",code:"DJ"},{country:"Denmark",code:"DK"},{country:"Dominica",code:"DM"},{country:"Dominican Republic",code:"DO"},{country:"Algeria",code:"DZ"},{country:"Ecuador",code:"EC"},{country:"Estonia",code:"EE"},{country:"Egypt",code:"EG"},{country:"Western Sahara",code:"EH"},{country:"Eritrea",code:"ER"},{country:"Spain",code:"ES"},{country:"Ethiopia",code:"ET"},{country:"Finland",code:"FI"},{country:"Fiji",code:"FJ"},{country:"Falkland Islands (Malvinas)",code:"FK"},{country:"Micronesia, Federated States of",code:"FM"},{country:"Faroe Islands",code:"FO"},{country:"France",code:"FR"},{country:"Gabon",code:"GA"},{country:"United Kingdom",code:"GB"},{country:"Grenada",code:"GD"},{country:"Georgia",code:"GE"},{country:"French Guiana",code:"GF"},{country:"Guernsey",code:"GG"},{country:"Ghana",code:"GH"},{country:"Gibraltar",code:"GI"},{country:"Greenland",code:"GL"},{country:"Gambia",code:"GM"},{country:"Guinea",code:"GN"},{country:"Guadeloupe",code:"GP"},{country:"Equatorial Guinea",code:"GQ"},{country:"Greece",code:"GR"},{country:"South Georgia and the South Sandwich Islands",code:"GS"},{country:"Guatemala",code:"GT"},{country:"Guam",code:"GU"},{country:"Guinea-Bissau",code:"GW"},{country:"Guyana",code:"GY"},{country:"Hong Kong",code:"HK"},{country:"Honduras",code:"HN"},{country:"Croatia",code:"HR"},{country:"Haiti",code:"HT"},{country:"Hungary",code:"HU"},{country:"Indonesia",code:"ID"},{country:"Ireland",code:"IE"},{country:"Israel",code:"IL"},{country:"Isle of Man",code:"IM"},{country:"India",code:"IN"},{country:"Iraq",code:"IQ"},{country:"Iran",code:"IR"},{country:"Iceland",code:"IS"},{country:"Italy",code:"IT"},{country:"Jersey",code:"JE"},{country:"Jamaica",code:"JM"},{country:"Jordan",code:"JO"},{country:"Japan",code:"JP"},{country:"Kenya",code:"KE"},{country:"Kyrgyzstan",code:"KG"},{country:"Cambodia",code:"KH"},{country:"Kiribati",code:"KI"},{country:"Comoros",code:"KM"},{country:"Saint Kitts and Nevis",code:"KN"},{country:"North Korea",code:"KP"},{country:"South Korea",code:"KR"},{country:"Kuwait",code:"KW"},{country:"Cayman Islands",code:"KY"},{country:"Kazakhstan",code:"KZ"},{country:"Lao People's Democratic Republic",code:"LA"},{country:"Lebanon",code:"LB"},{country:"Saint Lucia",code:"LC"},{country:"Liechtenstein",code:"LI"},{country:"Sri Lanka",code:"LK"},{country:"Liberia",code:"LR"},{country:"Lesotho",code:"LS"},{country:"Lithuania",code:"LT"},{country:"Luxembourg",code:"LU"},{country:"Latvia",code:"LV"},{country:"Libya",code:"LY"},{country:"Morocco",code:"MA"},{country:"Monaco",code:"MC"},{country:"Moldova",code:"MD"},{country:"Montenegro",code:"ME"},{country:"Saint Martin (French part)",code:"MF"},{country:"Madagascar",code:"MG"},{country:"Marshall Islands",code:"MH"},{country:"North Macedonia",code:"MK"},{country:"Mali",code:"ML"},{country:"Myanmar",code:"MM"},{country:"Mongolia",code:"MN"},{country:"Macao",code:"MO"},{country:"Northern Mariana Islands",code:"MP"},{country:"Martinique",code:"MQ"},{country:"Mauritania",code:"MR"},{country:"Montserrat",code:"MS"},{country:"Malta",code:"MT"},{country:"Mauritius",code:"MU"},{country:"Maldives",code:"MV"},{country:"Malawi",code:"MW"},{country:"Mexico",code:"MX"},{country:"Malaysia",code:"MY"},{country:"Mozambique",code:"MZ"},{country:"Namibia",code:"NA"},{country:"New Caledonia",code:"NC"},{country:"Niger",code:"NE"},{country:"Norfolk Island",code:"NF"},{country:"Nigeria",code:"NG"},{country:"Nicaragua",code:"NI"},{country:"Netherlands",code:"NL"},{country:"Norway",code:"NO"},{country:"Nepal",code:"NP"},{country:"Nauru",code:"NR"},{country:"Niue",code:"NU"},{country:"New Zealand",code:"NZ"},{country:"Oman",code:"OM"},{country:"Panama",code:"PA"},{country:"Peru",code:"PE"},{country:"French Polynesia",code:"PF"},{country:"Papua New Guinea",code:"PG"},{country:"Philippines",code:"PH"},{country:"Pakistan",code:"PK"},{country:"Poland",code:"PL"},{country:"Saint Pierre and Miquelon",code:"PM"},{country:"Pitcairn",code:"PN"},{country:"Puerto Rico",code:"PR"},{country:"Palestine",code:"PS"},{country:"Portugal",code:"PT"},{country:"Palau",code:"PW"},{country:"Paraguay",code:"PY"},{country:"Qatar",code:"QA"},{country:"Réunion",code:"RE"},{country:"Romania",code:"RO"},{country:"Serbia",code:"RS"},{country:"Russian Federation",code:"RU"},{country:"Rwanda",code:"RW"},{country:"Saudi Arabia",code:"SA"},{country:"Solomon Islands",code:"SB"},{country:"Seychelles",code:"SC"},{country:"Sudan",code:"SD"},{country:"Sweden",code:"SE"},{country:"Singapore",code:"SG"},{country:"Saint Helena, Ascension and Tristan da Cunha",code:"SH"},{country:"Slovenia",code:"SI"},{country:"Svalbard and Jan Mayen",code:"SJ"},{country:"Slovakia",code:"SK"},{country:"Sierra Leone",code:"SL"},{country:"San Marino",code:"SM"},{country:"Senegal",code:"SN"},{country:"Somalia",code:"SO"},{country:"Suriname",code:"SR"},{country:"South Sudan",code:"SS"},{country:"Sao Tome and Principe",code:"ST"},{country:"El Salvador",code:"SV"},{country:"Sint Maarten (Dutch part)",code:"SX"},{country:"Syrian Arab Republic",code:"SY"},{country:"Eswatini",code:"SZ"},{country:"Turks and Caicos Islands",code:"TC"},{country:"Chad",code:"TD"},{country:"French Southern Territories",code:"TF"},{country:"Togo",code:"TG"},{country:"Thailand",code:"TH"},{country:"Tajikistan",code:"TJ"},{country:"Tokelau",code:"TK"},{country:"Timor-Leste",code:"TL"},{country:"Turkmenistan",code:"TM"},{country:"Tunisia",code:"TN"},{country:"Tonga",code:""},{country:"Turkey",code:"TR"},{country:"Trinidad and Tobago",code:"TT"},{country:"Tuvalu",code:"TV"},{country:"Taiwan, Province of China",code:"TW"},{country:"Tanzania",code:"TZ"},{country:"Ukraine",code:"UA"},{country:"Uganda",code:"UG"},{country:"United States",code:"US"},{country:"Uruguay",code:"UY"},{country:"Uzbekistan",code:"UZ"},{country:"Holy See (Vatican City State)",code:"VA"},{country:"Saint Vincent and the Grenadines",code:"VC"},{country:"Venezuela",code:"VE"},{country:"Virgin Islands, British",code:"VG"},{country:"Virgin Islands, U.S.",code:"VI"},{country:"Viet Nam",code:"VN"},{country:"Vanuatu",code:"VU"},{country:"Wallis and Futuna",code:"WF"},{country:"Samoa",code:"AS"},{country:"Kosovo",code:"XK"},{country:"Yemen",code:"YE"},{country:"Mayotte",code:"YT"},{country:"South Africa",code:"ZA"},{country:"Zambia",code:"ZM"},{country:"Zimbabwe",code:"ZW"}];const Gt=t=>{const{region:r,setRegion:a}=n(ae),{setActiveMenu:o}=n(oe);return e.createElement(Lt,null,e.createElement(St,{onClick:()=>o("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Region)),Pt.map(((t,n)=>e.createElement(At,{key:n,onClick:()=>{return e=t.country,a(e),void o("Main");var e},className:r===t.country?"SelectedRegion":""},e.createElement("main",null,e.createElement("h5",null,t.country))))))},Ht=t=>{const{activeMenu:a}=n(oe),[o,c]=r(null),l=e=>{const t=e.offsetHeight;c(t)};return e.createElement(Ct,{style:{height:o}},e.createElement(i,{in:"Main"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-primary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(zt,{role:t.role,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onCLick_Account_Main:t.onCLick_Account_Main,img_Account_Main:t.img_Account_Main,imgAlt_Account_Main:t.imgAlt_Account_Main,text_Account_Main:t.text_Account_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main,onCLick_Logout:t.onCLick_Logout,text_Logout:t.text_Logout,onCLick_Login:t.onCLick_Login,text_Login:t.text_Login}))),e.createElement(i,{in:"Language"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Rt,{text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language}))),e.createElement(i,{in:"Region"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Gt,{text_Title_Region:t.text_Title_Region}))))},Ft=o.div`
|
|
1032
|
+
`,Gt=t=>{const{region:r}=n(ie),{setHamState:a}=n(le),{setActiveMenu:o}=n(ce),{language:i}=n(oe);return e.createElement(At,null,e.createElement(It,{onClick:()=>a(!1)},e.createElement(d,{Icon:"Xicon"}),e.createElement("h4",null,t.text_Title_Main)),e.createElement(Pt,null,e.createElement("h5",null,t.text_Theme_Main),e.createElement(zt,null)),"Protected"===t.role?e.createElement(Bt,null,e.createElement(Tt,null),e.createElement($t,{onClick:t.onCLick_Account_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement("img",{src:t.img_Account_Main,alt:t.imgAlt_Account_Main})),e.createElement("h5",null,t.text_Account_Main)))):null,"Protected"===t.role?e.createElement($t,{onClick:t.onClick_Settings_Main},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Settings"})),e.createElement("h5",null,t.text_Settings_Main))):null,e.createElement($t,{onClick:()=>o("Language")},e.createElement("main",null,e.createElement("picture",null,"el"===i?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/Greek.svg"}):"de"===i?e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/German.svg"}):e.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/monica/app/assets/flags/English.svg"})),"el"===i?e.createElement("h5",null,"Ελληνικά"):"de"===i?e.createElement("h5",null,"Deutsch"):e.createElement("h5",null,"English")),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),e.createElement($t,{onClick:()=>o("Region")},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Flag"})),e.createElement("h5",null,r)),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),"Protected"===t.role?e.createElement(Rt,null,e.createElement(Tt,null),e.createElement($t,{onClick:t.onCLick_Logout},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Logout"})),e.createElement("h5",null,t.text_Logout)))):e.createElement(Bt,null,e.createElement(Tt,null),e.createElement($t,{onClick:t.onCLick_Login},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Logout"})),e.createElement("h5",null,t.text_Login)))))};let Ht=[{country:"Andorra",code:"AD"},{country:"United Arab Emirates",code:"AE"},{country:"Afghanistan",code:"AF"},{country:"Antigua and Barbuda",code:"AG"},{country:"Anguilla",code:"AI"},{country:"Albania",code:"AL"},{country:"Armenia",code:"AM"},{country:"Angola",code:"AO"},{country:"Antarctica",code:"AQ"},{country:"Argentina",code:"AR"},{country:"American Samoa",code:"AS"},{country:"Austria",code:"AT"},{country:"Australia",code:"AU"},{country:"Aruba",code:"AW"},{country:"Åland Islands",code:"AX"},{country:"Azerbaijan",code:"AZ"},{country:"Bosnia and Herzegovina",code:"BA"},{country:"Barbados",code:"BB"},{country:"Bangladesh",code:"BD"},{country:"Belgium",code:"BE"},{country:"Burkina Faso",code:"BF"},{country:"Bulgaria",code:"BG"},{country:"Bahrain",code:"BH"},{country:"Burundi",code:"BI"},{country:"Benin",code:"BJ"},{country:"Saint Barthélemy",code:"BL"},{country:"Bermuda",code:"BM"},{country:"Brunei Darussalam",code:"BN"},{country:"Bolivia, Plurinational State of",code:"BO"},{country:"Bonaire, Sint Eustatius and Saba",code:"BQ"},{country:"Brazil",code:"BR"},{country:"Bahamas",code:"BS"},{country:"Bhutan",code:"BT"},{country:"Botswana",code:"BW"},{country:"Belarus",code:"BY"},{country:"Belize",code:"BZ"},{country:"Canada",code:"CA"},{country:"Cocos (Keeling) Islands",code:"CC"},{country:"Democratic Republic of the Congo",code:"CD"},{country:"Central African Republic",code:"CF"},{country:"Republic of the Congo",code:"CG"},{country:"Switzerland",code:"CH"},{country:"Côte d'Ivoire",code:"CI"},{country:"Cook Islands",code:"CK"},{country:"Chile",code:"CL"},{country:"Cameroon",code:"CM"},{country:"China",code:"CN"},{country:"Colombia",code:"CO"},{country:"Costa Rica",code:"CR"},{country:"Cuba",code:"CU"},{country:"Cabo Verde",code:"CV"},{country:"Curaçao",code:"CW"},{country:"Christmas Island",code:"CX"},{country:"Cyprus",code:"CY"},{country:"Czech Republic",code:"CZ"},{country:"Deutschland",code:"DE"},{country:"Djibouti",code:"DJ"},{country:"Denmark",code:"DK"},{country:"Dominica",code:"DM"},{country:"Dominican Republic",code:"DO"},{country:"Algeria",code:"DZ"},{country:"Ecuador",code:"EC"},{country:"Estonia",code:"EE"},{country:"Egypt",code:"EG"},{country:"Western Sahara",code:"EH"},{country:"Eritrea",code:"ER"},{country:"Spain",code:"ES"},{country:"Ethiopia",code:"ET"},{country:"Finland",code:"FI"},{country:"Fiji",code:"FJ"},{country:"Falkland Islands (Malvinas)",code:"FK"},{country:"Micronesia, Federated States of",code:"FM"},{country:"Faroe Islands",code:"FO"},{country:"France",code:"FR"},{country:"Gabon",code:"GA"},{country:"United Kingdom",code:"GB"},{country:"Grenada",code:"GD"},{country:"Georgia",code:"GE"},{country:"French Guiana",code:"GF"},{country:"Guernsey",code:"GG"},{country:"Ghana",code:"GH"},{country:"Gibraltar",code:"GI"},{country:"Greenland",code:"GL"},{country:"Gambia",code:"GM"},{country:"Guinea",code:"GN"},{country:"Guadeloupe",code:"GP"},{country:"Equatorial Guinea",code:"GQ"},{country:"Greece",code:"GR"},{country:"South Georgia and the South Sandwich Islands",code:"GS"},{country:"Guatemala",code:"GT"},{country:"Guam",code:"GU"},{country:"Guinea-Bissau",code:"GW"},{country:"Guyana",code:"GY"},{country:"Hong Kong",code:"HK"},{country:"Honduras",code:"HN"},{country:"Croatia",code:"HR"},{country:"Haiti",code:"HT"},{country:"Hungary",code:"HU"},{country:"Indonesia",code:"ID"},{country:"Ireland",code:"IE"},{country:"Israel",code:"IL"},{country:"Isle of Man",code:"IM"},{country:"India",code:"IN"},{country:"Iraq",code:"IQ"},{country:"Iran",code:"IR"},{country:"Iceland",code:"IS"},{country:"Italy",code:"IT"},{country:"Jersey",code:"JE"},{country:"Jamaica",code:"JM"},{country:"Jordan",code:"JO"},{country:"Japan",code:"JP"},{country:"Kenya",code:"KE"},{country:"Kyrgyzstan",code:"KG"},{country:"Cambodia",code:"KH"},{country:"Kiribati",code:"KI"},{country:"Comoros",code:"KM"},{country:"Saint Kitts and Nevis",code:"KN"},{country:"North Korea",code:"KP"},{country:"South Korea",code:"KR"},{country:"Kuwait",code:"KW"},{country:"Cayman Islands",code:"KY"},{country:"Kazakhstan",code:"KZ"},{country:"Lao People's Democratic Republic",code:"LA"},{country:"Lebanon",code:"LB"},{country:"Saint Lucia",code:"LC"},{country:"Liechtenstein",code:"LI"},{country:"Sri Lanka",code:"LK"},{country:"Liberia",code:"LR"},{country:"Lesotho",code:"LS"},{country:"Lithuania",code:"LT"},{country:"Luxembourg",code:"LU"},{country:"Latvia",code:"LV"},{country:"Libya",code:"LY"},{country:"Morocco",code:"MA"},{country:"Monaco",code:"MC"},{country:"Moldova",code:"MD"},{country:"Montenegro",code:"ME"},{country:"Saint Martin (French part)",code:"MF"},{country:"Madagascar",code:"MG"},{country:"Marshall Islands",code:"MH"},{country:"North Macedonia",code:"MK"},{country:"Mali",code:"ML"},{country:"Myanmar",code:"MM"},{country:"Mongolia",code:"MN"},{country:"Macao",code:"MO"},{country:"Northern Mariana Islands",code:"MP"},{country:"Martinique",code:"MQ"},{country:"Mauritania",code:"MR"},{country:"Montserrat",code:"MS"},{country:"Malta",code:"MT"},{country:"Mauritius",code:"MU"},{country:"Maldives",code:"MV"},{country:"Malawi",code:"MW"},{country:"Mexico",code:"MX"},{country:"Malaysia",code:"MY"},{country:"Mozambique",code:"MZ"},{country:"Namibia",code:"NA"},{country:"New Caledonia",code:"NC"},{country:"Niger",code:"NE"},{country:"Norfolk Island",code:"NF"},{country:"Nigeria",code:"NG"},{country:"Nicaragua",code:"NI"},{country:"Netherlands",code:"NL"},{country:"Norway",code:"NO"},{country:"Nepal",code:"NP"},{country:"Nauru",code:"NR"},{country:"Niue",code:"NU"},{country:"New Zealand",code:"NZ"},{country:"Oman",code:"OM"},{country:"Panama",code:"PA"},{country:"Peru",code:"PE"},{country:"French Polynesia",code:"PF"},{country:"Papua New Guinea",code:"PG"},{country:"Philippines",code:"PH"},{country:"Pakistan",code:"PK"},{country:"Poland",code:"PL"},{country:"Saint Pierre and Miquelon",code:"PM"},{country:"Pitcairn",code:"PN"},{country:"Puerto Rico",code:"PR"},{country:"Palestine",code:"PS"},{country:"Portugal",code:"PT"},{country:"Palau",code:"PW"},{country:"Paraguay",code:"PY"},{country:"Qatar",code:"QA"},{country:"Réunion",code:"RE"},{country:"Romania",code:"RO"},{country:"Serbia",code:"RS"},{country:"Russian Federation",code:"RU"},{country:"Rwanda",code:"RW"},{country:"Saudi Arabia",code:"SA"},{country:"Solomon Islands",code:"SB"},{country:"Seychelles",code:"SC"},{country:"Sudan",code:"SD"},{country:"Sweden",code:"SE"},{country:"Singapore",code:"SG"},{country:"Saint Helena, Ascension and Tristan da Cunha",code:"SH"},{country:"Slovenia",code:"SI"},{country:"Svalbard and Jan Mayen",code:"SJ"},{country:"Slovakia",code:"SK"},{country:"Sierra Leone",code:"SL"},{country:"San Marino",code:"SM"},{country:"Senegal",code:"SN"},{country:"Somalia",code:"SO"},{country:"Suriname",code:"SR"},{country:"South Sudan",code:"SS"},{country:"Sao Tome and Principe",code:"ST"},{country:"El Salvador",code:"SV"},{country:"Sint Maarten (Dutch part)",code:"SX"},{country:"Syrian Arab Republic",code:"SY"},{country:"Eswatini",code:"SZ"},{country:"Turks and Caicos Islands",code:"TC"},{country:"Chad",code:"TD"},{country:"French Southern Territories",code:"TF"},{country:"Togo",code:"TG"},{country:"Thailand",code:"TH"},{country:"Tajikistan",code:"TJ"},{country:"Tokelau",code:"TK"},{country:"Timor-Leste",code:"TL"},{country:"Turkmenistan",code:"TM"},{country:"Tunisia",code:"TN"},{country:"Tonga",code:""},{country:"Turkey",code:"TR"},{country:"Trinidad and Tobago",code:"TT"},{country:"Tuvalu",code:"TV"},{country:"Taiwan, Province of China",code:"TW"},{country:"Tanzania",code:"TZ"},{country:"Ukraine",code:"UA"},{country:"Uganda",code:"UG"},{country:"United States",code:"US"},{country:"Uruguay",code:"UY"},{country:"Uzbekistan",code:"UZ"},{country:"Holy See (Vatican City State)",code:"VA"},{country:"Saint Vincent and the Grenadines",code:"VC"},{country:"Venezuela",code:"VE"},{country:"Virgin Islands, British",code:"VG"},{country:"Virgin Islands, U.S.",code:"VI"},{country:"Viet Nam",code:"VN"},{country:"Vanuatu",code:"VU"},{country:"Wallis and Futuna",code:"WF"},{country:"Samoa",code:"AS"},{country:"Kosovo",code:"XK"},{country:"Yemen",code:"YE"},{country:"Mayotte",code:"YT"},{country:"South Africa",code:"ZA"},{country:"Zambia",code:"ZM"},{country:"Zimbabwe",code:"ZW"}];const Ft=t=>{const{region:r,setRegion:a}=n(ie),{setActiveMenu:o}=n(ce);return e.createElement(At,null,e.createElement(It,{onClick:()=>o("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Region)),Ht.map(((t,n)=>e.createElement($t,{key:n,onClick:()=>{return e=t.country,a(e),void o("Main");var e},className:r===t.country?"SelectedRegion":""},e.createElement("main",null,e.createElement("h5",null,t.country))))))},Dt=t=>{const{activeMenu:a}=n(ce),[o,c]=r(null),l=e=>{const t=e.offsetHeight;c(t)};return e.createElement(St,{style:{height:o}},e.createElement(i,{in:"Main"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-primary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Gt,{role:t.role,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onCLick_Account_Main:t.onCLick_Account_Main,img_Account_Main:t.img_Account_Main,imgAlt_Account_Main:t.imgAlt_Account_Main,text_Account_Main:t.text_Account_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main,onCLick_Logout:t.onCLick_Logout,text_Logout:t.text_Logout,onCLick_Login:t.onCLick_Login,text_Login:t.text_Login}))),e.createElement(i,{in:"Language"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Nt,{text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language}))),e.createElement(i,{in:"Region"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Ft,{text_Title_Region:t.text_Title_Region}))))},Vt=o.div`
|
|
1030
1033
|
justify-self: flex-end;
|
|
1031
1034
|
display: flex;
|
|
1032
1035
|
align-items: center;
|
|
1033
1036
|
gap: 1rem;
|
|
1034
1037
|
position: relative;
|
|
1035
|
-
`,
|
|
1038
|
+
`,Kt=o.div`
|
|
1036
1039
|
display: flex;
|
|
1037
1040
|
align-items: center;
|
|
1038
1041
|
gap: 1rem;
|
|
@@ -1063,28 +1066,28 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1063
1066
|
border: 1px solid ${e=>e.theme.low};
|
|
1064
1067
|
}
|
|
1065
1068
|
|
|
1066
|
-
@media ${
|
|
1069
|
+
@media ${N}{
|
|
1067
1070
|
padding: 0;
|
|
1068
1071
|
|
|
1069
1072
|
h5{
|
|
1070
1073
|
display: none;
|
|
1071
1074
|
}
|
|
1072
1075
|
}
|
|
1073
|
-
`,
|
|
1076
|
+
`,jt=t=>{const{hamState:r,setHamState:a}=n(le);return e.createElement(Vt,null,e.createElement(Kt,{onClick:t.onClick_Account},e.createElement("picture",null,e.createElement("img",{src:t.img_Account,alt:t.imgAlt_Account})),e.createElement("h5",null,t.firstname_Account)),e.createElement(_,{variant_Size:"small",icon_Left:"Ham",onClick:()=>a(!r)}),r?e.createElement(Dt,{role:t.role,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onCLick_Account_Main:t.onCLick_Account_Main,img_Account_Main:t.img_Account_Main,imgAlt_Account_Main:t.imgAlt_Account_Main,text_Account_Main:t.text_Account_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main,onCLick_Logout:t.onCLick_Logout,text_Logout:t.text_Logout,text_Title_Region:t.text_Title_Region,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language}):null)},qt=o.div`
|
|
1074
1077
|
justify-self: flex-end;
|
|
1075
1078
|
display: flex;
|
|
1076
1079
|
align-items: center;
|
|
1077
1080
|
gap: 1rem;
|
|
1078
1081
|
position: relative;
|
|
1079
|
-
`,
|
|
1082
|
+
`,Ot=o.div`
|
|
1080
1083
|
display: flex;
|
|
1081
1084
|
align-items: center;
|
|
1082
1085
|
gap: 1rem;
|
|
1083
1086
|
|
|
1084
|
-
@media ${
|
|
1087
|
+
@media ${N} {
|
|
1085
1088
|
display: none;
|
|
1086
1089
|
}
|
|
1087
|
-
`,
|
|
1090
|
+
`,Wt=t=>{const{hamState:r,setHamState:a}=n(le);return e.createElement(qt,null,e.createElement(Ot,null,e.createElement(M,{variant_Size:"small",text_Button:t.text_Login,onClick:t.onClick_Login})),e.createElement(_,{variant_Size:"small",icon_Left:"Ham",onClick:()=>a(!r)}),r?e.createElement(Dt,{role:t.role,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,text_Title_Region:t.text_Title_Region,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language,onCLick_Login:t.onCLick_Login,text_Login:t.text_Login}):null)},Ut=o.nav`
|
|
1088
1091
|
display: grid;
|
|
1089
1092
|
align-items: center;
|
|
1090
1093
|
grid-gap: 1rem;
|
|
@@ -1098,10 +1101,10 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1098
1101
|
background: ${e=>e.theme.background};
|
|
1099
1102
|
box-shadow: 0 1px 3px ${e=>e.theme.overlay};
|
|
1100
1103
|
|
|
1101
|
-
@media ${
|
|
1104
|
+
@media ${N} {
|
|
1102
1105
|
padding: 1rem 2rem;
|
|
1103
1106
|
}
|
|
1104
|
-
`,
|
|
1107
|
+
`,Xt=t=>e.createElement(Ut,null,e.createElement(bt,{onClick_Logo:t.onClick_Logo}),e.createElement(Lt,{onClick_Cta:t.onClick_Cta,text_Cta:t.text_Cta}),"Protected"===t.role?e.createElement(jt,{role:t.role,img_Account:t.img_Account,img_Account_Main:t.img_Account,imgAlt_Account:t.imgAlt_Account,imgAlt_Account_Main:t.imgAlt_Account,firstname_Account:t.firstname_Account,text_Account_Main:t.firstname_Account,onClick_Account:t.onClick_Account,onCLick_Account_Main:t.onClick_Account,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main,onCLick_Logout:t.onCLick_Logout,text_Logout:t.text_Logout,text_Title_Region:t.text_Title_Region,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language}):e.createElement(Wt,{role:t.role,onClick_Login:t.onClick_Login,text_Login:t.text_Login,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,text_Title_Region:t.text_Title_Region,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language})),Jt=o.div`
|
|
1105
1108
|
position: fixed;
|
|
1106
1109
|
left: 0;
|
|
1107
1110
|
top: 6rem;
|
|
@@ -1109,7 +1112,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1109
1112
|
width: 8.5rem;
|
|
1110
1113
|
height: 100vh;
|
|
1111
1114
|
border-right: 1px solid ${e=>e.theme.mid};
|
|
1112
|
-
`,
|
|
1115
|
+
`,Yt=t=>e.createElement(Jt,null,t.children),Qt=o.li`
|
|
1113
1116
|
cursor: pointer;
|
|
1114
1117
|
transition-property: transform;
|
|
1115
1118
|
transition-duration: .5s;
|
|
@@ -1173,12 +1176,12 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1173
1176
|
transition-duration: .5s;
|
|
1174
1177
|
}
|
|
1175
1178
|
}
|
|
1176
|
-
`,
|
|
1179
|
+
`,en=t=>e.createElement(Qt,{onClick:t.onClick},e.createElement("h5",{className:t.class_Name+" SidebarButtonTitle"},t.text),e.createElement("picture",null,t.icon?e.createElement(d,{Icon:t.icon}):t.img?e.createElement("img",{src:t.img,alt:t.alt}):null)),tn=o.div`
|
|
1177
1180
|
display: flex;
|
|
1178
1181
|
align-items: center;
|
|
1179
1182
|
justify-content: space-between;
|
|
1180
1183
|
padding: 4rem 0 2rem 0;
|
|
1181
|
-
`,
|
|
1184
|
+
`,nn=t=>e.createElement(tn,null,e.createElement(_,{icon_Left:t.icon_Grey,text_Button:t.text_Grey,onClick:t.onClick_Grey}),e.createElement(k,{icon_Right:t.icon_Main,text_Button:t.text_Main,onClick:t.onClick_Main})),rn=o.div`
|
|
1182
1185
|
height: 1.5rem;
|
|
1183
1186
|
border-radius: 1rem;
|
|
1184
1187
|
margin-bottom: 2rem;
|
|
@@ -1187,13 +1190,13 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1187
1190
|
grid-template-columns: repeat( ${e=>e.array_Steps.length} ,1fr);
|
|
1188
1191
|
background: ${e=>e.theme.mid};
|
|
1189
1192
|
overflow: hidden;
|
|
1190
|
-
`,
|
|
1193
|
+
`,an=o.div`
|
|
1191
1194
|
background: ${e=>e.step===e.int_CurrentStep?"linear-gradient( to right, var(--main), transparent)":e.step<e.int_CurrentStep?"var(--main)":"transparent"};
|
|
1192
1195
|
height: 100%;
|
|
1193
1196
|
width: 100%;
|
|
1194
|
-
`,
|
|
1197
|
+
`,on=t=>e.createElement(rn,{array_Steps:t.array_Steps},t.array_Steps.map(((n,r)=>e.createElement(an,{step:r,int_CurrentStep:t.int_CurrentStep})))),cn=o.div`
|
|
1195
1198
|
|
|
1196
|
-
`,
|
|
1199
|
+
`,ln=o.div`
|
|
1197
1200
|
position: relative;
|
|
1198
1201
|
|
|
1199
1202
|
.Steps{
|
|
@@ -1218,21 +1221,21 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1218
1221
|
transform: translateX(-110%);
|
|
1219
1222
|
transition: all .4s ease;
|
|
1220
1223
|
}
|
|
1221
|
-
`,
|
|
1224
|
+
`,sn=o.div`
|
|
1222
1225
|
padding: var(--smallDist);
|
|
1223
1226
|
border-radius: var(--normalRadius);
|
|
1224
1227
|
box-shadow: ${e=>e.theme.out};
|
|
1225
1228
|
background: ${e=>e.theme.low};
|
|
1226
|
-
`,
|
|
1229
|
+
`,dn=t=>e.createElement(cn,null,e.createElement(on,{array_Steps:t.array_Steps,int_CurrentStep:t.int_CurrentStep}),e.createElement(ln,null,t.array_Steps.map(((n,r)=>e.createElement(i,{in:t.int_CurrentStep===r,timeout:500,unmountOnExit:!0,classNames:"Steps"},e.createElement(sn,{className:"Steps"},n)))))),un=o.div`
|
|
1227
1230
|
position: fixed;
|
|
1228
1231
|
top: 0;
|
|
1229
1232
|
left: 0;
|
|
1230
1233
|
z-index: 500;
|
|
1231
1234
|
width: 100%;
|
|
1232
1235
|
height: 100vh;
|
|
1233
|
-
`,
|
|
1236
|
+
`,mn=o(un)`
|
|
1234
1237
|
background: ${e=>e.theme.overlay};
|
|
1235
|
-
`,
|
|
1238
|
+
`,hn=o.div`
|
|
1236
1239
|
position: fixed;
|
|
1237
1240
|
top: 0;
|
|
1238
1241
|
right: 0;
|
|
@@ -1241,18 +1244,18 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1241
1244
|
height: 100%;
|
|
1242
1245
|
max-width: 60%;
|
|
1243
1246
|
background-color: ${e=>e.theme.background};
|
|
1244
|
-
`,
|
|
1247
|
+
`,gn=o.div`
|
|
1245
1248
|
display: flex;
|
|
1246
1249
|
align-items: center;
|
|
1247
1250
|
justify-content: space-between;
|
|
1248
1251
|
height: 6rem;
|
|
1249
1252
|
padding: 0 4rem;
|
|
1250
|
-
`,
|
|
1253
|
+
`,pn=o.div`
|
|
1251
1254
|
padding: 2rem 4rem 10rem 4rem;
|
|
1252
1255
|
background: ${e=>e.theme.low};
|
|
1253
1256
|
height: 100%;
|
|
1254
1257
|
overflow: auto;
|
|
1255
|
-
`,
|
|
1258
|
+
`,vn=t=>e.createElement(un,{className:"StoryBook_Fix1"},e.createElement(mn,{className:"StoryBook_Fix2",onClick:t.onClick_Close}),e.createElement(hn,null,e.createElement(gn,null,e.createElement("h3",null,t.text_Title),e.createElement(k,{text_Button:t.text_MainButton,icon_Right:"Check",variant_Size:"normal",onClick:t.onClick_Close})),e.createElement(pn,null,t.children))),yn=o.div`
|
|
1256
1259
|
padding-top: 6rem;
|
|
1257
1260
|
position: relative;
|
|
1258
1261
|
|
|
@@ -1260,41 +1263,41 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1260
1263
|
height: calc(100vh - 6rem);
|
|
1261
1264
|
overflow: hidden;
|
|
1262
1265
|
}
|
|
1263
|
-
`,
|
|
1266
|
+
`,_n=o.div`
|
|
1264
1267
|
display: grid;
|
|
1265
1268
|
grid-template-columns: minmax(40rem, 40%) 1fr;
|
|
1266
1269
|
grid-gap: 4rem;
|
|
1267
1270
|
padding: 0 4rem;
|
|
1268
1271
|
|
|
1269
|
-
@media ${
|
|
1272
|
+
@media ${Z} {
|
|
1270
1273
|
grid-template-columns: 1fr;
|
|
1271
1274
|
}
|
|
1272
|
-
`,
|
|
1275
|
+
`,En=o.div`
|
|
1273
1276
|
display: grid;
|
|
1274
1277
|
grid-template-columns: 1fr 40%;
|
|
1275
1278
|
grid-gap: 4rem;
|
|
1276
1279
|
padding: 0 4rem;
|
|
1277
1280
|
|
|
1278
|
-
@media ${
|
|
1281
|
+
@media ${Z} {
|
|
1279
1282
|
grid-template-columns: 1fr;
|
|
1280
1283
|
}
|
|
1281
|
-
`,
|
|
1284
|
+
`,fn=o.div`
|
|
1282
1285
|
padding: 0 4rem 2rem 13rem;
|
|
1283
|
-
`,
|
|
1286
|
+
`,xn=o.div`
|
|
1284
1287
|
width: 100%;
|
|
1285
|
-
`,
|
|
1288
|
+
`,kn=o.div`
|
|
1286
1289
|
width: 100%;
|
|
1287
1290
|
|
|
1288
|
-
@media ${
|
|
1291
|
+
@media ${Z} {
|
|
1289
1292
|
display: none;
|
|
1290
1293
|
}
|
|
1291
|
-
`,
|
|
1294
|
+
`,wn=o.div`
|
|
1292
1295
|
padding-top: 8rem;
|
|
1293
|
-
`,
|
|
1296
|
+
`,Mn=o.div`
|
|
1294
1297
|
padding: 2rem 0;
|
|
1295
|
-
`,
|
|
1298
|
+
`,bn=o.div`
|
|
1296
1299
|
|
|
1297
|
-
`,
|
|
1300
|
+
`,Cn=o.div`
|
|
1298
1301
|
position: relative;
|
|
1299
1302
|
|
|
1300
1303
|
header{
|
|
@@ -1303,11 +1306,11 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1303
1306
|
}
|
|
1304
1307
|
|
|
1305
1308
|
|
|
1306
|
-
`,
|
|
1309
|
+
`,Ln=o.div`
|
|
1307
1310
|
padding-left: 4rem;
|
|
1308
|
-
`,
|
|
1311
|
+
`,Sn=o.div`
|
|
1309
1312
|
padding-right: 4rem;
|
|
1310
|
-
`,
|
|
1313
|
+
`,An=o(_n)`
|
|
1311
1314
|
padding: 0;
|
|
1312
1315
|
|
|
1313
1316
|
aside{
|
|
@@ -1358,37 +1361,37 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1358
1361
|
flex-direction: column;
|
|
1359
1362
|
gap: 4rem;
|
|
1360
1363
|
}
|
|
1361
|
-
`,
|
|
1364
|
+
`,In=o.div`
|
|
1362
1365
|
padding: 10rem 1rem 2rem 1rem;
|
|
1363
1366
|
text-align: center;
|
|
1364
|
-
|
|
1367
|
+
`,$n=o.div`
|
|
1365
1368
|
display: flex;
|
|
1366
1369
|
align-items: center;
|
|
1367
1370
|
gap: 1rem;
|
|
1368
|
-
`,
|
|
1371
|
+
`,Tn=o.div`
|
|
1369
1372
|
display: grid;
|
|
1370
1373
|
grid-template-columns: 1fr 1fr 1fr;
|
|
1371
1374
|
align-items: flex-start;
|
|
1372
1375
|
grid-gap: 2rem;
|
|
1373
1376
|
|
|
1374
|
-
@media ${
|
|
1377
|
+
@media ${z}{
|
|
1375
1378
|
grid-template-columns: 1fr 1fr;
|
|
1376
1379
|
}
|
|
1377
1380
|
|
|
1378
|
-
@media ${
|
|
1381
|
+
@media ${Z}{
|
|
1379
1382
|
grid-template-columns: 1fr 1fr 1fr;
|
|
1380
1383
|
}
|
|
1381
1384
|
|
|
1382
|
-
@media ${
|
|
1385
|
+
@media ${N}{
|
|
1383
1386
|
grid-template-columns: 1fr 1fr;
|
|
1384
1387
|
}
|
|
1385
1388
|
|
|
1386
|
-
@media ${
|
|
1389
|
+
@media ${B}{
|
|
1387
1390
|
grid-template-columns: 1fr;
|
|
1388
1391
|
}
|
|
1389
|
-
|
|
1392
|
+
`,Rn=o(Tn)`
|
|
1390
1393
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
1391
|
-
`,
|
|
1394
|
+
`,Bn={id:"light",background:"var(--white)",color:"var(--black)",low:"var(--greyLight)",mid:"var(--grey)",high:"var(--greyDark)",overlay:"var(--blackOverlay)",in:"var(--insetShadow)",inFocus:"var(--insetShadowFocus)",out:"var(--outShadow)",outFocus:"var(--outShadowFocus)"},Nn={id:"dark",background:"var(--dark)",color:"var(--blanc)",low:"var(--gloomDark)",mid:"var(--gloom)",high:"var(--gloomLight)",overlay:"var(--blancOverlay)",in:"var(--insetShine)",inFocus:"var(--insetShineFocus)",out:"var(--outShine)",outFocus:"var(--outShineFocus)"},Zn=o.div`
|
|
1392
1395
|
width: 100%;
|
|
1393
1396
|
min-height: 100vh;
|
|
1394
1397
|
background: ${e=>e.theme.background};
|
|
@@ -1411,7 +1414,7 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1411
1414
|
transition-property: background;
|
|
1412
1415
|
transition-duration: .5s;
|
|
1413
1416
|
}
|
|
1414
|
-
`,
|
|
1417
|
+
`,zn=o.div`
|
|
1415
1418
|
height: 1.5rem;
|
|
1416
1419
|
border-radius: 1rem;
|
|
1417
1420
|
margin-bottom: 2rem;
|
|
@@ -1420,15 +1423,15 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1420
1423
|
grid-template-columns: repeat( ${e=>e.array_Steps} ,1fr);
|
|
1421
1424
|
background: ${e=>e.theme.mid};
|
|
1422
1425
|
overflow: hidden;
|
|
1423
|
-
`,
|
|
1426
|
+
`,Pn=o.div`
|
|
1424
1427
|
background: linear-gradient( to right, var(--main), ${e=>e.theme.mid});
|
|
1425
1428
|
height: 100%;
|
|
1426
1429
|
width: 100%;
|
|
1427
|
-
`,
|
|
1430
|
+
`,Gn=o.div`
|
|
1428
1431
|
background: var(--main);
|
|
1429
1432
|
height: 100%;
|
|
1430
1433
|
width: 100%;
|
|
1431
|
-
`,
|
|
1434
|
+
`,Hn=o.div`
|
|
1432
1435
|
position: relative;
|
|
1433
1436
|
|
|
1434
1437
|
.Steps{
|
|
@@ -1453,26 +1456,26 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1453
1456
|
transform: translateX(-110%);
|
|
1454
1457
|
transition: all .4s ease;
|
|
1455
1458
|
}
|
|
1456
|
-
`,
|
|
1459
|
+
`,Fn=o.div`
|
|
1457
1460
|
padding: var(--smallDist);
|
|
1458
1461
|
border-radius: var(--normalRadius);
|
|
1459
1462
|
box-shadow: ${e=>e.theme.out};
|
|
1460
1463
|
background: ${e=>e.theme.low};
|
|
1461
|
-
`,
|
|
1464
|
+
`,Dn=o.div`
|
|
1462
1465
|
display: flex;
|
|
1463
1466
|
align-items: center;
|
|
1464
1467
|
justify-content: space-between;
|
|
1465
1468
|
padding: 4rem 0 2rem 0;
|
|
1466
|
-
`,
|
|
1469
|
+
`,Vn=o.div`
|
|
1467
1470
|
position: fixed;
|
|
1468
1471
|
top: 0;
|
|
1469
1472
|
left: 0;
|
|
1470
1473
|
z-index: 500;
|
|
1471
1474
|
width: 100%;
|
|
1472
1475
|
height: 100vh;
|
|
1473
|
-
`,
|
|
1476
|
+
`,Kn=o(Vn)`
|
|
1474
1477
|
background: ${e=>e.theme.overlay};
|
|
1475
|
-
`,
|
|
1478
|
+
`,jn=o.div`
|
|
1476
1479
|
position: fixed;
|
|
1477
1480
|
top: 0;
|
|
1478
1481
|
right: 0;
|
|
@@ -1481,28 +1484,28 @@ import e,{createContext as t,useContext as n,useState as r,useEffect as a}from"r
|
|
|
1481
1484
|
height: 100%;
|
|
1482
1485
|
max-width: 60%;
|
|
1483
1486
|
background-color: ${e=>e.theme.background};
|
|
1484
|
-
`,
|
|
1487
|
+
`,qn=o.div`
|
|
1485
1488
|
display: flex;
|
|
1486
1489
|
align-items: center;
|
|
1487
1490
|
justify-content: space-between;
|
|
1488
1491
|
height: 6rem;
|
|
1489
1492
|
padding: 0 4rem;
|
|
1490
|
-
`,
|
|
1493
|
+
`,On=o.div`
|
|
1491
1494
|
padding: 2rem 4rem 10rem 4rem;
|
|
1492
1495
|
background: ${e=>e.theme.low};
|
|
1493
1496
|
height: 100%;
|
|
1494
1497
|
overflow: auto;
|
|
1495
|
-
`,
|
|
1498
|
+
`,Wn=o.div`
|
|
1496
1499
|
display: grid;
|
|
1497
1500
|
grid-template-columns: 1fr 1fr;
|
|
1498
1501
|
grid-gap: 2rem;
|
|
1499
|
-
`,
|
|
1502
|
+
`,Un=o.div`
|
|
1500
1503
|
display: grid;
|
|
1501
1504
|
grid-gap: 2rem;
|
|
1502
|
-
`,
|
|
1505
|
+
`,Xn=o(Un)`
|
|
1503
1506
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
1504
|
-
`,
|
|
1507
|
+
`,Jn=o(Un)`
|
|
1505
1508
|
grid-template-columns: 1fr 1fr;
|
|
1506
|
-
`,
|
|
1509
|
+
`,Yn=o(Un)`
|
|
1507
1510
|
grid-template-columns: 1fr 1fr 1fr;
|
|
1508
|
-
`;export{
|
|
1511
|
+
`;export{ye as Builder_,R as Card_,Jn as CardsForty,Yn as CardsSixty,Xn as CardsTools,xe as Checkbox_,F as Confirmation_,s as Cta_,S as Delete_Plain,ae as Dropdown_,m as Edit_,kt as Elastic_Search,g as Focus_,v as Focus_Plain,J as Form,ee as FormGroup,Y as FormInput,Q as FormLabel,te as FormList,_ as Grey_,f as Grey_Link,le as HamContext,d as IconSvg,ne as Input_,he as Input_Phone,pe as Input_Phone_Register,oe as LangContext,k as Main_,M as Main_Plain,ce as MenuContext,Xt as Nav_,T as On_Click_Card,yn as Page,xn as PageAlwaysVisible,Tn as PageCards,kn as PageDesktopOnly,wn as PageDesktopPadding,_n as PageForty,bn as PageSingle,Cn as PageSingleHeader,Sn as PageSingleRight,Ln as PageSingleleft,En as PageSixty,An as PageSub,$n as PageSubActions,In as PageSubTitle,Mn as PageTitle,fn as PageTools,Rn as PageToolsCards,Me as Radio_,ie as RegionContext,Yt as Sidebar_,en as Sidebar_Box,Vn as Slider,On as SliderContainer,de as SliderContext,Wn as SliderGrid,Kn as SliderOverlay,qn as SliderTitle,jn as SliderWrapper,vn as Slider_,zn as Steps,Dn as StepsActions,Gn as StepsComplete,Hn as StepsContainer,Pn as StepsCurrent,Fn as StepsWrapper,dn as Steps_,nn as Steps_Actions,Le as Textarea_,Zn as Theme,se as ThemeContext,Nn as ThemeDark,Bn as ThemeLight,C as White_Plain};
|
package/dist/index.js
CHANGED
|
@@ -303,7 +303,10 @@
|
|
|
303
303
|
width: 11rem;
|
|
304
304
|
border-radius: 50%;
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
`;o.default.div`
|
|
307
|
+
display: flex;
|
|
308
|
+
gap: 1rem;
|
|
309
|
+
`;const b=`(max-width: ${`${576}px`})`,L=`(max-width: ${`${768}px`})`,S=`(max-width: ${`${992}px`})`,A=`(max-width: ${`${1440}px`})`,I=o.default.div`
|
|
307
310
|
position: fixed;
|
|
308
311
|
top: 0;
|
|
309
312
|
left: 0;
|
|
@@ -1505,4 +1508,4 @@
|
|
|
1505
1508
|
grid-template-columns: 1fr 1fr;
|
|
1506
1509
|
`,La=o.default(Ca)`
|
|
1507
1510
|
grid-template-columns: 1fr 1fr 1fr;
|
|
1508
|
-
`;exports.Builder_=e=>r.default.createElement(oe,{key:e.key},e.text_BuilderTitle?r.default.createElement("h4",null,e.text_BuilderTitle):null,e.children),exports.CardsForty=ba,exports.CardsSixty=La,exports.CardsTools=Ma,exports.Checkbox_=e=>r.default.createElement(le,{key:e.key},e.variant_Input?r.default.createElement(ce,{bool_Checked:e.bool_Checked},r.default.createElement(O,{text_Placeholder:e.text_CheckboxPlaceholder,bool_DisabledInput:!e.bool_Checked})):r.default.createElement("label",{for:e.id_Checkbox},r.default.createElement("p",null,e.text_CheckboxLabel)),r.default.createElement(ie,{className:"Check"},r.default.createElement("input",{type:"checkbox",id:e.id_Checkbox,checked:e.bool_Checked,onClick:e.onClick_Checkbox}),r.default.createElement("span",{className:"CheckCustom"}),r.default.createElement(s,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Confirmation_=e=>r.default.createElement(I,null,r.default.createElement($,null,r.default.createElement("h4",null,e.text_Confirmation),r.default.createElement(T,null,r.default.createElement(v,{onClick:e.onClick_Primary,icon_Left:e.icon_Primary,text_Button:e.text_Primary}),r.default.createElement(y,{onClick:e.onClick_Secondary,icon_Left:e.icon_Secondary,text_Button:e.text_Secondary})))),exports.Cta_=c,exports.Delete_Plain=k,exports.Dropdown_=U,exports.Edit_=e=>r.default.createElement(d,{variant_Size:"normal",onClick:e.onClick},r.default.createElement(s,{Icon:e.icon})),exports.Elastic_Search=t=>{let a={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[t.key_SuggestionType]},n=t.json_File;const[o,l]=e.useState({query:"",file:n,notfoundmessage:!1,defaultValue:t.text_DefaultValue}),[i,c]=e.useState(!1),[d,u]=e.useState(0),m=e=>{t.onSuggestions(e),l({...o,query:"",defaultValue:"string"==typeof e?e:e[t.key_SuggestionType]})},h=e=>{"ArrowUp"==e.key&&(e.preventDefault(),u(0===d?i.length-1:d-1)),"ArrowDown"==e.key&&(e.preventDefault(),d===i.length-1?u(0):u(d+1)),e.key&&"Enter"===e.key&&(e.preventDefault(),m("string"==typeof i[d]?i[d]:i[d][t.key_SuggestionType]))};return e.useEffect((()=>{a.minMatchCharLength=t.minMatchCharacters?t.minMatchCharacters:1;const e=new et(n,a);let r=o.query?e.search(o.query):n;r=r.slice(0,t.size),c(r)}),[o]),e.useEffect((()=>{t.getInput&&i?.length>0?t.getInput(i[0]?.item):t.getSuggestions&&i?.length>0&&o.query.length?t.getSuggestions(i):t.getSuggestions&&!o.query.length&&t.getSuggestions([])}),[i]),console.log(o.defaultValue),r.default.createElement(at,null,r.default.createElement(nt,{id:"elasticSearch",autoComplete:"off",type:"text",value:t.value,placeholder:t.text_Placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=tt.toGreek(n);l({...o,query:t.sanitize?r:n})},defaultValue:o.defaultValue,onKeyPress:e=>h(e),onKeyDown:e=>h(e),variant_List:t.variant_List}),r.default.createElement(rt,null,t.text_Placeholder),t.bool_Required?r.default.createElement(z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,t.variant_List?r.default.createElement(v,{variant_Size:"small",text_Button:t.text_AddToList,icon_Left:"Add",className:"FormAddButton",onClick:t.onClick_AddToList}):null,o.query&&i?r.default.createElement(ot,null,i.slice(0,6).map(((e,a)=>r.default.createElement("li",{className:a===d%i.length?"ElasticSelected":"",key:a,onClick:()=>m(e?.item?e.item[t.key_SuggestionType]:e[t.key_SuggestionType])},r.default.createElement("p",null,e?.item?e.item[t.key_SuggestionType]:e[t.key_SuggestionType]))))):null,t.variant_List?r.default.createElement(lt,null,r.default.createElement("h5",null,t.text_Selecteditems),t.array_List.map((e=>r.default.createElement("li",null,r.default.createElement(s,{Icon:t.icon_List}),r.default.createElement("h6",null,e),r.default.createElement(k,{variant_Size:"small",icon_Left:"Delete",onClick:t.onCLick_ListDelete}))))):null)},exports.Focus_=e=>r.default.createElement(u,{variant_Size:e.variant_Size,onClick:e.onClick},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null),exports.Focus_Plain=e=>r.default.createElement(m,{variant_Size:e.variant_Size,onClick:e.onClick,onFocus:e.onFocus},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null),exports.Form=D,exports.FormGroup=K,exports.FormInput=V,exports.FormLabel=j,exports.FormList=q,exports.Grey_=g,exports.Grey_Link=e=>r.default.createElement(f,{variant_Size:e.variant_Size,onClick:e.onClick},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null),exports.HamContext=Q,exports.IconSvg=s,exports.Input_=O,exports.Input_Phone=t=>{const{region:a}=e.useContext(J);return r.default.createElement(ae,null,r.default.createElement(ne,null,r.default.createElement(U,null,r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},"Greece"===a?r.default.createElement("option",{selected:!0},"🇬🇷 +30"):"Deutschland"===a?r.default.createElement("option",{selected:!0},"🇩🇪 +49"):r.default.createElement("option",{selected:!0},"🇬🇷 +30"))),r.default.createElement(U,{array_Dropdown:t.array_PhoneDropdown})),r.default.createElement(O,{text_Placeholder:t.text_PhonePlaceholder,bool_Required:t.bool_Required,variant_List:!0,array_List:t.array_PhoneList,icon_List:t.icon_PhoneList}))},exports.Input_Phone_Register=t=>{const{region:a}=e.useContext(J);return r.default.createElement(re,null,r.default.createElement(U,null,"Greece"===a?r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},r.default.createElement("option",{selected:!0},"🇬🇷 +30"),r.default.createElement("option",null,"🇩🇪 +49")):"Deutschland"===a?r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},r.default.createElement("option",{selected:!0},"🇩🇪 +49"),r.default.createElement("option",null,"🇬🇷 +30")):r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},r.default.createElement("option",{selected:!0},"🇬🇷 +30"),r.default.createElement("option",null,"🇩🇪 +49"))),r.default.createElement(O,{class_Input:t.class_Input,text_Placeholder:t.text_Placeholder,id_Input:t.id_Input,onChange_Input:t.onChange_Input,text_Defaultvalue:t.text_Defaultvalue,onKeyPress_Input:t.onKeyPress_Input,onKeyDown_Input:t.onKeyDown_Input}))},exports.LangContext=X,exports.Main_=v,exports.Main_Plain=y,exports.MenuContext=Y,exports.Nav_=e=>r.default.createElement(Rt,null,r.default.createElement(st,{onClick_Logo:e.onClick_Logo}),r.default.createElement(ut,{onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}),"Protected"===e.role?r.default.createElement(At,{role:e.role,img_Account:e.img_Account,img_Account_Main:e.img_Account,imgAlt_Account:e.imgAlt_Account,imgAlt_Account_Main:e.imgAlt_Account,firstname_Account:e.firstname_Account,text_Account_Main:e.firstname_Account,onClick_Account:e.onClick_Account,onCLick_Account_Main:e.onClick_Account,text_Title_Main:e.text_Title_Main,text_Theme_Main:e.text_Theme_Main,onClick_Settings_Main:e.onClick_Settings_Main,text_Settings_Main:e.text_Settings_Main,onCLick_Logout:e.onCLick_Logout,text_Logout:e.text_Logout,text_Title_Region:e.text_Title_Region,text_Title_Language:e.text_Title_Language,onClick_Greek_Language:e.onClick_Greek_Language,onClick_English_Language:e.onClick_English_Language,onClick_German_Language:e.onClick_German_Language}):r.default.createElement(Tt,{role:e.role,onClick_Login:e.onClick_Login,text_Login:e.text_Login,text_Title_Main:e.text_Title_Main,text_Theme_Main:e.text_Theme_Main,text_Title_Region:e.text_Title_Region,text_Title_Language:e.text_Title_Language,onClick_Greek_Language:e.onClick_Greek_Language,onClick_English_Language:e.onClick_English_Language,onClick_German_Language:e.onClick_German_Language})),exports.On_Click_Card=e=>r.default.createElement(C,{variant_CardText:e.variant_CardText,onClick:e.onClick},e.svg_Card||e.text_Card||e.img_SmallCard?r.default.createElement("header",null,e.svg_Card?r.default.createElement("figure",null,r.default.createElement(s,{Icon:e.svg_Card})):e.img_SmallCard?r.default.createElement(M,null,r.default.createElement("img",{src:e.img_SmallCard})):r.default.createElement("span",null,e.text_Card)):e.img_Card?r.default.createElement("picture",null,r.default.createElement("img",{src:e.img_Card})):null,e.text_CardTitle||e.text_CardSub?r.default.createElement("footer",null,e.text_CardTitle&&r.default.createElement("h2",null,e.text_CardTitle),e.text_CardSub&&r.default.createElement("h5",null,e.text_CardSub),e.children):null),exports.Page=Wt,exports.PageAlwaysVisible=Yt,exports.PageCards=sa,exports.PageDesktopOnly=Qt,exports.PageDesktopPadding=ea,exports.PageForty=Ut,exports.PageSingle=aa,exports.PageSingleHeader=na,exports.PageSingleRight=oa,exports.PageSingleleft=ra,exports.PageSixty=Xt,exports.PageSub=la,exports.PageSubActions=ca,exports.PageSubTitle=ia,exports.PageTitle=ta,exports.PageTools=Jt,exports.PageToolsCards=da,exports.Radio_=e=>r.default.createElement(se,{key:e.key},e.variant_Input?r.default.createElement(O,{text_Placeholder:e.text_RadioPlaceholder}):r.default.createElement("label",{for:e.id_Radio},r.default.createElement("p",null,e.text_RadioLabel)),r.default.createElement(de,{className:"RadioCircle"},r.default.createElement("input",{name:e.name_Radio,type:"radio",id:e.id_Radio,checked:e.bool_RadioChecked}),r.default.createElement("span",{className:"RadioCustom"}),r.default.createElement(s,{Icon:"Sun",class_Icon:"RadioIcon"}))),exports.RegionContext=J,exports.Sidebar_=e=>r.default.createElement(Bt,null,e.children),exports.Sidebar_Box=e=>r.default.createElement(Pt,{onClick:e.onClick},r.default.createElement("h5",{className:e.class_Name+" SidebarButtonTitle"},e.text),r.default.createElement("picture",null,e.icon?r.default.createElement(s,{Icon:e.icon}):e.img?r.default.createElement("img",{src:e.img,alt:e.alt}):null)),exports.Slider=_a,exports.SliderContainer=ka,exports.SliderContext=te,exports.SliderGrid=wa,exports.SliderOverlay=ya,exports.SliderTitle=Ea,exports.SliderWrapper=xa,exports.Slider_=e=>r.default.createElement(Vt,{className:"StoryBook_Fix1"},r.default.createElement(jt,{className:"StoryBook_Fix2",onClick:e.onClick_Close}),r.default.createElement(Kt,null,r.default.createElement(qt,null,r.default.createElement("h3",null,e.text_Title),r.default.createElement(v,{text_Button:e.text_MainButton,icon_Right:"Check",variant_Size:"normal",onClick:e.onClick_Close})),r.default.createElement(Ot,null,e.children))),exports.Steps=ma,exports.StepsActions=va,exports.StepsComplete=ga,exports.StepsContainer=fa,exports.StepsCurrent=ha,exports.StepsWrapper=pa,exports.Steps_=e=>r.default.createElement(Ft,null,r.default.createElement(Gt,{array_Steps:e.array_Steps,int_CurrentStep:e.int_CurrentStep}),r.default.createElement(Ht,null,e.array_Steps.map(((t,n)=>r.default.createElement(a.CSSTransition,{in:e.int_CurrentStep===n,timeout:500,unmountOnExit:!0,classNames:"Steps"},r.default.createElement(Dt,{className:"Steps"},t)))))),exports.Steps_Actions=e=>r.default.createElement(Nt,null,r.default.createElement(g,{icon_Left:e.icon_Grey,text_Button:e.text_Grey,onClick:e.onClick_Grey}),r.default.createElement(v,{icon_Right:e.icon_Main,text_Button:e.text_Main,onClick:e.onClick_Main})),exports.Textarea_=e=>{const[t,a]=r.default.useState(0);return r.default.createElement(ue,null,r.default.createElement(F,{placeholder:e.text_Placeholder,rows:e.rows?e.rows:"5",onChange:e.onChange_Textarea?e.onChange_Textarea:e=>(e=>{a(e.target.value.length)})(e)},e.text_Prefill),e.int_Limit?r.default.createElement(me,{capped:t>e.int_Limit}," ",r.default.createElement("span",null,t)," / ",e.int_Limit):null,e.bool_Required?r.default.createElement(z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,e.array_Errors?r.default.createElement(R,{className:"ValidatorErrors"},e.array_Errors.map((e=>r.default.createElement(Z,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,e.array_Tips&&e.array_Helpers?r.default.createElement(R,{className:"ValidatorHelpers"},e.array_Helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),e.array_Tips.map((e=>r.default.createElement(P,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.array_Tips?r.default.createElement(R,{className:"ValidatorHelpers"},e.array_Tips.map((e=>r.default.createElement(P,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.array_Helpers?r.default.createElement(R,{className:"ValidatorHelpers"},e.array_Helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null)},exports.Theme=ua,exports.ThemeContext=ee,exports.ThemeDark={id:"dark",background:"var(--dark)",color:"var(--blanc)",low:"var(--gloomDark)",mid:"var(--gloom)",high:"var(--gloomLight)",overlay:"var(--blancOverlay)",in:"var(--insetShine)",inFocus:"var(--insetShineFocus)",out:"var(--outShine)",outFocus:"var(--outShineFocus)"},exports.ThemeLight={id:"light",background:"var(--white)",color:"var(--black)",low:"var(--greyLight)",mid:"var(--grey)",high:"var(--greyDark)",overlay:"var(--blackOverlay)",in:"var(--insetShadow)",inFocus:"var(--insetShadowFocus)",out:"var(--outShadow)",outFocus:"var(--outShadowFocus)"},exports.White_Plain=e=>r.default.createElement(x,{variant_Size:e.variant_Size,onClick:e.onClick},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null);
|
|
1511
|
+
`;exports.Builder_=e=>r.default.createElement(oe,{key:e.key},e.text_BuilderTitle?r.default.createElement("h4",null,e.text_BuilderTitle):null,e.children),exports.Card_=e=>r.default.createElement(w,{onClick:propsm.onClick},e.chidlren),exports.CardsForty=ba,exports.CardsSixty=La,exports.CardsTools=Ma,exports.Checkbox_=e=>r.default.createElement(le,{key:e.key},e.variant_Input?r.default.createElement(ce,{bool_Checked:e.bool_Checked},r.default.createElement(O,{text_Placeholder:e.text_CheckboxPlaceholder,bool_DisabledInput:!e.bool_Checked})):r.default.createElement("label",{for:e.id_Checkbox},r.default.createElement("p",null,e.text_CheckboxLabel)),r.default.createElement(ie,{className:"Check"},r.default.createElement("input",{type:"checkbox",id:e.id_Checkbox,checked:e.bool_Checked,onClick:e.onClick_Checkbox}),r.default.createElement("span",{className:"CheckCustom"}),r.default.createElement(s,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Confirmation_=e=>r.default.createElement(I,null,r.default.createElement($,null,r.default.createElement("h4",null,e.text_Confirmation),r.default.createElement(T,null,r.default.createElement(v,{onClick:e.onClick_Primary,icon_Left:e.icon_Primary,text_Button:e.text_Primary}),r.default.createElement(y,{onClick:e.onClick_Secondary,icon_Left:e.icon_Secondary,text_Button:e.text_Secondary})))),exports.Cta_=c,exports.Delete_Plain=k,exports.Dropdown_=U,exports.Edit_=e=>r.default.createElement(d,{variant_Size:"normal",onClick:e.onClick},r.default.createElement(s,{Icon:e.icon})),exports.Elastic_Search=t=>{let a={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[t.key_SuggestionType]},n=t.json_File;const[o,l]=e.useState({query:"",file:n,notfoundmessage:!1,defaultValue:t.text_DefaultValue}),[i,c]=e.useState(!1),[d,u]=e.useState(0),m=e=>{t.onSuggestions(e),l({...o,query:"",defaultValue:"string"==typeof e?e:e[t.key_SuggestionType]})},h=e=>{"ArrowUp"==e.key&&(e.preventDefault(),u(0===d?i.length-1:d-1)),"ArrowDown"==e.key&&(e.preventDefault(),d===i.length-1?u(0):u(d+1)),e.key&&"Enter"===e.key&&(e.preventDefault(),m("string"==typeof i[d]?i[d]:i[d][t.key_SuggestionType]))};return e.useEffect((()=>{a.minMatchCharLength=t.minMatchCharacters?t.minMatchCharacters:1;const e=new et(n,a);let r=o.query?e.search(o.query):n;r=r.slice(0,t.size),c(r)}),[o]),e.useEffect((()=>{t.getInput&&i?.length>0?t.getInput(i[0]?.item):t.getSuggestions&&i?.length>0&&o.query.length?t.getSuggestions(i):t.getSuggestions&&!o.query.length&&t.getSuggestions([])}),[i]),console.log(o.defaultValue),r.default.createElement(at,null,r.default.createElement(nt,{id:"elasticSearch",autoComplete:"off",type:"text",value:t.value,placeholder:t.text_Placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=tt.toGreek(n);l({...o,query:t.sanitize?r:n})},defaultValue:o.defaultValue,onKeyPress:e=>h(e),onKeyDown:e=>h(e),variant_List:t.variant_List}),r.default.createElement(rt,null,t.text_Placeholder),t.bool_Required?r.default.createElement(z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,t.variant_List?r.default.createElement(v,{variant_Size:"small",text_Button:t.text_AddToList,icon_Left:"Add",className:"FormAddButton",onClick:t.onClick_AddToList}):null,o.query&&i?r.default.createElement(ot,null,i.slice(0,6).map(((e,a)=>r.default.createElement("li",{className:a===d%i.length?"ElasticSelected":"",key:a,onClick:()=>m(e?.item?e.item[t.key_SuggestionType]:e[t.key_SuggestionType])},r.default.createElement("p",null,e?.item?e.item[t.key_SuggestionType]:e[t.key_SuggestionType]))))):null,t.variant_List?r.default.createElement(lt,null,r.default.createElement("h5",null,t.text_Selecteditems),t.array_List.map((e=>r.default.createElement("li",null,r.default.createElement(s,{Icon:t.icon_List}),r.default.createElement("h6",null,e),r.default.createElement(k,{variant_Size:"small",icon_Left:"Delete",onClick:t.onCLick_ListDelete}))))):null)},exports.Focus_=e=>r.default.createElement(u,{variant_Size:e.variant_Size,onClick:e.onClick},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null),exports.Focus_Plain=e=>r.default.createElement(m,{variant_Size:e.variant_Size,onClick:e.onClick,onFocus:e.onFocus},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null),exports.Form=D,exports.FormGroup=K,exports.FormInput=V,exports.FormLabel=j,exports.FormList=q,exports.Grey_=g,exports.Grey_Link=e=>r.default.createElement(f,{variant_Size:e.variant_Size,onClick:e.onClick},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null),exports.HamContext=Q,exports.IconSvg=s,exports.Input_=O,exports.Input_Phone=t=>{const{region:a}=e.useContext(J);return r.default.createElement(ae,null,r.default.createElement(ne,null,r.default.createElement(U,null,r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},"Greece"===a?r.default.createElement("option",{selected:!0},"🇬🇷 +30"):"Deutschland"===a?r.default.createElement("option",{selected:!0},"🇩🇪 +49"):r.default.createElement("option",{selected:!0},"🇬🇷 +30"))),r.default.createElement(U,{array_Dropdown:t.array_PhoneDropdown})),r.default.createElement(O,{text_Placeholder:t.text_PhonePlaceholder,bool_Required:t.bool_Required,variant_List:!0,array_List:t.array_PhoneList,icon_List:t.icon_PhoneList}))},exports.Input_Phone_Register=t=>{const{region:a}=e.useContext(J);return r.default.createElement(re,null,r.default.createElement(U,null,"Greece"===a?r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},r.default.createElement("option",{selected:!0},"🇬🇷 +30"),r.default.createElement("option",null,"🇩🇪 +49")):"Deutschland"===a?r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},r.default.createElement("option",{selected:!0},"🇩🇪 +49"),r.default.createElement("option",null,"🇬🇷 +30")):r.default.createElement("select",{className:"Dropdown_EmojiAdapt"},r.default.createElement("option",{selected:!0},"🇬🇷 +30"),r.default.createElement("option",null,"🇩🇪 +49"))),r.default.createElement(O,{class_Input:t.class_Input,text_Placeholder:t.text_Placeholder,id_Input:t.id_Input,onChange_Input:t.onChange_Input,text_Defaultvalue:t.text_Defaultvalue,onKeyPress_Input:t.onKeyPress_Input,onKeyDown_Input:t.onKeyDown_Input}))},exports.LangContext=X,exports.Main_=v,exports.Main_Plain=y,exports.MenuContext=Y,exports.Nav_=e=>r.default.createElement(Rt,null,r.default.createElement(st,{onClick_Logo:e.onClick_Logo}),r.default.createElement(ut,{onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}),"Protected"===e.role?r.default.createElement(At,{role:e.role,img_Account:e.img_Account,img_Account_Main:e.img_Account,imgAlt_Account:e.imgAlt_Account,imgAlt_Account_Main:e.imgAlt_Account,firstname_Account:e.firstname_Account,text_Account_Main:e.firstname_Account,onClick_Account:e.onClick_Account,onCLick_Account_Main:e.onClick_Account,text_Title_Main:e.text_Title_Main,text_Theme_Main:e.text_Theme_Main,onClick_Settings_Main:e.onClick_Settings_Main,text_Settings_Main:e.text_Settings_Main,onCLick_Logout:e.onCLick_Logout,text_Logout:e.text_Logout,text_Title_Region:e.text_Title_Region,text_Title_Language:e.text_Title_Language,onClick_Greek_Language:e.onClick_Greek_Language,onClick_English_Language:e.onClick_English_Language,onClick_German_Language:e.onClick_German_Language}):r.default.createElement(Tt,{role:e.role,onClick_Login:e.onClick_Login,text_Login:e.text_Login,text_Title_Main:e.text_Title_Main,text_Theme_Main:e.text_Theme_Main,text_Title_Region:e.text_Title_Region,text_Title_Language:e.text_Title_Language,onClick_Greek_Language:e.onClick_Greek_Language,onClick_English_Language:e.onClick_English_Language,onClick_German_Language:e.onClick_German_Language})),exports.On_Click_Card=e=>r.default.createElement(C,{variant_CardText:e.variant_CardText,onClick:e.onClick},e.svg_Card||e.text_Card||e.img_SmallCard?r.default.createElement("header",null,e.svg_Card?r.default.createElement("figure",null,r.default.createElement(s,{Icon:e.svg_Card})):e.img_SmallCard?r.default.createElement(M,null,r.default.createElement("img",{src:e.img_SmallCard})):r.default.createElement("span",null,e.text_Card)):e.img_Card?r.default.createElement("picture",null,r.default.createElement("img",{src:e.img_Card})):null,e.text_CardTitle||e.text_CardSub?r.default.createElement("footer",null,e.text_CardTitle&&r.default.createElement("h2",null,e.text_CardTitle),e.text_CardSub&&r.default.createElement("h5",null,e.text_CardSub),e.children):null),exports.Page=Wt,exports.PageAlwaysVisible=Yt,exports.PageCards=sa,exports.PageDesktopOnly=Qt,exports.PageDesktopPadding=ea,exports.PageForty=Ut,exports.PageSingle=aa,exports.PageSingleHeader=na,exports.PageSingleRight=oa,exports.PageSingleleft=ra,exports.PageSixty=Xt,exports.PageSub=la,exports.PageSubActions=ca,exports.PageSubTitle=ia,exports.PageTitle=ta,exports.PageTools=Jt,exports.PageToolsCards=da,exports.Radio_=e=>r.default.createElement(se,{key:e.key},e.variant_Input?r.default.createElement(O,{text_Placeholder:e.text_RadioPlaceholder}):r.default.createElement("label",{for:e.id_Radio},r.default.createElement("p",null,e.text_RadioLabel)),r.default.createElement(de,{className:"RadioCircle"},r.default.createElement("input",{name:e.name_Radio,type:"radio",id:e.id_Radio,checked:e.bool_RadioChecked}),r.default.createElement("span",{className:"RadioCustom"}),r.default.createElement(s,{Icon:"Sun",class_Icon:"RadioIcon"}))),exports.RegionContext=J,exports.Sidebar_=e=>r.default.createElement(Bt,null,e.children),exports.Sidebar_Box=e=>r.default.createElement(Pt,{onClick:e.onClick},r.default.createElement("h5",{className:e.class_Name+" SidebarButtonTitle"},e.text),r.default.createElement("picture",null,e.icon?r.default.createElement(s,{Icon:e.icon}):e.img?r.default.createElement("img",{src:e.img,alt:e.alt}):null)),exports.Slider=_a,exports.SliderContainer=ka,exports.SliderContext=te,exports.SliderGrid=wa,exports.SliderOverlay=ya,exports.SliderTitle=Ea,exports.SliderWrapper=xa,exports.Slider_=e=>r.default.createElement(Vt,{className:"StoryBook_Fix1"},r.default.createElement(jt,{className:"StoryBook_Fix2",onClick:e.onClick_Close}),r.default.createElement(Kt,null,r.default.createElement(qt,null,r.default.createElement("h3",null,e.text_Title),r.default.createElement(v,{text_Button:e.text_MainButton,icon_Right:"Check",variant_Size:"normal",onClick:e.onClick_Close})),r.default.createElement(Ot,null,e.children))),exports.Steps=ma,exports.StepsActions=va,exports.StepsComplete=ga,exports.StepsContainer=fa,exports.StepsCurrent=ha,exports.StepsWrapper=pa,exports.Steps_=e=>r.default.createElement(Ft,null,r.default.createElement(Gt,{array_Steps:e.array_Steps,int_CurrentStep:e.int_CurrentStep}),r.default.createElement(Ht,null,e.array_Steps.map(((t,n)=>r.default.createElement(a.CSSTransition,{in:e.int_CurrentStep===n,timeout:500,unmountOnExit:!0,classNames:"Steps"},r.default.createElement(Dt,{className:"Steps"},t)))))),exports.Steps_Actions=e=>r.default.createElement(Nt,null,r.default.createElement(g,{icon_Left:e.icon_Grey,text_Button:e.text_Grey,onClick:e.onClick_Grey}),r.default.createElement(v,{icon_Right:e.icon_Main,text_Button:e.text_Main,onClick:e.onClick_Main})),exports.Textarea_=e=>{const[t,a]=r.default.useState(0);return r.default.createElement(ue,null,r.default.createElement(F,{placeholder:e.text_Placeholder,rows:e.rows?e.rows:"5",onChange:e.onChange_Textarea?e.onChange_Textarea:e=>(e=>{a(e.target.value.length)})(e)},e.text_Prefill),e.int_Limit?r.default.createElement(me,{capped:t>e.int_Limit}," ",r.default.createElement("span",null,t)," / ",e.int_Limit):null,e.bool_Required?r.default.createElement(z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,e.array_Errors?r.default.createElement(R,{className:"ValidatorErrors"},e.array_Errors.map((e=>r.default.createElement(Z,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,e.array_Tips&&e.array_Helpers?r.default.createElement(R,{className:"ValidatorHelpers"},e.array_Helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),e.array_Tips.map((e=>r.default.createElement(P,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.array_Tips?r.default.createElement(R,{className:"ValidatorHelpers"},e.array_Tips.map((e=>r.default.createElement(P,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.array_Helpers?r.default.createElement(R,{className:"ValidatorHelpers"},e.array_Helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null)},exports.Theme=ua,exports.ThemeContext=ee,exports.ThemeDark={id:"dark",background:"var(--dark)",color:"var(--blanc)",low:"var(--gloomDark)",mid:"var(--gloom)",high:"var(--gloomLight)",overlay:"var(--blancOverlay)",in:"var(--insetShine)",inFocus:"var(--insetShineFocus)",out:"var(--outShine)",outFocus:"var(--outShineFocus)"},exports.ThemeLight={id:"light",background:"var(--white)",color:"var(--black)",low:"var(--greyLight)",mid:"var(--grey)",high:"var(--greyDark)",overlay:"var(--blackOverlay)",in:"var(--insetShadow)",inFocus:"var(--insetShadowFocus)",out:"var(--outShadow)",outFocus:"var(--outShadowFocus)"},exports.White_Plain=e=>r.default.createElement(x,{variant_Size:e.variant_Size,onClick:e.onClick},e.icon_Left?r.default.createElement(s,{Icon:e.icon_Left}):null,e.text_Button?r.default.createElement("span",null,e.text_Button):null,e.icon_Right?r.default.createElement(s,{Icon:e.icon_Right}):null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.13",
|
|
4
4
|
"description": "A styled-components styles library for Doitforme platorm and universal tweeks to create your own new styled library for your project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -76,6 +76,11 @@ const OnClickSmallImg = styled.div`
|
|
|
76
76
|
}
|
|
77
77
|
`
|
|
78
78
|
|
|
79
|
+
const JobCard = styled.div`
|
|
80
|
+
display: flex;
|
|
81
|
+
gap: 1rem;
|
|
82
|
+
`
|
|
83
|
+
|
|
79
84
|
export const On_Click_Card = (props) => {
|
|
80
85
|
return (
|
|
81
86
|
<OnClickCard variant_CardText={props.variant_CardText} onClick={props.onClick}>
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './On_Click_Card.js'
|
|
1
|
+
export * from './On_Click_Card.js'
|
|
2
|
+
export * from './Card_.js'
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
import { Card } from '../../../helpers/Card'
|
|
4
|
-
|
|
5
|
-
const CardAdminUser = styled(Card)`
|
|
6
|
-
padding: var(--largePads);
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
`
|
|
9
|
-
|
|
10
|
-
const CardAdminUserRow = styled.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 1rem;
|
|
14
|
-
`
|
|
15
|
-
|
|
16
|
-
const CardAdminMain = styled.div`
|
|
17
|
-
padding: 2rem 0;
|
|
18
|
-
text-align: center;
|
|
19
|
-
|
|
20
|
-
h4{
|
|
21
|
-
font-size: 4rem;
|
|
22
|
-
color: var(--mainDark);
|
|
23
|
-
}
|
|
24
|
-
`
|
|
25
|
-
|
|
26
|
-
export const Card_Admin_User = (props) => {
|
|
27
|
-
return (
|
|
28
|
-
<CardAdminUser onClick={props.onClick}>
|
|
29
|
-
<CardAdminUserRow>
|
|
30
|
-
<h5>User id:</h5>
|
|
31
|
-
<h5>{props.id}</h5>
|
|
32
|
-
</CardAdminUserRow>
|
|
33
|
-
<CardAdminMain>
|
|
34
|
-
<h4>{props.couponUses}</h4>
|
|
35
|
-
</CardAdminMain>
|
|
36
|
-
</CardAdminUser>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
import { IconSvg } from '../../../svg/IconSvg'
|
|
4
|
-
import { Card } from '../../../helpers/Card'
|
|
5
|
-
import { Focus_ } from '../button/Focus_'
|
|
6
|
-
|
|
7
|
-
export const CardButton = styled(Card)`
|
|
8
|
-
|
|
9
|
-
header{
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
background-color: ${p => p.theme.low};
|
|
14
|
-
|
|
15
|
-
picture{
|
|
16
|
-
height: 15rem;
|
|
17
|
-
width: 15rem;
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
background-color: ${p => p.theme.mid};
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
|
|
25
|
-
svg{
|
|
26
|
-
height: 6rem;
|
|
27
|
-
fill: var(--greyDark);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
footer{
|
|
33
|
-
padding: 2rem 1rem;
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
}
|
|
38
|
-
`
|
|
39
|
-
|
|
40
|
-
export default function Card_Button(props) {
|
|
41
|
-
return (
|
|
42
|
-
<CardButton>
|
|
43
|
-
<header>
|
|
44
|
-
<picture>
|
|
45
|
-
<IconSvg Icon={props.icon} />
|
|
46
|
-
</picture>
|
|
47
|
-
</header>
|
|
48
|
-
<footer>
|
|
49
|
-
<Focus_
|
|
50
|
-
variant_Size = 'normal'
|
|
51
|
-
buttonIconLeft = {props.buttonIconLeft}
|
|
52
|
-
buttonText = {props.buttonText}
|
|
53
|
-
onClick = {props.onClick}
|
|
54
|
-
/>
|
|
55
|
-
</footer>
|
|
56
|
-
</CardButton>
|
|
57
|
-
)
|
|
58
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
import { IconSvg } from '../../../svg/IconSvg'
|
|
4
|
-
import { Card } from '../../../helpers/Card'
|
|
5
|
-
|
|
6
|
-
const CardCover = styled(Card)`
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
|
|
9
|
-
header{
|
|
10
|
-
|
|
11
|
-
figure{
|
|
12
|
-
height: 100%;
|
|
13
|
-
width: 100%;
|
|
14
|
-
|
|
15
|
-
svg{
|
|
16
|
-
width: 15rem;
|
|
17
|
-
fill: var(--focus);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
picture{
|
|
22
|
-
height: 100%;
|
|
23
|
-
width: 100%;
|
|
24
|
-
|
|
25
|
-
img{
|
|
26
|
-
height: 100%;
|
|
27
|
-
width: 100%;
|
|
28
|
-
object-fit: cover;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
map{
|
|
33
|
-
height: 100%;
|
|
34
|
-
width: 100%;
|
|
35
|
-
|
|
36
|
-
iframe{
|
|
37
|
-
height: 100%;
|
|
38
|
-
width: 100%;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
main{
|
|
44
|
-
padding: 1rem 2rem;
|
|
45
|
-
|
|
46
|
-
h5,h3{
|
|
47
|
-
text-align: ${p => p.center ? 'center' : 'left'};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
ul{
|
|
51
|
-
margin-top: 1rem;
|
|
52
|
-
|
|
53
|
-
li{
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
gap: 1rem;
|
|
57
|
-
|
|
58
|
-
svg{
|
|
59
|
-
width: var(--normalIcon);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
button{
|
|
65
|
-
padding: 1rem 0;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
`
|
|
69
|
-
|
|
70
|
-
export const Card_Cover = (props) => {
|
|
71
|
-
return (
|
|
72
|
-
<CardCover center = {props.center} onClick={props.onClick}>
|
|
73
|
-
<header>
|
|
74
|
-
{props.img ?
|
|
75
|
-
<picture>
|
|
76
|
-
<img src={props.img} />
|
|
77
|
-
</picture>
|
|
78
|
-
:props.icon ?
|
|
79
|
-
<figure>
|
|
80
|
-
<IconSvg Icon={props.icon} />
|
|
81
|
-
</figure>
|
|
82
|
-
:props.map ?
|
|
83
|
-
<map>
|
|
84
|
-
<iframe title="Doitforme" src={props.map} frameborder="0" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
|
|
85
|
-
</map>
|
|
86
|
-
:
|
|
87
|
-
null
|
|
88
|
-
}
|
|
89
|
-
</header>
|
|
90
|
-
<main>
|
|
91
|
-
{props.title ?
|
|
92
|
-
<h3>{props.title}</h3>
|
|
93
|
-
:props.smallTitle ?
|
|
94
|
-
<h5>{props.smallTitle}</h5>
|
|
95
|
-
:
|
|
96
|
-
null
|
|
97
|
-
}
|
|
98
|
-
{props.children}
|
|
99
|
-
</main>
|
|
100
|
-
</CardCover>
|
|
101
|
-
)
|
|
102
|
-
}
|
|
103
|
-
|