monica-alexandria 3.4.0 → 3.4.3

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
@@ -522,7 +522,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
522
522
  fill: ${e=>e.theme.color};
523
523
  }
524
524
  }
525
- `,Y=n=>{const[r,a]=t(n.list);return e.createElement(X,null,e.createElement(W,{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(U,null,n.placeholder),n.list?e.createElement(w,{size:"small",text:n.add,iconLeft:"Add",className:"FormAddButton",onClick:n.onClick_Add}):null,n.required?e.createElement(D,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,n.errors?e.createElement(G,{className:"ValidatorErrors"},n.errors.map((t=>e.createElement(V,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,n.tips&&n.helpers?e.createElement(G,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),n.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.tips?e.createElement(G,{className:"ValidatorHelpers"},n.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.helpers?e.createElement(G,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null,n.list?e.createElement(J,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)},Q=o.div`
525
+ `,Y=n=>{const[r,a]=t(n.list);return e.createElement(X,null,e.createElement(W,{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(U,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(D,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,n.errors?e.createElement(G,{className:"ValidatorErrors"},n.errors.map((t=>e.createElement(V,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,n.tips&&n.helpers?e.createElement(G,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),n.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.tips?e.createElement(G,{className:"ValidatorHelpers"},n.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.helpers?e.createElement(G,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null,n.list?e.createElement(J,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)},Q=o.div`
526
526
  position: relative;
527
527
 
528
528
  select{
@@ -786,7 +786,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
786
786
  h5{
787
787
  padding: var(--smallPads);
788
788
  }
789
- `,ft=n=>{let r={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[n.suggestionType]},o=n.json_File;const[i,c]=t({query:"",file:o,notfoundmessage:!1,defaultValue:n.defaultValue}),[l,s]=t(!1),[u,m]=t(0),[h,g]=t(n.list),p=e=>{n.onSuggestions(e),c({...i,query:"",defaultValue:"string"==typeof e?e:e[n.suggestionType]})},v=e=>{"ArrowUp"==e.key&&(e.preventDefault(),m(0===u?l.length-1:u-1)),"ArrowDown"==e.key&&(e.preventDefault(),u===l.length-1?m(0):m(u+1)),e.key&&"Enter"===e.key&&(e.preventDefault(),p("string"==typeof l[u]?l[u]:l[u][n.suggestionType]))};return a((()=>{r.minMatchCharLength=n.minMatchCharacters?n.minMatchCharacters:1;const e=new ut(o,r);let t=i.query?e.search(i.query):o;t=t.slice(0,n.size),s(t)}),[i]),a((()=>{n.getInput&&l?.length>0?n.getInput(l[0]?.item):n.getSuggestions&&l?.length>0&&i.query.length?n.getSuggestions(l):n.getSuggestions&&!i.query.length&&n.getSuggestions([])}),[l]),e.createElement(ht,null,e.createElement(gt,{id:"elasticSearch",autoComplete:"off",type:"text",value:n.value,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,onKeyPress:e=>v(e),onKeyDown:e=>v(e),list:n.list}),e.createElement(pt,null,n.placeholder),n.required?e.createElement(D,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,n.list?e.createElement(w,{variant_Size:"small",text_Button:n.text_AddToList,icon_Left:"Add",className:"FormAddButton",onClick:n.onClick_AddToList}):null,i.query&&l?e.createElement(vt,null,l.slice(0,6).map(((t,r)=>e.createElement("li",{className:r===u%l.length?"ElasticSelected":"",key:r,onClick:()=>p(t?.item?t.item[n.suggestionType]:t[n.suggestionType])},e.createElement("p",null,t?.item?t.item[n.suggestionType]:t[n.suggestionType]))))):null,n.list?e.createElement(yt,null,e.createElement("h5",null,n.listItemTitle),h.map(((t,r)=>e.createElement("li",{key:r},e.createElement(d,{Icon:n.icon_ListItem}),e.createElement("h6",null,t),e.createElement(S,{variant_Size:"small",icon_Left:"Delete",onClick:()=>(e=>{let t=JSON.parse(JSON.stringify(n.list));t.splice(e,1),n.updateItemList(t),g(t)})(r)}))))):null)},Et=o.div`
789
+ `,ft=n=>{let r={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:[n.suggestionType]},o=n.json_File;const[i,c]=t({query:"",file:o,notfoundmessage:!1,defaultValue:n.defaultValue}),[l,s]=t(!1),[u,m]=t(0),[h,g]=t(n.list),p=e=>{n.onSuggestions(e),c({...i,query:"",defaultValue:"string"==typeof e?e:e[n.suggestionType]})},v=e=>{"ArrowUp"==e.key&&(e.preventDefault(),m(0===u?l.length-1:u-1)),"ArrowDown"==e.key&&(e.preventDefault(),u===l.length-1?m(0):m(u+1)),e.key&&"Enter"===e.key&&(e.preventDefault(),p("string"==typeof l[u]?l[u]:l[u][n.suggestionType]))};return a((()=>{r.minMatchCharLength=n.minMatchCharacters?n.minMatchCharacters:1;const e=new ut(o,r);let t=i.query?e.search(i.query):o;t=t.slice(0,n.size),s(t)}),[i]),a((()=>{n.getInput&&l?.length>0?n.getInput(l[0]?.item):n.getSuggestions&&l?.length>0&&i.query.length?n.getSuggestions(l):n.getSuggestions&&!i.query.length&&n.getSuggestions([])}),[l]),e.createElement(ht,null,e.createElement(gt,{id:"elasticSearch",autoComplete:"off",type:"text",value:n.value,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,onKeyPress:e=>v(e),onKeyDown:e=>v(e),list:n.list}),e.createElement(pt,null,n.placeholder),n.required?e.createElement(D,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,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),g(t)})(n.value)}):null,i.query&&l?e.createElement(vt,null,l.slice(0,6).map(((t,r)=>e.createElement("li",{className:r===u%l.length?"ElasticSelected":"",key:r,onClick:()=>p(t?.item?t.item[n.suggestionType]:t[n.suggestionType])},e.createElement("p",null,t?.item?t.item[n.suggestionType]:t[n.suggestionType]))))):null,n.list?e.createElement(yt,null,e.createElement("h5",null,n.listItemTitle),h.map(((t,r)=>e.createElement("li",{key:r},e.createElement(d,{Icon:n.icon_ListItem}),e.createElement("h6",null,t),e.createElement(S,{variant_Size:"small",icon_Left:"Delete",onClick:()=>(e=>{let t=JSON.parse(JSON.stringify(n.list));t.splice(e,1),n.updateItemList(t),g(t)})(r)}))))):null)},Et=o.div`
790
790
  display: flex;
791
791
  gap: 1rem;
792
792
  align-items: center;
package/dist/index.js CHANGED
@@ -371,7 +371,7 @@
371
371
  svg{
372
372
  fill: var(--success);
373
373
  }
374
- `;const R=l.default($)`
374
+ `;const N=l.default($)`
375
375
 
376
376
  h6{
377
377
  color: var(--warning);
@@ -380,7 +380,7 @@
380
380
  svg{
381
381
  fill: var(--warning);
382
382
  }
383
- `,N=l.default($)`
383
+ `,R=l.default($)`
384
384
 
385
385
  h6{
386
386
  color: var(--error);
@@ -419,7 +419,7 @@
419
419
  outline: 0;
420
420
  box-shadow: ${e=>e.theme.inFocus};
421
421
  }
422
- `,B=l.default.textarea`
422
+ `,z=l.default.textarea`
423
423
  width: 100%;
424
424
  border: none;
425
425
  background: ${e=>e.theme.background};
@@ -441,7 +441,7 @@
441
441
  outline: 0;
442
442
  box-shadow: ${e=>e.theme.inFocus};
443
443
  }
444
- `,z=l.default.label`
444
+ `,B=l.default.label`
445
445
  color: ${e=>e.theme.high};
446
446
  `,G=l.default.div`
447
447
  padding: var(--normalPads);
@@ -453,7 +453,7 @@
453
453
  }
