monica-alexandria 3.3.13 → 3.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +10 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/export/components/form/Input_.js +1 -1
package/dist/index.es.js
CHANGED
|
@@ -441,9 +441,9 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
441
441
|
outline: 0;
|
|
442
442
|
box-shadow: ${e=>e.theme.inFocus};
|
|
443
443
|
}
|
|
444
|
-
`,
|
|
444
|
+
`,O=o.label`
|
|
445
445
|
color: ${e=>e.theme.high};
|
|
446
|
-
`,
|
|
446
|
+
`,q=o.div`
|
|
447
447
|
padding: var(--normalPads);
|
|
448
448
|
background: ${e=>e.theme.low};
|
|
449
449
|
border-radius: var(--normalRadius);
|
|
@@ -453,7 +453,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
453
453
|
}
|
|
454
454
|
`,W=o(K)`
|
|
455
455
|
padding-top: 3rem;
|
|
456
|
-
`,U=o(
|
|
456
|
+
`,U=o(O)`
|
|
457
457
|
font-size: var(--smallText);
|
|
458
458
|
`,X=o.div`
|
|
459
459
|
position: relative;
|
|
@@ -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(JSON.stringify(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),a(t)})(r),size:"small",iconLeft:"Delete"}))))):null)},Q=o.div`
|
|
525
|
+
`,Y=n=>{const[r,a]=t(JSON.parse(JSON.stringify(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),a(t)})(r),size:"small",iconLeft:"Delete"}))))):null)},Q=o.div`
|
|
526
526
|
position: relative;
|
|
527
527
|
|
|
528
528
|
select{
|
|
@@ -751,7 +751,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
751
751
|
span{
|
|
752
752
|
color: ${e=>e.capped?"var(--error)":"inherit"};
|
|
753
753
|
}
|
|
754
|
-
`,_e=t=>{const[n,r]=e.useState(0);return e.createElement(ke,null,e.createElement(j,{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(we,{capped:n>t.limit}," ",e.createElement("span",null,n)," / ",t.limit):null,t.required?e.createElement(D,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.errors?e.createElement(G,{className:"ValidatorErrors"},t.errors.map((t=>e.createElement(V,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.tips&&t.helpers?e.createElement(G,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),t.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.tips?e.createElement(G,{className:"ValidatorHelpers"},t.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.helpers?e.createElement(G,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null)};function Me(e){return Array.isArray?Array.isArray(e):"[object Array]"===$e(e)}function be(e){return"string"==typeof e}function Le(e){return"number"==typeof e}function Ce(e){return!0===e||!1===e||function(e){return Se(e)&&null!==e}(e)&&"[object Boolean]"==$e(e)}function Se(e){return"object"==typeof e}function Ae(e){return null!=e}function Ie(e){return!e.trim().length}function $e(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Te=Object.prototype.hasOwnProperty;class Ne{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Re(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 Re(e){let t=null,n=null,r=null,a=1,o=null;if(be(e)||Me(e))r=e,t=Ze(e),n=ze(e);else{if(!Te.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(r=i,Te.call(e,"weight")&&(a=e.weight,a<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=Ze(i),n=ze(i),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function Ze(e){return Me(e)?e:e.split(".")}function ze(e){return Me(e)?e.join("."):e}var Be={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(Ae(e))if(t[o]){const i=e[t[o]];if(!Ae(i))return;if(o===t.length-1&&(be(i)||Le(i)||Ce(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(Me(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,be(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Ge=/[^ ]+/g;class Pe{constructor({getFn:e=Be.getFn,fieldNormWeight:t=Be.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const a=t.match(Ge).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,be(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();be(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(!Ae(e)||Ie(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(Ae(a))if(Me(a)){let e=[];const t=[{nestedArrIndex:-1,value:a}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Ae(r))if(be(r)&&!Ie(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Me(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(be(a)&&!Ie(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 Fe(e,t,{getFn:n=Be.getFn,fieldNormWeight:r=Be.fieldNormWeight}={}){const a=new Pe({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Re)),a.setSources(t),a.create(),a}function He(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Be.distance,ignoreLocation:o=Be.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 Ve(e,t,n,{location:r=Be.location,distance:a=Be.distance,threshold:o=Be.threshold,findAllMatches:i=Be.findAllMatches,minMatchCharLength:c=Be.minMatchCharLength,includeMatches:l=Be.includeMatches,ignoreLocation:s=Be.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=He(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;){He(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=He(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(He(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=Be.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 De(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 Ke{constructor(e,{location:t=Be.location,threshold:n=Be.threshold,distance:r=Be.distance,includeMatches:a=Be.includeMatches,findAllMatches:o=Be.findAllMatches,minMatchCharLength:i=Be.minMatchCharLength,isCaseSensitive:c=Be.isCaseSensitive,ignoreLocation:l=Be.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:De(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}=Ve(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 je{constructor(e){this.pattern=e}static isMultiMatch(e){return qe(e,this.multiRegex)}static isSingleMatch(e){return qe(e,this.singleRegex)}search(){}}function qe(e,t){const n=e.match(t);return n?n[1]:null}class Oe extends je{constructor(e,{location:t=Be.location,threshold:n=Be.threshold,distance:r=Be.distance,includeMatches:a=Be.includeMatches,findAllMatches:o=Be.findAllMatches,minMatchCharLength:i=Be.minMatchCharLength,isCaseSensitive:c=Be.isCaseSensitive,ignoreLocation:l=Be.ignoreLocation}={}){super(e),this._bitapSearch=new Ke(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 We extends je{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 Ue=[class extends je{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]}}},We,class extends je{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 je{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 je{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 je{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 je{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]}}},Oe],Xe=Ue.length,Je=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Ye=new Set([Oe.type,We.type]);class Qe{constructor(e,{isCaseSensitive:t=Be.isCaseSensitive,includeMatches:n=Be.includeMatches,minMatchCharLength:r=Be.minMatchCharLength,ignoreLocation:a=Be.ignoreLocation,findAllMatches:o=Be.findAllMatches,location:i=Be.location,threshold:c=Be.threshold,distance:l=Be.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(Je).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<Xe;){const e=Ue[i];let n=e.isMultiMatch(a);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(i=-1;++i<Xe;){const e=Ue[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;Ye.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 et=[];function tt(e,t){for(let n=0,r=et.length;n<r;n+=1){let r=et[n];if(r.condition(e,t))return new r(e,t)}return new Ke(e,t)}const nt="$and",rt="$or",at="$path",ot="$val",it=e=>!(!e[nt]&&!e[rt]),ct=e=>({[nt]:Object.keys(e).map((t=>({[t]:e[t]})))});function lt(e,t,{auto:n=!0}={}){const r=e=>{let a=Object.keys(e);const o=(e=>!!e[at])(e);if(!o&&a.length>1&&!it(e))return r(ct(e));if((e=>!Me(e)&&Se(e)&&!it(e))(e)){const r=o?e[at]:a[0],i=o?e[ot]:e[r];if(!be(i))throw new Error((e=>`Invalid value for key ${e}`)(r));const c={keyId:ze(r),pattern:i};return n&&(c.searcher=tt(i,t)),c}let i={children:[],operator:a[0]};return a.forEach((t=>{const n=e[t];Me(n)&&n.forEach((e=>{i.children.push(r(e))}))})),i};return it(e)||(e=ct(e)),r(e)}function st(e,t){const n=e.matches;t.matches=[],Ae(n)&&n.forEach((e=>{if(!Ae(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 dt(e,t){t.score=e.score}class mt{constructor(e,t={},n){this.options={...Be,...t},this.options.useExtendedSearch,this._keyStore=new Ne(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Pe))throw new Error("Incorrect 'index' type");this._myIndex=t||Fe(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ae(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=be(e)?be(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Be.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),Le(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:n=Be.includeMatches,includeScore:r=Be.includeScore}={}){const a=[];return n&&a.push(st),r&&a.push(dt),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=tt(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:a})=>{if(!Ae(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=lt(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===nt)return[]}return a},r=this._myIndex.records,a={},o=[];return r.forEach((({$:e,i:r})=>{if(Ae(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=tt(e,this.options),{keys:n,records:r}=this._myIndex,a=[];return r.forEach((({$:e,i:r})=>{if(!Ae(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(!Ae(t))return[];let r=[];if(Me(t))t.forEach((({v:t,i:a,n:o})=>{if(!Ae(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}}mt.version="6.6.2",mt.createIndex=Fe,mt.parseIndex=function(e,{getFn:t=Be.getFn,fieldNormWeight:n=Be.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new Pe({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o},mt.config=Be,mt.parseQuery=lt,function(...e){et.push(...e)}(Qe);var ut=require("greek-utils");const ht=o(X)`
|
|
754
|
+
`,_e=t=>{const[n,r]=e.useState(0);return e.createElement(ke,null,e.createElement(j,{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(we,{capped:n>t.limit}," ",e.createElement("span",null,n)," / ",t.limit):null,t.required?e.createElement(D,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,t.errors?e.createElement(G,{className:"ValidatorErrors"},t.errors.map((t=>e.createElement(V,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.tips&&t.helpers?e.createElement(G,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),t.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.tips?e.createElement(G,{className:"ValidatorHelpers"},t.tips.map((t=>e.createElement(F,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):t.helpers?e.createElement(G,{className:"ValidatorHelpers"},t.helpers.map((t=>e.createElement(H,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null)};function Me(e){return Array.isArray?Array.isArray(e):"[object Array]"===$e(e)}function be(e){return"string"==typeof e}function Le(e){return"number"==typeof e}function Ce(e){return!0===e||!1===e||function(e){return Se(e)&&null!==e}(e)&&"[object Boolean]"==$e(e)}function Se(e){return"object"==typeof e}function Ae(e){return null!=e}function Ie(e){return!e.trim().length}function $e(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Te=Object.prototype.hasOwnProperty;class Ne{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Re(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 Re(e){let t=null,n=null,r=null,a=1,o=null;if(be(e)||Me(e))r=e,t=Ze(e),n=ze(e);else{if(!Te.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(r=i,Te.call(e,"weight")&&(a=e.weight,a<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=Ze(i),n=ze(i),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function Ze(e){return Me(e)?e:e.split(".")}function ze(e){return Me(e)?e.join("."):e}var Be={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(Ae(e))if(t[o]){const i=e[t[o]];if(!Ae(i))return;if(o===t.length-1&&(be(i)||Le(i)||Ce(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(Me(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,be(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Ge=/[^ ]+/g;class Pe{constructor({getFn:e=Be.getFn,fieldNormWeight:t=Be.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const a=t.match(Ge).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,be(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();be(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(!Ae(e)||Ie(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(Ae(a))if(Me(a)){let e=[];const t=[{nestedArrIndex:-1,value:a}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Ae(r))if(be(r)&&!Ie(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Me(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(be(a)&&!Ie(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 Fe(e,t,{getFn:n=Be.getFn,fieldNormWeight:r=Be.fieldNormWeight}={}){const a=new Pe({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Re)),a.setSources(t),a.create(),a}function He(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Be.distance,ignoreLocation:o=Be.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 Ve(e,t,n,{location:r=Be.location,distance:a=Be.distance,threshold:o=Be.threshold,findAllMatches:i=Be.findAllMatches,minMatchCharLength:c=Be.minMatchCharLength,includeMatches:l=Be.includeMatches,ignoreLocation:s=Be.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=He(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;){He(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=He(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(He(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=Be.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 De(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 Ke{constructor(e,{location:t=Be.location,threshold:n=Be.threshold,distance:r=Be.distance,includeMatches:a=Be.includeMatches,findAllMatches:o=Be.findAllMatches,minMatchCharLength:i=Be.minMatchCharLength,isCaseSensitive:c=Be.isCaseSensitive,ignoreLocation:l=Be.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:De(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}=Ve(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 je{constructor(e){this.pattern=e}static isMultiMatch(e){return Oe(e,this.multiRegex)}static isSingleMatch(e){return Oe(e,this.singleRegex)}search(){}}function Oe(e,t){const n=e.match(t);return n?n[1]:null}class qe extends je{constructor(e,{location:t=Be.location,threshold:n=Be.threshold,distance:r=Be.distance,includeMatches:a=Be.includeMatches,findAllMatches:o=Be.findAllMatches,minMatchCharLength:i=Be.minMatchCharLength,isCaseSensitive:c=Be.isCaseSensitive,ignoreLocation:l=Be.ignoreLocation}={}){super(e),this._bitapSearch=new Ke(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 We extends je{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 Ue=[class extends je{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]}}},We,class extends je{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 je{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 je{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 je{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 je{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]}}},qe],Xe=Ue.length,Je=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Ye=new Set([qe.type,We.type]);class Qe{constructor(e,{isCaseSensitive:t=Be.isCaseSensitive,includeMatches:n=Be.includeMatches,minMatchCharLength:r=Be.minMatchCharLength,ignoreLocation:a=Be.ignoreLocation,findAllMatches:o=Be.findAllMatches,location:i=Be.location,threshold:c=Be.threshold,distance:l=Be.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(Je).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<Xe;){const e=Ue[i];let n=e.isMultiMatch(a);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(i=-1;++i<Xe;){const e=Ue[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;Ye.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 et=[];function tt(e,t){for(let n=0,r=et.length;n<r;n+=1){let r=et[n];if(r.condition(e,t))return new r(e,t)}return new Ke(e,t)}const nt="$and",rt="$or",at="$path",ot="$val",it=e=>!(!e[nt]&&!e[rt]),ct=e=>({[nt]:Object.keys(e).map((t=>({[t]:e[t]})))});function lt(e,t,{auto:n=!0}={}){const r=e=>{let a=Object.keys(e);const o=(e=>!!e[at])(e);if(!o&&a.length>1&&!it(e))return r(ct(e));if((e=>!Me(e)&&Se(e)&&!it(e))(e)){const r=o?e[at]:a[0],i=o?e[ot]:e[r];if(!be(i))throw new Error((e=>`Invalid value for key ${e}`)(r));const c={keyId:ze(r),pattern:i};return n&&(c.searcher=tt(i,t)),c}let i={children:[],operator:a[0]};return a.forEach((t=>{const n=e[t];Me(n)&&n.forEach((e=>{i.children.push(r(e))}))})),i};return it(e)||(e=ct(e)),r(e)}function st(e,t){const n=e.matches;t.matches=[],Ae(n)&&n.forEach((e=>{if(!Ae(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 dt(e,t){t.score=e.score}class mt{constructor(e,t={},n){this.options={...Be,...t},this.options.useExtendedSearch,this._keyStore=new Ne(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Pe))throw new Error("Incorrect 'index' type");this._myIndex=t||Fe(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ae(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=be(e)?be(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Be.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),Le(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:n=Be.includeMatches,includeScore:r=Be.includeScore}={}){const a=[];return n&&a.push(st),r&&a.push(dt),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=tt(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:a})=>{if(!Ae(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=lt(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===nt)return[]}return a},r=this._myIndex.records,a={},o=[];return r.forEach((({$:e,i:r})=>{if(Ae(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=tt(e,this.options),{keys:n,records:r}=this._myIndex,a=[];return r.forEach((({$:e,i:r})=>{if(!Ae(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(!Ae(t))return[];let r=[];if(Me(t))t.forEach((({v:t,i:a,n:o})=>{if(!Ae(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}}mt.version="6.6.2",mt.createIndex=Fe,mt.parseIndex=function(e,{getFn:t=Be.getFn,fieldNormWeight:n=Be.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new Pe({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o},mt.config=Be,mt.parseQuery=lt,function(...e){et.push(...e)}(Qe);var ut=require("greek-utils");const ht=o(X)`
|
|
755
755
|
`,gt=o(W)`
|
|
756
756
|
|
|
757
757
|
`,pt=o(U)`
|
|
@@ -1104,7 +1104,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1104
1104
|
@media ${N.sm} {
|
|
1105
1105
|
padding: 1rem 2rem;
|
|
1106
1106
|
}
|
|
1107
|
-
`,
|
|
1107
|
+
`,Ot=t=>e.createElement(jt,null,e.createElement(kt,{onClick_Logo:t.onClick_Logo}),e.createElement(_t,{onClick_Cta:t.onClick_Cta,text_Cta:t.text_Cta}),"Protected"===t.role?e.createElement(Ht,{role:t.role,img_Account:t.img_Account,img_Account_Main:t.img_Account,imgAlt_Account:t.imgAlt_Account,imgAlt_Account_Main:t.imgAlt_Account,firstname_Account:t.firstname_Account,text_Account_Main:t.firstname_Account,onClick_Account:t.onClick_Account,onCLick_Account_Main:t.onClick_Account,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,onClick_Settings_Main:t.onClick_Settings_Main,text_Settings_Main:t.text_Settings_Main,onCLick_Logout:t.onCLick_Logout,text_Logout:t.text_Logout,text_Title_Region:t.text_Title_Region,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language}):e.createElement(Kt,{role:t.role,onClick_Login:t.onClick_Login,text_Login:t.text_Login,text_Title_Main:t.text_Title_Main,text_Theme_Main:t.text_Theme_Main,text_Title_Region:t.text_Title_Region,text_Title_Language:t.text_Title_Language,onClick_Greek_Language:t.onClick_Greek_Language,onClick_English_Language:t.onClick_English_Language,onClick_German_Language:t.onClick_German_Language})),qt=o.div`
|
|
1108
1108
|
position: fixed;
|
|
1109
1109
|
left: 0;
|
|
1110
1110
|
top: 6rem;
|
|
@@ -1112,7 +1112,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1112
1112
|
width: 8.5rem;
|
|
1113
1113
|
height: 100vh;
|
|
1114
1114
|
border-right: 1px solid ${e=>e.theme.mid};
|
|
1115
|
-
`,Wt=t=>e.createElement(
|
|
1115
|
+
`,Wt=t=>e.createElement(qt,null,t.children),Ut=o.li`
|
|
1116
1116
|
cursor: pointer;
|
|
1117
1117
|
transition-property: transform;
|
|
1118
1118
|
transition-duration: .5s;
|
|
@@ -1502,10 +1502,10 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
1502
1502
|
`,jn=o.div`
|
|
1503
1503
|
display: grid;
|
|
1504
1504
|
grid-gap: 2rem;
|
|
1505
|
-
`,qn=o(jn)`
|
|
1506
|
-
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
1507
1505
|
`,On=o(jn)`
|
|
1506
|
+
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
1507
|
+
`,qn=o(jn)`
|
|
1508
1508
|
grid-template-columns: 1fr 1fr;
|
|
1509
1509
|
`,Wn=o(jn)`
|
|
1510
1510
|
grid-template-columns: 1fr 1fr 1fr;
|
|
1511
|
-
`;export{he as Builder_,A as Card,
|
|
1511
|
+
`;export{he as Builder_,A as Card,qn as CardsForty,Wn as CardsSixty,On as CardsTools,ye as Checkbox_,B as Confirmation_,s as Cta_,S as Delete_Plain,ee as Dropdown_,u as Edit_,ft as Elastic_Search,g as Focus_,v as Focus_Plain,q as Form,X as FormGroup,W as FormInput,U as FormLabel,J as FormList,f as Grey_,x as Grey_Link,ae as HamContext,d as IconSvg,Y as Input_,se as Input_Phone,me as Input_Phone_Register,te as LangContext,w as Main_,M as Main_Plain,re as MenuContext,Ot as Nav_,T as On_Click_Card,hn as Page,yn as PageAlwaysVisible,Sn as PageCards,fn as PageDesktopOnly,En as PageDesktopPadding,gn as PageForty,kn as PageSingle,wn as PageSingleHeader,Mn as PageSingleRight,_n as PageSingleleft,pn as PageSixty,bn as PageSub,Cn as PageSubActions,Ln as PageSubTitle,xn as PageTitle,vn as PageTools,An as PageToolsCards,xe as Radio_,ne as RegionContext,Wt as Sidebar_,Xt as Sidebar_Box,Pn as Slider,Dn as SliderContainer,ie as SliderContext,Kn as SliderGrid,Fn as SliderOverlay,Vn as SliderTitle,Hn as SliderWrapper,un as Slider_,Nn as Steps,Gn as StepsActions,Zn as StepsComplete,zn as StepsContainer,Rn as StepsCurrent,Bn as StepsWrapper,on as Steps_,Yt as Steps_Actions,_e as Textarea_,Tn as Theme,oe as ThemeContext,$n as ThemeDark,In as ThemeLight,L as White_Plain,N as device};
|
package/dist/index.js
CHANGED
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
fill: ${e=>e.theme.color};
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
`,j=t=>{const[a,n]=e.useState(JSON.stringify(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),n(a)})(a),size:"small",iconLeft:"Delete"}))))):null)},K=l.default.div`
|
|
525
|
+
`,j=t=>{const[a,n]=e.useState(JSON.parse(JSON.stringify(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),n(a)})(a),size:"small",iconLeft:"Delete"}))))):null)},K=l.default.div`
|
|
526
526
|
position: relative;
|
|
527
527
|
|
|
528
528
|
select{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.14",
|
|
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",
|
|
@@ -6,7 +6,7 @@ import { Delete_Plain, Main_ } from '../button'
|
|
|
6
6
|
|
|
7
7
|
export const Input_ = (props) => {
|
|
8
8
|
|
|
9
|
-
const [myList , setMyList] = useState(JSON.stringify(props.list))
|
|
9
|
+
const [myList , setMyList] = useState(JSON.parse(JSON.stringify(props.list)))
|
|
10
10
|
const deleteListItem = (index) => {
|
|
11
11
|
let updateList = JSON.parse(JSON.stringify(props.list));
|
|
12
12
|
updateList.splice(index, 1)
|