monica-alexandria 3.65.21 → 3.65.22
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
|
@@ -2514,7 +2514,7 @@ object-assign
|
|
|
2514
2514
|
fill: var(--mainLight);
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
|
-
`;function Ku(n){const[r,o]=t(n.files),i=(e,t)=>{n.boomRejected(e,t)},{getRootProps:c,getInputProps:l,isDragActive:s,isDragAccept:u,isDragReject:d}=Zu({accept:n.accept?n.accept:"image/svg, image/jpeg, image/png, image/jpg, video/mp4, video/mpeg, video/webm",onDrop:e=>{let t=e?.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)}))),r=[];t.forEach(((e,t)=>{"video"===n.type&&e.size>n.maxSize?i("videoSize",e.name):"image/png"
|
|
2517
|
+
`;function Ku(n){const[r,o]=t(n.files),i=(e,t)=>{n.boomRejected(e,t)},{getRootProps:c,getInputProps:l,isDragActive:s,isDragAccept:u,isDragReject:d}=Zu({accept:n.accept?n.accept:"image/svg, image/jpeg, image/png, image/jpg, video/mp4, video/mpeg, video/webm",onDrop:e=>{let t=e?.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)}))),r=[];t.forEach(((e,t)=>{"video"===n.type&&e.size>n.maxSize?i("videoSize",e.name):n.accept&&""!==n.accept&&!n.accept.split(",").map((e=>e.trim())).includes(e.type)||"image/png"!==e.type&&"image/jpeg"!==e.type&&"video/mp4"!==e.type&&"video/mpeg"!==e.type&&"image/webm"!==e.type?i("fileMimetype",e.name):e.size>n.maxSize?i("fileSize",e.name):r.push(e)})),r?.length>0&&o(r)},onDropRejected:()=>{"video"===n.type?i("videoType",""):"avatar"===n.type||"cover"===n.type?i("imageType",""):"media"===n.type&&i("mediaType","")},maxFiles:n.maxFiles});return a((()=>{n.getFilesFromChild(r)}),[r]),e.createElement(qu,Hs({noPadding:n.noPadding},c({isDragActive:s,isDragAccept:u,isDragReject:d})),e.createElement(b,{Icon:n.iconUpload?n.iconUpload:"Upload"}),e.createElement("span",null,n.text),e.createElement("input",l()))}const Yu=m.div`
|
|
2518
2518
|
background: ${e=>e.theme.low};
|
|
2519
2519
|
padding: var(--largePads);
|
|
2520
2520
|
border-radius: var(--normalRadius);
|
|
@@ -2566,7 +2566,7 @@ object-assign
|
|
|
2566
2566
|
align-items: center;
|
|
2567
2567
|
gap: 1rem;
|
|
2568
2568
|
margin-top: 1rem;
|
|
2569
|
-
`,od=t=>e.createElement(td,null,e.createElement("h4",null,t.title),e.createElement(nd,null,e.createElement(rd,{aspect:t.aspect},t.img&&t.uploaded?e.createElement("img",{src:t.img}):e.createElement("img",{src:t.imgDefault?t.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultCover.jpg"})),e.createElement(ad,null,e.createElement(Ku,{maxFiles:"1",getFilesFromChild:t.getFilesFromChild,boomRejected:t.boomRejected,accept:t.accept,onClick:t.onUpload,text:t.upload,iconLeft:t.iconUpload?t.iconUpload:"Upload",maxSize:t.maxSize}),t.uploaded?e.createElement(z,{onClick:t.onDelete,text:t.delete,iconLeft:t.iconUpload?t.iconUpload:"Delete"}):null),t.errors?e.createElement(Ve,{className:"ValidatorErrors"},t.errors?.map(((t,n)=>e.createElement(Ge,{key:n},e.createElement(b,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.successes?e.createElement(Ve,{className:"ValidatorSuccesses"},t.successes?.map(((t,n)=>e.createElement(We,{key:n},e.createElement(b,{Icon:"Check"}),e.createElement("h6",null,t))))):null,t.helpers?e.createElement(Ve,{className:"ValidatorHelpers"},t.helpers?.map(((t,n)=>e.createElement(Ze,{key:n},e.createElement(b,{Icon:"Warning"}),e.createElement("h6",null,t))))):null,t.tips?e.createElement(Ve,{className:"ValidatorTips"},t.tips?.map(((t,n)=>e.createElement(He,{key:n},e.createElement(b,{Icon:"Tip"}),e.createElement("h6",null,t))))):null)),id=m.div`
|
|
2569
|
+
`,od=t=>e.createElement(td,null,e.createElement("h4",null,t.title),e.createElement(nd,null,e.createElement(rd,{aspect:t.aspect},t.img&&t.uploaded?e.createElement("img",{src:t.img}):e.createElement("img",{src:t.imgDefault?t.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultCover.jpg"})),e.createElement(ad,null,e.createElement(Ku,{maxFiles:"1",getFilesFromChild:t.getFilesFromChild,boomRejected:t.boomRejected,accept:t.accept,onClick:t.onUpload,text:t.upload,iconLeft:t.iconUpload?t.iconUpload:"Upload",maxSize:t.maxSize,type:t.type}),t.uploaded||t.hideDelete?e.createElement(z,{onClick:t.onDelete,text:t.delete,iconLeft:t.iconUpload?t.iconUpload:"Delete"}):null),t.errors?e.createElement(Ve,{className:"ValidatorErrors"},t.errors?.map(((t,n)=>e.createElement(Ge,{key:n},e.createElement(b,{Icon:"Error"}),e.createElement("h6",null,t))))):null,t.successes?e.createElement(Ve,{className:"ValidatorSuccesses"},t.successes?.map(((t,n)=>e.createElement(We,{key:n},e.createElement(b,{Icon:"Check"}),e.createElement("h6",null,t))))):null,t.helpers?e.createElement(Ve,{className:"ValidatorHelpers"},t.helpers?.map(((t,n)=>e.createElement(Ze,{key:n},e.createElement(b,{Icon:"Warning"}),e.createElement("h6",null,t))))):null,t.tips?e.createElement(Ve,{className:"ValidatorTips"},t.tips?.map(((t,n)=>e.createElement(He,{key:n},e.createElement(b,{Icon:"Tip"}),e.createElement("h6",null,t))))):null)),id=m.div`
|
|
2570
2570
|
display: grid;
|
|
2571
2571
|
grid-template-columns: auto 1fr;
|
|
2572
2572
|
grid-gap: 2rem;
|
package/dist/index.js
CHANGED
|
@@ -2514,7 +2514,7 @@ object-assign
|
|
|
2514
2514
|
fill: var(--mainLight);
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
|
-
`;function Ku(t){const[n,r]=e.useState(t.files),o=(e,n)=>{t.boomRejected(e,n)},{getRootProps:i,getInputProps:l,isDragActive:c,isDragAccept:s,isDragReject:d}=Zu({accept:t.accept?t.accept:"image/svg, image/jpeg, image/png, image/jpg, video/mp4, video/mpeg, video/webm",onDrop:e=>{let n=e?.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)}))),a=[];n.forEach(((e,n)=>{"video"===t.type&&e.size>t.maxSize?o("videoSize",e.name):"image/png"
|
|
2517
|
+
`;function Ku(t){const[n,r]=e.useState(t.files),o=(e,n)=>{t.boomRejected(e,n)},{getRootProps:i,getInputProps:l,isDragActive:c,isDragAccept:s,isDragReject:d}=Zu({accept:t.accept?t.accept:"image/svg, image/jpeg, image/png, image/jpg, video/mp4, video/mpeg, video/webm",onDrop:e=>{let n=e?.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)}))),a=[];n.forEach(((e,n)=>{"video"===t.type&&e.size>t.maxSize?o("videoSize",e.name):t.accept&&""!==t.accept&&!t.accept.split(",").map((e=>e.trim())).includes(e.type)||"image/png"!==e.type&&"image/jpeg"!==e.type&&"video/mp4"!==e.type&&"video/mpeg"!==e.type&&"image/webm"!==e.type?o("fileMimetype",e.name):e.size>t.maxSize?o("fileSize",e.name):a.push(e)})),a?.length>0&&r(a)},onDropRejected:()=>{"video"===t.type?o("videoType",""):"avatar"===t.type||"cover"===t.type?o("imageType",""):"media"===t.type&&o("mediaType","")},maxFiles:t.maxFiles});return e.useEffect((()=>{t.getFilesFromChild(n)}),[n]),a.default.createElement(qu,Hc({noPadding:t.noPadding},i({isDragActive:c,isDragAccept:s,isDragReject:d})),a.default.createElement(u,{Icon:t.iconUpload?t.iconUpload:"Upload"}),a.default.createElement("span",null,t.text),a.default.createElement("input",l()))}const Yu=o.default.div`
|
|
2518
2518
|
background: ${e=>e.theme.low};
|
|
2519
2519
|
padding: var(--largePads);
|
|
2520
2520
|
border-radius: var(--normalRadius);
|
|
@@ -2915,4 +2915,4 @@ object-assign
|
|
|
2915
2915
|
display: grid;
|
|
2916
2916
|
grid-template-columns: 1fr 1fr;
|
|
2917
2917
|
grid-gap: 2rem;
|
|
2918
|
-
`;exports.Actions_=L,exports.Alert=Jl,exports.AlertContainer=ec,exports.AlertContext=Ge,exports.AlertIcon=tc,exports.AlertSingle=Ql,exports.Alert_=t=>{const{alerts:n,setAlerts:r}=e.useContext(Ge),o=e.useRef([]);return e.useEffect((()=>(n.forEach((e=>{(e=>{let n=t.duration?t.duration:2e3;const a=setTimeout((()=>{r((t=>t.filter((t=>t.id!==e))))}),n);o.current.push(a)})(e.id)})),()=>{o.current.forEach((e=>clearTimeout(e))),o.current=[]})),[n]),a.default.createElement(Jl,{storybook:t.storybook,className:t.className+" Alert"},n?.map(((e,t)=>a.default.createElement(Ql,{status:e.message.status,key:t},a.default.createElement(tc,null,a.default.createElement(u,{class_Icon:"Loading"===e.message.status?"Loading":"",Icon:"Error"===e.message.status?"Xicon":"Loading"===e.message.status?"Loading":"Check"})),a.default.createElement(ec,null,a.default.createElement("h6",null,e.message.text))))))},exports.AsideContext=Ze,exports.Black_=I,exports.Builder_=tt,exports.Builder_Brand=e=>a.default.createElement(nt,{className:e.className+" BuilderBrand",last:e.last,key:e.key},e.title?a.default.createElement("h4",null,e.title):null,e.children),exports.Button=i,exports.Card=N,exports.CardsForty=bl,exports.CardsFull=yl,exports.CardsSixty=wl,exports.CardsTools=vl,exports.Checkbox_=e=>a.default.createElement(rt,{className:e.className+" Checkbox",id:e.id,key:e.key,onClick:e.onClick},e.withInput?a.default.createElement(ot,{disabled:e.disable},a.default.createElement(je,{placeholder:e.placeholder,disabled:e.disable,checked:e.checked,value:e.value})):a.default.createElement("label",{for:e.id},a.default.createElement("p",null,e.text)),a.default.createElement(at,{className:"Check"},a.default.createElement("input",{type:"checkbox",id:e.id,onChange:e.onChange,checked:e.checked,value:e.value,name:e.name}),a.default.createElement("span",{className:"CheckCustom"}),a.default.createElement(u,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Color_Picker=e=>a.default.createElement(Ci,{id:e.id,className:e.className+"ColorPicker",key:e.key},a.default.createElement("input",{type:"color",value:e.selectedColor,onChange:t=>(t=>{const n=t.target.value;e.passColor({colorType:e.colorType,newColor:n})})(t)}),a.default.createElement("h5",null,e.text)),exports.Confirmation_=e=>a.default.createElement(ve,{storybook:e.storybook,className:e.className+" Confirmation"},a.default.createElement(ye,{storybook:e.storybook},a.default.createElement("h4",null,e.message),a.default.createElement(be,null,a.default.createElement(w,{id:e.idYes,onClick:e.onYes,iconLeft:"Check",text:e.yes}),a.default.createElement(y,{id:e.idNo,onClick:e.onNo,iconLeft:"Xicon",text:e.no})))),exports.Cookies_=e=>a.default.createElement(Cs,null,a.default.createElement("h4",null,e.title),a.default.createElement("p",null,e.text,a.default.createElement("a",{target:"_blank",href:e.onFind},e.find)),a.default.createElement(I,{text:e.accept,onClick:e.onAccept})),exports.Cta_=c,exports.Dark_Plain=e=>a.default.createElement(O,{className:e.className+" DarkPlain",id:e.id,noPadding:e.noPadding,size:e.size,onClick:e.onClick,active:e.active},e.iconLeft?a.default.createElement(u,{Icon:e.iconLeft}):e.localIconLeft?a.default.createElement(a.default.Fragment,null,e.localIconLeft):null,e.text?a.default.createElement("span",null,e.text):null,e.iconRight?a.default.createElement(u,{Icon:e.iconRight}):e.localIconRight?a.default.createElement(a.default.Fragment,null,e.localIconRight):null),exports.Dates_=e=>a.default.createElement(wi,null,a.default.createElement(bi,{onChange:e.onChange,value:e.value,selectRange:e.selectRange,dateFullCellRender:e.dateFullCellRender,maxDate:e.maxDate,minDate:e.minDate,allowPartialRange:e.allowPartialRange})),exports.Delete_Plain=k,exports.Dropdown_=Pe,exports.Edit_=e=>a.default.createElement(s,{size:"normal",className:e.className+" Edit",id:e.id,onClick:e.onClick},a.default.createElement(u,{Icon:e.icon})),exports.Elastic_Search=t=>{!function(e){if(!e.searchKeys)throw new Error('[Elastic_Search] Error: Missing required prop "searchKeys". Please provide an array of strings.');if(!Array.isArray(e.searchKeys))throw new Error('[Elastic_Search] Error: The "searchKeys" prop must be an array of strings.');if(e.searchKeys?.map((e=>{if("string"!=typeof e)throw new Error('[Elastic_Search] Error: All items in the "searchKeys" prop must be of type string.')})),void 0!==e.debounce&&!1!==e.debounce&&("number"!=typeof e.debounce||!Number.isInteger(e.debounce)))throw new Error('[Elastic_Search] Error: If provided, "debounce" must be an integer.');if(void 0!==e.maximumSuggestions&&!1!==e.maximumSuggestions&&("number"!=typeof e.maximumSuggestions||!Number.isInteger(e.maximumSuggestions)))throw new Error('[Elastic_Search] Error: If provided, "maximumSuggestions" must be an integer.');if(void 0!==e.sanitize&&!1!==e.sanitize&&("string"!=typeof e.sanitize||"greek"!==e.sanitize&&"greeklish"!==e.sanitize))throw new Error('[Elastic_Search] Error: If provided, "sanitize" must be a string with a value of "greek" or "greeklish".');if(void 0!==e.placeholder&&!1!==e.placeholder&&"string"!=typeof e.placeholder)throw new Error('[Elastic_Search] Error: If provided, "placeholder" must be a string.');if(!e.file)throw new Error('[Elastic_Search] Error: Missing required prop "file". Please provide an array of objects.');if(!Array.isArray(e.file))throw new Error('[Elastic_Search] Error: The "file" prop must be an array.');if(e.file.map((e=>{if("object"!=typeof e)throw new Error('[Elastic_Search] Error: All items in the "file" prop must be objects.')})),!e.returnType)throw new Error('[Elastic_Search] Error: Missing required prop "returnType". Please provide a string with a value of "string" or "object".');if("string"!=typeof e.returnType||"string"!==e.returnType&&"object"!==e.returnType)throw new Error('[Elastic_Search] Error: "returnType" must be a string with a value of "string" or "object".');if("string"===e.returnType){if(!e.returnProperty)throw new Error('[Elastic_Search] Error: When "returnType" is "string," "returnProperty" is required. Please provide a string.');if("string"!=typeof e.returnProperty)throw new Error('[Elastic_Search] Error: "returnProperty" must be a string when "returnType" is "string".')}if(!e.selectionType)throw new Error('[Elastic_Search] Error: Missing required prop "selectionType". Please provide a string with a value of "many" or "one".');if("string"!=typeof e.selectionType||"many"!==e.selectionType&&"one"!==e.selectionType)throw new Error('[Elastic_Search] Error: "selectionType" must be a string with a value of "many" or "one".');if(!e.displayProperty)throw new Error('[Elastic_Search] Error: Missing required prop "displayProperty". Please provide a string.');if("string"!=typeof e.displayProperty)throw new Error('[Elastic_Search] Error: "displayProperty" must be a string.');if(e.defaultSelected)if("one"===e.selectionType){if("object"!=typeof e.defaultSelected||Array.isArray(e.defaultSelected))throw new Error('[Elastic_Search] Error: If "selectionType" is "one", "defaultSelected" must be an object.')}else if(!("many"!==e.selectionType||Array.isArray(e.defaultSelected)&&e.defaultSelected.every((e=>"object"==typeof e&&!Array.isArray(e)))))throw new Error('[Elastic_Search] Error: If "selectionType" is "many", "defaultSelected" must be an array of objects.');if(void 0!==e.selectionSectionTitle&&!1!==e.selectionSectionTitle&&"string"!=typeof e.selectionSectionTitle)throw new Error('[Elastic_Search] Error: "selectionSectionTitle" must be a string.');if(void 0!==e.selectionItemIcon&&!1!==e.selectionItemIcon&&"string"!=typeof e.selectionItemIcon)throw new Error('[Elastic_Search] Error: "selectionItemIcon" must be a string.');if(void 0!==e.results&&!1!==e.results&&"function"!=typeof e.results)throw new Error('[Elastic_Search] Error: "results" must be a callback function.');if(void 0!==e.addSelectionFirst&&"boolean"!=typeof e.addSelectionFirst)throw new Error('[Elastic_Search] Error: "addSelectionFirst" must be a boolean if provided.');if(void 0!==e.blockDuplicateProperty&&!1!==e.blockDuplicateProperty&&"string"!=typeof e.blockDuplicateProperty)throw new Error('[Elastic_Search] Error: "blockDuplicateProperty" must be a string.')}(t),function(e){const t=["searchKeys","debounce","sanitize","placeholder","maximumSuggestions","file","selectionType","returnType","returnProperty","displayProperty","defaultSelected","selectionSectionTitle","selectionItemIcon","results","addSelectionFirst","blockDuplicateProperty"],n=Object.keys(e).filter((e=>!t.includes(e)));n.length>0&&console.warn(`[Elastic_Search] Warning: The following extra props were provided and will be ignored: ${n.join(", ")}`),"string"!==e.returnType&&e.returnProperty&&console.warn('[Elastic_Search] Warning: "returnProperty" will be ignored because "returnType" is not "string".'),"one"===e.selectionType&&e.addSelectionFirst&&console.warn('[Elastic_Search] Warning: "addSelectionFirst" will be ignored because "selectionType" is set to "one".'),"one"===e.selectionType&&e.blockDuplicateProperty&&console.warn('[Elastic_Search] Warning: "blockDuplicateProperty" will be ignored because "selectionType" is set to "one".'),"one"===e.selectionType&&e.selectionSectionTitle&&console.warn('[Elastic_Search] Warning: "selectionSectionTitle" will be ignored because "selectionType" is set to "one".'),"one"===e.selectionType&&e.selectionItemIcon&&console.warn('[Elastic_Search] Warning: "selectionItemIcon" will be ignored because "selectionType" is set to "one".')}(t);const[n,r]=e.useState({displayedValue:"one"===t.selectionType&&t?.defaultSelected&&t.defaultSelected[t.displayProperty]?t.defaultSelected[t.displayProperty]:"",fuseQueryValue:"",searchResults:[],defaultMaximumSuggestions:6,selected:t?.defaultSelected?t?.defaultSelected:"one"===t.selectionType?{}:[],skipDebounce:!1}),[o,i]=e.useState(0);let l={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:t.searchKeys};const c=()=>{let e=function(e,t,n){try{const r=new nn(t,n).search(e);return r.sort(((e,t)=>t.score+e.score)),r.map((e=>e.item))}catch(e){return[]}}(n.fuseQueryValue,t.file,l);t.blockDuplicateProperty&&"many"===t.selectionType&&(e=e.filter((e=>!n.selected.some((n=>n[t.blockDuplicateProperty]===e[t.blockDuplicateProperty]))))),e=e.slice(0,t.maximumSuggestions?t.maximumSuggestions:n.defaultMaximumSuggestions),r((t=>({...t,searchResults:e,skipDebounce:!1})))},s=function(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(c,t.debounce),d=e=>{const a="one"===t.selectionType?e:t.addSelectionFirst?[e,...n.selected]:[...n.selected,e];r((e=>({...e,selected:a,displayedValue:"many"===t.selectionType?"":a[t.displayProperty],fuseQueryValue:"",skipDebounce:!0})))},f=e=>{if("ArrowUp"==e.key&&(e.preventDefault(),i(0===o?n.searchResults?.length-1:o-1)),"ArrowDown"==e.key&&(e.preventDefault(),o===n.searchResults?.length-1?i(0):i(o+1)),e.key&&"Enter"===e.key){const e=n.searchResults[o-1];d(e)}};return e.useEffect((()=>{t.debounce&&!n.skipDebounce?s():c()}),[n.fuseQueryValue]),e.useEffect((()=>{t.results("object"===t.returnType?n.selected:"one"===t.selectionType?n.selected[t.returnProperty]?n.selected[t.returnProperty]:"":n.selected?.map((e=>e[t.returnProperty])))}),[n.selected]),a.default.createElement(an,{className:"ElasticSearch"},a.default.createElement(je,{id:"elasticSearch",placeholder:t.placeholder,autoComplete:"off",type:"text",value:n.displayedValue,onChange:e=>{const a=e.target.value;let o=cn(t.sanitize,e.target.value);if("one"!==t.selectionType||!n.selected[t.displayProperty]||t.file.some((e=>e[t.displayProperty]===a)))r((e=>({...e,displayedValue:a,fuseQueryValue:o})));else{const e=a.length-n.selected[t.displayProperty].length==1,o=e?a[a.length-1]:"",i=e?cn(t.sanitize,o):"";r((e=>({...e,displayedValue:o,fuseQueryValue:i,selected:{}})))}},onKeyPress:e=>f(e),onKeyDown:e=>f(e)}),a.default.createElement(on,{className:"ElasticSuggestions"},n.searchResults?.map(((e,r)=>a.default.createElement("li",{className:r===o%n.searchResults?.length-1?"ElasticSelected":"",key:r,onClick:()=>d(e)},a.default.createElement("p",null,e[t.displayProperty]))))),"many"===t.selectionType&&a.default.createElement(ln,null,a.default.createElement("h5",null,t.selectionSectionTitle),n.selected?.map(((e,o)=>a.default.createElement("li",{key:o},t.selectionItemIcon&&a.default.createElement(u,{Icon:t.selectionItemIcon}),a.default.createElement("h6",null,e[t.displayProperty]),a.default.createElement(S,{size:"small",iconLeft:"Delete",onClick:()=>(e=>{if("many"===t.selectionType){const t=[];for(const[r,a]of n.selected.entries())r!==e&&t.push(a);r((e=>({...e,selected:t})))}else r((e=>({...e,selected:{}})))})(o)}))))))},exports.Facebook_=e=>a.default.createElement(A,{onClick:e.onClick,id:e.id,className:e.className+" Facebook"},e.icon?a.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/morning/thirdParty/Facebook.png"}):null,e.text?a.default.createElement("span",null,e.text):null),exports.FadeIn=Yl,exports.Focus_=f,exports.Focus_Plain=e=>a.default.createElement(p,{className:e.className+" FocusPlain",id:e.id,size:e.size,onClick:e.onClick,onFocus:e.onFocus,noPadding:e.noPadding},e.iconLeft?a.default.createElement(u,{Icon:e.iconLeft}):e.localIconLeft?a.default.createElement(a.default.Fragment,null,e.localIconLeft):null,e.text?a.default.createElement("span",null,e.text):null,e.iconRight?a.default.createElement(u,{Icon:e.iconRight}):e.localIconRight?a.default.createElement(a.default.Fragment,null,e.localIconRight):null),exports.Footer_=e=>a.default.createElement(ss,null,a.default.createElement(ds,null,a.default.createElement(fs,null,a.default.createElement(ws,null,a.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/logo/logo_dark.svg"}),a.default.createElement("h2",null,"Doitforme")),a.default.createElement("h6",null,"© Copyright 2023"),a.default.createElement("h6",null,"DO IT FOR ME P.C.")),a.default.createElement(hs,null,a.default.createElement(gs,null,a.default.createElement("h6",null,"GET IN TOUCH")),a.default.createElement(vs,null,a.default.createElement(ys,null,a.default.createElement("ul",null,a.default.createElement("li",null,a.default.createElement("h5",null,e.sales,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Phone"}),a.default.createElement("p",null,"(0030) 24211 81 739")),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Email"}),a.default.createElement("p",null,"payments@doitforme.eu"))),a.default.createElement("li",null,a.default.createElement("h5",null,e.marketing,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Phone"}),a.default.createElement("p",null,"(0030) 24211 81 740")),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Email"}),a.default.createElement("p",null,"digitalmarketing@doitforme.eu"))),a.default.createElement("li",null,a.default.createElement("h5",null,e.development,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Phone"}),a.default.createElement("p",null,"(0030) 24211 81 741")),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Email"}),a.default.createElement("p",null,"webdevelopment@doitforme.eu"))))),a.default.createElement(bs,null,a.default.createElement("ul",null,a.default.createElement("li",null,a.default.createElement("h5",null,e.headquarters,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Location"}),a.default.createElement("p",null,e.address)))),a.default.createElement(_s,null,a.default.createElement("h5",null,e.follow,":"),a.default.createElement(Es,null,a.default.createElement("a",{href:"https://www.facebook.com/doitforme.eu"},a.default.createElement(u,{Icon:"Facebook"})),a.default.createElement("a",{href:"https://www.instagram.com/doitforme.europe/"},a.default.createElement(u,{Icon:"Instagram"})),a.default.createElement("a",{href:"https://www.linkedin.com/company/doitforme-eu/"},a.default.createElement(u,{Icon:"Linkedin"}))))))),a.default.createElement(ps,{hero:e.children},e.children?e.children:a.default.createElement(ms,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/landing/becomeHero.svg"}))),a.default.createElement(xs,null,a.default.createElement(ks,null,a.default.createElement(E,{className:e.className,id:e.id,text:e.terms,size:"small",onClick:e.onTerms}),a.default.createElement(E,{className:e.className,id:e.id,text:e.privacy,size:"small",onClick:e.onPrivacy})))),exports.Form=Oe,exports.FormGroup=Ne,exports.FormInput=De,exports.FormLabel=Ie,exports.FormList=Te,exports.Forty_Card_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(4):e<=T.xl&&e>T.md&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Dl,null,[...Array(n)]?.map((e=>a.default.createElement(Ll,{key:e,children:t.children,circle:t.circle}))))},exports.Forty_Stat_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(4):e<=T.xl&&e>T.md&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Fl,null,[...Array(n)]?.map((e=>a.default.createElement(Pl,{key:e,children:t.children,circle:t.circle}))))},exports.Full_Card_Loader=t=>{const[n,r]=e.useState((()=>{const e=window.innerWidth;return e>T.lg?10:e<=T.lg&&e>T.md?6:e<=T.md&&e>T.sm?4:2})()),o=e=>{e>T.lg?r(10):e<=T.lg&&e>T.md?r(6):e<=T.md&&e>T.sm?r(4):e<=T.sm&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Al,null,[...Array(n)]?.map((e=>a.default.createElement(Ll,{key:e,children:t.children,circle:t.circle}))))},exports.Full_Stat_Loader=t=>{const[n,r]=e.useState((()=>{const e=window.innerWidth;return e>T.lg?10:e<=T.lg&&e>T.md?6:e<=T.md&&e>T.sm?4:2})()),o=e=>{e>T.lg?r(10):e<=T.lg&&e>T.md?r(6):e<=T.md&&e>T.sm?r(4):e<=T.sm&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Rl,null,[...Array(n)].map((e=>a.default.createElement(Pl,{key:e,children:t.children,circle:t.circle}))))},exports.Google_Search=t=>{let n={includeScore:!0,keys:t.fileKeys,isCaseSensitive:!!t?.isCaseSensitive};const[r,o]=e.useState([]),[i,l]=e.useState({query:"",file:r,notfoundmessage:!1,defaultValue:t.defaultValue}),c=e=>{let n=e.target.value;if(t.sanitize&&(n=un.toGreeklish(n)),n=n.split(" "),n=n.filter((e=>""!==e)),n=n.join(" "),t.applyReverseFileProperties&&t.applyReverseFileProperties?.length>0)for(let e of t.applyReverseFileProperties)for(let t of r)t[e?.originalKey]&&(t[e?.reversedKey]=t[e?.originalKey].split(" ").reverse().join(" "));return t.minMatchCharacters&&n?.length<t.minMatchCharacters||t.maxMatchCharacters&&n?.length>t.maxMatchCharacters?(l({...i,query:n}),t.setResults([]),void(t?.setInputSize&&t.setInputSize(n?.length))):void(n!=i?.query&&l({...i,query:n}))},s=t?.debounceTime?((e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}})(c,t.debounceTime):c;return e.useEffect((()=>{i?.query?(()=>{const e=new nn(r,n);let a=i.query?e.search(i.query):r;if(t.maxAcceptedScore){let e=[];for(let n of a)n?.score<t?.maxAcceptedScore&&e.push(n);a=e}if(a=a?.map((e=>e?.item)),t?.applyReverseFileProperties&&t?.applyReverseFileProperties?.length>0)for(let e of t.applyReverseFileProperties)for(let t of a)t[e?.reversedKey]&&delete t[e?.reversedKey];t.setResults(i.query?.length?{data:a,input:i.query}:{data:[],input:""})})():t.setResults({data:[],input:""})}),[i]),e.useEffect((()=>{o(t.file)}),[t.file]),a.default.createElement(sn,null,a.default.createElement(dn,null,a.default.createElement(fn,{placeholder:t.placeholder,onChange:s,defaultValue:i.defaultValue,disabled:t.disabled}),a.default.createElement(pn,null,t.placeholder),a.default.createElement(mn,null,a.default.createElement(u,{Icon:"Search"}))))},exports.Grey_=h,exports.Grey_Link=e=>a.default.createElement(g,{className:e.className+" GreyLink",id:e.id,size:e.size,onClick:e.onClick,noPadding:e.noPadding},e.iconLeft?a.default.createElement(u,{Icon:e.iconLeft}):e.localIconLeft?a.default.createElement(a.default.Fragment,null,e.localIconLeft):null,e.text?a.default.createElement("span",null,e.text):null,e.iconRight?a.default.createElement(u,{Icon:e.iconRight}):e.localIconRight?a.default.createElement(a.default.Fragment,null,e.localIconRight):null),exports.HamContext=Be,exports.IconSvg=u,exports.Input_=je,exports.Input_Phone=t=>{const{region:n}=e.useContext(ze);return a.default.createElement(Ue,null,a.default.createElement(qe,null,a.default.createElement(Pe,null,a.default.createElement("select",{className:"Dropdown_EmojiAdapt"},a.default.createElement("option",{selected:"Greece"===n},"🇬🇷 +30"))),a.default.createElement(Pe,{items:t.array_PhoneDropdown})),a.default.createElement(je,{ref:t.ref,placeholder:t.placeholder,required:t.required,list:t.list,icon_ListItem:t.listIcon}))},exports.Input_Phone_Register=t=>{const[n,r]=e.useState({country:"Greece",code:"GR",phoneCode:"+30",flag:"🇬🇷"}),{region:o}=e.useContext(ze),{phoneCode:i,setPhoneCode:l}=e.useContext(We),c=e=>{let t=Ke.findIndex((t=>t.country==e));if(-1!==t){return Ke[t]}return n};return e.useEffect((()=>{l(c(o).phoneCode),r(c(o))}),[o]),a.default.createElement(Qe,null,a.default.createElement(Pe,null,a.default.createElement("select",{value:n.phoneCode,onChange:e=>{const t=Ke.find((t=>t.phoneCode===e.target.value));r(t)},className:"Dropdown_EmojiAdapt"},a.default.createElement("option",{value:n.phoneCode},n.flag," ",n.phoneCode),Ke?.sort(((e,t)=>e.country.localeCompare(t.country)))?.map(((e,t)=>a.default.createElement("option",{key:t,value:e.phoneCode},e.flag," ",e.country))))),a.default.createElement(je,{ref:t.ref,value:t.value,className:t.className,placeholder:t.placeholder,id:t.id,onChange:t.onChange,defaultValue:t.defaultValue,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,disabled:t.disabled,required:t.required,errors:t.errors,helpers:t.helpers,successes:t.successes,tips:t.tips,list:t.list,icon_ListItem:t.listIcon,defaultListItem:t.defaultListItem,onAdd:t.onAdd,add:t.add,onDelete:t.onDelete,onDeleteDefault:t.onDeleteDefault}))},exports.LangContext=Re,exports.Main_=y,exports.Main_Loader=e=>a.default.createElement(Zl,null,a.default.createElement("main",null,a.default.createElement(Gl,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/pLight.svg",alt:""})),a.default.createElement("main",null,a.default.createElement(Ul,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/tLight.svg",alt:""})),a.default.createElement("main",null,a.default.createElement(ql,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/turq.svg",alt:""})),a.default.createElement("main",null,a.default.createElement(Kl,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/purple.svg",alt:""}))),exports.Main_Plain=w,exports.MenuContext=Fe,exports.Nav_=e=>a.default.createElement(Qi,null,a.default.createElement(Li,{classNameLogo:e.classNameLogo,idLogo:e.idLogo,onClick_Logo:e.onClick_Logo,minorV:e.minorV,majorV:e.majorV}),e.cta?a.default.createElement(Oi,{classNameNavMid:e.classNameNavMid,classNameCta:e.classNameCta,idCta:e.idCta,onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}):a.default.createElement("div",null),"Protected"===e.role||"Admin"===e.role?a.default.createElement(Ki,{home:e.home,onHome:e.onHome,idHome:e.idHome,iconHome:e.iconHome,textHome:e.textHome,onClick_Admin_Main:e.onClick_Admin_Main,idAdminMain:e.idAdminMain,text_Admin_Main:e.text_Admin_Main,text_Subscriptions_Main:e.text_Subscriptions_Main,onClick_Subscriptions_Main:e.onClick_Subscriptions_Main,idSubscriptionsMain:e.idSubscriptionsMain,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,links:e.links,firstname_Account:e.firstname_Account,text_Account_Main:e.firstname_Account,onClick_Account:e.onClick_Account,onCLick_Account_Main:e.onClick_Account,idAccountMain:e.idAccountMain,text_Title_Main:e.text_Title_Main,text_Theme_Main:e.text_Theme_Main,onClick_Settings_Main:e.onClick_Settings_Main,idSettingsMain:e.idSettingsMain,text_Settings_Main:e.text_Settings_Main,onCLick_Logout:e.onCLick_Logout,idLogout:e.idLogout,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}):a.default.createElement(Ji,{role:e.role,links:e.links,onClick_Login:e.onClick_Login,text_Login:e.text_Login,idLogin:e.idLogin,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=t=>{const[n,r]=e.useState(!1);return a.default.createElement($,{href:t.href,className:t.className,imgBehave:t.imgBehave,key:t.key},t.options?a.default.createElement(P,null,a.default.createElement(R,null,t.onView&&a.default.createElement(w,{iconRight:"EyeOpen",noPadding:!0,text:t.view,onClick:t.onView}),t.onEdit&&a.default.createElement(w,{iconRight:"Edit",text:t.edit,noPadding:!0,onClick:t.onEdit}),t.onDelete&&a.default.createElement(S,{iconRight:"Delete",text:t.delete,noPadding:!0,onClick:t.onDelete}),t.optionsChildren)):null,a.default.createElement(z,{className:t.className,id:t.id,imgBehave:t.imgBehave,onClick:t.onClick,isOptions:t.isOptions},t.icon||t.header||t.imgSmall?a.default.createElement("header",null,t.icon?a.default.createElement("figure",null,a.default.createElement(u,{Icon:t.icon})):t.imgSmall?a.default.createElement(B,null,a.default.createElement("img",{src:t.imgSmall})):a.default.createElement(F,{headerColor:t.headerColor},t.header)):t.img?a.default.createElement("picture",null,a.default.createElement("img",{src:t.img,onLoad:t.onLoadImg})):null,t.title||t.subtitle?a.default.createElement(V,{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},t.title&&a.default.createElement(H,null,t.title?.length<=16?a.default.createElement("h3",null,t.title):a.default.createElement(W,null,a.default.createElement("h3",null,t.title.substring(0,16)+"..."),n&&a.default.createElement(Z,null,t.title))),t.subtitle&&a.default.createElement(H,null,t.subtitle?.length<=30?a.default.createElement("h5",null,t.subtitle):a.default.createElement(W,null,a.default.createElement("h5",null,t.subtitle.substring(0,30)+"..."),n&&a.default.createElement(Z,null,t.subtitle)))):null,t.children?a.default.createElement(G,null,t.children):null))},exports.On_Stat=e=>a.default.createElement(Ac,{className:e.className+" OnStat",id:e.id,onClick:e.onClick},a.default.createElement(Oc,{className:"OnStatTop"},a.default.createElement(Ic,null,e.title),a.default.createElement(Dc,{variant:e.variant},e.text)),a.default.createElement(Nc,{className:"OnStatBottom"},a.default.createElement(Tc,null,e.edited),a.default.createElement(w,{iconLeft:e.btnIcon,text:e.btnText,noPadding:!0}))),exports.Page=nc,exports.PageAlwaysVisible=uc,exports.PageDesktopOnly=sc,exports.PageDesktopPadding=dc,exports.PageForty=ac,exports.PageFull=rc,exports.PageIllu=bc,exports.PageSingle=mc,exports.PageSingleHeader=hc,exports.PageSingleRight=vc,exports.PageSingleleft=gc,exports.PageSixty=oc,exports.PageSub=yc,exports.PageSubtitle=pc,exports.PageTitle=fc,exports.PageTools=ic,exports.PageToolsForty=cc,exports.PageToolsSixty=lc,exports.PhoneContext=We,exports.Preset_Card=t=>{const[n,r]=e.useState(!1);return a.default.createElement(U,{selected:t.selected,onClick:t.onClick,id:t.id,href:t.href},a.default.createElement(q,{selected:t.selected},t.items?a.default.createElement(K,null,t?.items.slice(0,9).map(((e,n)=>a.default.createElement(Y,{selected:t.selected,key:n},t.isJson?a.default.createElement("h5",null,e[t.itemKey]):a.default.createElement("h5",null,e)))),t.items?.length>=10?a.default.createElement(Y,{selected:t.selected},a.default.createElement("h5",null,"...")):null):null),t.title||t.subtitle?a.default.createElement(X,{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},t.title&&a.default.createElement(J,null,t.title?.length<=16?a.default.createElement("h3",null,t.title):a.default.createElement(Q,null,a.default.createElement("h3",null,t.title.substring(0,16)+"..."),n&&a.default.createElement(ee,null,t.title))),t.subtitle&&a.default.createElement(J,null,t.subtitle?.length<=30?a.default.createElement("h5",null,t.subtitle):a.default.createElement(Q,null,a.default.createElement("h5",null,t.subtitle.substring(0,30)+"..."),n&&a.default.createElement(ee,null,t.subtitle)))):null)},exports.Radio_=e=>a.default.createElement(it,{key:e.key},e.withInput?a.default.createElement(je,{placeholder:e.placeholder}):a.default.createElement("label",{onClick:e.onClick,for:e.id},a.default.createElement("p",null,e.text)),a.default.createElement(lt,{className:"RadioCircle",id:e.id},a.default.createElement("input",{value:e.value,onChange:e.onChange,name:e.name,type:"radio",id:e.id,checked:e.checked,onClick:e.onClick}),a.default.createElement("span",{className:"RadioCustom"}),a.default.createElement("div",{className:"Bullet"}))),exports.Red_=S,exports.RegionContext=ze,exports.Row_Card=e=>a.default.createElement(pe,{className:e.className,id:e.id,onClick:e.onClick},a.default.createElement(he,null,a.default.createElement(u,{Icon:e.icon})),a.default.createElement(me,null,e.text)),exports.Section_Filters_Search=e=>a.default.createElement(Mc,null,a.default.createElement(tt,{title:e.inputTitle},e.children),a.default.createElement(y,{id:e.id,text:e.filters,iconRight:e.iconFilters?e.iconFilters:"Filter",onClick:e.onFilters})),exports.Section_Search=e=>a.default.createElement(Lc,null,a.default.createElement(tt,{title:e.title},e.children)),exports.Section_Title=e=>a.default.createElement(Ec,{onEdit:e.onEdit},a.default.createElement(xc,null,a.default.createElement(kc,null,e.icon?a.default.createElement(u,{Icon:e.icon}):e.img?a.default.createElement("img",{src:e.img}):null,a.default.createElement(Cc,null,e.text)),a.default.createElement(Sc,null,e.value)),e.onEdit?a.default.createElement(w,{iconLeft:"Edit",onClick:e.onEdit}):null),exports.Sidebar_=e=>a.default.createElement(el,null,e.children),exports.Sidebar_Box=e=>a.default.createElement(tl,{active:e.active,locked:e.locked,onClick:e.onClick,className:e.className,id:e.id},e.locked?a.default.createElement("h5",{className:e.className+" SidebarButtonTitleUnlock SidebarButtonTitle"},e.text,a.default.createElement(u,{Icon:"Lock"})):a.default.createElement("h5",{className:e.className+" SidebarButtonTitle"},e.text),e.icon?a.default.createElement(nl,{className:e.active?"SidebarActive":e.locked?"SidebarLocked":""},a.default.createElement(u,{Icon:e.icon})):e.img?a.default.createElement(rl,{className:e.active?"SidebarActive":e.locked?"SidebarLocked":""},a.default.createElement("img",{src:e.img,alt:e.alt})):null),exports.Single_=e=>a.default.createElement(wc,null,a.default.createElement(uc,null,a.default.createElement(fc,null,a.default.createElement("h1",null,e.title)),a.default.createElement(_c,null,a.default.createElement("h2",null,e.subtitle),a.default.createElement("h3",null,e.text),e.textMain||e.textGrey?a.default.createElement(L,null,e.textGrey?a.default.createElement(h,{className:e.className,id:e.id,text:e.textGrey,noPadding:!0,onClick:e.onClickGrey,iconLeft:e.iconGrey}):null,e.textMain?a.default.createElement(y,{className:e.className,id:e.id,text:e.textMain,noPadding:!0,onClick:e.onClickMain,iconRight:e.iconMain}):null):null)),a.default.createElement(uc,null,a.default.createElement(bc,null,a.default.createElement("img",{src:e.backgroundImage,alt:e.backgroundAlt})))),exports.Sixty_Card_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(6):e<=T.xl&&e>T.md?r(4):e<=T.md&&e>T.sm?r(6):e<=T.sm&&e>T.xs?r(4):e<T.xs&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),e.useEffect((()=>{let e=window.innerWidth;o(e)}),[]),a.default.createElement(Ol,null,[...Array(n)].map((e=>a.default.createElement(Ll,{key:e,children:t.children,circle:t.circle}))))},exports.Sixty_Stat_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(6):e<=T.xl&&e>T.md?r(4):e<=T.md&&e>T.sm?r(6):e<=T.sm&&e>T.xs?r(4):e<T.xs&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),e.useEffect((()=>{let e=window.innerWidth;o(e)}),[]),a.default.createElement(zl,null,[...Array(n)]?.map((e=>a.default.createElement(Pl,{key:e,children:t.children,circle:t.circle}))))},exports.Slider=Ns,exports.SliderContainer=Ps,exports.SliderContext=He,exports.SliderGrid=Rs,exports.SliderOverlay=Ts,exports.SliderTitle=$s,exports.SliderWrapper=js,exports.Slider_=e=>a.default.createElement(dl,{storybook:e.storybook,className:e.className+" Slider"},a.default.createElement(fl,{storybook:e.storybook,className:"StoryBook_Fix2",onClick:e.onClose}),a.default.createElement(pl,{storybook:e.storybook,className:"SliderWrapper"},a.default.createElement(ml,{grey:e.grey,className:"SliderTitle"},e.iconGreyRight||e.iconGreyLeft?a.default.createElement(h,{id:e.idGrey,text:e.grey,iconRight:e.iconGreyRight?e.iconGreyRight:null,iconLeft:e.iconGreyLeft?e.iconGreyLeft:null,size:"normal",onClick:e.onGrey}):null,a.default.createElement("h3",null,e.title),a.default.createElement(y,{id:e.id,text:e.text,iconRight:e.icon?e.icon:"Check",size:"normal",onClick:e.onClick})),a.default.createElement(hl,{className:"SliderContainer"},e.children))),exports.Stat_=e=>a.default.createElement(jc,{className:e.className+" Stat"},a.default.createElement($c,{className:"StatLeft"},a.default.createElement(Pc,null,e.title),a.default.createElement(Rc,null,e.text),e.children),a.default.createElement(zc,{className:"StatRight"},e.img?a.default.createElement(Bc,null,a.default.createElement("img",{src:e.img})):a.default.createElement(Fc,null,a.default.createElement(u,{Icon:e.icon})))),exports.Steps=Ms,exports.StepsActions=Is,exports.StepsComplete=As,exports.StepsContainer=Os,exports.StepsCurrent=Ls,exports.StepsWrapper=Ds,exports.Steps_=e=>a.default.createElement(cl,{className:e.className+" Steps"},a.default.createElement(ll,{steps:e.steps,currentStep:e.currentStep}),a.default.createElement(ul,{className:"StepsContainer"},e.steps?.map(((t,r)=>a.default.createElement(n.CSSTransition,{in:e.currentStep===r,timeout:500,unmountOnExit:!0,classNames:"Steps"},a.default.createElement(sl,{className:"Steps"},t)))))),exports.Steps_Actions=e=>a.default.createElement(al,null,a.default.createElement(h,{className:e.className_Grey,id:e.id_Grey,iconLeft:e.icon_Grey,text:e.text_Grey,onClick:e.onClick_Grey}),a.default.createElement(y,{className:e.className_Main,id:e.id_Main,iconRight:e.icon_Main,text:e.text_Main,onClick:e.onClick_Main})),exports.Sub_Circles=e=>a.default.createElement(ls,null,e.monica?a.default.createElement("div",{className:"monica"}):null,e.bond?a.default.createElement("div",{className:"bond"}):null,e.lois?a.default.createElement("div",{className:"lois"}):null,e.dailyprofit?a.default.createElement("div",{className:"dailyprofit"}):null),exports.Sub_Status=e=>a.default.createElement(cs,null,a.default.createElement(us,{className:e.status},a.default.createElement("div",null),a.default.createElement("h6",null,e.text))),exports.Textarea_=e=>a.default.createElement(ct,null,a.default.createElement(Le,{placeholder:e.placeholder,rows:e.rows?e.rows:"5",onChange:e.onChange,maxLength:e.limit},e.defaultValue),e.limit?a.default.createElement(ut,{capped:e.count>e.limit},a.default.createElement("span",null,e.valueLength)," / ",e.limit):null,e.required?a.default.createElement(Se,{className:"ValidatorRequired"},a.default.createElement(u,{Icon:"Asterisk"})):null,e.errors?a.default.createElement(we,{className:"ValidatorErrors"},e.errors?.map((e=>a.default.createElement(Ce,null,a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,e.tips&&e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map((e=>a.default.createElement(ke,null,a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e)))),e.tips?.map((e=>a.default.createElement(Ee,null,a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):e.tips?a.default.createElement(we,{className:"ValidatorHelpers"},e.tips?.map((e=>a.default.createElement(Ee,null,a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map((e=>a.default.createElement(ke,null,a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):null),exports.Theme=Ss,exports.ThemeContext=Ve,exports.ThemeDark={id:"dark",pure:"var(--vanta)",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",pure:"var(--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.Toggle_=ki,exports.Toggle_Stat=e=>a.default.createElement(Vc,{className:e.className+" ToggleStat",id:e.id,onClick:e.onClick,active:e.active},a.default.createElement("h5",null,e.text),a.default.createElement(ki,{active:e.active})),exports.Unlock_Card=e=>a.default.createElement(oe,{className:e.className,key:e.key},e.icon||e.header||e.imgSmall?a.default.createElement(ce,null,e.icon?a.default.createElement(ue,null,a.default.createElement(u,{Icon:e.icon})):a.default.createElement(se,null,a.default.createElement(fe,null),a.default.createElement("img",{src:e.imgSmall}))):e.img?a.default.createElement(de,{imgBehave:e.imgBehave},a.default.createElement("img",{src:e.img,onLoad:e.onLoadImg})):null,e.title||e.subtitle?a.default.createElement(le,null,e.title&&a.default.createElement("h3",null,e.title),e.subtitle&&a.default.createElement("h5",null,e.subtitle),e.children):null,a.default.createElement(ie,null,a.default.createElement(f,{className:e.className,id:e.id,href:e.href,text:e.textBuy,iconRight:e.iconBuy,onClick:e.onBuy}))),exports.Upload_Avatar=e=>a.default.createElement(Yu,null,a.default.createElement("h4",null,e.title),a.default.createElement(Xu,null,a.default.createElement(Ju,null,e.img&&e.uploaded?a.default.createElement("img",{src:e.img}):a.default.createElement("img",{src:e.imgDefault?e.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultAvatar.jpg"})),a.default.createElement(Qu,null,a.default.createElement(Ku,{maxFiles:"1",getFilesFromChild:e.getFilesFromChild,boomRejected:e.boomRejected,accept:e.accept,onClick:e.onUpload,text:e.upload,iconLeft:e.iconUpload?e.iconUpload:"Upload",maxSize:e.maxSize}),e.uploaded?a.default.createElement(S,{onClick:e.onDelete,text:e.delete,iconLeft:e.iconUpload?e.iconUpload:"Delete"}):null,e.errors?a.default.createElement(we,{className:"ValidatorErrors"},e.errors?.map(((e,t)=>a.default.createElement(Ce,{key:t},a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,e.successes?a.default.createElement(we,{className:"ValidatorSuccesses"},e.successes?.map(((e,t)=>a.default.createElement(xe,{key:t},a.default.createElement(u,{Icon:"Check"}),a.default.createElement("h6",null,e))))):null,e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map(((e,t)=>a.default.createElement(ke,{key:t},a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):null,e.tips?a.default.createElement(we,{className:"ValidatorTips"},e.tips?.map(((e,t)=>a.default.createElement(Ee,{key:t},a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):null))),exports.Upload_Cover=e=>a.default.createElement(es,null,a.default.createElement("h4",null,e.title),a.default.createElement(ts,null,a.default.createElement(ns,{aspect:e.aspect},e.img&&e.uploaded?a.default.createElement("img",{src:e.img}):a.default.createElement("img",{src:e.imgDefault?e.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultCover.jpg"})),a.default.createElement(rs,null,a.default.createElement(Ku,{maxFiles:"1",getFilesFromChild:e.getFilesFromChild,boomRejected:e.boomRejected,accept:e.accept,onClick:e.onUpload,text:e.upload,iconLeft:e.iconUpload?e.iconUpload:"Upload",maxSize:e.maxSize}),e.uploaded?a.default.createElement(S,{onClick:e.onDelete,text:e.delete,iconLeft:e.iconUpload?e.iconUpload:"Delete"}):null),e.errors?a.default.createElement(we,{className:"ValidatorErrors"},e.errors?.map(((e,t)=>a.default.createElement(Ce,{key:t},a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,e.successes?a.default.createElement(we,{className:"ValidatorSuccesses"},e.successes?.map(((e,t)=>a.default.createElement(xe,{key:t},a.default.createElement(u,{Icon:"Check"}),a.default.createElement("h6",null,e))))):null,e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map(((e,t)=>a.default.createElement(ke,{key:t},a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):null,e.tips?a.default.createElement(we,{className:"ValidatorTips"},e.tips?.map(((e,t)=>a.default.createElement(Ee,{key:t},a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):null)),exports.Upload_Logo=e=>a.default.createElement(as,null,a.default.createElement(os,null,e.img&&e.uploaded?a.default.createElement("img",{src:e.img}):a.default.createElement("img",{src:e.imgDefault?e.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultAvatar.jpg"})),a.default.createElement(is,null,a.default.createElement(Ku,{maxFiles:"1",getFilesFromChild:e.getFilesFromChild,boomRejected:e.boomRejected,accept:e.accept,onClick:e.onUpload,text:e.upload,iconLeft:e.iconUpload?e.iconUpload:"Upload",maxSize:e.maxSize}))),exports.View_Card=e=>a.default.createElement(te,{className:e.className,id:e.id,imgBehave:e.imgBehave,onClick:e.onClick},e.icon||e.header||e.imgSmall?a.default.createElement("header",null,e.icon?a.default.createElement("figure",null,a.default.createElement(u,{Icon:e.icon})):e.imgSmall?a.default.createElement(re,null,a.default.createElement("img",{src:e.imgSmall})):a.default.createElement(ne,{headerColor:e.headerColor},e.header)):e.img?a.default.createElement("picture",null,a.default.createElement("img",{src:e.img,onLoad:e.onLoadImg})):null,e.title||e.subtitle?a.default.createElement("footer",null,e.title&&a.default.createElement("h2",null,e.title),e.subtitle&&a.default.createElement("h5",null,e.subtitle),e.children):null),exports.White_Plain=E,exports.breakPoints=T,exports.countries=Ke,exports.device=j,exports.logo={all:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/AllDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/AllLight.svg"},erised:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/ErisedDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/ErisedLight.svg"},griphook:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/GriphookDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/GriphookLight.svg"},monica:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/MonicaDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/MonicaLight.svg"},bond:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/BondDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/BondLight.svg"},lois:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/LoisDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/LoisLight.svg"},dailyprofit:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/DailyprofitDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/DailyprofitLight.svg"},monica:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/MonicaDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/MonicaLight.svg"},whitecastle:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/WhitecastleDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/WhitecastleLight.svg"}};
|
|
2918
|
+
`;exports.Actions_=L,exports.Alert=Jl,exports.AlertContainer=ec,exports.AlertContext=Ge,exports.AlertIcon=tc,exports.AlertSingle=Ql,exports.Alert_=t=>{const{alerts:n,setAlerts:r}=e.useContext(Ge),o=e.useRef([]);return e.useEffect((()=>(n.forEach((e=>{(e=>{let n=t.duration?t.duration:2e3;const a=setTimeout((()=>{r((t=>t.filter((t=>t.id!==e))))}),n);o.current.push(a)})(e.id)})),()=>{o.current.forEach((e=>clearTimeout(e))),o.current=[]})),[n]),a.default.createElement(Jl,{storybook:t.storybook,className:t.className+" Alert"},n?.map(((e,t)=>a.default.createElement(Ql,{status:e.message.status,key:t},a.default.createElement(tc,null,a.default.createElement(u,{class_Icon:"Loading"===e.message.status?"Loading":"",Icon:"Error"===e.message.status?"Xicon":"Loading"===e.message.status?"Loading":"Check"})),a.default.createElement(ec,null,a.default.createElement("h6",null,e.message.text))))))},exports.AsideContext=Ze,exports.Black_=I,exports.Builder_=tt,exports.Builder_Brand=e=>a.default.createElement(nt,{className:e.className+" BuilderBrand",last:e.last,key:e.key},e.title?a.default.createElement("h4",null,e.title):null,e.children),exports.Button=i,exports.Card=N,exports.CardsForty=bl,exports.CardsFull=yl,exports.CardsSixty=wl,exports.CardsTools=vl,exports.Checkbox_=e=>a.default.createElement(rt,{className:e.className+" Checkbox",id:e.id,key:e.key,onClick:e.onClick},e.withInput?a.default.createElement(ot,{disabled:e.disable},a.default.createElement(je,{placeholder:e.placeholder,disabled:e.disable,checked:e.checked,value:e.value})):a.default.createElement("label",{for:e.id},a.default.createElement("p",null,e.text)),a.default.createElement(at,{className:"Check"},a.default.createElement("input",{type:"checkbox",id:e.id,onChange:e.onChange,checked:e.checked,value:e.value,name:e.name}),a.default.createElement("span",{className:"CheckCustom"}),a.default.createElement(u,{Icon:"Check",class_Icon:"CheckIcon"}))),exports.Color_Picker=e=>a.default.createElement(Ci,{id:e.id,className:e.className+"ColorPicker",key:e.key},a.default.createElement("input",{type:"color",value:e.selectedColor,onChange:t=>(t=>{const n=t.target.value;e.passColor({colorType:e.colorType,newColor:n})})(t)}),a.default.createElement("h5",null,e.text)),exports.Confirmation_=e=>a.default.createElement(ve,{storybook:e.storybook,className:e.className+" Confirmation"},a.default.createElement(ye,{storybook:e.storybook},a.default.createElement("h4",null,e.message),a.default.createElement(be,null,a.default.createElement(w,{id:e.idYes,onClick:e.onYes,iconLeft:"Check",text:e.yes}),a.default.createElement(y,{id:e.idNo,onClick:e.onNo,iconLeft:"Xicon",text:e.no})))),exports.Cookies_=e=>a.default.createElement(Cs,null,a.default.createElement("h4",null,e.title),a.default.createElement("p",null,e.text,a.default.createElement("a",{target:"_blank",href:e.onFind},e.find)),a.default.createElement(I,{text:e.accept,onClick:e.onAccept})),exports.Cta_=c,exports.Dark_Plain=e=>a.default.createElement(O,{className:e.className+" DarkPlain",id:e.id,noPadding:e.noPadding,size:e.size,onClick:e.onClick,active:e.active},e.iconLeft?a.default.createElement(u,{Icon:e.iconLeft}):e.localIconLeft?a.default.createElement(a.default.Fragment,null,e.localIconLeft):null,e.text?a.default.createElement("span",null,e.text):null,e.iconRight?a.default.createElement(u,{Icon:e.iconRight}):e.localIconRight?a.default.createElement(a.default.Fragment,null,e.localIconRight):null),exports.Dates_=e=>a.default.createElement(wi,null,a.default.createElement(bi,{onChange:e.onChange,value:e.value,selectRange:e.selectRange,dateFullCellRender:e.dateFullCellRender,maxDate:e.maxDate,minDate:e.minDate,allowPartialRange:e.allowPartialRange})),exports.Delete_Plain=k,exports.Dropdown_=Pe,exports.Edit_=e=>a.default.createElement(s,{size:"normal",className:e.className+" Edit",id:e.id,onClick:e.onClick},a.default.createElement(u,{Icon:e.icon})),exports.Elastic_Search=t=>{!function(e){if(!e.searchKeys)throw new Error('[Elastic_Search] Error: Missing required prop "searchKeys". Please provide an array of strings.');if(!Array.isArray(e.searchKeys))throw new Error('[Elastic_Search] Error: The "searchKeys" prop must be an array of strings.');if(e.searchKeys?.map((e=>{if("string"!=typeof e)throw new Error('[Elastic_Search] Error: All items in the "searchKeys" prop must be of type string.')})),void 0!==e.debounce&&!1!==e.debounce&&("number"!=typeof e.debounce||!Number.isInteger(e.debounce)))throw new Error('[Elastic_Search] Error: If provided, "debounce" must be an integer.');if(void 0!==e.maximumSuggestions&&!1!==e.maximumSuggestions&&("number"!=typeof e.maximumSuggestions||!Number.isInteger(e.maximumSuggestions)))throw new Error('[Elastic_Search] Error: If provided, "maximumSuggestions" must be an integer.');if(void 0!==e.sanitize&&!1!==e.sanitize&&("string"!=typeof e.sanitize||"greek"!==e.sanitize&&"greeklish"!==e.sanitize))throw new Error('[Elastic_Search] Error: If provided, "sanitize" must be a string with a value of "greek" or "greeklish".');if(void 0!==e.placeholder&&!1!==e.placeholder&&"string"!=typeof e.placeholder)throw new Error('[Elastic_Search] Error: If provided, "placeholder" must be a string.');if(!e.file)throw new Error('[Elastic_Search] Error: Missing required prop "file". Please provide an array of objects.');if(!Array.isArray(e.file))throw new Error('[Elastic_Search] Error: The "file" prop must be an array.');if(e.file.map((e=>{if("object"!=typeof e)throw new Error('[Elastic_Search] Error: All items in the "file" prop must be objects.')})),!e.returnType)throw new Error('[Elastic_Search] Error: Missing required prop "returnType". Please provide a string with a value of "string" or "object".');if("string"!=typeof e.returnType||"string"!==e.returnType&&"object"!==e.returnType)throw new Error('[Elastic_Search] Error: "returnType" must be a string with a value of "string" or "object".');if("string"===e.returnType){if(!e.returnProperty)throw new Error('[Elastic_Search] Error: When "returnType" is "string," "returnProperty" is required. Please provide a string.');if("string"!=typeof e.returnProperty)throw new Error('[Elastic_Search] Error: "returnProperty" must be a string when "returnType" is "string".')}if(!e.selectionType)throw new Error('[Elastic_Search] Error: Missing required prop "selectionType". Please provide a string with a value of "many" or "one".');if("string"!=typeof e.selectionType||"many"!==e.selectionType&&"one"!==e.selectionType)throw new Error('[Elastic_Search] Error: "selectionType" must be a string with a value of "many" or "one".');if(!e.displayProperty)throw new Error('[Elastic_Search] Error: Missing required prop "displayProperty". Please provide a string.');if("string"!=typeof e.displayProperty)throw new Error('[Elastic_Search] Error: "displayProperty" must be a string.');if(e.defaultSelected)if("one"===e.selectionType){if("object"!=typeof e.defaultSelected||Array.isArray(e.defaultSelected))throw new Error('[Elastic_Search] Error: If "selectionType" is "one", "defaultSelected" must be an object.')}else if(!("many"!==e.selectionType||Array.isArray(e.defaultSelected)&&e.defaultSelected.every((e=>"object"==typeof e&&!Array.isArray(e)))))throw new Error('[Elastic_Search] Error: If "selectionType" is "many", "defaultSelected" must be an array of objects.');if(void 0!==e.selectionSectionTitle&&!1!==e.selectionSectionTitle&&"string"!=typeof e.selectionSectionTitle)throw new Error('[Elastic_Search] Error: "selectionSectionTitle" must be a string.');if(void 0!==e.selectionItemIcon&&!1!==e.selectionItemIcon&&"string"!=typeof e.selectionItemIcon)throw new Error('[Elastic_Search] Error: "selectionItemIcon" must be a string.');if(void 0!==e.results&&!1!==e.results&&"function"!=typeof e.results)throw new Error('[Elastic_Search] Error: "results" must be a callback function.');if(void 0!==e.addSelectionFirst&&"boolean"!=typeof e.addSelectionFirst)throw new Error('[Elastic_Search] Error: "addSelectionFirst" must be a boolean if provided.');if(void 0!==e.blockDuplicateProperty&&!1!==e.blockDuplicateProperty&&"string"!=typeof e.blockDuplicateProperty)throw new Error('[Elastic_Search] Error: "blockDuplicateProperty" must be a string.')}(t),function(e){const t=["searchKeys","debounce","sanitize","placeholder","maximumSuggestions","file","selectionType","returnType","returnProperty","displayProperty","defaultSelected","selectionSectionTitle","selectionItemIcon","results","addSelectionFirst","blockDuplicateProperty"],n=Object.keys(e).filter((e=>!t.includes(e)));n.length>0&&console.warn(`[Elastic_Search] Warning: The following extra props were provided and will be ignored: ${n.join(", ")}`),"string"!==e.returnType&&e.returnProperty&&console.warn('[Elastic_Search] Warning: "returnProperty" will be ignored because "returnType" is not "string".'),"one"===e.selectionType&&e.addSelectionFirst&&console.warn('[Elastic_Search] Warning: "addSelectionFirst" will be ignored because "selectionType" is set to "one".'),"one"===e.selectionType&&e.blockDuplicateProperty&&console.warn('[Elastic_Search] Warning: "blockDuplicateProperty" will be ignored because "selectionType" is set to "one".'),"one"===e.selectionType&&e.selectionSectionTitle&&console.warn('[Elastic_Search] Warning: "selectionSectionTitle" will be ignored because "selectionType" is set to "one".'),"one"===e.selectionType&&e.selectionItemIcon&&console.warn('[Elastic_Search] Warning: "selectionItemIcon" will be ignored because "selectionType" is set to "one".')}(t);const[n,r]=e.useState({displayedValue:"one"===t.selectionType&&t?.defaultSelected&&t.defaultSelected[t.displayProperty]?t.defaultSelected[t.displayProperty]:"",fuseQueryValue:"",searchResults:[],defaultMaximumSuggestions:6,selected:t?.defaultSelected?t?.defaultSelected:"one"===t.selectionType?{}:[],skipDebounce:!1}),[o,i]=e.useState(0);let l={isCaseSensitive:!1,includeScore:!1,shouldSort:!0,threshold:.5,findAllMatches:!0,address:0,minMatchCharLength:1,ignoreLocation:!1,keys:t.searchKeys};const c=()=>{let e=function(e,t,n){try{const r=new nn(t,n).search(e);return r.sort(((e,t)=>t.score+e.score)),r.map((e=>e.item))}catch(e){return[]}}(n.fuseQueryValue,t.file,l);t.blockDuplicateProperty&&"many"===t.selectionType&&(e=e.filter((e=>!n.selected.some((n=>n[t.blockDuplicateProperty]===e[t.blockDuplicateProperty]))))),e=e.slice(0,t.maximumSuggestions?t.maximumSuggestions:n.defaultMaximumSuggestions),r((t=>({...t,searchResults:e,skipDebounce:!1})))},s=function(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(c,t.debounce),d=e=>{const a="one"===t.selectionType?e:t.addSelectionFirst?[e,...n.selected]:[...n.selected,e];r((e=>({...e,selected:a,displayedValue:"many"===t.selectionType?"":a[t.displayProperty],fuseQueryValue:"",skipDebounce:!0})))},f=e=>{if("ArrowUp"==e.key&&(e.preventDefault(),i(0===o?n.searchResults?.length-1:o-1)),"ArrowDown"==e.key&&(e.preventDefault(),o===n.searchResults?.length-1?i(0):i(o+1)),e.key&&"Enter"===e.key){const e=n.searchResults[o-1];d(e)}};return e.useEffect((()=>{t.debounce&&!n.skipDebounce?s():c()}),[n.fuseQueryValue]),e.useEffect((()=>{t.results("object"===t.returnType?n.selected:"one"===t.selectionType?n.selected[t.returnProperty]?n.selected[t.returnProperty]:"":n.selected?.map((e=>e[t.returnProperty])))}),[n.selected]),a.default.createElement(an,{className:"ElasticSearch"},a.default.createElement(je,{id:"elasticSearch",placeholder:t.placeholder,autoComplete:"off",type:"text",value:n.displayedValue,onChange:e=>{const a=e.target.value;let o=cn(t.sanitize,e.target.value);if("one"!==t.selectionType||!n.selected[t.displayProperty]||t.file.some((e=>e[t.displayProperty]===a)))r((e=>({...e,displayedValue:a,fuseQueryValue:o})));else{const e=a.length-n.selected[t.displayProperty].length==1,o=e?a[a.length-1]:"",i=e?cn(t.sanitize,o):"";r((e=>({...e,displayedValue:o,fuseQueryValue:i,selected:{}})))}},onKeyPress:e=>f(e),onKeyDown:e=>f(e)}),a.default.createElement(on,{className:"ElasticSuggestions"},n.searchResults?.map(((e,r)=>a.default.createElement("li",{className:r===o%n.searchResults?.length-1?"ElasticSelected":"",key:r,onClick:()=>d(e)},a.default.createElement("p",null,e[t.displayProperty]))))),"many"===t.selectionType&&a.default.createElement(ln,null,a.default.createElement("h5",null,t.selectionSectionTitle),n.selected?.map(((e,o)=>a.default.createElement("li",{key:o},t.selectionItemIcon&&a.default.createElement(u,{Icon:t.selectionItemIcon}),a.default.createElement("h6",null,e[t.displayProperty]),a.default.createElement(S,{size:"small",iconLeft:"Delete",onClick:()=>(e=>{if("many"===t.selectionType){const t=[];for(const[r,a]of n.selected.entries())r!==e&&t.push(a);r((e=>({...e,selected:t})))}else r((e=>({...e,selected:{}})))})(o)}))))))},exports.Facebook_=e=>a.default.createElement(A,{onClick:e.onClick,id:e.id,className:e.className+" Facebook"},e.icon?a.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/morning/thirdParty/Facebook.png"}):null,e.text?a.default.createElement("span",null,e.text):null),exports.FadeIn=Yl,exports.Focus_=f,exports.Focus_Plain=e=>a.default.createElement(p,{className:e.className+" FocusPlain",id:e.id,size:e.size,onClick:e.onClick,onFocus:e.onFocus,noPadding:e.noPadding},e.iconLeft?a.default.createElement(u,{Icon:e.iconLeft}):e.localIconLeft?a.default.createElement(a.default.Fragment,null,e.localIconLeft):null,e.text?a.default.createElement("span",null,e.text):null,e.iconRight?a.default.createElement(u,{Icon:e.iconRight}):e.localIconRight?a.default.createElement(a.default.Fragment,null,e.localIconRight):null),exports.Footer_=e=>a.default.createElement(ss,null,a.default.createElement(ds,null,a.default.createElement(fs,null,a.default.createElement(ws,null,a.default.createElement("img",{src:"https://genius1071.friktoriaservers.net/doitforme/logo/logo_dark.svg"}),a.default.createElement("h2",null,"Doitforme")),a.default.createElement("h6",null,"© Copyright 2023"),a.default.createElement("h6",null,"DO IT FOR ME P.C.")),a.default.createElement(hs,null,a.default.createElement(gs,null,a.default.createElement("h6",null,"GET IN TOUCH")),a.default.createElement(vs,null,a.default.createElement(ys,null,a.default.createElement("ul",null,a.default.createElement("li",null,a.default.createElement("h5",null,e.sales,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Phone"}),a.default.createElement("p",null,"(0030) 24211 81 739")),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Email"}),a.default.createElement("p",null,"payments@doitforme.eu"))),a.default.createElement("li",null,a.default.createElement("h5",null,e.marketing,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Phone"}),a.default.createElement("p",null,"(0030) 24211 81 740")),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Email"}),a.default.createElement("p",null,"digitalmarketing@doitforme.eu"))),a.default.createElement("li",null,a.default.createElement("h5",null,e.development,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Phone"}),a.default.createElement("p",null,"(0030) 24211 81 741")),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Email"}),a.default.createElement("p",null,"webdevelopment@doitforme.eu"))))),a.default.createElement(bs,null,a.default.createElement("ul",null,a.default.createElement("li",null,a.default.createElement("h5",null,e.headquarters,":"),a.default.createElement("aside",null,a.default.createElement(u,{Icon:"Location"}),a.default.createElement("p",null,e.address)))),a.default.createElement(_s,null,a.default.createElement("h5",null,e.follow,":"),a.default.createElement(Es,null,a.default.createElement("a",{href:"https://www.facebook.com/doitforme.eu"},a.default.createElement(u,{Icon:"Facebook"})),a.default.createElement("a",{href:"https://www.instagram.com/doitforme.europe/"},a.default.createElement(u,{Icon:"Instagram"})),a.default.createElement("a",{href:"https://www.linkedin.com/company/doitforme-eu/"},a.default.createElement(u,{Icon:"Linkedin"}))))))),a.default.createElement(ps,{hero:e.children},e.children?e.children:a.default.createElement(ms,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/landing/becomeHero.svg"}))),a.default.createElement(xs,null,a.default.createElement(ks,null,a.default.createElement(E,{className:e.className,id:e.id,text:e.terms,size:"small",onClick:e.onTerms}),a.default.createElement(E,{className:e.className,id:e.id,text:e.privacy,size:"small",onClick:e.onPrivacy})))),exports.Form=Oe,exports.FormGroup=Ne,exports.FormInput=De,exports.FormLabel=Ie,exports.FormList=Te,exports.Forty_Card_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(4):e<=T.xl&&e>T.md&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Dl,null,[...Array(n)]?.map((e=>a.default.createElement(Ll,{key:e,children:t.children,circle:t.circle}))))},exports.Forty_Stat_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(4):e<=T.xl&&e>T.md&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Fl,null,[...Array(n)]?.map((e=>a.default.createElement(Pl,{key:e,children:t.children,circle:t.circle}))))},exports.Full_Card_Loader=t=>{const[n,r]=e.useState((()=>{const e=window.innerWidth;return e>T.lg?10:e<=T.lg&&e>T.md?6:e<=T.md&&e>T.sm?4:2})()),o=e=>{e>T.lg?r(10):e<=T.lg&&e>T.md?r(6):e<=T.md&&e>T.sm?r(4):e<=T.sm&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Al,null,[...Array(n)]?.map((e=>a.default.createElement(Ll,{key:e,children:t.children,circle:t.circle}))))},exports.Full_Stat_Loader=t=>{const[n,r]=e.useState((()=>{const e=window.innerWidth;return e>T.lg?10:e<=T.lg&&e>T.md?6:e<=T.md&&e>T.sm?4:2})()),o=e=>{e>T.lg?r(10):e<=T.lg&&e>T.md?r(6):e<=T.md&&e>T.sm?r(4):e<=T.sm&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),window.addEventListener("load",(()=>{let e=window.innerWidth;o(e)})),a.default.createElement(Rl,null,[...Array(n)].map((e=>a.default.createElement(Pl,{key:e,children:t.children,circle:t.circle}))))},exports.Google_Search=t=>{let n={includeScore:!0,keys:t.fileKeys,isCaseSensitive:!!t?.isCaseSensitive};const[r,o]=e.useState([]),[i,l]=e.useState({query:"",file:r,notfoundmessage:!1,defaultValue:t.defaultValue}),c=e=>{let n=e.target.value;if(t.sanitize&&(n=un.toGreeklish(n)),n=n.split(" "),n=n.filter((e=>""!==e)),n=n.join(" "),t.applyReverseFileProperties&&t.applyReverseFileProperties?.length>0)for(let e of t.applyReverseFileProperties)for(let t of r)t[e?.originalKey]&&(t[e?.reversedKey]=t[e?.originalKey].split(" ").reverse().join(" "));return t.minMatchCharacters&&n?.length<t.minMatchCharacters||t.maxMatchCharacters&&n?.length>t.maxMatchCharacters?(l({...i,query:n}),t.setResults([]),void(t?.setInputSize&&t.setInputSize(n?.length))):void(n!=i?.query&&l({...i,query:n}))},s=t?.debounceTime?((e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}})(c,t.debounceTime):c;return e.useEffect((()=>{i?.query?(()=>{const e=new nn(r,n);let a=i.query?e.search(i.query):r;if(t.maxAcceptedScore){let e=[];for(let n of a)n?.score<t?.maxAcceptedScore&&e.push(n);a=e}if(a=a?.map((e=>e?.item)),t?.applyReverseFileProperties&&t?.applyReverseFileProperties?.length>0)for(let e of t.applyReverseFileProperties)for(let t of a)t[e?.reversedKey]&&delete t[e?.reversedKey];t.setResults(i.query?.length?{data:a,input:i.query}:{data:[],input:""})})():t.setResults({data:[],input:""})}),[i]),e.useEffect((()=>{o(t.file)}),[t.file]),a.default.createElement(sn,null,a.default.createElement(dn,null,a.default.createElement(fn,{placeholder:t.placeholder,onChange:s,defaultValue:i.defaultValue,disabled:t.disabled}),a.default.createElement(pn,null,t.placeholder),a.default.createElement(mn,null,a.default.createElement(u,{Icon:"Search"}))))},exports.Grey_=h,exports.Grey_Link=e=>a.default.createElement(g,{className:e.className+" GreyLink",id:e.id,size:e.size,onClick:e.onClick,noPadding:e.noPadding},e.iconLeft?a.default.createElement(u,{Icon:e.iconLeft}):e.localIconLeft?a.default.createElement(a.default.Fragment,null,e.localIconLeft):null,e.text?a.default.createElement("span",null,e.text):null,e.iconRight?a.default.createElement(u,{Icon:e.iconRight}):e.localIconRight?a.default.createElement(a.default.Fragment,null,e.localIconRight):null),exports.HamContext=Be,exports.IconSvg=u,exports.Input_=je,exports.Input_Phone=t=>{const{region:n}=e.useContext(ze);return a.default.createElement(Ue,null,a.default.createElement(qe,null,a.default.createElement(Pe,null,a.default.createElement("select",{className:"Dropdown_EmojiAdapt"},a.default.createElement("option",{selected:"Greece"===n},"🇬🇷 +30"))),a.default.createElement(Pe,{items:t.array_PhoneDropdown})),a.default.createElement(je,{ref:t.ref,placeholder:t.placeholder,required:t.required,list:t.list,icon_ListItem:t.listIcon}))},exports.Input_Phone_Register=t=>{const[n,r]=e.useState({country:"Greece",code:"GR",phoneCode:"+30",flag:"🇬🇷"}),{region:o}=e.useContext(ze),{phoneCode:i,setPhoneCode:l}=e.useContext(We),c=e=>{let t=Ke.findIndex((t=>t.country==e));if(-1!==t){return Ke[t]}return n};return e.useEffect((()=>{l(c(o).phoneCode),r(c(o))}),[o]),a.default.createElement(Qe,null,a.default.createElement(Pe,null,a.default.createElement("select",{value:n.phoneCode,onChange:e=>{const t=Ke.find((t=>t.phoneCode===e.target.value));r(t)},className:"Dropdown_EmojiAdapt"},a.default.createElement("option",{value:n.phoneCode},n.flag," ",n.phoneCode),Ke?.sort(((e,t)=>e.country.localeCompare(t.country)))?.map(((e,t)=>a.default.createElement("option",{key:t,value:e.phoneCode},e.flag," ",e.country))))),a.default.createElement(je,{ref:t.ref,value:t.value,className:t.className,placeholder:t.placeholder,id:t.id,onChange:t.onChange,defaultValue:t.defaultValue,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,disabled:t.disabled,required:t.required,errors:t.errors,helpers:t.helpers,successes:t.successes,tips:t.tips,list:t.list,icon_ListItem:t.listIcon,defaultListItem:t.defaultListItem,onAdd:t.onAdd,add:t.add,onDelete:t.onDelete,onDeleteDefault:t.onDeleteDefault}))},exports.LangContext=Re,exports.Main_=y,exports.Main_Loader=e=>a.default.createElement(Zl,null,a.default.createElement("main",null,a.default.createElement(Gl,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/pLight.svg",alt:""})),a.default.createElement("main",null,a.default.createElement(Ul,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/tLight.svg",alt:""})),a.default.createElement("main",null,a.default.createElement(ql,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/turq.svg",alt:""})),a.default.createElement("main",null,a.default.createElement(Kl,{src:"https://genius1071.friktoriaservers.net/mongol/app/illus/mainLoader/purple.svg",alt:""}))),exports.Main_Plain=w,exports.MenuContext=Fe,exports.Nav_=e=>a.default.createElement(Qi,null,a.default.createElement(Li,{classNameLogo:e.classNameLogo,idLogo:e.idLogo,onClick_Logo:e.onClick_Logo,minorV:e.minorV,majorV:e.majorV}),e.cta?a.default.createElement(Oi,{classNameNavMid:e.classNameNavMid,classNameCta:e.classNameCta,idCta:e.idCta,onClick_Cta:e.onClick_Cta,text_Cta:e.text_Cta}):a.default.createElement("div",null),"Protected"===e.role||"Admin"===e.role?a.default.createElement(Ki,{home:e.home,onHome:e.onHome,idHome:e.idHome,iconHome:e.iconHome,textHome:e.textHome,onClick_Admin_Main:e.onClick_Admin_Main,idAdminMain:e.idAdminMain,text_Admin_Main:e.text_Admin_Main,text_Subscriptions_Main:e.text_Subscriptions_Main,onClick_Subscriptions_Main:e.onClick_Subscriptions_Main,idSubscriptionsMain:e.idSubscriptionsMain,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,links:e.links,firstname_Account:e.firstname_Account,text_Account_Main:e.firstname_Account,onClick_Account:e.onClick_Account,onCLick_Account_Main:e.onClick_Account,idAccountMain:e.idAccountMain,text_Title_Main:e.text_Title_Main,text_Theme_Main:e.text_Theme_Main,onClick_Settings_Main:e.onClick_Settings_Main,idSettingsMain:e.idSettingsMain,text_Settings_Main:e.text_Settings_Main,onCLick_Logout:e.onCLick_Logout,idLogout:e.idLogout,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}):a.default.createElement(Ji,{role:e.role,links:e.links,onClick_Login:e.onClick_Login,text_Login:e.text_Login,idLogin:e.idLogin,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=t=>{const[n,r]=e.useState(!1);return a.default.createElement($,{href:t.href,className:t.className,imgBehave:t.imgBehave,key:t.key},t.options?a.default.createElement(P,null,a.default.createElement(R,null,t.onView&&a.default.createElement(w,{iconRight:"EyeOpen",noPadding:!0,text:t.view,onClick:t.onView}),t.onEdit&&a.default.createElement(w,{iconRight:"Edit",text:t.edit,noPadding:!0,onClick:t.onEdit}),t.onDelete&&a.default.createElement(S,{iconRight:"Delete",text:t.delete,noPadding:!0,onClick:t.onDelete}),t.optionsChildren)):null,a.default.createElement(z,{className:t.className,id:t.id,imgBehave:t.imgBehave,onClick:t.onClick,isOptions:t.isOptions},t.icon||t.header||t.imgSmall?a.default.createElement("header",null,t.icon?a.default.createElement("figure",null,a.default.createElement(u,{Icon:t.icon})):t.imgSmall?a.default.createElement(B,null,a.default.createElement("img",{src:t.imgSmall})):a.default.createElement(F,{headerColor:t.headerColor},t.header)):t.img?a.default.createElement("picture",null,a.default.createElement("img",{src:t.img,onLoad:t.onLoadImg})):null,t.title||t.subtitle?a.default.createElement(V,{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},t.title&&a.default.createElement(H,null,t.title?.length<=16?a.default.createElement("h3",null,t.title):a.default.createElement(W,null,a.default.createElement("h3",null,t.title.substring(0,16)+"..."),n&&a.default.createElement(Z,null,t.title))),t.subtitle&&a.default.createElement(H,null,t.subtitle?.length<=30?a.default.createElement("h5",null,t.subtitle):a.default.createElement(W,null,a.default.createElement("h5",null,t.subtitle.substring(0,30)+"..."),n&&a.default.createElement(Z,null,t.subtitle)))):null,t.children?a.default.createElement(G,null,t.children):null))},exports.On_Stat=e=>a.default.createElement(Ac,{className:e.className+" OnStat",id:e.id,onClick:e.onClick},a.default.createElement(Oc,{className:"OnStatTop"},a.default.createElement(Ic,null,e.title),a.default.createElement(Dc,{variant:e.variant},e.text)),a.default.createElement(Nc,{className:"OnStatBottom"},a.default.createElement(Tc,null,e.edited),a.default.createElement(w,{iconLeft:e.btnIcon,text:e.btnText,noPadding:!0}))),exports.Page=nc,exports.PageAlwaysVisible=uc,exports.PageDesktopOnly=sc,exports.PageDesktopPadding=dc,exports.PageForty=ac,exports.PageFull=rc,exports.PageIllu=bc,exports.PageSingle=mc,exports.PageSingleHeader=hc,exports.PageSingleRight=vc,exports.PageSingleleft=gc,exports.PageSixty=oc,exports.PageSub=yc,exports.PageSubtitle=pc,exports.PageTitle=fc,exports.PageTools=ic,exports.PageToolsForty=cc,exports.PageToolsSixty=lc,exports.PhoneContext=We,exports.Preset_Card=t=>{const[n,r]=e.useState(!1);return a.default.createElement(U,{selected:t.selected,onClick:t.onClick,id:t.id,href:t.href},a.default.createElement(q,{selected:t.selected},t.items?a.default.createElement(K,null,t?.items.slice(0,9).map(((e,n)=>a.default.createElement(Y,{selected:t.selected,key:n},t.isJson?a.default.createElement("h5",null,e[t.itemKey]):a.default.createElement("h5",null,e)))),t.items?.length>=10?a.default.createElement(Y,{selected:t.selected},a.default.createElement("h5",null,"...")):null):null),t.title||t.subtitle?a.default.createElement(X,{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},t.title&&a.default.createElement(J,null,t.title?.length<=16?a.default.createElement("h3",null,t.title):a.default.createElement(Q,null,a.default.createElement("h3",null,t.title.substring(0,16)+"..."),n&&a.default.createElement(ee,null,t.title))),t.subtitle&&a.default.createElement(J,null,t.subtitle?.length<=30?a.default.createElement("h5",null,t.subtitle):a.default.createElement(Q,null,a.default.createElement("h5",null,t.subtitle.substring(0,30)+"..."),n&&a.default.createElement(ee,null,t.subtitle)))):null)},exports.Radio_=e=>a.default.createElement(it,{key:e.key},e.withInput?a.default.createElement(je,{placeholder:e.placeholder}):a.default.createElement("label",{onClick:e.onClick,for:e.id},a.default.createElement("p",null,e.text)),a.default.createElement(lt,{className:"RadioCircle",id:e.id},a.default.createElement("input",{value:e.value,onChange:e.onChange,name:e.name,type:"radio",id:e.id,checked:e.checked,onClick:e.onClick}),a.default.createElement("span",{className:"RadioCustom"}),a.default.createElement("div",{className:"Bullet"}))),exports.Red_=S,exports.RegionContext=ze,exports.Row_Card=e=>a.default.createElement(pe,{className:e.className,id:e.id,onClick:e.onClick},a.default.createElement(he,null,a.default.createElement(u,{Icon:e.icon})),a.default.createElement(me,null,e.text)),exports.Section_Filters_Search=e=>a.default.createElement(Mc,null,a.default.createElement(tt,{title:e.inputTitle},e.children),a.default.createElement(y,{id:e.id,text:e.filters,iconRight:e.iconFilters?e.iconFilters:"Filter",onClick:e.onFilters})),exports.Section_Search=e=>a.default.createElement(Lc,null,a.default.createElement(tt,{title:e.title},e.children)),exports.Section_Title=e=>a.default.createElement(Ec,{onEdit:e.onEdit},a.default.createElement(xc,null,a.default.createElement(kc,null,e.icon?a.default.createElement(u,{Icon:e.icon}):e.img?a.default.createElement("img",{src:e.img}):null,a.default.createElement(Cc,null,e.text)),a.default.createElement(Sc,null,e.value)),e.onEdit?a.default.createElement(w,{iconLeft:"Edit",onClick:e.onEdit}):null),exports.Sidebar_=e=>a.default.createElement(el,null,e.children),exports.Sidebar_Box=e=>a.default.createElement(tl,{active:e.active,locked:e.locked,onClick:e.onClick,className:e.className,id:e.id},e.locked?a.default.createElement("h5",{className:e.className+" SidebarButtonTitleUnlock SidebarButtonTitle"},e.text,a.default.createElement(u,{Icon:"Lock"})):a.default.createElement("h5",{className:e.className+" SidebarButtonTitle"},e.text),e.icon?a.default.createElement(nl,{className:e.active?"SidebarActive":e.locked?"SidebarLocked":""},a.default.createElement(u,{Icon:e.icon})):e.img?a.default.createElement(rl,{className:e.active?"SidebarActive":e.locked?"SidebarLocked":""},a.default.createElement("img",{src:e.img,alt:e.alt})):null),exports.Single_=e=>a.default.createElement(wc,null,a.default.createElement(uc,null,a.default.createElement(fc,null,a.default.createElement("h1",null,e.title)),a.default.createElement(_c,null,a.default.createElement("h2",null,e.subtitle),a.default.createElement("h3",null,e.text),e.textMain||e.textGrey?a.default.createElement(L,null,e.textGrey?a.default.createElement(h,{className:e.className,id:e.id,text:e.textGrey,noPadding:!0,onClick:e.onClickGrey,iconLeft:e.iconGrey}):null,e.textMain?a.default.createElement(y,{className:e.className,id:e.id,text:e.textMain,noPadding:!0,onClick:e.onClickMain,iconRight:e.iconMain}):null):null)),a.default.createElement(uc,null,a.default.createElement(bc,null,a.default.createElement("img",{src:e.backgroundImage,alt:e.backgroundAlt})))),exports.Sixty_Card_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(6):e<=T.xl&&e>T.md?r(4):e<=T.md&&e>T.sm?r(6):e<=T.sm&&e>T.xs?r(4):e<T.xs&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),e.useEffect((()=>{let e=window.innerWidth;o(e)}),[]),a.default.createElement(Ol,null,[...Array(n)].map((e=>a.default.createElement(Ll,{key:e,children:t.children,circle:t.circle}))))},exports.Sixty_Stat_Loader=t=>{const[n,r]=e.useState(),o=e=>{e>T.xl?r(6):e<=T.xl&&e>T.md?r(4):e<=T.md&&e>T.sm?r(6):e<=T.sm&&e>T.xs?r(4):e<T.xs&&r(2)};return window.addEventListener("resize",(()=>{let e=window.innerWidth;o(e)})),e.useEffect((()=>{let e=window.innerWidth;o(e)}),[]),a.default.createElement(zl,null,[...Array(n)]?.map((e=>a.default.createElement(Pl,{key:e,children:t.children,circle:t.circle}))))},exports.Slider=Ns,exports.SliderContainer=Ps,exports.SliderContext=He,exports.SliderGrid=Rs,exports.SliderOverlay=Ts,exports.SliderTitle=$s,exports.SliderWrapper=js,exports.Slider_=e=>a.default.createElement(dl,{storybook:e.storybook,className:e.className+" Slider"},a.default.createElement(fl,{storybook:e.storybook,className:"StoryBook_Fix2",onClick:e.onClose}),a.default.createElement(pl,{storybook:e.storybook,className:"SliderWrapper"},a.default.createElement(ml,{grey:e.grey,className:"SliderTitle"},e.iconGreyRight||e.iconGreyLeft?a.default.createElement(h,{id:e.idGrey,text:e.grey,iconRight:e.iconGreyRight?e.iconGreyRight:null,iconLeft:e.iconGreyLeft?e.iconGreyLeft:null,size:"normal",onClick:e.onGrey}):null,a.default.createElement("h3",null,e.title),a.default.createElement(y,{id:e.id,text:e.text,iconRight:e.icon?e.icon:"Check",size:"normal",onClick:e.onClick})),a.default.createElement(hl,{className:"SliderContainer"},e.children))),exports.Stat_=e=>a.default.createElement(jc,{className:e.className+" Stat"},a.default.createElement($c,{className:"StatLeft"},a.default.createElement(Pc,null,e.title),a.default.createElement(Rc,null,e.text),e.children),a.default.createElement(zc,{className:"StatRight"},e.img?a.default.createElement(Bc,null,a.default.createElement("img",{src:e.img})):a.default.createElement(Fc,null,a.default.createElement(u,{Icon:e.icon})))),exports.Steps=Ms,exports.StepsActions=Is,exports.StepsComplete=As,exports.StepsContainer=Os,exports.StepsCurrent=Ls,exports.StepsWrapper=Ds,exports.Steps_=e=>a.default.createElement(cl,{className:e.className+" Steps"},a.default.createElement(ll,{steps:e.steps,currentStep:e.currentStep}),a.default.createElement(ul,{className:"StepsContainer"},e.steps?.map(((t,r)=>a.default.createElement(n.CSSTransition,{in:e.currentStep===r,timeout:500,unmountOnExit:!0,classNames:"Steps"},a.default.createElement(sl,{className:"Steps"},t)))))),exports.Steps_Actions=e=>a.default.createElement(al,null,a.default.createElement(h,{className:e.className_Grey,id:e.id_Grey,iconLeft:e.icon_Grey,text:e.text_Grey,onClick:e.onClick_Grey}),a.default.createElement(y,{className:e.className_Main,id:e.id_Main,iconRight:e.icon_Main,text:e.text_Main,onClick:e.onClick_Main})),exports.Sub_Circles=e=>a.default.createElement(ls,null,e.monica?a.default.createElement("div",{className:"monica"}):null,e.bond?a.default.createElement("div",{className:"bond"}):null,e.lois?a.default.createElement("div",{className:"lois"}):null,e.dailyprofit?a.default.createElement("div",{className:"dailyprofit"}):null),exports.Sub_Status=e=>a.default.createElement(cs,null,a.default.createElement(us,{className:e.status},a.default.createElement("div",null),a.default.createElement("h6",null,e.text))),exports.Textarea_=e=>a.default.createElement(ct,null,a.default.createElement(Le,{placeholder:e.placeholder,rows:e.rows?e.rows:"5",onChange:e.onChange,maxLength:e.limit},e.defaultValue),e.limit?a.default.createElement(ut,{capped:e.count>e.limit},a.default.createElement("span",null,e.valueLength)," / ",e.limit):null,e.required?a.default.createElement(Se,{className:"ValidatorRequired"},a.default.createElement(u,{Icon:"Asterisk"})):null,e.errors?a.default.createElement(we,{className:"ValidatorErrors"},e.errors?.map((e=>a.default.createElement(Ce,null,a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,e.tips&&e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map((e=>a.default.createElement(ke,null,a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e)))),e.tips?.map((e=>a.default.createElement(Ee,null,a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):e.tips?a.default.createElement(we,{className:"ValidatorHelpers"},e.tips?.map((e=>a.default.createElement(Ee,null,a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map((e=>a.default.createElement(ke,null,a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):null),exports.Theme=Ss,exports.ThemeContext=Ve,exports.ThemeDark={id:"dark",pure:"var(--vanta)",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",pure:"var(--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.Toggle_=ki,exports.Toggle_Stat=e=>a.default.createElement(Vc,{className:e.className+" ToggleStat",id:e.id,onClick:e.onClick,active:e.active},a.default.createElement("h5",null,e.text),a.default.createElement(ki,{active:e.active})),exports.Unlock_Card=e=>a.default.createElement(oe,{className:e.className,key:e.key},e.icon||e.header||e.imgSmall?a.default.createElement(ce,null,e.icon?a.default.createElement(ue,null,a.default.createElement(u,{Icon:e.icon})):a.default.createElement(se,null,a.default.createElement(fe,null),a.default.createElement("img",{src:e.imgSmall}))):e.img?a.default.createElement(de,{imgBehave:e.imgBehave},a.default.createElement("img",{src:e.img,onLoad:e.onLoadImg})):null,e.title||e.subtitle?a.default.createElement(le,null,e.title&&a.default.createElement("h3",null,e.title),e.subtitle&&a.default.createElement("h5",null,e.subtitle),e.children):null,a.default.createElement(ie,null,a.default.createElement(f,{className:e.className,id:e.id,href:e.href,text:e.textBuy,iconRight:e.iconBuy,onClick:e.onBuy}))),exports.Upload_Avatar=e=>a.default.createElement(Yu,null,a.default.createElement("h4",null,e.title),a.default.createElement(Xu,null,a.default.createElement(Ju,null,e.img&&e.uploaded?a.default.createElement("img",{src:e.img}):a.default.createElement("img",{src:e.imgDefault?e.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultAvatar.jpg"})),a.default.createElement(Qu,null,a.default.createElement(Ku,{maxFiles:"1",getFilesFromChild:e.getFilesFromChild,boomRejected:e.boomRejected,accept:e.accept,onClick:e.onUpload,text:e.upload,iconLeft:e.iconUpload?e.iconUpload:"Upload",maxSize:e.maxSize}),e.uploaded?a.default.createElement(S,{onClick:e.onDelete,text:e.delete,iconLeft:e.iconUpload?e.iconUpload:"Delete"}):null,e.errors?a.default.createElement(we,{className:"ValidatorErrors"},e.errors?.map(((e,t)=>a.default.createElement(Ce,{key:t},a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,e.successes?a.default.createElement(we,{className:"ValidatorSuccesses"},e.successes?.map(((e,t)=>a.default.createElement(xe,{key:t},a.default.createElement(u,{Icon:"Check"}),a.default.createElement("h6",null,e))))):null,e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map(((e,t)=>a.default.createElement(ke,{key:t},a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):null,e.tips?a.default.createElement(we,{className:"ValidatorTips"},e.tips?.map(((e,t)=>a.default.createElement(Ee,{key:t},a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):null))),exports.Upload_Cover=e=>a.default.createElement(es,null,a.default.createElement("h4",null,e.title),a.default.createElement(ts,null,a.default.createElement(ns,{aspect:e.aspect},e.img&&e.uploaded?a.default.createElement("img",{src:e.img}):a.default.createElement("img",{src:e.imgDefault?e.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultCover.jpg"})),a.default.createElement(rs,null,a.default.createElement(Ku,{maxFiles:"1",getFilesFromChild:e.getFilesFromChild,boomRejected:e.boomRejected,accept:e.accept,onClick:e.onUpload,text:e.upload,iconLeft:e.iconUpload?e.iconUpload:"Upload",maxSize:e.maxSize,type:e.type}),e.uploaded||e.hideDelete?a.default.createElement(S,{onClick:e.onDelete,text:e.delete,iconLeft:e.iconUpload?e.iconUpload:"Delete"}):null),e.errors?a.default.createElement(we,{className:"ValidatorErrors"},e.errors?.map(((e,t)=>a.default.createElement(Ce,{key:t},a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,e.successes?a.default.createElement(we,{className:"ValidatorSuccesses"},e.successes?.map(((e,t)=>a.default.createElement(xe,{key:t},a.default.createElement(u,{Icon:"Check"}),a.default.createElement("h6",null,e))))):null,e.helpers?a.default.createElement(we,{className:"ValidatorHelpers"},e.helpers?.map(((e,t)=>a.default.createElement(ke,{key:t},a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):null,e.tips?a.default.createElement(we,{className:"ValidatorTips"},e.tips?.map(((e,t)=>a.default.createElement(Ee,{key:t},a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):null)),exports.Upload_Logo=e=>a.default.createElement(as,null,a.default.createElement(os,null,e.img&&e.uploaded?a.default.createElement("img",{src:e.img}):a.default.createElement("img",{src:e.imgDefault?e.imgDefault:"https://genius1071.friktoriaservers.net/doitforme/morning/app/boiler/DefaultAvatar.jpg"})),a.default.createElement(is,null,a.default.createElement(Ku,{maxFiles:"1",getFilesFromChild:e.getFilesFromChild,boomRejected:e.boomRejected,accept:e.accept,onClick:e.onUpload,text:e.upload,iconLeft:e.iconUpload?e.iconUpload:"Upload",maxSize:e.maxSize}))),exports.View_Card=e=>a.default.createElement(te,{className:e.className,id:e.id,imgBehave:e.imgBehave,onClick:e.onClick},e.icon||e.header||e.imgSmall?a.default.createElement("header",null,e.icon?a.default.createElement("figure",null,a.default.createElement(u,{Icon:e.icon})):e.imgSmall?a.default.createElement(re,null,a.default.createElement("img",{src:e.imgSmall})):a.default.createElement(ne,{headerColor:e.headerColor},e.header)):e.img?a.default.createElement("picture",null,a.default.createElement("img",{src:e.img,onLoad:e.onLoadImg})):null,e.title||e.subtitle?a.default.createElement("footer",null,e.title&&a.default.createElement("h2",null,e.title),e.subtitle&&a.default.createElement("h5",null,e.subtitle),e.children):null),exports.White_Plain=E,exports.breakPoints=T,exports.countries=Ke,exports.device=j,exports.logo={all:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/AllDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/AllLight.svg"},erised:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/ErisedDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/ErisedLight.svg"},griphook:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/GriphookDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/GriphookLight.svg"},monica:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/MonicaDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/MonicaLight.svg"},bond:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/BondDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/BondLight.svg"},lois:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/LoisDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/LoisLight.svg"},dailyprofit:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/DailyprofitDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/DailyprofitLight.svg"},monica:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/MonicaDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/MonicaLight.svg"},whitecastle:{dark:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/dark/WhitecastleDark.svg",light:"https://genius1071.friktoriaservers.net/doitforme/morning/app/icons/light/WhitecastleLight.svg"}};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "3.65.
|
|
3
|
+
"version": "3.65.22",
|
|
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",
|
|
@@ -55,7 +55,9 @@ export default function Upload_(props) {
|
|
|
55
55
|
files.forEach((file, i) => {
|
|
56
56
|
if (props.type === "video" && file.size > props.maxSize) {
|
|
57
57
|
boomRejected("videoSize", file.name);
|
|
58
|
-
} else if (
|
|
58
|
+
} else if (props.accept && props.accept !== "" && !props.accept.split(',').map(type => type.trim()).includes(file.type)) {
|
|
59
|
+
boomRejected("fileMimetype", file.name);
|
|
60
|
+
} else if (file.type !== "image/png" && file.type !== "image/jpeg" && file.type !== "video/mp4" && file.type !== "video/mpeg" && file.type !== "image/webm") {
|
|
59
61
|
boomRejected("fileMimetype", file.name);
|
|
60
62
|
} else if (file.size > props.maxSize) {
|
|
61
63
|
boomRejected("fileSize", file.name);
|
|
@@ -70,6 +72,7 @@ export default function Upload_(props) {
|
|
|
70
72
|
if (props.type === "video") boomRejected("videoType", "");
|
|
71
73
|
else if (props.type === "avatar" || props.type === "cover")
|
|
72
74
|
boomRejected("imageType", "");
|
|
75
|
+
else if (props.type === "media") boomRejected("mediaType", "");
|
|
73
76
|
},
|
|
74
77
|
maxFiles: props.maxFiles,
|
|
75
78
|
});
|
|
@@ -72,8 +72,9 @@ export const Upload_Cover = (props) => {
|
|
|
72
72
|
text={props.upload}
|
|
73
73
|
iconLeft={props.iconUpload ? props.iconUpload : "Upload"}
|
|
74
74
|
maxSize={props.maxSize}
|
|
75
|
+
type={props.type}
|
|
75
76
|
/>
|
|
76
|
-
{props.uploaded ? (
|
|
77
|
+
{props.uploaded || props.hideDelete? (
|
|
77
78
|
<Red_
|
|
78
79
|
onClick={props.onDelete}
|
|
79
80
|
text={props.delete}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import Upload_ from "./Upload_";
|
|
4
|
+
import {
|
|
5
|
+
ValidatorError,
|
|
6
|
+
ValidatorSuccess,
|
|
7
|
+
ValidatorTip,
|
|
8
|
+
ValidatorWarning,
|
|
9
|
+
Validators,
|
|
10
|
+
} from "../../helpers/Validator";
|
|
11
|
+
import { Red_ } from "../button";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const UploadMedia = styled.div`
|
|
15
|
+
background: ${(p) => p.theme.low};
|
|
16
|
+
border-radius: var(--normalRadius);
|
|
17
|
+
h4 {
|
|
18
|
+
margin-bottom: 2rem;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const UploadMediaGrid = styled.div``;
|
|
23
|
+
|
|
24
|
+
const UploadMediaFile = styled.div`
|
|
25
|
+
padding-left: 1rem;
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
const UploadMediaActions = styled.div`
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 1rem;
|
|
32
|
+
margin-top: 1rem;
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
export const Upload_Media = (props) => {
|
|
36
|
+
return (
|
|
37
|
+
<UploadMedia>
|
|
38
|
+
<h4>{props.title}</h4>
|
|
39
|
+
<UploadMediaGrid>
|
|
40
|
+
<UploadMediaFile>
|
|
41
|
+
{props.uploaded ?
|
|
42
|
+
<p>{props.filename}</p>
|
|
43
|
+
: null}
|
|
44
|
+
</UploadMediaFile>
|
|
45
|
+
<UploadMediaActions>
|
|
46
|
+
<Upload_
|
|
47
|
+
maxFiles="1"
|
|
48
|
+
getFilesFromChild={props.getFilesFromChild}
|
|
49
|
+
boomRejected={props.boomRejected}
|
|
50
|
+
accept={props.accept}
|
|
51
|
+
onClick={props.onUpload}
|
|
52
|
+
text={props.upload}
|
|
53
|
+
iconLeft={props.iconUpload ? props.iconUpload : "Upload"}
|
|
54
|
+
maxSize={props.maxSize}
|
|
55
|
+
type = 'media'
|
|
56
|
+
/>
|
|
57
|
+
{props.uploaded ? (
|
|
58
|
+
<Red_
|
|
59
|
+
onClick={props.onDelete}
|
|
60
|
+
text={props.delete}
|
|
61
|
+
iconLeft={props.iconUpload ? props.iconUpload : "Delete"}
|
|
62
|
+
/>
|
|
63
|
+
) : null}
|
|
64
|
+
</UploadMediaActions>
|
|
65
|
+
{props.errors ? (
|
|
66
|
+
<Validators className="ValidatorErrors">
|
|
67
|
+
{props.errors?.map((error, i) => (
|
|
68
|
+
<ValidatorError key={i}>
|
|
69
|
+
<IconSvg Icon="Error" />
|
|
70
|
+
<h6>{error}</h6>
|
|
71
|
+
</ValidatorError>
|
|
72
|
+
))}
|
|
73
|
+
</Validators>
|
|
74
|
+
) : null}
|
|
75
|
+
{props.successes ? (
|
|
76
|
+
<Validators className="ValidatorSuccesses">
|
|
77
|
+
{props.successes?.map((success, i) => (
|
|
78
|
+
<ValidatorSuccess key={i}>
|
|
79
|
+
<IconSvg Icon="Check" />
|
|
80
|
+
<h6>{success}</h6>
|
|
81
|
+
</ValidatorSuccess>
|
|
82
|
+
))}
|
|
83
|
+
</Validators>
|
|
84
|
+
) : null}
|
|
85
|
+
{props.helpers ? (
|
|
86
|
+
<Validators className="ValidatorHelpers">
|
|
87
|
+
{props.helpers?.map((helper, i) => (
|
|
88
|
+
<ValidatorWarning key={i}>
|
|
89
|
+
<IconSvg Icon="Warning" />
|
|
90
|
+
<h6>{helper}</h6>
|
|
91
|
+
</ValidatorWarning>
|
|
92
|
+
))}
|
|
93
|
+
</Validators>
|
|
94
|
+
) : null}
|
|
95
|
+
{props.tips ? (
|
|
96
|
+
<Validators className="ValidatorTips">
|
|
97
|
+
{props.tips?.map((tip, i) => (
|
|
98
|
+
<ValidatorTip key={i}>
|
|
99
|
+
<IconSvg Icon="Tip" />
|
|
100
|
+
<h6>{tip}</h6>
|
|
101
|
+
</ValidatorTip>
|
|
102
|
+
))}
|
|
103
|
+
</Validators>
|
|
104
|
+
) : null}
|
|
105
|
+
</UploadMediaGrid>
|
|
106
|
+
</UploadMedia>
|
|
107
|
+
);
|
|
108
|
+
};
|