454
454
  `,F=l.default(P)`
455
455
  padding-top: 3rem;
456
- `,H=l.default(z)`
456
+ `,H=l.default(B)`
457
457
  font-size: var(--smallText);
458
458
  `,V=l.default.div`
459
459
  position: relative;
@@ -522,7 +522,7 @@
522
522
  fill: ${e=>e.theme.color};
523
523
  }
524
524
  }
525
- `,j=t=>{const[a,n]=e.useState(t.list);return r.default.createElement(V,null,r.default.createElement(F,{value:t.value,className:t.className,placeholder:t.placeholder,id:t.id,autoComplete:"off",type:"text",onChange:t.onChange,defaultValue:t.defaultValue,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,disabled:t.disableInput}),r.default.createElement(H,null,t.placeholder),t.list?r.default.createElement(v,{size:"small",text:t.add,iconLeft:"Add",className:"FormAddButton",onClick:t.onClick_Add}):null,t.required?r.default.createElement(Z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,t.errors?r.default.createElement(I,{className:"ValidatorErrors"},t.errors.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,t.tips&&t.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},t.helpers.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),t.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):t.tips?r.default.createElement(I,{className:"ValidatorHelpers"},t.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):t.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},t.helpers.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null,t.list?r.default.createElement(D,null,a.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(_,{onClick:()=>(e=>{let a=JSON.parse(JSON.stringify(t.list));a.splice(e,1),t.updateItemList(a),n(a)})(a),size:"small",iconLeft:"Delete"}))))):null)},K=l.default.div`
525
+ `,j=t=>{const[a,n]=e.useState(t.list);return r.default.createElement(V,null,r.default.createElement(F,{value:t.value,className:t.className,placeholder:t.placeholder,id:t.id,autoComplete:"off",type:"text",onChange:t.onChange,defaultValue:t.defaultValue,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,disabled:t.disableInput}),r.default.createElement(H,null,t.placeholder),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),n(a)})(t.value)}):null,t.required?r.default.createElement(Z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,t.errors?r.default.createElement(I,{className:"ValidatorErrors"},t.errors.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,t.tips&&t.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},t.helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),t.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):t.tips?r.default.createElement(I,{className:"ValidatorHelpers"},t.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):t.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},t.helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null,t.list?r.default.createElement(D,null,a.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(_,{onClick:()=>(e=>{let a=JSON.parse(JSON.stringify(t.list));a.splice(e,1),t.updateItemList(a),n(a)})(a),size:"small",iconLeft:"Delete"}))))):null)},K=l.default.div`
526
526
  position: relative;
527
527
 
