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D,IACgB,iBAAP8C,EACT5H,YAAW,WACT6H,MACCD,GAEHC,UArBJzK,EACE,mBACA6K,IAAM,+DA0BL,CACLhE,IAAAA,EACAQ,MAAAA,EACAH,SAAAA,EACAoB,KAAAA,EACA4B,KAAAA,EACAS,IAAAA,IA17BkB,mBAAXU,QAAyBA,EAAAA,KAClCA,OAAO,IAAI,WACT,OAAOvO,EAAQD,MAEU,WAAlB,EAAOyO,IAAiD,WAA1B,EAAOA,EAAOC,SACrDD,EAAOC,QAAUzO,EAAQD,GAEzBA,EAAK2O,KAAO1O,EAAQD,KCPpB4O,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBhL,IAAjBiL,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CACjDE,GAAIF,EACJG,QAAQ,EACRP,QAAS,IAUV,OANAQ,EAAoBJ,GAAUL,EAAQA,EAAOC,QAASG,GAGtDJ,EAAOQ,QAAS,EAGTR,EAAOC,QCxBfG,EAAoBM,KAAO,GCA3BN,EAAoBhM,EAAI,WACvB,GAA0B,iBAAfuM,WAAyB,OAAOA,WAC3C,IACC,OAAOC,MAAQ,IAAIC,SAAS,cAAb,GACd,MAAOjG,GACR,GAAsB,iBAAXlJ,OAAqB,OAAOA,QALjB,GCAxB0O,EAAoBU,IAAOd,KAC1BA,EAASnP,OAAOkQ,OAAOf,IACX5C,WAAU4C,EAAO5C,SAAW,IACxCvM,OAAOC,eAAekP,EAAQ,UAAW,CACxCjP,YAAY,EACZiQ,IAAK,KACJ,MAAM,IAAIC,MAAM,0FAA4FjB,EAAOO,OAG9GP,GCNkBI,EAAoB,M","sources":["webpack://webpack-starter/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://webpack-starter/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://webpack-starter/./src/Fnon.js","webpack://webpack-starter/webpack/bootstrap","webpack://webpack-starter/webpack/runtime/amd options","webpack://webpack-starter/webpack/runtime/global","webpack://webpack-starter/webpack/runtime/harmony module decorator","webpack://webpack-starter/webpack/startup"],"sourcesContent":["export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","(function (root, factory) {\r\n if (typeof define === \"function\" && define.amd) {\r\n define([], function () {\r\n return factory(root);\r\n });\r\n } else if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n module.exports = factory(root);\r\n } else {\r\n root.Fnon = factory(root);\r\n }\r\n})(\r\n typeof global !== \"undefined\"\r\n ? global\r\n : typeof window !== \"undefined\"\r\n ? window\r\n : this,\r\n function (window) {\r\n // Check SSR\r\n if (\r\n typeof window === \"undefined\" &&\r\n typeof window.document === \"undefined\"\r\n ) {\r\n return false;\r\n }\r\n\r\n var idEng = (length) => {\r\n var result = \"\";\r\n var characters =\r\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n var charactersLength = characters.length;\r\n for (var i = 0; i < length; i++) {\r\n result += characters.charAt(\r\n Math.floor(Math.random() * charactersLength)\r\n );\r\n }\r\n return \"Fnon\" + result;\r\n };\r\n\r\n const GSvg = {\r\n Success:\r\n '',\r\n Warning:\r\n '',\r\n Danger:\r\n '',\r\n Info: '',\r\n Question:\r\n '',\r\n };\r\n const GColors = {\r\n Primary: \"#029eff\",\r\n Success: \"#39DA8A\",\r\n Warning: \"#fdd347\",\r\n Danger: \"#f55260\",\r\n Info: \"#56b6f7\",\r\n Dark: \"#222f3e\",\r\n Light: \"#fff\",\r\n };\r\n let waitingAndBoxColors = gShades(GColors.Primary, 9);\r\n let defaultFont = \"'Quicksand', sans-serif\";\r\n let docDetailsUrl =\r\n \"\\n Visit https://github.com/superawdi/Fnon to learn more..\";\r\n\r\n // helper functions\r\n function toHtml(str) {\r\n return new DOMParser().parseFromString(str, \"text/html\").body.firstChild;\r\n }\r\n\r\n function toRGB(color) {\r\n // create fake div\r\n let f = document.createElement(\"div\");\r\n f.style.color = color;\r\n f.style.display = \"none\";\r\n document.body.appendChild(f);\r\n // get color of div\r\n let cs = window.getComputedStyle(f),\r\n pv = cs.getPropertyValue(\"color\");\r\n // remove div after obtaining desired color value\r\n document.body.removeChild(f);\r\n return pv;\r\n }\r\n\r\n function gShades(color, length) {\r\n let rgb = toRGB(color);\r\n const sp = rgb\r\n .replace(\"rgb(\", \"\")\r\n .replace(\")\", \"\")\r\n .split(\",\")\r\n .map((c) => c.trim());\r\n var r = sp[0] % 256;\r\n var g = sp[1] % 256;\r\n var b = sp[2] % 256;\r\n var result = [rgb];\r\n for (var i = 0; i < length; i++) {\r\n r -= 33;\r\n g -= 33;\r\n b -= 33;\r\n result.push(\"rgb(\" + r + \",\" + g + \",\" + b + \")\");\r\n }\r\n return result;\r\n }\r\n\r\n function Init(s, o) {\r\n if (o && typeof o === \"object\") return { ...s, ...o };\r\n return s;\r\n }\r\n // console functions\r\n var cError = function (title, message) {\r\n return console.error(\r\n \"%c \" + title + \" \",\r\n \"padding:2px;border-radius:6px;color:#fff;background:red\",\r\n \"\\n\" + message + docDetailsUrl\r\n );\r\n };\r\n\r\n var deafultBtnTheme = {\r\n text: \"Button\",\r\n color: GColors.Dark,\r\n background: GColors.Light,\r\n shadow: \"rgba(0, 0, 0, 0.1)\",\r\n borderColor: \"#d4d4d4\",\r\n css: undefined,\r\n };\r\n //#region Ask\r\n // Deafult settings for Ask,Alert and Dialogue\r\n let aadDefault = {\r\n fontFamily: defaultFont,\r\n width: \"nl\", // sm//lg//nl//xl\r\n closeButton: true,\r\n animation: \"slide-top\",\r\n autoFocusTag: \"input:not([disabled])\",\r\n autoFocus: false,\r\n autoFocusDelay: 0,\r\n closeButton: false,\r\n callback: undefined,\r\n cancelCallback: undefined,\r\n icon: undefined,\r\n iconColor: GColors.Dark,\r\n showIcon: false,\r\n message: \"\",\r\n\r\n title: \"\",\r\n titleColor: GColors.Dark,\r\n titleBackground: GColors.Light,\r\n\r\n btnOkText: \"Ok\",\r\n btnOkColor: GColors.Dark,\r\n btnOkBackground: GColors.Light,\r\n btnOkShadow: \"rgba(0, 0, 0, 0.2)\",\r\n btnOkBorderColor: \"#d4d4d4\",\r\n\r\n btnCancelText: \"Cancel\",\r\n btnCancelColor: GColors.Dark,\r\n btnCancelBackground: GColors.Light,\r\n btnCancelShadow: \"rgba(0, 0, 0, 0.1)\",\r\n btnCancelBorderColor: \"#d4d4d4\",\r\n\r\n color: \"#2b2b2b\",\r\n background: \"rgba(0, 0, 0, 0.4)\",\r\n\r\n zIndex: 4000,\r\n\r\n beforeShow: undefined,\r\n afterShow: undefined,\r\n\r\n delButtons: false,\r\n\r\n layout: \"hbf\", // head -> body -> footer\r\n };\r\n\r\n let aadThemes = {\r\n Primary: {\r\n titleColor: GColors.Light,\r\n titleBackground: GColors.Primary,\r\n btnOkColor: GColors.Light,\r\n btnOkBackground: GColors.Primary,\r\n btnOkBorderColor: \"transparent\",\r\n },\r\n Success: {\r\n titleColor: GColors.Light,\r\n titleBackground: GColors.Success,\r\n\r\n btnOkColor: GColors.Light,\r\n btnOkBackground: GColors.Success,\r\n btnOkBorderColor: \"transparent\",\r\n\r\n icon: GSvg.Success,\r\n iconColor: GColors.Success,\r\n },\r\n Warning: {\r\n titleColor: GColors.Dark,\r\n titleBackground: GColors.Warning,\r\n\r\n btnOkColor: GColors.Dark,\r\n btnOkBackground: GColors.Warning,\r\n btnOkBorderColor: \"transparent\",\r\n\r\n icon: GSvg.Warning,\r\n iconColor: GColors.Warning,\r\n },\r\n Danger: {\r\n titleColor: GColors.Light,\r\n titleBackground: GColors.Danger,\r\n\r\n btnOkColor: GColors.Light,\r\n btnOkBackground: GColors.Danger,\r\n btnOkBorderColor: \"transparent\",\r\n\r\n icon: GSvg.Danger,\r\n iconColor: GColors.Danger,\r\n },\r\n Info: {\r\n titleColor: GColors.Light,\r\n titleBackground: GColors.Info,\r\n\r\n btnOkColor: GColors.Light,\r\n btnOkBackground: GColors.Info,\r\n btnOkBorderColor: \"transparent\",\r\n\r\n icon: GSvg.Info,\r\n iconColor: GColors.Info,\r\n }, //222f3e\r\n Dark: {\r\n titleColor: GColors.Light,\r\n titleBackground: GColors.Dark,\r\n\r\n btnOkColor: GColors.Light,\r\n btnOkBackground: GColors.Dark,\r\n btnOkBorderColor: \"transparent\",\r\n btnOkShadow: \"rgba(255, 255, 255, 0.1)\",\r\n },\r\n Light: {},\r\n };\r\n // ask settings\r\n let askSettings = { ...aadDefault };\r\n let dialogueSettings = { ...aadDefault };\r\n let alertSettings = { ...aadDefault };\r\n\r\n function delModel(m, o) {\r\n if (o.onClosing && typeof o.onClosing === \"function\") {\r\n o.onClosing(m);\r\n }\r\n m.style.pointerEvents = \"none\";\r\n m.style.opacity = 0;\r\n setTimeout(() => {\r\n m.remove();\r\n if (!document.querySelectorAll(\"div.f__cm\").length > 0)\r\n document.body.classList.remove(\"f__of_hidden\");\r\n if (o.onClosed && typeof o.onClosed === \"function\") {\r\n o.onClosed(m);\r\n }\r\n }, 300);\r\n }\r\n // render ask\r\n function ra(o, mType) {\r\n let _icon =\r\n mType == \"dialogue\"\r\n ? \"\"\r\n : `${\r\n o.showIcon && o.icon\r\n ? `
${o.icon}
`\r\n : \"\"\r\n }`;\r\n let customButtons =\r\n mType === \"dialogue\" &&\r\n o.buttons &&\r\n Array.isArray(o.buttons) &&\r\n o.buttons.length > 0;\r\n let _btns = \"\";\r\n if (o.delButtons) {\r\n } else if (customButtons) {\r\n _btns = `
${o.buttons.reduce((ac, st, i) => {\r\n var _xst = { ...deafultBtnTheme };\r\n if (st.style && st.style != \"Light\" && aadThemes[st.style]) {\r\n _xst.color = aadThemes[st.style].btnOkColor;\r\n _xst.background = aadThemes[st.style].btnOkBackground;\r\n _xst.borderColor = aadThemes[st.style].btnOkBorderColor;\r\n }\r\n var xst = { ..._xst, ...st };\r\n ac += ``;\r\n return ac;\r\n }, \"\")}
`;\r\n } else {\r\n _btns = `
${\r\n mType != \"alert\"\r\n ? ``\r\n : \"\"\r\n }
`;\r\n }\r\n var color = `style=\"color:${o.titleColor};\"`;\r\n let head = o.title\r\n ? `
${o.title}
${\r\n !o.closeButton\r\n ? \"\"\r\n : `
${\r\n o.showMaxMin\r\n ? ``\r\n : \"\"\r\n }
`\r\n }
`\r\n : \"\";\r\n let body = `
${_icon}
`;\r\n let htmlContent = \"\";\r\n\r\n if (!o.layout || o.layout === \"hbf\") {\r\n htmlContent = head + body + _btns;\r\n } else {\r\n var st = new Set();\r\n o.layout\r\n .split(\"\")\r\n .filter((c) => \"hbf\".includes(c) && c.trim().length > 0)\r\n .forEach((c) => st.add(c));\r\n st.forEach((ch) => {\r\n if (ch === \"h\") {\r\n htmlContent += head;\r\n } else if (ch === \"b\") {\r\n htmlContent += body;\r\n } else if (ch === \"f\") {\r\n htmlContent += _btns;\r\n }\r\n });\r\n }\r\n let html = `
${htmlContent}
`;\r\n\r\n html = toHtml(html);\r\n if (o.onInit && typeof o.onInit === \"function\") o.onInit(html);\r\n var con = html.querySelector(\".f__m__b__ask\");\r\n if (o.message instanceof HTMLElement) {\r\n con.append(o.message);\r\n } else {\r\n con.innerHTML = o.message;\r\n }\r\n\r\n //${typeof o.message ==='string'?o.message:''}\r\n // close and cancel buttons button\r\n if (mType != \"alert\") {\r\n const cls = html.querySelectorAll('[data-evt=\"ccl\"]');\r\n if (cls) {\r\n Array.from(cls).forEach((c) => {\r\n if (mType == \"dialogue\") {\r\n c.addEventListener(\"click\", function (event) {\r\n if (\r\n o.cancelCallback &&\r\n typeof o.cancelCallback === \"function\"\r\n ) {\r\n let res = o.cancelCallback(\r\n () => {\r\n delModel(html, o);\r\n },\r\n html.querySelector(\"div.f__m__b__ask\"),\r\n event\r\n );\r\n if (res === null || res === undefined || res === true) {\r\n delModel(html, o);\r\n }\r\n } else {\r\n delModel(html, o);\r\n }\r\n });\r\n } else {\r\n c.addEventListener(\"click\", function () {\r\n delModel(html, o);\r\n if (o.callback && typeof o.callback === \"function\") {\r\n o.callback(false);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n if (customButtons) {\r\n html.querySelectorAll(\".f__m__f button\").forEach((el) => {\r\n let ff = o.buttons[el.dataset.i];\r\n if (ff && ff.callback && typeof ff.callback === \"function\") {\r\n el.addEventListener(\"click\", (e) => {\r\n let res = ff.callback(\r\n () => {\r\n delModel(html, o);\r\n },\r\n html.querySelector(\"div.f__m__b__ask\"),\r\n e\r\n );\r\n if (res === null || res === undefined || res === true) {\r\n delModel(html, o);\r\n }\r\n });\r\n } else {\r\n el.addEventListener(\"click\", () => delModel(html, o));\r\n }\r\n });\r\n } else {\r\n // button Ok\r\n //button:not([data-evt])\r\n const btn = html.querySelector('[data-evt=\"tr\"]');\r\n if (btn) {\r\n btn.addEventListener(\"click\", (event) => {\r\n if (o.callback && typeof o.callback === \"function\") {\r\n if (mType == \"dialogue\") {\r\n let res = o.callback(\r\n () => {\r\n delModel(html, o);\r\n },\r\n html.querySelector(\"div.f__m__b__ask\"),\r\n event\r\n ); //f__m__b__ask//p.f__m__b\r\n if (res === null || res === undefined || res === true) {\r\n delModel(html, o);\r\n }\r\n } else {\r\n o.callback(true, event);\r\n delModel(html, o);\r\n }\r\n } else {\r\n delModel(html, o);\r\n }\r\n });\r\n }\r\n }\r\n } else {\r\n const cl = html.querySelectorAll('[data-al=\"true\"]');\r\n Array.from(cl).forEach((c) => {\r\n c.addEventListener(\"click\", function (event) {\r\n if (o.callback && typeof o.callback === \"function\") {\r\n o.callback(event);\r\n }\r\n delModel(html, o);\r\n });\r\n });\r\n }\r\n if (o.defaultBefore && typeof o.defaultBefore === \"function\") {\r\n o.defaultBefore(html);\r\n }\r\n if (o.beforeShow && typeof o.beforeShow === \"function\") {\r\n o.beforeShow(html);\r\n }\r\n var max = html.querySelector('button[data-evt=\"max\"]');\r\n if (max) {\r\n max.addEventListener(\"click\", function () {\r\n if (html.classList.contains(\"fl\")) {\r\n // document.querySelectorAll()\r\n html.classList.remove(\"fl\");\r\n html.querySelector(\".f__m\").classList.remove(\"f__m__fl\");\r\n } else {\r\n // this.oldcss=\r\n html.classList.add(\"fl\");\r\n html.querySelector(\".f__m\").classList.add(\"f__m__fl\");\r\n }\r\n });\r\n }\r\n // const body =document.querySelector('body');\r\n document.body.classList.add(\"f__of_hidden\");\r\n document.body.appendChild(html);\r\n if (o.defaultAfter && typeof o.defaultAfter === \"function\") {\r\n o.defaultAfter(html);\r\n }\r\n if (o.afterShow && typeof o.afterShow === \"function\") {\r\n o.afterShow(html);\r\n }\r\n // autofocus first input\r\n if (o.autoFocus) {\r\n var fi = html.querySelector(o.autoFocusTag);\r\n if (fi) setTimeout(() => fi.focus(), o.autoFocusDelay);\r\n } else {\r\n setTimeout(() => {\r\n var fi = html.querySelector(\".f__btn\");\r\n if (fi) fi.focus();\r\n }, o.autoFocusDelay);\r\n }\r\n return html;\r\n }\r\n const Ask = {};\r\n Ask.Init = (o) => (askSettings = Init(askSettings, o));\r\n Object.keys(aadThemes).forEach(\r\n (c) =>\r\n (Ask[c] = (message, title, ok, cancel, callback) => {\r\n if (message && message != \"\") {\r\n let res = { ...askSettings, ...aadThemes[c] };\r\n if (\r\n !(message instanceof HTMLElement) &&\r\n typeof message === \"object\"\r\n ) {\r\n res = { ...res, ...message };\r\n } else {\r\n res.message = message;\r\n if (title) res.title = title;\r\n if (ok) res.btnOkText = ok;\r\n if (cancel) res.btnCancelText = cancel;\r\n if (callback) res.callback = callback;\r\n }\r\n // save in case of delButtons=true to return remove Model function\r\n const a = ra(res);\r\n if (res.delButtons)\r\n return () => {\r\n delModel(a, res);\r\n };\r\n } else {\r\n cError(\"Message Null\", \"Message Can not be null !!!\");\r\n }\r\n })\r\n );\r\n const Dialogue = {};\r\n Dialogue.Init = (o) => (dialogueSettings = Init(dialogueSettings, o));\r\n Object.keys(aadThemes).forEach(\r\n (c) =>\r\n (Dialogue[c] = (\r\n body,\r\n title,\r\n ok,\r\n cancel,\r\n okcallback,\r\n cancelcallback\r\n ) => {\r\n if (body && body != \"\") {\r\n let res = { ...dialogueSettings, ...aadThemes[c] };\r\n if (!(body instanceof HTMLElement) && typeof body === \"object\") {\r\n res = { ...res, ...body };\r\n } else {\r\n res.message = body;\r\n if (title) res.title = title;\r\n if (ok) res.btnOkText = ok;\r\n if (cancel) res.btnCancelText = cancel;\r\n if (okcallback) res.callback = okcallback;\r\n if (cancelcallback) res.cancelCallback = cancelcallback;\r\n }\r\n const a = ra(res, \"dialogue\");\r\n if (res.delButtons)\r\n return () => {\r\n delModel(a, res);\r\n };\r\n } else {\r\n cError(\"Message Null\", \"Body not be null !!!\");\r\n }\r\n })\r\n );\r\n\r\n const Alert = {};\r\n Alert.Init = (o) => (alertSettings = Init(alertSettings, o));\r\n Object.keys(aadThemes).forEach(\r\n (c) =>\r\n (Alert[c] = (message, title, ok, callback) => {\r\n if (message && message != \"\") {\r\n let res = { ...alertSettings, ...aadThemes[c] };\r\n if (\r\n !(message instanceof HTMLElement) &&\r\n typeof message === \"object\"\r\n ) {\r\n res = { ...res, ...message };\r\n } else {\r\n res.message = message;\r\n if (title) res.title = title;\r\n if (ok) res.btnOkText = ok;\r\n if (callback) res.callback = callback;\r\n }\r\n const a = ra(res, \"alert\");\r\n if (res.delButtons)\r\n return () => {\r\n delModel(a, res);\r\n };\r\n } else {\r\n cError(\"Message Null\", \"Message Can not be null !!!\");\r\n }\r\n })\r\n );\r\n //#endregion\r\n\r\n //#region Hint\r\n let hs = {\r\n fontFamily: defaultFont,\r\n position: \"right-top\", //right-center// right-bottom// left-top // left-center // left-bottom // center-top // center-center // center-bottom\r\n spacing: \"16px\",\r\n svgSize: { w: \"16px\", h: \"16px\" },\r\n textColor: \"#fff\",\r\n fontSize: \"14px\",\r\n backgroundColor: \"#029eff\",\r\n shadowColor: \"rgba(2, 158, 255, 0.3)\",\r\n width: \"300px\",\r\n zindex: 4000,\r\n animation: \"slide-left\", // fade // slide-left // slide-right // slide-bottom // slide-top\r\n animationDuration: 500,\r\n displayDuration: 3000,\r\n progressColor: \"rgba(255,255,255,0.9)\",\r\n callback: undefined,\r\n title: undefined,\r\n };\r\n\r\n function rh(m, o) {\r\n let _title = o.title\r\n ? `${o.title}
`\r\n : \"\";\r\n let html = `
${o.svg ? o.svg : \"\"}${\r\n _title + m\r\n }
`;\r\n html = toHtml(html);\r\n let tag = \".f__ch.\" + o.position;\r\n let c = document.querySelector(tag);\r\n if (!c) {\r\n c = toHtml(\r\n `
`\r\n );\r\n document.body.appendChild(c);\r\n }\r\n c.appendChild(html);\r\n setTimeout(() => {\r\n html.remove();\r\n if (o.callback && typeof o.callback === \"function\") {\r\n o.callback();\r\n }\r\n setTimeout(() => {\r\n if (c.children.length === 0) c.remove();\r\n }, o.displayDuration);\r\n }, o.displayDuration + o.animationDuration);\r\n }\r\n\r\n const hints = {\r\n Primary: {\r\n textColor: \"#fff\",\r\n backgroundColor: GColors.Primary,\r\n shadowColor: \"rgba(2, 158, 255, 0.3)\",\r\n svg: null,\r\n },\r\n Light: {\r\n textColor: GColors.Dark,\r\n backgroundColor: GColors.Light,\r\n shadowColor: \"rgba(34, 47, 62, 0.3)\",\r\n svg: null,\r\n },\r\n Dark: {\r\n textColor: \"#fff\",\r\n backgroundColor: GColors.Dark,\r\n shadowColor: \"rgba(34, 47, 62, 0.3)\",\r\n svg: null,\r\n },\r\n Success: {\r\n textColor: \"#fff\",\r\n backgroundColor: GColors.Success,\r\n shadowColor: \"rgba(57, 218, 138, 0.3)\",\r\n svg: GSvg.Success,\r\n },\r\n Warning: {\r\n textColor: \"#fff\",\r\n backgroundColor: GColors.Warning,\r\n shadowColor: \"rgba(253, 211, 71, 0.3)\",\r\n svg: GSvg.Warning,\r\n },\r\n Danger: {\r\n textColor: \"#fff\",\r\n backgroundColor: GColors.Danger,\r\n shadowColor: \"rgba(245, 82, 96, 0.3)\",\r\n svg: GSvg.Danger,\r\n },\r\n Info: {\r\n textColor: \"#fff\",\r\n backgroundColor: GColors.Info,\r\n shadowColor: \"rgba(86, 182, 247, 0.3)\",\r\n svg: GSvg.Info,\r\n },\r\n };\r\n\r\n const Hint = {};\r\n Hint.Init = (o) => (hs = Init(hs, o));\r\n Object.keys(hints).forEach(\r\n (c) =>\r\n (Hint[c] = (m, o) => {\r\n if (m) {\r\n let ele = hints[c];\r\n let s =\r\n o && typeof o === \"object\"\r\n ? { ...hs, ...ele, ...o }\r\n : { ...hs, ...ele };\r\n if (o && typeof o === \"function\") s.callback = o;\r\n if (o && typeof o !== \"object\" && typeof o !== \"function\") {\r\n s.title = o;\r\n }\r\n rh(m, s);\r\n } else {\r\n cError(\r\n \"Message Empty!\",\r\n \"Hint body can not be displayed if message is null.\"\r\n );\r\n }\r\n })\r\n );\r\n //#endregion\r\n\r\n //#region Wait\r\n let ws = {\r\n // waiting settings\r\n cid: idEng(12),\r\n svgSize: { w: \"100px\", h: \"100px\" },\r\n svgColor: \"#029eff\",\r\n textColor: \"#029eff\",\r\n textSize: \"16px\",\r\n clickToClose: true,\r\n fontFamily: defaultFont,\r\n background: \"rgba(255,255,255,0.5)\",\r\n zindex: 4000,\r\n containerSize: \"350px\",\r\n };\r\n let waitAndBoxSvg = {\r\n Infinity: () =>\r\n ``,\r\n Ripple: () =>\r\n ``,\r\n Liquid: () =>\r\n ``,\r\n ColorBar: () =>\r\n ``,\r\n ProgressBar: () =>\r\n ``,\r\n CurveBar: () =>\r\n ``,\r\n LineDots: () =>\r\n ``,\r\n Circle: () =>\r\n ``,\r\n CircleDots: () =>\r\n ``,\r\n Bricks: () =>\r\n ``,\r\n Interwind: () =>\r\n ``,\r\n Typing: () =>\r\n ` `,\r\n Gear: () =>\r\n ``,\r\n Gears: () =>\r\n ` `,\r\n Rainbow: () =>\r\n ``,\r\n CurveBar: () =>\r\n ``,\r\n };\r\n\r\n function rw(m, o, svg) {\r\n const ex = document.getElementById(ws.cid);\r\n if (!ex) {\r\n const s = o && typeof o === \"object\" ? { ...ws, ...o } : ws;\r\n let html = `
${svg}
${\r\n m\r\n ? '

' +\r\n m +\r\n \"

\"\r\n : \"\"\r\n }
`;\r\n html = toHtml(html);\r\n if (s.clickToClose) html.addEventListener(\"click\", () => Wait.Remove());\r\n document.body.appendChild(html);\r\n } else {\r\n cError(\r\n \"Waiting Existed!\",\r\n \"Waiting box is already existed. you need to call Change function instead.\"\r\n );\r\n }\r\n }\r\n const Wait = {};\r\n Wait.Init = (o) => (ws = Init(ws, o));\r\n Object.keys(waitAndBoxSvg).forEach(\r\n (c) =>\r\n (Wait[c] = (m, o) => {\r\n let s = !o ? ws : { ...ws, ...o };\r\n waitingAndBoxColors = gShades(s.svgColor, 9);\r\n rw(m, o, waitAndBoxSvg[c]());\r\n })\r\n );\r\n Wait.Change = function (m) {\r\n const c = document.getElementById(ws.cid);\r\n if (c) {\r\n let p = c.querySelector(\"p\");\r\n if (p) {\r\n if (m) {\r\n p.innerHTML = m;\r\n } else {\r\n p.remove();\r\n }\r\n } else {\r\n p = toHtml(\r\n `

`\r\n );\r\n p.innerHTML = m;\r\n let wbox = c.querySelector(\".f__w\");\r\n wbox.appendChild(p);\r\n }\r\n }\r\n };\r\n Wait.Remove = function (ms) {\r\n let w = document.getElementById(ws.cid);\r\n const rem = function () {\r\n // w.style.opacity = 0;\r\n // setTimeout(() => {\r\n // w.remove();\r\n // }, 600);\r\n w.remove();\r\n };\r\n if (w) {\r\n if (typeof ms === \"number\") {\r\n setTimeout(() => {\r\n rem();\r\n }, ms);\r\n } else {\r\n rem();\r\n }\r\n }\r\n };\r\n //#endregion\r\n\r\n //#region Box\r\n let bs = {\r\n cid: idEng(12),\r\n fontFamily: defaultFont,\r\n svgSize: { w: \"100px\", h: \"100px\" },\r\n svgColor: GColors.Primary,\r\n background: \"rgba(255,255,255,0.8)\",\r\n zindex: 4000,\r\n textColor: \"#029eff\",\r\n textSize: \"16px\",\r\n };\r\n\r\n function rb(sel, m, o, svg) {\r\n const ex =\r\n typeof sel === \"object\"\r\n ? sel\r\n : typeof sel === \"string\"\r\n ? document.querySelector(sel)\r\n : null;\r\n if (ex) {\r\n ex.setAttribute(\"data-pos\", ex.style.position);\r\n ex.style.position = \"relative\";\r\n const s = o && typeof o === \"object\" ? { ...bs, ...o } : bs;\r\n let html = `
${svg}
${\r\n m\r\n ? '

' +\r\n m +\r\n \"

\"\r\n : \"\"\r\n }
`;\r\n html = toHtml(html);\r\n ex.appendChild(html);\r\n } else {\r\n cError(\r\n \"Invalid Selector!\",\r\n sel + \" is invalid selector or no element found by this selector.\"\r\n );\r\n }\r\n }\r\n const Box = {};\r\n Box.Init = (o) => (bs = Init(bs, o));\r\n Object.keys(waitAndBoxSvg).forEach(\r\n (c) =>\r\n (Box[c] = (selector, message, obj) => {\r\n let s = !obj ? bs : { ...bs, ...obj };\r\n waitingAndBoxColors = gShades(s.svgColor, 9);\r\n rb(selector, message, obj, waitAndBoxSvg[c]());\r\n })\r\n );\r\n Box.Remove = function (selector, ms) {\r\n let w =\r\n typeof selector === \"object\"\r\n ? selector.querySelector(`div[data-id=\"${bs.cid}\"]`)\r\n : typeof selector === \"string\"\r\n ? document.querySelector(selector + ` div[data-id=\"${bs.cid}\"]`)\r\n : null;\r\n if (!w) {\r\n cError(\r\n \"Invalid Selector\",\r\n sel + \" is invalid selector or no element found by this selector.\"\r\n );\r\n } else {\r\n let p = w.parentElement;\r\n const rem = function () {\r\n w.style.opacity = 0;\r\n setTimeout(() => {\r\n w.remove();\r\n let orgPos = p.getAttribute(\"data-pos\");\r\n p.style.position = orgPos ? orgPos : \"\";\r\n p.removeAttribute(\"data-pos\");\r\n }, 100);\r\n };\r\n if (w) {\r\n if (typeof ms === \"number\") {\r\n setTimeout(() => {\r\n rem();\r\n }, ms);\r\n } else {\r\n rem();\r\n }\r\n }\r\n }\r\n };\r\n //#endregion\r\n\r\n return {\r\n Ask,\r\n Alert,\r\n Dialogue,\r\n Hint,\r\n Wait,\r\n Box,\r\n };\r\n }\r\n);\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.amdO = {};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(736);\n"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","_typeof","Symbol","iterator","constructor","prototype","root","factory","global","window","document","idEng","length","result","characters","charactersLength","i","charAt","Math","floor","random","GSvg","GColors","waitingAndBoxColors","gShades","defaultFont","toHtml","str","DOMParser","parseFromString","body","firstChild","color","rgb","f","createElement","style","display","appendChild","pv","getComputedStyle","getPropertyValue","removeChild","toRGB","sp","replace","split","map","c","trim","r","g","b","push","Init","s","o","cError","title","message","console","error","deafultBtnTheme","text","background","shadow","borderColor","css","undefined","aadDefault","fontFamily","width","closeButton","animation","autoFocusTag","autoFocus","autoFocusDelay","aadThemes","Primary","titleColor","titleBackground","btnOkColor","btnOkBackground","btnOkBorderColor","Success","icon","iconColor","Warning","Danger","Info","Dark","btnOkShadow","Light","askSettings","dialogueSettings","alertSettings","delModel","m","onClosing","pointerEvents","opacity","setTimeout","remove","querySelectorAll","classList","onClosed","ra","mType","_icon","showIcon","customButtons","buttons","Array","isArray","_btns","delButtons","reduce","ac","st","_xst","xst","btnCancelBackground","btnCancelColor","btnCancelShadow","btnCancelBorderColor","btnCancelText","btnOkText","head","showMaxMin","htmlContent","layout","Set","filter","includes","forEach","add","ch","html","zIndex","onInit","con","querySelector","HTMLElement","append","innerHTML","cls","from","addEventListener","event","cancelCallback","res","callback","el","ff","dataset","e","btn","cl","defaultBefore","beforeShow","max","contains","defaultAfter","afterShow","fi","focus","Ask","keys","ok","cancel","a","Dialogue","okcallback","cancelcallback","Alert","hs","position","spacing","svgSize","w","h","textColor","fontSize","backgroundColor","shadowColor","zindex","animationDuration","displayDuration","progressColor","hints","svg","Hint","ele","_title","tag","children","rh","ws","cid","svgColor","textSize","clickToClose","containerSize","waitAndBoxSvg","Infinity","Ripple","Liquid","ColorBar","ProgressBar","CurveBar","LineDots","Circle","CircleDots","Bricks","Interwind","Typing","Gear","Gears","Rainbow","Wait","getElementById","Remove","rw","Change","p","ms","rem","bs","Box","selector","sel","ex","setAttribute","rb","parentElement","orgPos","getAttribute","removeAttribute","define","module","exports","Fnon","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","id","loaded","__webpack_modules__","amdO","globalThis","this","Function","hmd","create","set","Error"],"sourceRoot":""}