monica-alexandria 3.4.32 → 3.4.34
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
CHANGED
|
@@ -199,7 +199,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
199
199
|
fill: ${e=>e.theme.low};
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
`,
|
|
202
|
+
`,L=t=>e.createElement(b,{size:t.size,onClick:t.onClick},t.iconLeft?e.createElement(d,{Icon:t.iconLeft}):null,t.text?e.createElement("span",null,t.text):null,t.iconRight?e.createElement(d,{Icon:t.iconRight}):null),C=o(c)`
|
|
203
203
|
background: transparent;
|
|
204
204
|
border: 1px solid transparent;
|
|
205
205
|
|
|
@@ -221,7 +221,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
221
221
|
fill: var(--errorLight) !important;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
`,S=t=>e.createElement(
|
|
224
|
+
`,S=t=>e.createElement(C,{className:t.className,noPadding:t.noPadding,size:t.size,onClick:t.onClick},t.iconLeft?e.createElement(d,{Icon:t.iconLeft}):null,t.text?e.createElement("span",null,t.text):null,t.iconRight?e.createElement(d,{Icon:t.iconRight}):null),A=o(c)`
|
|
225
225
|
background: transparent;
|
|
226
226
|
border: 1px solid transparent;
|
|
227
227
|
|
|
@@ -360,9 +360,9 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
`,
|
|
363
|
+
`,V=t=>e.createElement(B,null,e.createElement(G,null,e.createElement("h4",null,t.message),e.createElement(P,null,e.createElement(w,{onClick:t.onClick_Main,iconLeft:t.icon_Main,text:t.text_Main}),e.createElement(_,{onClick:t.onClick_MainPlain,iconLeft:t.icon_MainPlain,text:t.text_MainPlain})))),F=o.div`
|
|
364
364
|
|
|
365
|
-
`,
|
|
365
|
+
`,H=o.div`
|
|
366
366
|
display: grid;
|
|
367
367
|
grid-template-columns: var(--smallIcon) 1fr;
|
|
368
368
|
align-items: flex-start;
|
|
@@ -372,7 +372,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
372
372
|
svg{
|
|
373
373
|
width: var(--smallIcon);
|
|
374
374
|
}
|
|
375
|
-
`,D=o(
|
|
375
|
+
`,D=o(H)`
|
|
376
376
|
|
|
377
377
|
h6{
|
|
378
378
|
color: var(--greyDark);
|
|
@@ -381,7 +381,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
381
381
|
svg{
|
|
382
382
|
fill: var(--greyDark);
|
|
383
383
|
}
|
|
384
|
-
`;o(
|
|
384
|
+
`;o(H)`
|
|
385
385
|
|
|
386
386
|
h6{
|
|
387
387
|
color: var(--success);
|
|
@@ -390,7 +390,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
390
390
|
svg{
|
|
391
391
|
fill: var(--success);
|
|
392
392
|
}
|
|
393
|
-
`;const K=o(
|
|
393
|
+
`;const K=o(H)`
|
|
394
394
|
|
|
395
395
|
h6{
|
|
396
396
|
color: var(--warning);
|
|
@@ -399,7 +399,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
399
399
|
svg{
|
|
400
400
|
fill: var(--warning);
|
|
401
401
|
}
|
|
402
|
-
`,j=o(
|
|
402
|
+
`,j=o(H)`
|
|
403
403
|
|
|
404
404
|
h6{
|
|
405
405
|
color: var(--error);
|
|
@@ -541,7 +541,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
541
541
|
fill: ${e=>e.theme.color};
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
`,te=n=>{const[r,a]=t(n.list);return e.createElement(Q,null,e.createElement(J,{value:n.value,className:n.className,placeholder:n.placeholder,id:n.id,autoComplete:"off",type:"text",onChange:n.onChange,defaultValue:n.defaultValue,onKeyPress:n.onKeyPress,onKeyDown:n.onKeyDown,disabled:n.disableInput}),e.createElement(Y,null,n.placeholder),n.list?e.createElement(w,{size:"small",text:n.add,iconLeft:"Add",className:"FormAddButton",onClick:()=>(e=>{let t=JSON.parse(JSON.stringify(n.list));t.push(e),n.updateItemList(t),a(t)})(n.value)}):null,n.required?e.createElement(q,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,n.errors?e.createElement(
|
|
544
|
+
`,te=n=>{const[r,a]=t(n.list);return e.createElement(Q,null,e.createElement(J,{value:n.value,className:n.className,placeholder:n.placeholder,id:n.id,autoComplete:"off",type:"text",onChange:n.onChange,defaultValue:n.defaultValue,onKeyPress:n.onKeyPress,onKeyDown:n.onKeyDown,disabled:n.disableInput}),e.createElement(Y,null,n.placeholder),n.list?e.createElement(w,{size:"small",text:n.add,iconLeft:"Add",className:"FormAddButton",onClick:()=>(e=>{let t=JSON.parse(JSON.stringify(n.list));t.push(e),n.updateItemList(t),a(t)})(n.value)}):null,n.required?e.createElement(q,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,n.errors?e.createElement(F,{className:"ValidatorErrors"},n.errors.map((t=>e.createElement(j,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,n.tips&&n.helpers?e.createElement(F,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),n.tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.tips?e.createElement(F,{className:"ValidatorHelpers"},n.tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.helpers?e.createElement(F,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null,n.list?e.createElement(ee,null,r.map(((t,r)=>e.createElement("li",{key:r},e.createElement(d,{Icon:n.icon_ListItem}),e.createElement("h6",null,t),e.createElement(S,{onClick:()=>(e=>{let t=JSON.parse(JSON.stringify(n.list));t.splice(e,1),n.updateItemList(t),a(t)})(r),size:"small",iconLeft:"Delete"}))))):null)},ne=o.div`
|
|
545
545
|
position: relative;
|
|
546
546
|
|
|
547
547
|
select{
|
|
@@ -574,7 +574,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
574
574
|
right: 1rem;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
`,re=t=>e.createElement(ne,null,e.createElement(d,{Icon:"Dropdown",class_Icon:"Dropdown_IconAdapt"}),t.items?e.createElement("select",{className:t.className,onChange:t.onChange,defaultValue:t.defaultValue},t.items.map(((t,n)=>e.createElement("option",{value:t.value,key:n},t.text)))):null,t.children),ae=n({language:"el",setLanguage:()=>{}}),oe=n({region:"Greece",setRegion:()=>{}}),ie=n({activeMenu:"Main",setActiveMenu:()=>{}}),ce=n({hamState:!1,setHamState:()=>{}}),le=n({theme:"light",setTheme:()=>{}}),se=n({slider:!1,toggleSlider:()=>{}}),de=n({results:
|
|
577
|
+
`,re=t=>e.createElement(ne,null,e.createElement(d,{Icon:"Dropdown",class_Icon:"Dropdown_IconAdapt"}),t.items?e.createElement("select",{className:t.className,onChange:t.onChange,defaultValue:t.defaultValue},t.items.map(((t,n)=>e.createElement("option",{value:t.value,key:n},t.text)))):null,t.children),ae=n({language:"el",setLanguage:()=>{}}),oe=n({region:"Greece",setRegion:()=>{}}),ie=n({activeMenu:"Main",setActiveMenu:()=>{}}),ce=n({hamState:!1,setHamState:()=>{}}),le=n({theme:"light",setTheme:()=>{}}),se=n({slider:!1,toggleSlider:()=>{}}),de=n({results:[],setResults:()=>{}}),me=o.div`
|
|
578
578
|
|
|
579
579
|
`,ue=o.div`
|
|
580
580
|
display: grid;
|
|
@@ -774,13 +774,13 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
774
774
|
display: none;
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
`,
|
|
777
|
+
`,Le=o.h6`
|
|
778
778
|
text-align: right;
|
|
779
779
|
|
|
780
780
|
span{
|
|
781
781
|
color: ${e=>e.capped?"var(--error)":"inherit"};
|
|
782
782
|
}
|
|
783
|
-
`,Le=t=>{const[n,r]=e.useState(0);return e.createElement(be,null,e.createElement(W,{placeholder:t.placeholder,rows:t.rows?t.rows:"5",onChange:t.onChange_Textarea?t.onChange_Textarea:e=>(e=>{r(e.target.value.length)})(e)},t.defaultValue),t.limit?e.createElement(Ce,{capped:n>t.limit}," ",e.createElement("span",null,n)," / ",t.limit):null,t.required?e.createElement(q,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.errors?e.createElement(H,{className:"ValidatorErrors"},t.errors.map((t=>e.createElement(j,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.tips&&t.helpers?e.createElement(H,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),t.tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.tips?e.createElement(H,{className:"ValidatorHelpers"},t.tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.helpers?e.createElement(H,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null)};function Se(e){return Array.isArray?Array.isArray(e):"[object Array]"===Ze(e)}function Ae(e){return"string"==typeof e}function $e(e){return"number"==typeof e}function Ie(e){return!0===e||!1===e||function(e){return Ne(e)&&null!==e}(e)&&"[object Boolean]"==Ze(e)}function Ne(e){return"object"==typeof e}function Re(e){return null!=e}function Te(e){return!e.trim().length}function Ze(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ze=Object.prototype.hasOwnProperty;class Be{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Ge(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 Ge(e){let t=null,n=null,r=null,a=1,o=null;if(Ae(e)||Se(e))r=e,t=Pe(e),n=Fe(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=Pe(i),n=Fe(i),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function Pe(e){return Se(e)?e:e.split(".")}function Fe(e){return Se(e)?e.join("."):e}var He={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)||$e(i)||Ie(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 Ve=/[^ ]+/g;class De{constructor({getFn:e=He.getFn,fieldNormWeight:t=He.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const a=t.match(Ve).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)||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(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)&&!Te(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)&&!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 Ke(e,t,{getFn:n=He.getFn,fieldNormWeight:r=He.fieldNormWeight}={}){const a=new De({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Ge)),a.setSources(t),a.create(),a}function je(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=He.distance,ignoreLocation:o=He.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=He.location,distance:a=He.distance,threshold:o=He.threshold,findAllMatches:i=He.findAllMatches,minMatchCharLength:c=He.minMatchCharLength,includeMatches:l=He.includeMatches,ignoreLocation:s=He.ignoreLocation}={}){if(t.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const d=t.length,m=e.length,u=Math.max(0,Math.min(r,m));let h=o,g=u;const p=c>1||l,v=p?Array(m):[];let y;for(;(y=e.indexOf(t,g))>-1;){let e=je(t,{currentLocation:y,expectedLocation:u,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 f=[],E=1,x=d+m;const k=1<<d-1;for(let r=0;r<d;r+=1){let o=0,c=x;for(;o<c;){je(t,{errors:r,currentLocation:u+c,expectedLocation:u,distance:a,ignoreLocation:s})<=h?o=c:x=c,c=Math.floor((x-o)/2+o)}x=c;let l=Math.max(1,u-c+1),y=i?m:Math.min(u+c,m)+d,w=Array(y+2);w[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),w[o]=(w[o+1]<<1|1)&c,r&&(w[o]|=(f[o+1]|f[o])<<1|1|f[o+1]),w[o]&k&&(E=je(t,{errors:r,currentLocation:i,expectedLocation:u,distance:a,ignoreLocation:s}),E<=h)){if(h=E,g=i,g<=u)break;l=Math.max(1,2*u-g)}}if(je(t,{errors:r+1,currentLocation:u,expectedLocation:u,distance:a,ignoreLocation:s})>h)break;f=w}const w={isMatch:g>=0,score:Math.max(.001,E)};if(p){const e=function(e=[],t=He.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&&(w.indices=e):w.isMatch=!1}return w}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=He.location,threshold:n=He.threshold,distance:r=He.distance,includeMatches:a=He.includeMatches,findAllMatches:o=He.findAllMatches,minMatchCharLength:i=He.minMatchCharLength,isCaseSensitive:c=He.isCaseSensitive,ignoreLocation:l=He.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,m=!1;this.chunks.forEach((({pattern:t,alphabet:u,startIndex:h})=>{const{isMatch:g,score:p,indices:v}=qe(e,t,u,{location:r+h,distance:a,threshold:o,findAllMatches:i,minMatchCharLength:c,includeMatches:n,ignoreLocation:l});g&&(m=!0),d+=p,g&&v&&(s=[...s,...v])}));let u={isMatch:m,score:m?d/this.chunks.length:1};return m&&n&&(u.indices=s),u}}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=He.location,threshold:n=He.threshold,distance:r=He.distance,includeMatches:a=He.includeMatches,findAllMatches:o=He.findAllMatches,minMatchCharLength:i=He.minMatchCharLength,isCaseSensitive:c=He.isCaseSensitive,ignoreLocation:l=He.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=He.isCaseSensitive,includeMatches:n=He.includeMatches,minMatchCharLength:r=He.minMatchCharLength,ignoreLocation:a=He.ignoreLocation,findAllMatches:o=He.findAllMatches,location:i=He.location,threshold:c=He.threshold,distance:l=He.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]),mt=e=>({[it]:Object.keys(e).map((t=>({[t]:e[t]})))});function ut(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(mt(e));if((e=>!Se(e)&&Ne(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:Fe(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=mt(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={...He,...t},this.options.useExtendedSearch,this._keyStore=new Be(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof De))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=He.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),$e(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:n=He.includeMatches,includeScore:r=He.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=ut(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=He.getFn,fieldNormWeight:n=He.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new De({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o},pt.config=He,pt.parseQuery=ut,function(...e){at.push(...e)}(rt);var vt=require("greek-utils");const yt=o(Q)`
|
|
783
|
+
`,Ce=t=>{const[n,r]=e.useState(0);return e.createElement(be,null,e.createElement(W,{placeholder:t.placeholder,rows:t.rows?t.rows:"5",onChange:t.onChange_Textarea?t.onChange_Textarea:e=>(e=>{r(e.target.value.length)})(e)},t.defaultValue),t.limit?e.createElement(Le,{capped:n>t.limit}," ",e.createElement("span",null,n)," / ",t.limit):null,t.required?e.createElement(q,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.errors?e.createElement(F,{className:"ValidatorErrors"},t.errors.map((t=>e.createElement(j,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.tips&&t.helpers?e.createElement(F,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),t.tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.tips?e.createElement(F,{className:"ValidatorHelpers"},t.tips.map((t=>e.createElement(D,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.helpers?e.createElement(F,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(K,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null)};function Se(e){return Array.isArray?Array.isArray(e):"[object Array]"===Ze(e)}function Ae(e){return"string"==typeof e}function $e(e){return"number"==typeof e}function Ie(e){return!0===e||!1===e||function(e){return Ne(e)&&null!==e}(e)&&"[object Boolean]"==Ze(e)}function Ne(e){return"object"==typeof e}function Re(e){return null!=e}function Te(e){return!e.trim().length}function Ze(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ze=Object.prototype.hasOwnProperty;class Be{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Ge(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 Ge(e){let t=null,n=null,r=null,a=1,o=null;if(Ae(e)||Se(e))r=e,t=Pe(e),n=Ve(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=Pe(i),n=Ve(i),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function Pe(e){return Se(e)?e:e.split(".")}function Ve(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)||$e(i)||Ie(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 He=/[^ ]+/g;class De{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(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,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)||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(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)&&!Te(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)&&!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 Ke(e,t,{getFn:n=Fe.getFn,fieldNormWeight:r=Fe.fieldNormWeight}={}){const a=new De({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Ge)),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,m=e.length,u=Math.max(0,Math.min(r,m));let h=o,g=u;const p=c>1||l,v=p?Array(m):[];let y;for(;(y=e.indexOf(t,g))>-1;){let e=je(t,{currentLocation:y,expectedLocation:u,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 f=[],E=1,x=d+m;const k=1<<d-1;for(let r=0;r<d;r+=1){let o=0,c=x;for(;o<c;){je(t,{errors:r,currentLocation:u+c,expectedLocation:u,distance:a,ignoreLocation:s})<=h?o=c:x=c,c=Math.floor((x-o)/2+o)}x=c;let l=Math.max(1,u-c+1),y=i?m:Math.min(u+c,m)+d,w=Array(y+2);w[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),w[o]=(w[o+1]<<1|1)&c,r&&(w[o]|=(f[o+1]|f[o])<<1|1|f[o+1]),w[o]&k&&(E=je(t,{errors:r,currentLocation:i,expectedLocation:u,distance:a,ignoreLocation:s}),E<=h)){if(h=E,g=i,g<=u)break;l=Math.max(1,2*u-g)}}if(je(t,{errors:r+1,currentLocation:u,expectedLocation:u,distance:a,ignoreLocation:s})>h)break;f=w}const w={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&&(w.indices=e):w.isMatch=!1}return w}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,m=!1;this.chunks.forEach((({pattern:t,alphabet:u,startIndex:h})=>{const{isMatch:g,score:p,indices:v}=qe(e,t,u,{location:r+h,distance:a,threshold:o,findAllMatches:i,minMatchCharLength:c,includeMatches:n,ignoreLocation:l});g&&(m=!0),d+=p,g&&v&&(s=[...s,...v])}));let u={isMatch:m,score:m?d/this.chunks.length:1};return m&&n&&(u.indices=s),u}}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]),mt=e=>({[it]:Object.keys(e).map((t=>({[t]:e[t]})))});function ut(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(mt(e));if((e=>!Se(e)&&Ne(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:Ve(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=mt(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 Be(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof De))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),$e(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=ut(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 De({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o},pt.config=Fe,pt.parseQuery=ut,function(...e){at.push(...e)}(rt);var vt=require("greek-utils");const yt=o(Q)`
|
|
784
784
|
`,ft=o(J)`
|
|
785
785
|
|
|
786
786
|
`,Et=o(Y)`
|
|
@@ -819,15 +819,15 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
819
819
|
|
|
820
820
|
`,bt=o(Q)`
|
|
821
821
|
|
|
822
|
-
`,
|
|
822
|
+
`,Lt=o(J)`
|
|
823
823
|
|
|
824
|
-
`,
|
|
824
|
+
`,Ct=o(Y)`
|
|
825
825
|
|
|
826
826
|
`,St=o.div`
|
|
827
827
|
position: absolute;
|
|
828
828
|
top: 1rem;
|
|
829
829
|
right: 1rem;
|
|
830
|
-
`,At=n=>{let r={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[n.suggestionType]},o=n.file;const[i,c]=t({query:"",file:o,notfoundmessage:!1,defaultValue:n.defaultValue})
|
|
830
|
+
`,At=n=>{let r={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[n.suggestionType]},o=n.file;t([]);const[i,c]=t({query:"",file:o,notfoundmessage:!1,defaultValue:n.defaultValue});return a((()=>{r.minMatchCharLength=n.minMatchCharacters?n.minMatchCharacters:1;const e=new pt(o,r);let t=i.query?e.search(i.query):o;n.updateValue(t)}),[i]),console.log(n.value),e.createElement(_t,null,e.createElement(bt,null,e.createElement(Lt,{placeholder:n.placeholder,onChange:e=>{const{target:t={}}=e,{value:r=""}=t;let a=Mt.toGreek(r);c({...i,query:n.sanitize?a:r})},defaultValue:i.defaultValue}),e.createElement(Ct,null,n.placeholder),e.createElement(St,null,e.createElement(w,{text:n.searchText,iconLeft:"Search",onClick:n.onClick}))))},$t=o.div`
|
|
831
831
|
display: flex;
|
|
832
832
|
gap: 1rem;
|
|
833
833
|
align-items: center;
|
|
@@ -1016,15 +1016,15 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1016
1016
|
height: 2px;
|
|
1017
1017
|
width: 100%;
|
|
1018
1018
|
background: ${e=>e.theme.low};
|
|
1019
|
-
`,
|
|
1019
|
+
`,Vt=o.div`
|
|
1020
1020
|
display: block;
|
|
1021
|
-
`,
|
|
1021
|
+
`,Ft=o.div`
|
|
1022
1022
|
display: none;
|
|
1023
1023
|
|
|
1024
1024
|
@media ${z.sm}{
|
|
1025
1025
|
display: block !important;
|
|
1026
1026
|
}
|
|
1027
|
-
`,
|
|
1027
|
+
`,Ht=t=>{const{setActiveMenu:n}=r(ie);return e.createElement(zt,null,e.createElement(Bt,{onClick:()=>n("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Language)),e.createElement(Gt,{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(Gt,{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(Gt,{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"))))},Dt=o.div`
|
|
1028
1028
|
display: flex;
|
|
1029
1029
|
align-items: center;
|
|
1030
1030
|
gap: .5rem;
|
|
@@ -1070,7 +1070,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1070
1070
|
justify-content: space-between;
|
|
1071
1071
|
gap: 1rem;
|
|
1072
1072
|
padding: var(--normalPads);
|
|
1073
|
-
`,qt=t=>{const{region:n}=r(oe),{setHamState:a}=r(ce),{setActiveMenu:o}=r(ie),{language:i}=r(ae);return e.createElement(zt,null,e.createElement(Bt,{onClick:()=>a(!1)},e.createElement(d,{Icon:"Xicon"}),e.createElement("h4",null,t.text_Title_Main)),e.createElement(jt,null,e.createElement("h5",null,t.text_Theme_Main),e.createElement(Kt,null)),"Protected"===t.role?e.createElement(Ht,null,e.createElement(Pt,null),e.createElement(Gt,{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(Gt,{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(Gt,{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(Gt,{onClick:()=>o("Region")},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Flag"})),e.createElement("h5",null,n)),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),"Protected"===t.role?e.createElement(Ft,null,e.createElement(Pt,null),e.createElement(Gt,{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(Ht,null,e.createElement(Pt,null),e.createElement(Gt,{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 Ot=[{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 Wt=t=>{const{region:n,setRegion:a}=r(oe),{setActiveMenu:o}=r(ie);return e.createElement(zt,null,e.createElement(Bt,{onClick:()=>o("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Region)),Ot.map(((t,r)=>e.createElement(Gt,{key:r,onClick:()=>{return e=t.country,a(e),void o("Main");var e},className:n===t.country?"SelectedRegion":""},e.createElement("main",null,e.createElement("h5",null,t.country))))))},Ut=n=>{const{activeMenu:a}=r(ie),[o,c]=t(null),l=e=>{const t=e.offsetHeight;c(t)};return e.createElement(Zt,{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(qt,{role:n.role,text_Title_Main:n.text_Title_Main,text_Theme_Main:n.text_Theme_Main,onCLick_Account_Main:n.onCLick_Account_Main,img_Account_Main:n.img_Account_Main,imgAlt_Account_Main:n.imgAlt_Account_Main,text_Account_Main:n.text_Account_Main,onClick_Settings_Main:n.onClick_Settings_Main,text_Settings_Main:n.text_Settings_Main,onCLick_Logout:n.onCLick_Logout,text_Logout:n.text_Logout,onCLick_Login:n.onCLick_Login,text_Login:n.text_Login}))),e.createElement(i,{in:"Language"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Vt,{text_Title_Language:n.text_Title_Language,onClick_Greek_Language:n.onClick_Greek_Language,onClick_English_Language:n.onClick_English_Language,onClick_German_Language:n.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(Wt,{text_Title_Region:n.text_Title_Region}))))},Xt=o.div`
|
|
1073
|
+
`,qt=t=>{const{region:n}=r(oe),{setHamState:a}=r(ce),{setActiveMenu:o}=r(ie),{language:i}=r(ae);return e.createElement(zt,null,e.createElement(Bt,{onClick:()=>a(!1)},e.createElement(d,{Icon:"Xicon"}),e.createElement("h4",null,t.text_Title_Main)),e.createElement(jt,null,e.createElement("h5",null,t.text_Theme_Main),e.createElement(Kt,null)),"Protected"===t.role?e.createElement(Ft,null,e.createElement(Pt,null),e.createElement(Gt,{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(Gt,{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(Gt,{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(Gt,{onClick:()=>o("Region")},e.createElement("main",null,e.createElement("picture",null,e.createElement(d,{Icon:"Flag"})),e.createElement("h5",null,n)),e.createElement("aside",null,e.createElement(d,{Icon:"Next"}))),"Protected"===t.role?e.createElement(Vt,null,e.createElement(Pt,null),e.createElement(Gt,{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(Ft,null,e.createElement(Pt,null),e.createElement(Gt,{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 Ot=[{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 Wt=t=>{const{region:n,setRegion:a}=r(oe),{setActiveMenu:o}=r(ie);return e.createElement(zt,null,e.createElement(Bt,{onClick:()=>o("Main")},e.createElement(d,{Icon:"Back"}),e.createElement("h4",null,t.text_Title_Region)),Ot.map(((t,r)=>e.createElement(Gt,{key:r,onClick:()=>{return e=t.country,a(e),void o("Main");var e},className:n===t.country?"SelectedRegion":""},e.createElement("main",null,e.createElement("h5",null,t.country))))))},Ut=n=>{const{activeMenu:a}=r(ie),[o,c]=t(null),l=e=>{const t=e.offsetHeight;c(t)};return e.createElement(Zt,{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(qt,{role:n.role,text_Title_Main:n.text_Title_Main,text_Theme_Main:n.text_Theme_Main,onCLick_Account_Main:n.onCLick_Account_Main,img_Account_Main:n.img_Account_Main,imgAlt_Account_Main:n.imgAlt_Account_Main,text_Account_Main:n.text_Account_Main,onClick_Settings_Main:n.onClick_Settings_Main,text_Settings_Main:n.text_Settings_Main,onCLick_Logout:n.onCLick_Logout,text_Logout:n.text_Logout,onCLick_Login:n.onCLick_Login,text_Login:n.text_Login}))),e.createElement(i,{in:"Language"===a,timeout:500,unmountOnExit:!0,classNames:"Menu-secondary",onEnter:l},e.createElement("div",{className:"Menu"},e.createElement(Ht,{text_Title_Language:n.text_Title_Language,onClick_Greek_Language:n.onClick_Greek_Language,onClick_English_Language:n.onClick_English_Language,onClick_German_Language:n.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(Wt,{text_Title_Region:n.text_Title_Region}))))},Xt=o.div`
|
|
1074
1074
|
justify-self: flex-end;
|
|
1075
1075
|
display: flex;
|
|
1076
1076
|
align-items: center;
|
|
@@ -1313,7 +1313,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1313
1313
|
@media ${z.md} {
|
|
1314
1314
|
grid-template-columns: 1fr;
|
|
1315
1315
|
}
|
|
1316
|
-
`,
|
|
1316
|
+
`,Ln=o.div`
|
|
1317
1317
|
display: grid;
|
|
1318
1318
|
grid-template-columns: 1fr minmax(40rem, 40%);
|
|
1319
1319
|
grid-gap: 4rem;
|
|
@@ -1322,7 +1322,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1322
1322
|
@media ${z.md} {
|
|
1323
1323
|
grid-template-columns: 1fr;
|
|
1324
1324
|
}
|
|
1325
|
-
`,
|
|
1325
|
+
`,Cn=o.div`
|
|
1326
1326
|
padding: 0 4rem 2rem 13rem;
|
|
1327
1327
|
`,Sn=o.div`
|
|
1328
1328
|
display: grid;
|
|
@@ -1427,11 +1427,11 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1427
1427
|
`,Pn=o.div`
|
|
1428
1428
|
padding: 10rem 1rem 2rem 1rem;
|
|
1429
1429
|
text-align: center;
|
|
1430
|
-
`,
|
|
1430
|
+
`,Vn=o.div`
|
|
1431
1431
|
display: flex;
|
|
1432
1432
|
align-items: center;
|
|
1433
1433
|
gap: 1rem;
|
|
1434
|
-
`,
|
|
1434
|
+
`,Fn=o.div`
|
|
1435
1435
|
display: grid;
|
|
1436
1436
|
grid-template-columns: 1fr 1fr 1fr;
|
|
1437
1437
|
align-items: flex-start;
|
|
@@ -1452,7 +1452,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1452
1452
|
@media ${z.xs}{
|
|
1453
1453
|
grid-template-columns: 1fr;
|
|
1454
1454
|
}
|
|
1455
|
-
`,
|
|
1455
|
+
`,Hn=o(Fn)`
|
|
1456
1456
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
1457
1457
|
`,Dn={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)"},Kn={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)"},jn=o.div`
|
|
1458
1458
|
width: 100%;
|
|
@@ -1603,4 +1603,4 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1603
1603
|
@media ${z.xs} {
|
|
1604
1604
|
grid-template-columns: 1fr;
|
|
1605
1605
|
}
|
|
1606
|
-
`;export{ye as Builder_,I as Card,ir as CardsForty,cr as CardsSixty,or as CardsTools,ke as Checkbox_,
|
|
1606
|
+
`;export{ye as Builder_,I as Card,ir as CardsForty,cr as CardsSixty,or as CardsTools,ke as Checkbox_,V as Confirmation_,s as Cta_,S as Delete_Plain,re as Dropdown_,u as Edit_,wt as Elastic_Search,g as Focus_,v as Focus_Plain,X as Form,Q as FormGroup,J as FormInput,Y as FormLabel,ee as FormList,At as Google_Search,f as Grey_,x as Grey_Link,ce as HamContext,d as IconSvg,te as Input_,he as Input_Phone,pe as Input_Phone_Register,ae as LangContext,w as Main_,_ as Main_Plain,ie as MenuContext,rn as Nav_,Z as On_Click_Card,_n as Page,$n as PageAlwaysVisible,Fn as PageCards,In as PageDesktopOnly,Nn as PageDesktopPadding,bn as PageForty,Tn as PageSingle,Zn as PageSingleHeader,Bn as PageSingleRight,zn as PageSingleleft,Ln as PageSixty,Gn as PageSub,Vn as PageSubActions,Pn as PageSubTitle,Rn as PageTitle,Cn as PageTools,Hn as PageToolsCards,An as PageToolsForty,Sn as PageToolsSixty,_e as Radio_,$ as Red_,oe as RegionContext,de as SearchContext,on as Sidebar_,ln as Sidebar_Box,Yn as Slider,nr as SliderContainer,se as SliderContext,rr as SliderGrid,Qn as SliderOverlay,tr as SliderTitle,er as SliderWrapper,Mn as Slider_,qn as Steps,Jn as StepsActions,Wn as StepsComplete,Un as StepsContainer,On as StepsCurrent,Xn as StepsWrapper,yn as Steps_,dn as Steps_Actions,Ce as Textarea_,jn as Theme,le as ThemeContext,Kn as ThemeDark,Dn as ThemeLight,L as White_Plain,z as device};
|
package/dist/index.js
CHANGED
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
right: 1rem;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
`,W=e=>r.default.createElement(q,null,r.default.createElement(s,{Icon:"Dropdown",class_Icon:"Dropdown_IconAdapt"}),e.items?r.default.createElement("select",{className:e.className,onChange:e.onChange,defaultValue:e.defaultValue},e.items.map(((e,t)=>r.default.createElement("option",{value:e.value,key:t},e.text)))):null,e.children),U=e.createContext({language:"el",setLanguage:()=>{}}),X=e.createContext({region:"Greece",setRegion:()=>{}}),J=e.createContext({activeMenu:"Main",setActiveMenu:()=>{}}),Y=e.createContext({hamState:!1,setHamState:()=>{}}),Q=e.createContext({theme:"light",setTheme:()=>{}}),ee=e.createContext({slider:!1,toggleSlider:()=>{}}),te=e.createContext({results:
|
|
577
|
+
`,W=e=>r.default.createElement(q,null,r.default.createElement(s,{Icon:"Dropdown",class_Icon:"Dropdown_IconAdapt"}),e.items?r.default.createElement("select",{className:e.className,onChange:e.onChange,defaultValue:e.defaultValue},e.items.map(((e,t)=>r.default.createElement("option",{value:e.value,key:t},e.text)))):null,e.children),U=e.createContext({language:"el",setLanguage:()=>{}}),X=e.createContext({region:"Greece",setRegion:()=>{}}),J=e.createContext({activeMenu:"Main",setActiveMenu:()=>{}}),Y=e.createContext({hamState:!1,setHamState:()=>{}}),Q=e.createContext({theme:"light",setTheme:()=>{}}),ee=e.createContext({slider:!1,toggleSlider:()=>{}}),te=e.createContext({results:[],setResults:()=>{}}),ae=l.default.div`
|
|
578
578
|
|
|
579
579
|
`,ne=l.default.div`
|
|
580
580
|
display: grid;
|
|
@@ -1603,4 +1603,4 @@
|
|
|
1603
1603
|
@media ${S.xs} {
|
|
1604
1604
|
grid-template-columns: 1fr;
|
|
1605
1605
|
}
|
|
1606
|
-
`;exports.Builder_=e=>r.default.createElement(le,{key:e.key},e.title?r.default.createElement("h4",null,e.title):null,e.children),exports.Card=M,exports.CardsForty=Ra,exports.CardsSixty=Za,exports.CardsTools=Na,exports.Checkbox_=e=>r.default.createElement(oe,{className:e.className,key:e.key},e.withInput?r.default.createElement(ce,{checked:e.checked},r.default.createElement(O,{placeholder:e.placeholder,disableInput:!e.checked})):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text)),r.default.createElement(ie,{className:"Check"},r.default.createElement("input",{type:"checkbox",id:e.id,checked:e.checked,onClick:e.onClick,onChange:e.onChange}),r.default.createElement("span",{className:"CheckCustom"}),r.default.createElement(s,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Confirmation_=e=>r.default.createElement(A,null,r.default.createElement(I,null,r.default.createElement("h4",null,e.message),r.default.createElement($,null,r.default.createElement(v,{onClick:e.onClick_Main,iconLeft:e.icon_Main,text:e.text_Main}),r.default.createElement(x,{onClick:e.onClick_MainPlain,iconLeft:e.icon_MainPlain,text:e.text_MainPlain})))),exports.Cta_=c,exports.Delete_Plain=w,exports.Dropdown_=W,exports.Edit_=e=>r.default.createElement(d,{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.suggestionType]},n=t.file;const[l,o]=e.useState({query:"",file:n,notfoundmessage:!1,defaultValue:t.defaultValue}),[i,c]=e.useState(!1),[d,u]=e.useState(0),[m,h]=e.useState(t.list),g=e=>{t.onSuggestions(e),o({...l,query:"",defaultValue:"string"==typeof e?e:e[t.suggestionType]})},f=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(),g("string"==typeof i[d]?i[d]:i[d][t.suggestionType]))};return e.useEffect((()=>{a.minMatchCharLength=t.minMatchCharacters?t.minMatchCharacters:1;const e=new et(n,a);let r=l.query?e.search(l.query):n;r=r.slice(0,t.size),c(r)}),[l]),e.useEffect((()=>{t.getInput&&i?.length>0?t.getInput(i[0]?.item):t.getSuggestions&&i?.length>0&&l.query.length?t.getSuggestions(i):t.getSuggestions&&!l.query.length&&t.getSuggestions([])}),[i]),r.default.createElement(at,null,r.default.createElement(nt,{id:"elasticSearch",autoComplete:"off",type:"text",value:t.value,placeholder:t.placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=tt.toGreek(n);o({...l,query:t.sanitize?r:n})},defaultValue:l.defaultValue,onKeyPress:e=>f(e),onKeyDown:e=>f(e),list:t.list}),r.default.createElement(rt,null,t.placeholder),t.required?r.default.createElement(B,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,t.list?r.default.createElement(v,{size:"small",text:t.add,iconLeft:"Add",className:"FormAddButton",onClick:()=>(e=>{let a=JSON.parse(JSON.stringify(t.list));a.push(e),t.updateItemList(a),h(a)})(t.value)}):null,l.query&&i?r.default.createElement(lt,null,i.slice(0,6).map(((e,a)=>r.default.createElement("li",{className:a===d%i.length?"ElasticSelected":"",key:a,onClick:()=>g(e?.item?e.item[t.suggestionType]:e[t.suggestionType])},r.default.createElement("p",null,e?.item?e.item[t.suggestionType]:e[t.suggestionType]))))):null,t.list?r.default.createElement(ot,null,r.default.createElement("h5",null,t.listItemTitle),m.map(((e,a)=>r.default.createElement("li",{key:a},r.default.createElement(s,{Icon:t.icon_ListItem}),r.default.createElement("h6",null,e),r.default.createElement(w,{variant_Size:"small",icon_Left:"Delete",onClick:()=>(e=>{let a=JSON.parse(JSON.stringify(t.list));a.splice(e,1),t.updateItemList(a),h(a)})(a)}))))):null)},exports.Focus_=e=>r.default.createElement(u,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.Focus_Plain=e=>r.default.createElement(m,{size:e.size,onClick:e.onClick,onFocus:e.onFocus},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.Form=H,exports.FormGroup=K,exports.FormInput=V,exports.FormLabel=D,exports.FormList=j,exports.Google_Search=t=>{let a={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[t.suggestionType]},n=t.file;const[l,o]=e.useState({query:"",file:n,notfoundmessage:!1,defaultValue:t.defaultValue}),{results:i,setResults:c}=useContext(te);return e.useEffect((()=>{a.minMatchCharLength=t.minMatchCharacters?t.minMatchCharacters:1;const e=new et(n,a);let r=l.query?e.search(l.query):n;c(r)}),[l]),r.default.createElement(ct,null,r.default.createElement(st,null,r.default.createElement(dt,{placeholder:t.placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=it.toGreek(n);o({...l,query:t.sanitize?r:n})},defaultValue:l.defaultValue}),r.default.createElement(ut,null,t.placeholder),r.default.createElement(mt,null,r.default.createElement(v,{text:t.searchText,iconLeft:"Search",onClick:t.onClick}))))},exports.Grey_=g,exports.Grey_Link=e=>r.default.createElement(f,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.HamContext=Y,exports.IconSvg=s,exports.Input_=O,exports.Input_Phone=t=>{const{region:a}=e.useContext(X);return r.default.createElement(ae,null,r.default.createElement(ne,null,r.default.createElement(W,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(W,{items:t.array_PhoneDropdown})),r.default.createElement(O,{placeholder:t.text_PhonePlaceholder,required:t.required,list:t.array_PhoneList,icon_ListItem:t.icon_PhoneList}))},exports.Input_Phone_Register=t=>{const{region:a}=e.useContext(X);return r.default.createElement(re,null,r.default.createElement(W,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,placeholder:t.placeholder,id:t.id,onChange:t.onChange,defaultValue:t.defaultValue,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown}))},exports.LangContext=U,exports.Main_=v,exports.Main_Plain=x,exports.MenuContext=J,exports.Nav_=e=>r.default.createElement(Gt,null,r.default.createElement(ft,{onClick_Logo:e.onClick_Logo}),r.default.createElement(vt,{onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}),"Protected"===e.role?r.default.createElement(Zt,{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(zt,{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,{className:e.className,imgBevahe:e.imgBevahe,onClick:e.onClick},e.icon||e.header||e.imgSmall?r.default.createElement("header",null,e.icon?r.default.createElement("figure",null,r.default.createElement(s,{Icon:e.icon})):e.imgSmall?r.default.createElement(L,null,r.default.createElement("img",{src:e.imgSmall})):r.default.createElement(b,{headerColor:e.headerColor},e.header)):e.img?r.default.createElement("picture",null,r.default.createElement("img",{src:e.img})):null,e.title||e.subtitle?r.default.createElement("footer",null,e.title&&r.default.createElement("h2",null,e.title),e.subtitle&&r.default.createElement("h5",null,e.subtitle),e.children):null),exports.Page=ea,exports.PageAlwaysVisible=oa,exports.PageCards=va,exports.PageDesktopOnly=ia,exports.PageDesktopPadding=ca,exports.PageForty=ta,exports.PageSingle=da,exports.PageSingleHeader=ua,exports.PageSingleRight=ha,exports.PageSingleleft=ma,exports.PageSixty=aa,exports.PageSub=ga,exports.PageSubActions=pa,exports.PageSubTitle=fa,exports.PageTitle=sa,exports.PageTools=na,exports.PageToolsCards=ya,exports.PageToolsForty=la,exports.PageToolsSixty=ra,exports.Radio_=e=>r.default.createElement(se,{key:e.key},e.withInput?r.default.createElement(O,{placeholder:e.placeholder}):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text)),r.default.createElement(de,{className:"RadioCircle"},r.default.createElement("input",{name:e.name,type:"radio",id:e.id,checked:e.checked}),r.default.createElement("span",{className:"RadioCustom"}),r.default.createElement(s,{Icon:"Sun",class_Icon:"RadioIcon"}))),exports.Red_=e=>r.default.createElement(_,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.RegionContext=X,exports.SearchContext=te,exports.Sidebar_=e=>r.default.createElement(Ft,null,e.children),exports.Sidebar_Box=e=>r.default.createElement(Ht,{onClick:e.onClick},r.default.createElement("h5",{className:e.className+" 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=ba,exports.SliderContainer=Ia,exports.SliderContext=ee,exports.SliderGrid=$a,exports.SliderOverlay=La,exports.SliderTitle=Aa,exports.SliderWrapper=Sa,exports.Slider_=e=>r.default.createElement(Ut,{className:e.className},r.default.createElement(Xt,{className:"StoryBook_Fix2",onClick:e.onClose}),r.default.createElement(Jt,null,r.default.createElement(Yt,null,r.default.createElement("h3",null,e.title),r.default.createElement(v,{text:e.done,iconRight:"Check",size:"normal",onClick:e.onClick})),r.default.createElement(Qt,null,e.children))),exports.Steps=Ea,exports.StepsActions=Ca,exports.StepsComplete=wa,exports.StepsContainer=_a,exports.StepsCurrent=ka,exports.StepsWrapper=Ma,exports.Steps_=e=>r.default.createElement(Ot,null,r.default.createElement(jt,{steps:e.steps,currentStep:e.currentStep}),r.default.createElement(qt,null,e.steps.map(((t,n)=>r.default.createElement(a.CSSTransition,{in:e.currentStep===n,timeout:500,unmountOnExit:!0,classNames:"Steps"},r.default.createElement(Wt,{className:"Steps"},t)))))),exports.Steps_Actions=e=>r.default.createElement(Vt,null,r.default.createElement(g,{iconLeft:e.icon_Grey,text:e.text_Grey,onClick:e.onClick_Grey}),r.default.createElement(v,{iconRight:e.icon_Main,text: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(G,{placeholder:e.placeholder,rows:e.rows?e.rows:"5",onChange:e.onChange_Textarea?e.onChange_Textarea:e=>(e=>{a(e.target.value.length)})(e)},e.defaultValue),e.limit?r.default.createElement(me,{capped:t>e.limit}," ",r.default.createElement("span",null,t)," / ",e.limit):null,e.required?r.default.createElement(B,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,e.errors?r.default.createElement(T,{className:"ValidatorErrors"},e.errors.map((e=>r.default.createElement(P,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,e.tips&&e.helpers?r.default.createElement(T,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(Z,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),e.tips.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.tips?r.default.createElement(T,{className:"ValidatorHelpers"},e.tips.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.helpers?r.default.createElement(T,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(Z,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null)},exports.Theme=xa,exports.ThemeContext=Q,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(E,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.device=S;
|
|
1606
|
+
`;exports.Builder_=e=>r.default.createElement(le,{key:e.key},e.title?r.default.createElement("h4",null,e.title):null,e.children),exports.Card=M,exports.CardsForty=Ra,exports.CardsSixty=Za,exports.CardsTools=Na,exports.Checkbox_=e=>r.default.createElement(oe,{className:e.className,key:e.key},e.withInput?r.default.createElement(ce,{checked:e.checked},r.default.createElement(O,{placeholder:e.placeholder,disableInput:!e.checked})):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text)),r.default.createElement(ie,{className:"Check"},r.default.createElement("input",{type:"checkbox",id:e.id,checked:e.checked,onClick:e.onClick,onChange:e.onChange}),r.default.createElement("span",{className:"CheckCustom"}),r.default.createElement(s,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Confirmation_=e=>r.default.createElement(A,null,r.default.createElement(I,null,r.default.createElement("h4",null,e.message),r.default.createElement($,null,r.default.createElement(v,{onClick:e.onClick_Main,iconLeft:e.icon_Main,text:e.text_Main}),r.default.createElement(x,{onClick:e.onClick_MainPlain,iconLeft:e.icon_MainPlain,text:e.text_MainPlain})))),exports.Cta_=c,exports.Delete_Plain=w,exports.Dropdown_=W,exports.Edit_=e=>r.default.createElement(d,{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.suggestionType]},n=t.file;const[l,o]=e.useState({query:"",file:n,notfoundmessage:!1,defaultValue:t.defaultValue}),[i,c]=e.useState(!1),[d,u]=e.useState(0),[m,h]=e.useState(t.list),g=e=>{t.onSuggestions(e),o({...l,query:"",defaultValue:"string"==typeof e?e:e[t.suggestionType]})},f=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(),g("string"==typeof i[d]?i[d]:i[d][t.suggestionType]))};return e.useEffect((()=>{a.minMatchCharLength=t.minMatchCharacters?t.minMatchCharacters:1;const e=new et(n,a);let r=l.query?e.search(l.query):n;r=r.slice(0,t.size),c(r)}),[l]),e.useEffect((()=>{t.getInput&&i?.length>0?t.getInput(i[0]?.item):t.getSuggestions&&i?.length>0&&l.query.length?t.getSuggestions(i):t.getSuggestions&&!l.query.length&&t.getSuggestions([])}),[i]),r.default.createElement(at,null,r.default.createElement(nt,{id:"elasticSearch",autoComplete:"off",type:"text",value:t.value,placeholder:t.placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=tt.toGreek(n);o({...l,query:t.sanitize?r:n})},defaultValue:l.defaultValue,onKeyPress:e=>f(e),onKeyDown:e=>f(e),list:t.list}),r.default.createElement(rt,null,t.placeholder),t.required?r.default.createElement(B,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,t.list?r.default.createElement(v,{size:"small",text:t.add,iconLeft:"Add",className:"FormAddButton",onClick:()=>(e=>{let a=JSON.parse(JSON.stringify(t.list));a.push(e),t.updateItemList(a),h(a)})(t.value)}):null,l.query&&i?r.default.createElement(lt,null,i.slice(0,6).map(((e,a)=>r.default.createElement("li",{className:a===d%i.length?"ElasticSelected":"",key:a,onClick:()=>g(e?.item?e.item[t.suggestionType]:e[t.suggestionType])},r.default.createElement("p",null,e?.item?e.item[t.suggestionType]:e[t.suggestionType]))))):null,t.list?r.default.createElement(ot,null,r.default.createElement("h5",null,t.listItemTitle),m.map(((e,a)=>r.default.createElement("li",{key:a},r.default.createElement(s,{Icon:t.icon_ListItem}),r.default.createElement("h6",null,e),r.default.createElement(w,{variant_Size:"small",icon_Left:"Delete",onClick:()=>(e=>{let a=JSON.parse(JSON.stringify(t.list));a.splice(e,1),t.updateItemList(a),h(a)})(a)}))))):null)},exports.Focus_=e=>r.default.createElement(u,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.Focus_Plain=e=>r.default.createElement(m,{size:e.size,onClick:e.onClick,onFocus:e.onFocus},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.Form=H,exports.FormGroup=K,exports.FormInput=V,exports.FormLabel=D,exports.FormList=j,exports.Google_Search=t=>{let a={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[t.suggestionType]},n=t.file;e.useState([]);const[l,o]=e.useState({query:"",file:n,notfoundmessage:!1,defaultValue:t.defaultValue});return e.useEffect((()=>{a.minMatchCharLength=t.minMatchCharacters?t.minMatchCharacters:1;const e=new et(n,a);let r=l.query?e.search(l.query):n;t.updateValue(r)}),[l]),console.log(t.value),r.default.createElement(ct,null,r.default.createElement(st,null,r.default.createElement(dt,{placeholder:t.placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=it.toGreek(n);o({...l,query:t.sanitize?r:n})},defaultValue:l.defaultValue}),r.default.createElement(ut,null,t.placeholder),r.default.createElement(mt,null,r.default.createElement(v,{text:t.searchText,iconLeft:"Search",onClick:t.onClick}))))},exports.Grey_=g,exports.Grey_Link=e=>r.default.createElement(f,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.HamContext=Y,exports.IconSvg=s,exports.Input_=O,exports.Input_Phone=t=>{const{region:a}=e.useContext(X);return r.default.createElement(ae,null,r.default.createElement(ne,null,r.default.createElement(W,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(W,{items:t.array_PhoneDropdown})),r.default.createElement(O,{placeholder:t.text_PhonePlaceholder,required:t.required,list:t.array_PhoneList,icon_ListItem:t.icon_PhoneList}))},exports.Input_Phone_Register=t=>{const{region:a}=e.useContext(X);return r.default.createElement(re,null,r.default.createElement(W,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,placeholder:t.placeholder,id:t.id,onChange:t.onChange,defaultValue:t.defaultValue,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown}))},exports.LangContext=U,exports.Main_=v,exports.Main_Plain=x,exports.MenuContext=J,exports.Nav_=e=>r.default.createElement(Gt,null,r.default.createElement(ft,{onClick_Logo:e.onClick_Logo}),r.default.createElement(vt,{onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}),"Protected"===e.role?r.default.createElement(Zt,{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(zt,{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,{className:e.className,imgBevahe:e.imgBevahe,onClick:e.onClick},e.icon||e.header||e.imgSmall?r.default.createElement("header",null,e.icon?r.default.createElement("figure",null,r.default.createElement(s,{Icon:e.icon})):e.imgSmall?r.default.createElement(L,null,r.default.createElement("img",{src:e.imgSmall})):r.default.createElement(b,{headerColor:e.headerColor},e.header)):e.img?r.default.createElement("picture",null,r.default.createElement("img",{src:e.img})):null,e.title||e.subtitle?r.default.createElement("footer",null,e.title&&r.default.createElement("h2",null,e.title),e.subtitle&&r.default.createElement("h5",null,e.subtitle),e.children):null),exports.Page=ea,exports.PageAlwaysVisible=oa,exports.PageCards=va,exports.PageDesktopOnly=ia,exports.PageDesktopPadding=ca,exports.PageForty=ta,exports.PageSingle=da,exports.PageSingleHeader=ua,exports.PageSingleRight=ha,exports.PageSingleleft=ma,exports.PageSixty=aa,exports.PageSub=ga,exports.PageSubActions=pa,exports.PageSubTitle=fa,exports.PageTitle=sa,exports.PageTools=na,exports.PageToolsCards=ya,exports.PageToolsForty=la,exports.PageToolsSixty=ra,exports.Radio_=e=>r.default.createElement(se,{key:e.key},e.withInput?r.default.createElement(O,{placeholder:e.placeholder}):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text)),r.default.createElement(de,{className:"RadioCircle"},r.default.createElement("input",{name:e.name,type:"radio",id:e.id,checked:e.checked}),r.default.createElement("span",{className:"RadioCustom"}),r.default.createElement(s,{Icon:"Sun",class_Icon:"RadioIcon"}))),exports.Red_=e=>r.default.createElement(_,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.RegionContext=X,exports.SearchContext=te,exports.Sidebar_=e=>r.default.createElement(Ft,null,e.children),exports.Sidebar_Box=e=>r.default.createElement(Ht,{onClick:e.onClick},r.default.createElement("h5",{className:e.className+" 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=ba,exports.SliderContainer=Ia,exports.SliderContext=ee,exports.SliderGrid=$a,exports.SliderOverlay=La,exports.SliderTitle=Aa,exports.SliderWrapper=Sa,exports.Slider_=e=>r.default.createElement(Ut,{className:e.className},r.default.createElement(Xt,{className:"StoryBook_Fix2",onClick:e.onClose}),r.default.createElement(Jt,null,r.default.createElement(Yt,null,r.default.createElement("h3",null,e.title),r.default.createElement(v,{text:e.done,iconRight:"Check",size:"normal",onClick:e.onClick})),r.default.createElement(Qt,null,e.children))),exports.Steps=Ea,exports.StepsActions=Ca,exports.StepsComplete=wa,exports.StepsContainer=_a,exports.StepsCurrent=ka,exports.StepsWrapper=Ma,exports.Steps_=e=>r.default.createElement(Ot,null,r.default.createElement(jt,{steps:e.steps,currentStep:e.currentStep}),r.default.createElement(qt,null,e.steps.map(((t,n)=>r.default.createElement(a.CSSTransition,{in:e.currentStep===n,timeout:500,unmountOnExit:!0,classNames:"Steps"},r.default.createElement(Wt,{className:"Steps"},t)))))),exports.Steps_Actions=e=>r.default.createElement(Vt,null,r.default.createElement(g,{iconLeft:e.icon_Grey,text:e.text_Grey,onClick:e.onClick_Grey}),r.default.createElement(v,{iconRight:e.icon_Main,text: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(G,{placeholder:e.placeholder,rows:e.rows?e.rows:"5",onChange:e.onChange_Textarea?e.onChange_Textarea:e=>(e=>{a(e.target.value.length)})(e)},e.defaultValue),e.limit?r.default.createElement(me,{capped:t>e.limit}," ",r.default.createElement("span",null,t)," / ",e.limit):null,e.required?r.default.createElement(B,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,e.errors?r.default.createElement(T,{className:"ValidatorErrors"},e.errors.map((e=>r.default.createElement(P,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,e.tips&&e.helpers?r.default.createElement(T,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(Z,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),e.tips.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.tips?r.default.createElement(T,{className:"ValidatorHelpers"},e.tips.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.helpers?r.default.createElement(T,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(Z,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null)},exports.Theme=xa,exports.ThemeContext=Q,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(E,{size:e.size,onClick:e.onClick},e.iconLeft?r.default.createElement(s,{Icon:e.iconLeft}):null,e.text?r.default.createElement("span",null,e.text):null,e.iconRight?r.default.createElement(s,{Icon:e.iconRight}):null),exports.device=S;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.34",
|
|
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",
|
|
@@ -45,6 +45,8 @@ export const Google_Search = (props) => {
|
|
|
45
45
|
|
|
46
46
|
let file = props.file;
|
|
47
47
|
|
|
48
|
+
const [results, setResults] = useState([]);
|
|
49
|
+
|
|
48
50
|
const [currentSearch, setCurrentSearch] = useState({
|
|
49
51
|
query: "",
|
|
50
52
|
file,
|
|
@@ -52,8 +54,6 @@ export const Google_Search = (props) => {
|
|
|
52
54
|
defaultValue : props.defaultValue
|
|
53
55
|
})
|
|
54
56
|
|
|
55
|
-
const { results, setResults } = useContext(SearchContext);
|
|
56
|
-
|
|
57
57
|
const onChange = (e) => {
|
|
58
58
|
const { target = {} } = e;
|
|
59
59
|
const { value = "" } = target;
|
|
@@ -66,10 +66,13 @@ export const Google_Search = (props) => {
|
|
|
66
66
|
const fuse = new Fuse(file, fuseOptions);
|
|
67
67
|
let suggestionsTemp = currentSearch.query ? fuse.search(currentSearch.query) : file;
|
|
68
68
|
|
|
69
|
-
setResults(suggestionsTemp)
|
|
69
|
+
// setResults(suggestionsTemp)
|
|
70
|
+
props.updateValue(suggestionsTemp);
|
|
70
71
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71
72
|
},[currentSearch])
|
|
72
73
|
|
|
74
|
+
console.log(props.value);
|
|
75
|
+
|
|
73
76
|
return (
|
|
74
77
|
<GoogleSearch>
|
|
75
78
|
<GoogleForm>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { useContext, useState } from "react"
|
|
1
2
|
import { Builder_, Google_Search } from "../../export/components"
|
|
3
|
+
import { SearchContext } from "../../export/contexts"
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
export default{
|
|
@@ -16,12 +18,11 @@ const bob = [
|
|
|
16
18
|
{Title: 'LfSilio'}
|
|
17
19
|
]
|
|
18
20
|
|
|
19
|
-
const array = ['Volos', 'Karditsa']
|
|
20
|
-
|
|
21
21
|
export const Google = (args) =>
|
|
22
|
+
|
|
22
23
|
<Builder_
|
|
23
24
|
title = 'Seach for something...'
|
|
24
|
-
>
|
|
25
|
+
>
|
|
25
26
|
<Google_Search {...args}/>
|
|
26
27
|
</Builder_>
|
|
27
28
|
Google.args = {
|