528
528
  select{
@@ -751,7 +751,7 @@
751
751
  span{
752
752
  color: ${e=>e.capped?"var(--error)":"inherit"};
753
753
  }
754
- `;function de(e){return Array.isArray?Array.isArray(e):"[object Array]"===ve(e)}function ue(e){return"string"==typeof e}function me(e){return"number"==typeof e}function he(e){return!0===e||!1===e||function(e){return ge(e)&&null!==e}(e)&&"[object Boolean]"==ve(e)}function ge(e){return"object"==typeof e}function fe(e){return null!=e}function pe(e){return!e.trim().length}function ve(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ye=Object.prototype.hasOwnProperty;class xe{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let a=Ee(e);t+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,t+=a.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 Ee(e){let t=null,a=null,n=null,r=1,l=null;if(ue(e)||de(e))n=e,t=ke(e),a=_e(e);else{if(!ye.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const o=e.name;if(n=o,ye.call(e,"weight")&&(r=e.weight,r<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(o));t=ke(o),a=_e(o),l=e.getFn}return{path:t,id:a,weight:r,src:n,getFn:l}}function ke(e){return de(e)?e:e.split(".")}function _e(e){return de(e)?e.join("."):e}var we={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 a=[],n=!1;const r=(e,t,l)=>{if(fe(e))if(t[l]){const o=e[t[l]];if(!fe(o))return;if(l===t.length-1&&(ue(o)||me(o)||he(o)))a.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)}(o));else if(de(o)){n=!0;for(let e=0,a=o.length;e<a;e+=1)r(o[e],t,l+1)}else t.length&&r(o,t,l+1)}else a.push(e)};return r(e,ue(t)?t.split("."):t,0),n?a:a[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Me=/[^ ]+/g;class Ce{constructor({getFn:e=we.getFn,fieldNormWeight:t=we.fieldNormWeight}={}){this.norm=function(e=1,t=3){const a=new Map,n=Math.pow(10,t);return{get(t){const r=t.match(Me).length;if(a.has(r))return a.get(r);const l=1/Math.pow(r,.5*e),o=parseFloat(Math.round(l*n)/n);return a.set(r,o),o},clear(){a.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,ue(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();ue(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,a=this.size();t<a;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!fe(e)||pe(e))return;let a={v:e,i:t,n:this.norm.get(e)};this.records.push(a)}_addObject(e,t){let a={i:t,$:{}};this.keys.forEach(((t,n)=>{let r=t.getFn?t.getFn(e):this.getFn(e,t.path);if(fe(r))if(de(r)){let e=[];const t=[{nestedArrIndex:-1,value:r}];for(;t.length;){const{nestedArrIndex:a,value:n}=t.pop();if(fe(n))if(ue(n)&&!pe(n)){let t={v:n,i:a,n:this.norm.get(n)};e.push(t)}else de(n)&&n.forEach(((e,a)=>{t.push({nestedArrIndex:a,value:e})}))}a.$[n]=e}else if(ue(r)&&!pe(r)){let e={v:r,n:this.norm.get(r)};a.$[n]=e}})),this.records.push(a)}toJSON(){return{keys:this.keys,records:this.records}}}function be(e,t,{getFn:a=we.getFn,fieldNormWeight:n=we.fieldNormWeight}={}){const r=new Ce({getFn:a,fieldNormWeight:n});return r.setKeys(e.map(Ee)),r.setSources(t),r.create(),r}function Le(e,{errors:t=0,currentLocation:a=0,expectedLocation:n=0,distance:r=we.distance,ignoreLocation:l=we.ignoreLocation}={}){const o=t/e.length;if(l)return o;const i=Math.abs(n-a);return r?o+i/r:i?1:o}function Se(e,t,a,{location:n=we.location,distance:r=we.distance,threshold:l=we.threshold,findAllMatches:o=we.findAllMatches,minMatchCharLength:i=we.minMatchCharLength,includeMatches:c=we.includeMatches,ignoreLocation:s=we.ignoreLocation}={}){if(t.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const d=t.length,u=e.length,m=Math.max(0,Math.min(n,u));let h=l,g=m;const f=i>1||c,p=f?Array(u):[];let v;for(;(v=e.indexOf(t,g))>-1;){let e=Le(t,{currentLocation:v,expectedLocation:m,distance:r,ignoreLocation:s});if(h=Math.min(e,h),g=v+d,f){let e=0;for(;e<d;)p[v+e]=1,e+=1}}g=-1;let y=[],x=1,E=d+u;const k=1<<d-1;for(let n=0;n<d;n+=1){let l=0,i=E;for(;l<i;){Le(t,{errors:n,currentLocation:m+i,expectedLocation:m,distance:r,ignoreLocation:s})<=h?l=i:E=i,i=Math.floor((E-l)/2+l)}E=i;let c=Math.max(1,m-i+1),v=o?u:Math.min(m+i,u)+d,_=Array(v+2);_[v+1]=(1<<n)-1;for(let l=v;l>=c;l-=1){let o=l-1,i=a[e.charAt(o)];if(f&&(p[o]=+!!i),_[l]=(_[l+1]<<1|1)&i,n&&(_[l]|=(y[l+1]|y[l])<<1|1|y[l+1]),_[l]&k&&(x=Le(t,{errors:n,currentLocation:o,expectedLocation:m,distance:r,ignoreLocation:s}),x<=h)){if(h=x,g=o,g<=m)break;c=Math.max(1,2*m-g)}}if(Le(t,{errors:n+1,currentLocation:m,expectedLocation:m,distance:r,ignoreLocation:s})>h)break;y=_}const _={isMatch:g>=0,score:Math.max(.001,x)};if(f){const e=function(e=[],t=we.minMatchCharLength){let a=[],n=-1,r=-1,l=0;for(let o=e.length;l<o;l+=1){let o=e[l];o&&-1===n?n=l:o||-1===n||(r=l-1,r-n+1>=t&&a.push([n,r]),n=-1)}return e[l-1]&&l-n>=t&&a.push([n,l-1]),a}(p,i);e.length?c&&(_.indices=e):_.isMatch=!1}return _}function Ae(e){let t={};for(let a=0,n=e.length;a<n;a+=1){const r=e.charAt(a);t[r]=(t[r]||0)|1<<n-a-1}return t}class Ie{constructor(e,{location:t=we.location,threshold:a=we.threshold,distance:n=we.distance,includeMatches:r=we.includeMatches,findAllMatches:l=we.findAllMatches,minMatchCharLength:o=we.minMatchCharLength,isCaseSensitive:i=we.isCaseSensitive,ignoreLocation:c=we.ignoreLocation}={}){if(this.options={location:t,threshold:a,distance:n,includeMatches:r,findAllMatches:l,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:c},this.pattern=i?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const s=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ae(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,a=d-t;for(;e<a;)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:a}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return a&&(t.indices=[[0,e.length-1]]),t}const{location:n,distance:r,threshold:l,findAllMatches:o,minMatchCharLength:i,ignoreLocation:c}=this.options;let s=[],d=0,u=!1;this.chunks.forEach((({pattern:t,alphabet:m,startIndex:h})=>{const{isMatch:g,score:f,indices:p}=Se(e,t,m,{location:n+h,distance:r,threshold:l,findAllMatches:o,minMatchCharLength:i,includeMatches:a,ignoreLocation:c});g&&(u=!0),d+=f,g&&p&&(s=[...s,...p])}));let m={isMatch:u,score:u?d/this.chunks.length:1};return u&&a&&(m.indices=s),m}}class $e{constructor(e){this.pattern=e}static isMultiMatch(e){return Te(e,this.multiRegex)}static isSingleMatch(e){return Te(e,this.singleRegex)}search(){}}function Te(e,t){const a=e.match(t);return a?a[1]:null}class Re extends $e{constructor(e,{location:t=we.location,threshold:a=we.threshold,distance:n=we.distance,includeMatches:r=we.includeMatches,findAllMatches:l=we.findAllMatches,minMatchCharLength:o=we.minMatchCharLength,isCaseSensitive:i=we.isCaseSensitive,ignoreLocation:c=we.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:t,threshold:a,distance:n,includeMatches:r,findAllMatches:l,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ne extends $e{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,a=0;const n=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,a))>-1;)a=t+r,n.push([t,a-1]);const l=!!n.length;return{isMatch:l,score:l?0:1,indices:n}}}const Ze=[class extends $e{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]}}},Ne,class extends $e{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 $e{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 $e{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 $e{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 $e{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]}}},Re],Pe=Ze.length,Be=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const ze=new Set([Re.type,Ne.type]);class Ge{constructor(e,{isCaseSensitive:t=we.isCaseSensitive,includeMatches:a=we.includeMatches,minMatchCharLength:n=we.minMatchCharLength,ignoreLocation:r=we.ignoreLocation,findAllMatches:l=we.findAllMatches,location:o=we.location,threshold:i=we.threshold,distance:c=we.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:a,minMatchCharLength:n,findAllMatches:l,ignoreLocation:r,location:o,threshold:i,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let a=e.trim().split(Be).filter((e=>e&&!!e.trim())),n=[];for(let e=0,r=a.length;e<r;e+=1){const r=a[e];let l=!1,o=-1;for(;!l&&++o<Pe;){const e=Ze[o];let a=e.isMultiMatch(r);a&&(n.push(new e(a,t)),l=!0)}if(!l)for(o=-1;++o<Pe;){const e=Ze[o];let a=e.isSingleMatch(r);if(a){n.push(new e(a,t));break}}}return n}))}(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:a,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let r=0,l=[],o=0;for(let n=0,i=t.length;n<i;n+=1){const i=t[n];l.length=0,r=0;for(let t=0,n=i.length;t<n;t+=1){const n=i[t],{isMatch:c,indices:s,score:d}=n.search(e);if(!c){o=0,r=0,l.length=0;break}if(r+=1,o+=d,a){const e=n.constructor.type;ze.has(e)?l=[...l,...s]:l.push(s)}}if(r){let e={isMatch:!0,score:o/r};return a&&(e.indices=l),e}}return{isMatch:!1,score:1}}}const Fe=[];function He(e,t){for(let a=0,n=Fe.length;a<n;a+=1){let n=Fe[a];if(n.condition(e,t))return new n(e,t)}return new Ie(e,t)}const Ve="$and",De="$or",je="$path",Ke="$val",Oe=e=>!(!e[Ve]&&!e[De]),qe=e=>({[Ve]:Object.keys(e).map((t=>({[t]:e[t]})))});function We(e,t,{auto:a=!0}={}){const n=e=>{let r=Object.keys(e);const l=(e=>!!e[je])(e);if(!l&&r.length>1&&!Oe(e))return n(qe(e));if((e=>!de(e)&&ge(e)&&!Oe(e))(e)){const n=l?e[je]:r[0],o=l?e[Ke]:e[n];if(!ue(o))throw new Error((e=>`Invalid value for key ${e}`)(n));const i={keyId:_e(n),pattern:o};return a&&(i.searcher=He(o,t)),i}let o={children:[],operator:r[0]};return r.forEach((t=>{const a=e[t];de(a)&&a.forEach((e=>{o.children.push(n(e))}))})),o};return Oe(e)||(e=qe(e)),n(e)}function Ue(e,t){const a=e.matches;t.matches=[],fe(a)&&a.forEach((e=>{if(!fe(e.indices)||!e.indices.length)return;const{indices:a,value:n}=e;let r={indices:a,value:n};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function Xe(e,t){t.score=e.score}class Je{constructor(e,t={},a){this.options={...we,...t},this.options.useExtendedSearch,this._keyStore=new xe(this.options.keys),this.setCollection(e,a)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ce))throw new Error("Incorrect 'index' type");this._myIndex=t||be(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){fe(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let a=0,n=this._docs.length;a<n;a+=1){const r=this._docs[a];e(r,a)&&(this.removeAt(a),a-=1,n-=1,t.push(r))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:a,includeScore:n,shouldSort:r,sortFn:l,ignoreFieldNorm:o}=this.options;let i=ue(e)?ue(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=we.ignoreFieldNorm}){e.forEach((e=>{let a=1;e.matches.forEach((({key:e,norm:n,score:r})=>{const l=e?e.weight:null;a*=Math.pow(0===r&&l?Number.EPSILON:r,(l||1)*(t?1:n))})),e.score=a}))}(i,{ignoreFieldNorm:o}),r&&i.sort(l),me(t)&&t>-1&&(i=i.slice(0,t)),function(e,t,{includeMatches:a=we.includeMatches,includeScore:n=we.includeScore}={}){const r=[];return a&&r.push(Ue),n&&r.push(Xe),e.map((e=>{const{idx:a}=e,n={item:t[a],refIndex:a};return r.length&&r.forEach((t=>{t(e,n)})),n}))}(i,this._docs,{includeMatches:a,includeScore:n})}_searchStringList(e){const t=He(e,this.options),{records:a}=this._myIndex,n=[];return a.forEach((({v:e,i:a,n:r})=>{if(!fe(e))return;const{isMatch:l,score:o,indices:i}=t.searchIn(e);l&&n.push({item:e,idx:a,matches:[{score:o,value:e,norm:r,indices:i}]})})),n}_searchLogical(e){const t=We(e,this.options),a=(e,t,n)=>{if(!e.children){const{keyId:a,searcher:r}=e,l=this._findMatches({key:this._keyStore.get(a),value:this._myIndex.getValueForItemAtKeyId(t,a),searcher:r});return l&&l.length?[{idx:n,item:t,matches:l}]:[]}const r=[];for(let l=0,o=e.children.length;l<o;l+=1){const o=e.children[l],i=a(o,t,n);if(i.length)r.push(...i);else if(e.operator===Ve)return[]}return r},n=this._myIndex.records,r={},l=[];return n.forEach((({$:e,i:n})=>{if(fe(e)){let o=a(t,e,n);o.length&&(r[n]||(r[n]={idx:n,item:e,matches:[]},l.push(r[n])),o.forEach((({matches:e})=>{r[n].matches.push(...e)})))}})),l}_searchObjectList(e){const t=He(e,this.options),{keys:a,records:n}=this._myIndex,r=[];return n.forEach((({$:e,i:n})=>{if(!fe(e))return;let l=[];a.forEach(((a,n)=>{l.push(...this._findMatches({key:a,value:e[n],searcher:t}))})),l.length&&r.push({idx:n,item:e,matches:l})})),r}_findMatches({key:e,value:t,searcher:a}){if(!fe(t))return[];let n=[];if(de(t))t.forEach((({v:t,i:r,n:l})=>{if(!fe(t))return;const{isMatch:o,score:i,indices:c}=a.searchIn(t);o&&n.push({score:i,key:e,value:t,idx:r,norm:l,indices:c})}));else{const{v:r,n:l}=t,{isMatch:o,score:i,indices:c}=a.searchIn(r);o&&n.push({score:i,key:e,value:r,norm:l,indices:c})}return n}}Je.version="6.6.2",Je.createIndex=be,Je.parseIndex=function(e,{getFn:t=we.getFn,fieldNormWeight:a=we.fieldNormWeight}={}){const{keys:n,records:r}=e,l=new Ce({getFn:t,fieldNormWeight:a});return l.setKeys(n),l.setIndexRecords(r),l},Je.config=we,Je.parseQuery=We,function(...e){Fe.push(...e)}(Ge);var Ye=require("greek-utils");const Qe=l.default(V)`
754
+ `;function de(e){return Array.isArray?Array.isArray(e):"[object Array]"===ve(e)}function ue(e){return"string"==typeof e}function me(e){return"number"==typeof e}function he(e){return!0===e||!1===e||function(e){return ge(e)&&null!==e}(e)&&"[object Boolean]"==ve(e)}function ge(e){return"object"==typeof e}function fe(e){return null!=e}function pe(e){return!e.trim().length}function ve(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ye=Object.prototype.hasOwnProperty;class xe{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let a=Ee(e);t+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,t+=a.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 Ee(e){let t=null,a=null,n=null,r=1,l=null;if(ue(e)||de(e))n=e,t=ke(e),a=_e(e);else{if(!ye.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const o=e.name;if(n=o,ye.call(e,"weight")&&(r=e.weight,r<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(o));t=ke(o),a=_e(o),l=e.getFn}return{path:t,id:a,weight:r,src:n,getFn:l}}function ke(e){return de(e)?e:e.split(".")}function _e(e){return de(e)?e.join("."):e}var we={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 a=[],n=!1;const r=(e,t,l)=>{if(fe(e))if(t[l]){const o=e[t[l]];if(!fe(o))return;if(l===t.length-1&&(ue(o)||me(o)||he(o)))a.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)}(o));else if(de(o)){n=!0;for(let e=0,a=o.length;e<a;e+=1)r(o[e],t,l+1)}else t.length&&r(o,t,l+1)}else a.push(e)};return r(e,ue(t)?t.split("."):t,0),n?a:a[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Me=/[^ ]+/g;class Ce{constructor({getFn:e=we.getFn,fieldNormWeight:t=we.fieldNormWeight}={}){this.norm=function(e=1,t=3){const a=new Map,n=Math.pow(10,t);return{get(t){const r=t.match(Me).length;if(a.has(r))return a.get(r);const l=1/Math.pow(r,.5*e),o=parseFloat(Math.round(l*n)/n);return a.set(r,o),o},clear(){a.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,ue(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();ue(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,a=this.size();t<a;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!fe(e)||pe(e))return;let a={v:e,i:t,n:this.norm.get(e)};this.records.push(a)}_addObject(e,t){let a={i:t,$:{}};this.keys.forEach(((t,n)=>{let r=t.getFn?t.getFn(e):this.getFn(e,t.path);if(fe(r))if(de(r)){let e=[];const t=[{nestedArrIndex:-1,value:r}];for(;t.length;){const{nestedArrIndex:a,value:n}=t.pop();if(fe(n))if(ue(n)&&!pe(n)){let t={v:n,i:a,n:this.norm.get(n)};e.push(t)}else de(n)&&n.forEach(((e,a)=>{t.push({nestedArrIndex:a,value:e})}))}a.$[n]=e}else if(ue(r)&&!pe(r)){let e={v:r,n:this.norm.get(r)};a.$[n]=e}})),this.records.push(a)}toJSON(){return{keys:this.keys,records:this.records}}}function be(e,t,{getFn:a=we.getFn,fieldNormWeight:n=we.fieldNormWeight}={}){const r=new Ce({getFn:a,fieldNormWeight:n});return r.setKeys(e.map(Ee)),r.setSources(t),r.create(),r}function Le(e,{errors:t=0,currentLocation:a=0,expectedLocation:n=0,distance:r=we.distance,ignoreLocation:l=we.ignoreLocation}={}){const o=t/e.length;if(l)return o;const i=Math.abs(n-a);return r?o+i/r:i?1:o}function Se(e,t,a,{location:n=we.location,distance:r=we.distance,threshold:l=we.threshold,findAllMatches:o=we.findAllMatches,minMatchCharLength:i=we.minMatchCharLength,includeMatches:c=we.includeMatches,ignoreLocation:s=we.ignoreLocation}={}){if(t.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const d=t.length,u=e.length,m=Math.max(0,Math.min(n,u));let h=l,g=m;const f=i>1||c,p=f?Array(u):[];let v;for(;(v=e.indexOf(t,g))>-1;){let e=Le(t,{currentLocation:v,expectedLocation:m,distance:r,ignoreLocation:s});if(h=Math.min(e,h),g=v+d,f){let e=0;for(;e<d;)p[v+e]=1,e+=1}}g=-1;let y=[],x=1,E=d+u;const k=1<<d-1;for(let n=0;n<d;n+=1){let l=0,i=E;for(;l<i;){Le(t,{errors:n,currentLocation:m+i,expectedLocation:m,distance:r,ignoreLocation:s})<=h?l=i:E=i,i=Math.floor((E-l)/2+l)}E=i;let c=Math.max(1,m-i+1),v=o?u:Math.min(m+i,u)+d,_=Array(v+2);_[v+1]=(1<<n)-1;for(let l=v;l>=c;l-=1){let o=l-1,i=a[e.charAt(o)];if(f&&(p[o]=+!!i),_[l]=(_[l+1]<<1|1)&i,n&&(_[l]|=(y[l+1]|y[l])<<1|1|y[l+1]),_[l]&k&&(x=Le(t,{errors:n,currentLocation:o,expectedLocation:m,distance:r,ignoreLocation:s}),x<=h)){if(h=x,g=o,g<=m)break;c=Math.max(1,2*m-g)}}if(Le(t,{errors:n+1,currentLocation:m,expectedLocation:m,distance:r,ignoreLocation:s})>h)break;y=_}const _={isMatch:g>=0,score:Math.max(.001,x)};if(f){const e=function(e=[],t=we.minMatchCharLength){let a=[],n=-1,r=-1,l=0;for(let o=e.length;l<o;l+=1){let o=e[l];o&&-1===n?n=l:o||-1===n||(r=l-1,r-n+1>=t&&a.push([n,r]),n=-1)}return e[l-1]&&l-n>=t&&a.push([n,l-1]),a}(p,i);e.length?c&&(_.indices=e):_.isMatch=!1}return _}function Ae(e){let t={};for(let a=0,n=e.length;a<n;a+=1){const r=e.charAt(a);t[r]=(t[r]||0)|1<<n-a-1}return t}class Ie{constructor(e,{location:t=we.location,threshold:a=we.threshold,distance:n=we.distance,includeMatches:r=we.includeMatches,findAllMatches:l=we.findAllMatches,minMatchCharLength:o=we.minMatchCharLength,isCaseSensitive:i=we.isCaseSensitive,ignoreLocation:c=we.ignoreLocation}={}){if(this.options={location:t,threshold:a,distance:n,includeMatches:r,findAllMatches:l,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:c},this.pattern=i?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const s=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ae(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,a=d-t;for(;e<a;)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:a}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return a&&(t.indices=[[0,e.length-1]]),t}const{location:n,distance:r,threshold:l,findAllMatches:o,minMatchCharLength:i,ignoreLocation:c}=this.options;let s=[],d=0,u=!1;this.chunks.forEach((({pattern:t,alphabet:m,startIndex:h})=>{const{isMatch:g,score:f,indices:p}=Se(e,t,m,{location:n+h,distance:r,threshold:l,findAllMatches:o,minMatchCharLength:i,includeMatches:a,ignoreLocation:c});g&&(u=!0),d+=f,g&&p&&(s=[...s,...p])}));let m={isMatch:u,score:u?d/this.chunks.length:1};return u&&a&&(m.indices=s),m}}class $e{constructor(e){this.pattern=e}static isMultiMatch(e){return Te(e,this.multiRegex)}static isSingleMatch(e){return Te(e,this.singleRegex)}search(){}}function Te(e,t){const a=e.match(t);return a?a[1]:null}class Ne extends $e{constructor(e,{location:t=we.location,threshold:a=we.threshold,distance:n=we.distance,includeMatches:r=we.includeMatches,findAllMatches:l=we.findAllMatches,minMatchCharLength:o=we.minMatchCharLength,isCaseSensitive:i=we.isCaseSensitive,ignoreLocation:c=we.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:t,threshold:a,distance:n,includeMatches:r,findAllMatches:l,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Re extends $e{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,a=0;const n=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,a))>-1;)a=t+r,n.push([t,a-1]);const l=!!n.length;return{isMatch:l,score:l?0:1,indices:n}}}const Ze=[class extends $e{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]}}},Re,class extends $e{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 $e{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 $e{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 $e{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 $e{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]}}},Ne],Pe=Ze.length,ze=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Be=new Set([Ne.type,Re.type]);class Ge{constructor(e,{isCaseSensitive:t=we.isCaseSensitive,includeMatches:a=we.includeMatches,minMatchCharLength:n=we.minMatchCharLength,ignoreLocation:r=we.ignoreLocation,findAllMatches:l=we.findAllMatches,location:o=we.location,threshold:i=we.threshold,distance:c=we.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:a,minMatchCharLength:n,findAllMatches:l,ignoreLocation:r,location:o,threshold:i,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let a=e.trim().split(ze).filter((e=>e&&!!e.trim())),n=[];for(let e=0,r=a.length;e<r;e+=1){const r=a[e];let l=!1,o=-1;for(;!l&&++o<Pe;){const e=Ze[o];let a=e.isMultiMatch(r);a&&(n.push(new e(a,t)),l=!0)}if(!l)for(o=-1;++o<Pe;){const e=Ze[o];let a=e.isSingleMatch(r);if(a){n.push(new e(a,t));break}}}return n}))}(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:a,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let r=0,l=[],o=0;for(let n=0,i=t.length;n<i;n+=1){const i=t[n];l.length=0,r=0;for(let t=0,n=i.length;t<n;t+=1){const n=i[t],{isMatch:c,indices:s,score:d}=n.search(e);if(!c){o=0,r=0,l.length=0;break}if(r+=1,o+=d,a){const e=n.constructor.type;Be.has(e)?l=[...l,...s]:l.push(s)}}if(r){let e={isMatch:!0,score:o/r};return a&&(e.indices=l),e}}return{isMatch:!1,score:1}}}const Fe=[];function He(e,t){for(let a=0,n=Fe.length;a<n;a+=1){let n=Fe[a];if(n.condition(e,t))return new n(e,t)}return new Ie(e,t)}const Ve="$and",De="$or",je="$path",Ke="$val",Oe=e=>!(!e[Ve]&&!e[De]),qe=e=>({[Ve]:Object.keys(e).map((t=>({[t]:e[t]})))});function We(e,t,{auto:a=!0}={}){const n=e=>{let r=Object.keys(e);const l=(e=>!!e[je])(e);if(!l&&r.length>1&&!Oe(e))return n(qe(e));if((e=>!de(e)&&ge(e)&&!Oe(e))(e)){const n=l?e[je]:r[0],o=l?e[Ke]:e[n];if(!ue(o))throw new Error((e=>`Invalid value for key ${e}`)(n));const i={keyId:_e(n),pattern:o};return a&&(i.searcher=He(o,t)),i}let o={children:[],operator:r[0]};return r.forEach((t=>{const a=e[t];de(a)&&a.forEach((e=>{o.children.push(n(e))}))})),o};return Oe(e)||(e=qe(e)),n(e)}function Ue(e,t){const a=e.matches;t.matches=[],fe(a)&&a.forEach((e=>{if(!fe(e.indices)||!e.indices.length)return;const{indices:a,value:n}=e;let r={indices:a,value:n};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function Xe(e,t){t.score=e.score}class Je{constructor(e,t={},a){this.options={...we,...t},this.options.useExtendedSearch,this._keyStore=new xe(this.options.keys),this.setCollection(e,a)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ce))throw new Error("Incorrect 'index' type");this._myIndex=t||be(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){fe(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let a=0,n=this._docs.length;a<n;a+=1){const r=this._docs[a];e(r,a)&&(this.removeAt(a),a-=1,n-=1,t.push(r))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:a,includeScore:n,shouldSort:r,sortFn:l,ignoreFieldNorm:o}=this.options;let i=ue(e)?ue(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=we.ignoreFieldNorm}){e.forEach((e=>{let a=1;e.matches.forEach((({key:e,norm:n,score:r})=>{const l=e?e.weight:null;a*=Math.pow(0===r&&l?Number.EPSILON:r,(l||1)*(t?1:n))})),e.score=a}))}(i,{ignoreFieldNorm:o}),r&&i.sort(l),me(t)&&t>-1&&(i=i.slice(0,t)),function(e,t,{includeMatches:a=we.includeMatches,includeScore:n=we.includeScore}={}){const r=[];return a&&r.push(Ue),n&&r.push(Xe),e.map((e=>{const{idx:a}=e,n={item:t[a],refIndex:a};return r.length&&r.forEach((t=>{t(e,n)})),n}))}(i,this._docs,{includeMatches:a,includeScore:n})}_searchStringList(e){const t=He(e,this.options),{records:a}=this._myIndex,n=[];return a.forEach((({v:e,i:a,n:r})=>{if(!fe(e))return;const{isMatch:l,score:o,indices:i}=t.searchIn(e);l&&n.push({item:e,idx:a,matches:[{score:o,value:e,norm:r,indices:i}]})})),n}_searchLogical(e){const t=We(e,this.options),a=(e,t,n)=>{if(!e.children){const{keyId:a,searcher:r}=e,l=this._findMatches({key:this._keyStore.get(a),value:this._myIndex.getValueForItemAtKeyId(t,a),searcher:r});return l&&l.length?[{idx:n,item:t,matches:l}]:[]}const r=[];for(let l=0,o=e.children.length;l<o;l+=1){const o=e.children[l],i=a(o,t,n);if(i.length)r.push(...i);else if(e.operator===Ve)return[]}return r},n=this._myIndex.records,r={},l=[];return n.forEach((({$:e,i:n})=>{if(fe(e)){let o=a(t,e,n);o.length&&(r[n]||(r[n]={idx:n,item:e,matches:[]},l.push(r[n])),o.forEach((({matches:e})=>{r[n].matches.push(...e)})))}})),l}_searchObjectList(e){const t=He(e,this.options),{keys:a,records:n}=this._myIndex,r=[];return n.forEach((({$:e,i:n})=>{if(!fe(e))return;let l=[];a.forEach(((a,n)=>{l.push(...this._findMatches({key:a,value:e[n],searcher:t}))})),l.length&&r.push({idx:n,item:e,matches:l})})),r}_findMatches({key:e,value:t,searcher:a}){if(!fe(t))return[];let n=[];if(de(t))t.forEach((({v:t,i:r,n:l})=>{if(!fe(t))return;const{isMatch:o,score:i,indices:c}=a.searchIn(t);o&&n.push({score:i,key:e,value:t,idx:r,norm:l,indices:c})}));else{const{v:r,n:l}=t,{isMatch:o,score:i,indices:c}=a.searchIn(r);o&&n.push({score:i,key:e,value:r,norm:l,indices:c})}return n}}Je.version="6.6.2",Je.createIndex=be,Je.parseIndex=function(e,{getFn:t=we.getFn,fieldNormWeight:a=we.fieldNormWeight}={}){const{keys:n,records:r}=e,l=new Ce({getFn:t,fieldNormWeight:a});return l.setKeys(n),l.setIndexRecords(r),l},Je.config=we,Je.parseQuery=We,function(...e){Fe.push(...e)}(Ge);var Ye=require("greek-utils");const Qe=l.default(V)`
755
755
  `,et=l.default(F)`
756
756
 
757
757
  `,tt=l.default(H)`
@@ -1176,12 +1176,12 @@
1176
1176
  transition-duration: .5s;
1177
1177
  }
1178
1178
  }
1179
- `,Rt=l.default.div`
1179
+ `,Nt=l.default.div`
1180
1180
  display: flex;
1181
1181
  align-items: center;
1182
1182
  justify-content: space-between;
1183
1183
  padding: 4rem 0 2rem 0;
1184
- `,Nt=l.default.div`
1184
+ `,Rt=l.default.div`
1185
1185
  height: 1.5rem;
1186
1186
  border-radius: 1rem;
1187
1187
  margin-bottom: 2rem;
@@ -1194,9 +1194,9 @@
1194
1194
  background: ${e=>e.step===e.currentStep?"linear-gradient( to right, var(--main), transparent)":e.step<e.currentStep?"var(--main)":"transparent"};
1195
1195
  height: 100%;
1196
1196
  width: 100%;
1197
- `,Pt=e=>r.default.createElement(Nt,{steps:e.steps},e.steps.map(((t,a)=>r.default.createElement(Zt,{step:a,currentStep:e.currentStep})))),Bt=l.default.div`
1197
+ `,Pt=e=>r.default.createElement(Rt,{steps:e.steps},e.steps.map(((t,a)=>r.default.createElement(Zt,{step:a,currentStep:e.currentStep})))),zt=l.default.div`
1198
1198
 
1199
- `,zt=l.default.div`
1199
+ `,Bt=l.default.div`
1200
1200
  position: relative;
1201
1201
 
1202
1202
  .Steps{
@@ -1508,4 +1508,4 @@
1508
1508
  grid-template-columns: 1fr 1fr;
1509
1509
  `,Ma=l.default(ka)`
1510
1510
  grid-template-columns: 1fr 1fr 1fr;
1511
- `;exports.Builder_=e=>r.default.createElement(ae,{key:e.key},e.title?r.default.createElement("h4",null,e.title):null,e.children),exports.Card=w,exports.CardsForty=wa,exports.CardsSixty=Ma,exports.CardsTools=_a,exports.Checkbox_=e=>r.default.createElement(ne,{key:e.key},e.withInput?r.default.createElement(le,{checked:e.checked},r.default.createElement(j,{placeholder:e.placeholder,disableInput:!e.checked})):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text_CheckboxLabel)),r.default.createElement(re,{className:"Check"},r.default.createElement("input",{type:"checkbox",id:e.id,checked:e.checked,onClick:e.onClick}),r.default.createElement("span",{className:"CheckCustom"}),r.default.createElement(s,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Confirmation_=e=>r.default.createElement(L,null,r.default.createElement(S,null,r.default.createElement("h4",null,e.message),r.default.createElement(A,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=_,exports.Dropdown_=O,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.json_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 Je(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(Qe,null,r.default.createElement(et,{id:"elasticSearch",autoComplete:"off",type:"text",value:t.value,placeholder:t.placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=Ye.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(tt,null,t.placeholder),t.required?r.default.createElement(Z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,t.list?r.default.createElement(v,{variant_Size:"small",text_Button:t.text_AddToList,icon_Left:"Add",className:"FormAddButton",onClick:t.onClick_AddToList}):null,l.query&&i?r.default.createElement(at,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(nt,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(_,{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=G,exports.FormGroup=V,exports.FormInput=F,exports.FormLabel=H,exports.FormList=D,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=X,exports.IconSvg=s,exports.Input_=j,exports.Input_Phone=t=>{const{region:a}=e.useContext(W);return r.default.createElement(Q,null,r.default.createElement(ee,null,r.default.createElement(O,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(O,{items:t.array_PhoneDropdown})),r.default.createElement(j,{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(W);return r.default.createElement(te,null,r.default.createElement(O,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(j,{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=q,exports.Main_=v,exports.Main_Plain=x,exports.MenuContext=U,exports.Nav_=e=>r.default.createElement(It,null,r.default.createElement(ot,{onClick_Logo:e.onClick_Logo}),r.default.createElement(ct,{onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}),"Protected"===e.role?r.default.createElement(bt,{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(At,{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(M,{variant_CardText:e.variant_CardText,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(C,null,r.default.createElement("img",{src:e.imgSmall})):r.default.createElement("span",null,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=Kt,exports.PageAlwaysVisible=Ut,exports.PageCards=oa,exports.PageDesktopOnly=Xt,exports.PageDesktopPadding=Jt,exports.PageForty=Ot,exports.PageSingle=Qt,exports.PageSingleHeader=ea,exports.PageSingleRight=aa,exports.PageSingleleft=ta,exports.PageSixty=qt,exports.PageSub=na,exports.PageSubActions=la,exports.PageSubTitle=ra,exports.PageTitle=Yt,exports.PageTools=Wt,exports.PageToolsCards=ia,exports.Radio_=e=>r.default.createElement(oe,{key:e.key},e.withInput?r.default.createElement(j,{placeholder:e.placeholder}):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text)),r.default.createElement(ie,{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.RegionContext=W,exports.Sidebar_=e=>r.default.createElement($t,null,e.children),exports.Sidebar_Box=e=>r.default.createElement(Tt,{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=fa,exports.SliderContainer=xa,exports.SliderContext=Y,exports.SliderGrid=Ea,exports.SliderOverlay=pa,exports.SliderTitle=ya,exports.SliderWrapper=va,exports.Slider_=e=>r.default.createElement(Ft,{className:e.className},r.default.createElement(Ht,{className:"StoryBook_Fix2",onClick:e.onClick_Close}),r.default.createElement(Vt,null,r.default.createElement(Dt,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(jt,null,e.children))),exports.Steps=sa,exports.StepsActions=ga,exports.StepsComplete=ua,exports.StepsContainer=ma,exports.StepsCurrent=da,exports.StepsWrapper=ha,exports.Steps_=e=>r.default.createElement(Bt,null,r.default.createElement(Pt,{steps:e.steps,currentStep:e.currentStep}),r.default.createElement(zt,null,e.steps.map(((t,n)=>r.default.createElement(a.CSSTransition,{in:e.currentStep===n,timeout:500,unmountOnExit:!0,classNames:"Steps"},r.default.createElement(Gt,{className:"Steps"},t)))))),exports.Steps_Actions=e=>r.default.createElement(Rt,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(ce,null,r.default.createElement(B,{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(se,{capped:t>e.limit}," ",r.default.createElement("span",null,t)," / ",e.limit):null,e.required?r.default.createElement(Z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,e.errors?r.default.createElement(I,{className:"ValidatorErrors"},e.errors.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,e.tips&&e.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),e.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.tips?r.default.createElement(I,{className:"ValidatorHelpers"},e.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null)},exports.Theme=ca,exports.ThemeContext=J,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=b;
1511
+ `;exports.Builder_=e=>r.default.createElement(ae,{key:e.key},e.title?r.default.createElement("h4",null,e.title):null,e.children),exports.Card=w,exports.CardsForty=wa,exports.CardsSixty=Ma,exports.CardsTools=_a,exports.Checkbox_=e=>r.default.createElement(ne,{key:e.key},e.withInput?r.default.createElement(le,{checked:e.checked},r.default.createElement(j,{placeholder:e.placeholder,disableInput:!e.checked})):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text_CheckboxLabel)),r.default.createElement(re,{className:"Check"},r.default.createElement("input",{type:"checkbox",id:e.id,checked:e.checked,onClick:e.onClick}),r.default.createElement("span",{className:"CheckCustom"}),r.default.createElement(s,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Confirmation_=e=>r.default.createElement(L,null,r.default.createElement(S,null,r.default.createElement("h4",null,e.message),r.default.createElement(A,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=_,exports.Dropdown_=O,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.json_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 Je(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(Qe,null,r.default.createElement(et,{id:"elasticSearch",autoComplete:"off",type:"text",value:t.value,placeholder:t.placeholder,onChange:e=>{const{target:a={}}=e,{value:n=""}=a;let r=Ye.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(tt,null,t.placeholder),t.required?r.default.createElement(Z,{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(at,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(nt,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(_,{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=G,exports.FormGroup=V,exports.FormInput=F,exports.FormLabel=H,exports.FormList=D,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=X,exports.IconSvg=s,exports.Input_=j,exports.Input_Phone=t=>{const{region:a}=e.useContext(W);return r.default.createElement(Q,null,r.default.createElement(ee,null,r.default.createElement(O,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(O,{items:t.array_PhoneDropdown})),r.default.createElement(j,{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(W);return r.default.createElement(te,null,r.default.createElement(O,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(j,{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=q,exports.Main_=v,exports.Main_Plain=x,exports.MenuContext=U,exports.Nav_=e=>r.default.createElement(It,null,r.default.createElement(ot,{onClick_Logo:e.onClick_Logo}),r.default.createElement(ct,{onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}),"Protected"===e.role?r.default.createElement(bt,{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(At,{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(M,{variant_CardText:e.variant_CardText,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(C,null,r.default.createElement("img",{src:e.imgSmall})):r.default.createElement("span",null,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=Kt,exports.PageAlwaysVisible=Ut,exports.PageCards=oa,exports.PageDesktopOnly=Xt,exports.PageDesktopPadding=Jt,exports.PageForty=Ot,exports.PageSingle=Qt,exports.PageSingleHeader=ea,exports.PageSingleRight=aa,exports.PageSingleleft=ta,exports.PageSixty=qt,exports.PageSub=na,exports.PageSubActions=la,exports.PageSubTitle=ra,exports.PageTitle=Yt,exports.PageTools=Wt,exports.PageToolsCards=ia,exports.Radio_=e=>r.default.createElement(oe,{key:e.key},e.withInput?r.default.createElement(j,{placeholder:e.placeholder}):r.default.createElement("label",{for:e.id},r.default.createElement("p",null,e.text)),r.default.createElement(ie,{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.RegionContext=W,exports.Sidebar_=e=>r.default.createElement($t,null,e.children),exports.Sidebar_Box=e=>r.default.createElement(Tt,{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=fa,exports.SliderContainer=xa,exports.SliderContext=Y,exports.SliderGrid=Ea,exports.SliderOverlay=pa,exports.SliderTitle=ya,exports.SliderWrapper=va,exports.Slider_=e=>r.default.createElement(Ft,{className:e.className},r.default.createElement(Ht,{className:"StoryBook_Fix2",onClick:e.onClick_Close}),r.default.createElement(Vt,null,r.default.createElement(Dt,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(jt,null,e.children))),exports.Steps=sa,exports.StepsActions=ga,exports.StepsComplete=ua,exports.StepsContainer=ma,exports.StepsCurrent=da,exports.StepsWrapper=ha,exports.Steps_=e=>r.default.createElement(zt,null,r.default.createElement(Pt,{steps:e.steps,currentStep:e.currentStep}),r.default.createElement(Bt,null,e.steps.map(((t,n)=>r.default.createElement(a.CSSTransition,{in:e.currentStep===n,timeout:500,unmountOnExit:!0,classNames:"Steps"},r.default.createElement(Gt,{className:"Steps"},t)))))),exports.Steps_Actions=e=>r.default.createElement(Nt,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(ce,null,r.default.createElement(z,{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(se,{capped:t>e.limit}," ",r.default.createElement("span",null,t)," / ",e.limit):null,e.required?r.default.createElement(Z,{className:"ValidatorRequired"},r.default.createElement(s,{Icon:"Asterisk"})):null,e.errors?r.default.createElement(I,{className:"ValidatorErrors"},e.errors.map((e=>r.default.createElement(R,null,r.default.createElement(s,{Icon:"Error"}),r.default.createElement("h6",null,e))))):null,e.tips&&e.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e)))),e.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.tips?r.default.createElement(I,{className:"ValidatorHelpers"},e.tips.map((e=>r.default.createElement(T,null,r.default.createElement(s,{Icon:"Tip"}),r.default.createElement("h6",null,e))))):e.helpers?r.default.createElement(I,{className:"ValidatorHelpers"},e.helpers.map((e=>r.default.createElement(N,null,r.default.createElement(s,{Icon:"Warning"}),r.default.createElement("h6",null,e))))):null)},exports.Theme=ca,exports.ThemeContext=J,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=b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monica-alexandria",
3
- "version": "3.4.0",
3
+ "version": "3.4.3",
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",
@@ -86,6 +86,13 @@ export const Elastic_Search = (props) => {
86
86
  setItemList(updateItemList);
87
87
  }
88
88
 
89
+ const addListItem = (value) => {
90
+ let updateItemList = JSON.parse(JSON.stringify(props.list));
91
+ updateItemList.push(value);
92
+ props.updateItemList(updateItemList);
93
+ setItemList(updateItemList);
94
+ }
95
+
89
96
  const send_clicked_suggestion = (suggestion) => {
90
97
  props.onSuggestions(suggestion);
91
98
  setCurrentSearch({...currentSearch, query:'', defaultValue:typeof(suggestion) == 'string' ? suggestion : suggestion[props.suggestionType]})
@@ -163,13 +170,13 @@ export const Elastic_Search = (props) => {
163
170
  null
164
171
  }
165
172
  {props.list ?
166
- <Main_
167
- variant_Size = 'small'
168
- text_Button = {props.text_AddToList}
169
- icon_Left = 'Add'
170
- className = 'FormAddButton'
171
- onClick = {props.onClick_AddToList}
172
- />
173
+ <Main_
174
+ size = 'small'
175
+ text = {props.add}
176
+ iconLeft = 'Add'
177
+ className = 'FormAddButton'
178
+ onClick = {() => addListItem(props.value)}
179
+ />
173
180
  :
174
181
  null
175
182
  }
@@ -14,6 +14,13 @@ export const Input_ = (props) => {
14
14
  setItemList(updateItemList);
15
15
  }
16
16
 
17
+ const addListItem = (value) => {
18
+ let updateItemList = JSON.parse(JSON.stringify(props.list));
19
+ updateItemList.push(value);
20
+ props.updateItemList(updateItemList);
21
+ setItemList(updateItemList);
22
+ }
23
+
17
24
  return (
18
25
  <FormGroup>
19
26
  <FormInput
@@ -36,7 +43,7 @@ export const Input_ = (props) => {
36
43
  text = {props.add}
37
44
  iconLeft = 'Add'
38
45
  className = 'FormAddButton'
39
- onClick = {props.onClick_Add}
46
+ onClick = {() => addListItem(props.value)}
40
47
  />
41
48
  :
42
49
  null