{"version":3,"sources":["../node_modules/browser-pack/_prelude.js","core/JsInterop/interop.ts","core/JsInterop/modules/Caret.ts","core/JsInterop/modules/dragHelper.ts","main.ts"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","getDom","element","document","querySelector","body","getDomInfo","result","dom","offsetTop","offsetLeft","offsetWidth","offsetHeight","scrollHeight","scrollWidth","scrollLeft","scrollTop","clientTop","clientLeft","clientHeight","clientWidth","absolutePosition","res","Object","box","x","y","getBoundingClientRect","viewportElement","documentElement","left","top","getElementAbsolutePos","Math","round","fileClickEvent","fileId","this","attributes","nodeValue","getElementById","click","getObjectURL","file","url","undefined","window","URL","createObjectURL","webkitURL","addDomEventListener","eventName","preventDefault","invoker","callback","args","k","obj","json","JSON","stringify","v","Node","Window","invokeMethodAsync","addEventListener","func","wait","immediate","timeout","_this","_arguments","arguments","context","callNow","clearTimeout","setTimeout","apply","debounce","innerWidth","innerHeight","slideTo","targetPageY","timer","setInterval","currentY","speed","ceil","clearInterval","scrollTo","getActiveElement","activeElement","getAttribute","css","name","style","key","hasOwnProperty","addCls","selector","clsName","classList","add","_element$classList","_toConsumableArray","removeCls","remove","_element$classList2","addFileClickEventListener","btn","removeFileClickEventListener","removeEventListener","clearFile","setAttribute","value","getFileInfo","files","fileInfo","objectUrl","push","fileName","size","objectURL","type","uploadFile","index","data","headers","instance","percentMethod","successMethod","errorMethod","formData","FormData","append","req","XMLHttpRequest","onreadystatechange","readyState","status","responseText","upload","onprogress","event","percent","floor","loaded","onerror","open","header","setRequestHeader","send","triggerEvent","eventType","evt","createEvent","initEvent","dispatchEvent","matchMedia","query","matches","copy","text","navigator","clipboard","writeText","then","console","log","err","error","textArea","createElement","position","appendChild","focus","select","msg","execCommand","removeChild","fallbackCopyTextToClipboard","blur","backTop","target","HTMLElement","scrollIntoView","behavior","block","inline","getFirstChildDomInfo","firstElementChild","addClsToFirstChild","className","removeClsFromFirstChild","addDomEventListenerToFirstChild","getAbsoluteTop","offset","offsetParent","getAbsoluteLeft","addElementToBody","delElementFromBody","addElementTo","addElement","elementSelector","parent","delElementFrom","delElement","focusDialog","count","ele","hasAttribute","getWindow","elementScrollIntoView","oldBodyCacheStack","getTextAreaInfo","currentStyle","parseFloat","getComputedStyle","defaultView","getPropertyValue","is","NaN","disableBodyScroll","overflow","oldBodyCache","forEach","width","enableBodyScroll","pop","_a","_b","_c","destroyAllDialog","querySelectorAll","parentNode","createIconFromfontCN","scriptUrl","script","getScroll","pageXOffset","pageYOffset","getInnerText","innerText","getMaxZIndex","concat","all","reduce","max","zIndex","getStyle","styleProp","funcDict","disposeResizeTextArea","id","objReferenceDict","resizeTextArea","minRows","maxRows","dims","rowHeight","oldHeight","height","rows","trunc","newHeight","overflowY","registerResizeTextArea","objReference","disposeObj","objReferenceName","Caret_1","mentionsOnWindowClick","mentionsObj","getCursorXY","default","dragHelper_1","defineProperty","enumerable","get","enableDraggable","disableDraggable","resetModalPosition","bindTableHeaderAndBodyScroll","bodyRef","headerRef","bindScrollLeftToHeader","unbindTableHeaderAndBodyScroll","addPreventKeys","inputElement","keys","map","toUpperCase","indexOf","preventKeys","removePreventKeys","addPreventEnterOnOverlayVisible","overlayElement","check","preventKeyOnCondition","removePreventEnterOnOverlayVisible","InputCaret","inputor","_classCallCheck","getPos","domInputor","selectionStart","getPosition","pos","format","replace","test","userAgent","inputorValue","start_range","slice","end_range","html","Mirror","create","rect","getOffset","$mirror","AntDesign","interop","mirrorCss","innerHTML","parentElement","css_attr","flag","oRect","elem","throttle","fn","threshold","start","Date","_len","Array","_key","curTime","eventMap","Map","defaultOptions","inViewport","Dragger","_container","triggler","_triggler","options","_options","onMousedown","onMouseup","onMousemove","onResize","_style","_isFirst","container","dragInViewport","_this2","_state","state","isInDrag","mX","clientX","mY","clientY","_getContainerPos","getContainerPos","domMaxY","domMaxX","domStartX","domStartY","_getContainerPos2","newDomX","nowX","nowY","disX","disY","newDomY","margin","paddingBottom","bind","parseInt","assign","dragger","set","bindDrag","unb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EACVC,GAAI,EACJE,GAAI,EACJM,UAAW,EACXC,UAAW,GA4JdvX,EAAA2R,gBAvBT,SAAyBmE,EAAuBU,GAAsD,IAA9BC,IAA8B,EAAA7R,UAAA1E,aAAA+C,IAAA2B,UAAA,KAAAA,UAAA,GAC9FwT,EAAU5C,EAAS9D,IAAIoE,GACtBsC,IACDA,EAAU,IAAIxC,EAAQE,EAAUU,EAAWC,GAC3CjB,EAAS6C,IAAIvC,EAAUsC,IAE3BA,EAAQE,YAiBctY,EAAA4R,iBAd1B,SAA0BkE,IAChBsC,EAAU5C,EAAS9D,IAAIoE,KAEzBsC,EAAQG,cAW4BvY,EAAA6R,mBAP5C,SAA4BiE,IAClBsC,EAAU5C,EAAS9D,IAAIoE,KAEzBsC,EAAQI,wB,qFCzMfjE,EAAA7U,EAAA,4BAQDwD,OAAOoR,UAAY,CACjBC,QAAAA","file":"ant-design-blazor.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i 0) {\n var fileInfo = [];\n for (var i = 0; i < element.files.length; i++) {\n var file = element.files[i];\n var objectUrl = getObjectURL(file);\n fileInfo.push({\n fileName: file.name,\n size: file.size,\n objectURL: objectUrl,\n type: file.type\n });\n }\n\n return fileInfo;\n }\n}\n\nexport function getObjectURL(file: File) {\n var url = null;\n if (window.URL != undefined) {\n url = window.URL.createObjectURL(file);\n } else if (window.webkitURL != undefined) {\n url = window.webkitURL.createObjectURL(file);\n }\n return url;\n}\n\nexport function uploadFile(element, index, data, headers, fileId, url, name, instance, percentMethod, successMethod, errorMethod) {\n let formData = new FormData();\n var file = element.files[index];\n var size = file.size;\n formData.append(name, file);\n if (data != null) {\n for (var key in data) {\n formData.append(key, data[key]);\n }\n }\n const req = new XMLHttpRequest()\n req.onreadystatechange = function () {\n if (req.readyState === 4) {\n if (req.status != 200) {\n instance.invokeMethodAsync(errorMethod, fileId, `{\"status\": ${req.status}}`);\n return;\n }\n instance.invokeMethodAsync(successMethod, fileId, req.responseText);\n }\n }\n req.upload.onprogress = function (event) {\n var percent = Math.floor(event.loaded / size * 100);\n instance.invokeMethodAsync(percentMethod, fileId, percent);\n }\n req.onerror = function (e) {\n instance.invokeMethodAsync(errorMethod, fileId, \"error\");\n }\n req.open('post', url, true)\n if (headers != null) {\n for (var header in headers) {\n req.setRequestHeader(header, headers[header]);\n }\n }\n req.send(formData)\n}\n\nexport function triggerEvent(element, eventType, eventName) {\n var dom = element as HTMLInputElement;\n var evt = document.createEvent(eventType);\n evt.initEvent(eventName);\n return dom.dispatchEvent(evt);\n}\n\nexport function getBoundingClientRect(element) {\n let dom = getDom(element);\n if (dom && dom.getBoundingClientRect) {\n return dom.getBoundingClientRect();\n }\n return null;\n}\n\nexport function addDomEventListener(element, eventName, preventDefault, invoker) {\n let callback = args => {\n const obj = {};\n for (let k in args) {\n if (k !== 'originalTarget') { //firefox occasionally raises Permission Denied when this property is being stringified\n obj[k] = args[k];\n }\n }\n let json = JSON.stringify(obj, (k, v) => {\n if (v instanceof Node) return 'Node';\n if (v instanceof Window) return 'Window';\n return v;\n }, ' ');\n invoker.invokeMethodAsync('Invoke', json);\n if (preventDefault === true) {\n args.preventDefault();\n }\n };\n\n if (element == 'window') {\n if (eventName == 'resize') {\n window.addEventListener(eventName, debounce(() => callback({ innerWidth: window.innerWidth, innerHeight: window.innerHeight }), 200, false));\n } else {\n window.addEventListener(eventName, callback);\n }\n } else {\n let dom = getDom(element);\n (dom as HTMLElement).addEventListener(eventName, callback);\n }\n}\n\nexport function matchMedia(query) {\n return window.matchMedia(query).matches;\n}\n\nfunction fallbackCopyTextToClipboard(text) {\n var textArea = document.createElement(\"textarea\");\n textArea.value = text;\n\n // Avoid scrolling to bottom\n textArea.style.top = \"0\";\n textArea.style.left = \"0\";\n textArea.style.position = \"fixed\";\n\n document.body.appendChild(textArea);\n textArea.focus();\n textArea.select();\n\n try {\n var successful = document.execCommand('copy');\n var msg = successful ? 'successful' : 'unsuccessful';\n console.log('Fallback: Copying text command was ' + msg);\n } catch (err) {\n console.error('Fallback: Oops, unable to copy', err);\n }\n\n document.body.removeChild(textArea);\n}\nexport function copy(text) {\n if (!navigator.clipboard) {\n fallbackCopyTextToClipboard(text);\n return;\n }\n navigator.clipboard.writeText(text).then(function () {\n console.log('Async: Copying to clipboard was successful!');\n }, function (err) {\n console.error('Async: Could not copy text: ', err);\n });\n}\n\nexport function focus(selector) {\n let dom = getDom(selector);\n dom.focus();\n}\n\nexport function blur(selector) {\n let dom = getDom(selector);\n dom.blur();\n}\n\nexport function log(text) {\n console.log(text);\n}\n\nexport function backTop(target: string) {\n let dom = getDom(target);\n if (dom) {\n slideTo(dom.scrollTop);\n } else {\n slideTo(0);\n }\n}\n\nfunction slideTo(targetPageY) {\n var timer = setInterval(function () {\n var currentY = document.documentElement.scrollTop || document.body.scrollTop;\n var distance = targetPageY > currentY ? targetPageY - currentY : currentY - targetPageY;\n var speed = Math.ceil(distance / 10);\n if (currentY == targetPageY) {\n clearInterval(timer);\n } else {\n window.scrollTo(0, targetPageY > currentY ? currentY + speed : currentY - speed);\n }\n }, 10);\n}\n\nexport function scrollTo(target) {\n let dom = getDom(target);\n if (dom instanceof HTMLElement) {\n dom.scrollIntoView({\n behavior: \"smooth\",\n block: \"start\",\n inline: \"nearest\"\n });\n }\n}\n\nexport function getFirstChildDomInfo(element) {\n var dom = getDom(element);\n if (dom.firstElementChild)\n return getDomInfo(dom.firstElementChild);\n return getDomInfo(dom);\n}\n\nexport function addClsToFirstChild(element, className) {\n var dom = getDom(element);\n if (dom.firstElementChild) {\n dom.firstElementChild.classList.add(className);\n }\n}\n\nexport function removeClsFromFirstChild(element, className) {\n var dom = getDom(element);\n if (dom.firstElementChild) {\n dom.firstElementChild.classList.remove(className);\n }\n}\n\nexport function addDomEventListenerToFirstChild(element, eventName, preventDefault, invoker) {\n var dom = getDom(element);\n\n if (dom.firstElementChild) {\n addDomEventListener(dom.firstElementChild, eventName, preventDefault, invoker);\n }\n}\n\nexport function getAbsoluteTop(e) {\n var offset = e.offsetTop;\n if (e.offsetParent != null) {\n offset += getAbsoluteTop(e.offsetParent);\n }\n return offset;\n}\n\nexport function getAbsoluteLeft(e) {\n var offset = e.offsetLeft;\n if (e.offsetParent != null) {\n offset += getAbsoluteLeft(e.offsetParent);\n }\n return offset;\n}\n\nexport function addElementToBody(element) {\n document.body.appendChild(element);\n}\n\nexport function delElementFromBody(element) {\n document.body.removeChild(element);\n}\n\nexport function addElementTo(addElement, elementSelector) {\n let parent = getDom(elementSelector);\n if (parent && addElement) {\n parent.appendChild(addElement);\n }\n}\n\nexport function delElementFrom(delElement, elementSelector) {\n let parent = getDom(elementSelector);\n if (parent && delElement) {\n parent.removeChild(delElement);\n }\n}\n\nexport function getActiveElement() {\n let element = document.activeElement;\n let id = element.getAttribute(\"id\") || \"\";\n return id;\n}\n\nexport function focusDialog(selector: string, count: number = 0) {\n let ele = document.querySelector(selector);\n if (ele && !ele.hasAttribute(\"disabled\")) {\n setTimeout(() => {\n ele.focus();\n let curId = \"#\" + getActiveElement();\n if (curId !== selector) {\n if (count < 10) {\n focusDialog(selector, count + 1);\n }\n }\n }, 10);\n }\n}\n\nexport function getWindow() {\n return {\n innerWidth: window.innerWidth,\n innerHeight: window.innerHeight\n };\n}\n\nfunction debounce(func, wait, immediate) {\n var timeout;\n return () => {\n const context = this, args = arguments;\n const later = () => {\n timeout = null;\n if (!immediate) func.apply(this, args);\n };\n const callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n};\n\nexport function css(element: HTMLElement, name: string | object, value: string | null = null) {\n if (typeof name === 'string') {\n element.style[name] = value;\n } else {\n for (let key in name) {\n if (name.hasOwnProperty(key)) {\n element.style[key] = name[key];\n }\n }\n }\n}\n\nexport function addCls(selector: Element | string, clsName: string | Array) {\n let element = getDom(selector);\n\n if (typeof clsName === \"string\") {\n element.classList.add(clsName);\n } else {\n element.classList.add(...clsName);\n }\n}\n\nexport function removeCls(selector: Element | string, clsName: string | Array) {\n let element = getDom(selector);\n\n if (typeof clsName === \"string\") {\n element.classList.remove(clsName);\n } else {\n element.classList.remove(...clsName);\n }\n}\n\nexport function elementScrollIntoView(selector: Element | string) {\n let element = getDom(selector);\n\n if (!element)\n return;\n\n element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });\n}\n\nconst oldBodyCacheStack = [];\n\nconst hasScrollbar = () => {\n let overflow = document.body.style.overflow;\n if (overflow && overflow === \"hidden\") return false;\n return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight);\n}\n\nexport function disableBodyScroll() {\n let body = document.body;\n const oldBodyCache = {};\n [\"position\", \"width\", \"overflow\"].forEach((key) => {\n oldBodyCache[key] = body.style[key];\n });\n oldBodyCacheStack.push(oldBodyCache);\n css(body,\n {\n \"position\": \"relative\",\n \"width\": hasScrollbar() ? \"calc(100% - 17px)\" : null,\n \"overflow\": \"hidden\"\n });\n addCls(document.body, \"ant-scrolling-effect\");\n}\n\nexport function enableBodyScroll() {\n let oldBodyCache = oldBodyCacheStack.length > 0 ? oldBodyCacheStack.pop() : {};\n\n css(document.body,\n {\n \"position\": oldBodyCache[\"position\"] ?? null,\n \"width\": oldBodyCache[\"width\"] ?? null,\n \"overflow\": oldBodyCache[\"overflow\"] ?? null\n });\n removeCls(document.body, \"ant-scrolling-effect\");\n}\n\nexport function destroyAllDialog() {\n document.querySelectorAll('.ant-modal-root')\n .forEach(e => document.body.removeChild(e.parentNode));\n}\n\nexport function createIconFromfontCN(scriptUrl) {\n if (document.querySelector(`[data-namespace=\"${scriptUrl}\"]`)) {\n return;\n }\n const script = document.createElement('script');\n script.setAttribute('src', scriptUrl);\n script.setAttribute('data-namespace', scriptUrl);\n document.body.appendChild(script);\n}\n\nexport function getScroll() {\n return { x: window.pageXOffset, y: window.pageYOffset };\n}\n\nexport function getInnerText(element) {\n let dom = getDom(element);\n return dom.innerText;\n}\n\nexport function getMaxZIndex() {\n return [...document.all].reduce((r, e) => Math.max(r, +window.getComputedStyle(e).zIndex || 0), 0)\n}\n\nexport function getStyle(element, styleProp) { \n if (element.currentStyle)\n return element.currentStyle[styleProp];\n else if (window.getComputedStyle)\n return document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);\n}\n\nexport function getTextAreaInfo(element) {\n var result = {};\n var dom = getDom(element);\n result[\"scrollHeight\"] = dom.scrollHeight || 0;\n\n if (element.currentStyle) {\n result[\"lineHeight\"] = parseFloat(element.currentStyle[\"line-height\"]);\n result[\"paddingTop\"] = parseFloat(element.currentStyle[\"padding-top\"]);\n result[\"paddingBottom\"] = parseFloat(element.currentStyle[\"padding-bottom\"]);\n result[\"borderBottom\"] = parseFloat(element.currentStyle[\"border-bottom\"]);\n result[\"borderTop\"] = parseFloat(element.currentStyle[\"border-top\"]);\n }\n else if (window.getComputedStyle) {\n result[\"lineHeight\"] = parseFloat(document.defaultView.getComputedStyle(element, null).getPropertyValue(\"line-height\"));\n result[\"paddingTop\"] = parseFloat(document.defaultView.getComputedStyle(element, null).getPropertyValue(\"padding-top\"));\n result[\"paddingBottom\"] = parseFloat(document.defaultView.getComputedStyle(element, null).getPropertyValue(\"padding-bottom\"));\n result[\"borderBottom\"] = parseFloat(document.defaultView.getComputedStyle(element, null).getPropertyValue(\"border-bottom\"));\n result[\"borderTop\"] = parseFloat(document.defaultView.getComputedStyle(element, null).getPropertyValue(\"border-top\"));\n }\n //Firefox can return this as NaN, so it has to be handled here like that.\n if (Object.is(NaN, result[\"borderTop\"]))\n result[\"borderTop\"] = 1;\n if (Object.is(NaN, result[\"borderBottom\"]))\n result[\"borderBottom\"] = 1;\n return result;\n}\n\nconst funcDict = {};\n\nexport function registerResizeTextArea(element, minRows, maxRows, objReference) {\n if (!objReference) {\n disposeResizeTextArea(element);\n }\n else {\n objReferenceDict[element.id] = objReference;\n funcDict[element.id + \"input\"] = function () { resizeTextArea(element, minRows, maxRows); }\n element.addEventListener(\"input\", funcDict[element.id + \"input\"]);\n return getTextAreaInfo(element);\n }\n}\n\nexport function disposeResizeTextArea(element) {\n element.removeEventListener(\"input\", funcDict[element.id + \"input\"]);\n objReferenceDict[element.id] = null;\n funcDict[element.id + \"input\"] = null;\n\n}\n\nexport function resizeTextArea(element, minRows, maxRows) {\n var dims = getTextAreaInfo(element);\n var rowHeight = dims[\"lineHeight\"];\n var offsetHeight = dims[\"paddingTop\"] + dims[\"paddingBottom\"] + dims[\"borderTop\"] + dims[\"borderBottom\"];\n var oldHeight = parseFloat(element.style.height);\n element.style.height = 'auto';\n\n var rows = Math.trunc(element.scrollHeight / rowHeight);\n rows = Math.max(minRows, rows);\n\n var newHeight = 0;\n if (rows > maxRows) {\n rows = maxRows;\n\n newHeight = (rows * rowHeight + offsetHeight);\n element.style.height = newHeight + \"px\";\n element.style.overflowY = \"visible\";\n }\n else {\n newHeight = rows * rowHeight + offsetHeight;\n element.style.height = newHeight + \"px\";\n element.style.overflowY = \"hidden\";\n }\n if (oldHeight !== newHeight) {\n let textAreaObj = objReferenceDict[element.id];\n textAreaObj.invokeMethodAsync(\"ChangeSizeAsyncJs\", parseFloat(element.scrollWidth), newHeight);\n }\n}\n\n\n\nconst objReferenceDict = {};\nexport function disposeObj(objReferenceName) {\n delete objReferenceDict[objReferenceName];\n}\n\n//#region mentions\n\nimport getOffset from \"./modules/Caret\";\n\nexport function getCursorXY(element, objReference) {\n objReferenceDict[\"mentions\"] = objReference;\n window.addEventListener(\"click\", mentionsOnWindowClick);\n\n var offset = getOffset(element);\n\n return [offset.left, offset.top + offset.height + 14];\n}\n\nfunction mentionsOnWindowClick(e) {\n let mentionsObj = objReferenceDict[\"mentions\"];\n if (mentionsObj) {\n mentionsObj.invokeMethodAsync(\"CloseMentionsDropDown\");\n } else {\n window.removeEventListener(\"click\", mentionsOnWindowClick);\n }\n}\n\n//#endregion\n\nexport { enableDraggable, disableDraggable, resetModalPosition } from \"./modules/dragHelper\";\n\nexport function bindTableHeaderAndBodyScroll(bodyRef, headerRef) {\n bodyRef.bindScrollLeftToHeader = () => {\n headerRef.scrollLeft = bodyRef.scrollLeft;\n }\n bodyRef.addEventListener('scroll', bodyRef.bindScrollLeftToHeader);\n}\n\nexport function unbindTableHeaderAndBodyScroll(bodyRef) {\n if (bodyRef) {\n bodyRef.removeEventListener('scroll', bodyRef.bindScrollLeftToHeader);\n }\n}\n\nfunction preventKeys(e, keys: string[]) {\n if (keys.indexOf(e.key.toUpperCase()) !== -1) {\n e.preventDefault();\n return false;\n }\n}\n\nexport function addPreventKeys(inputElement, keys: string[]) {\n if (inputElement) {\n let dom = getDom(inputElement);\n keys = keys.map(function (x) { return x.toUpperCase(); })\n funcDict[inputElement.id + \"keydown\"] = (e) => preventKeys(e, keys);\n (dom as HTMLElement).addEventListener(\"keydown\", funcDict[inputElement.id + \"keydown\"], false);\n }\n}\n\nexport function removePreventKeys(inputElement) {\n if (inputElement) {\n let dom = getDom(inputElement);\n (dom as HTMLElement).removeEventListener(\"keydown\", funcDict[inputElement.id + \"keydown\"]);\n funcDict[inputElement.id + \"keydown\"] = null;\n }\n}\n\nfunction preventKeyOnCondition(e, key: string, check: () => boolean) {\n if (e.key.toUpperCase() === key.toUpperCase() && check()) {\n e.preventDefault();\n return false;\n }\n}\n\nexport function addPreventEnterOnOverlayVisible(element, overlayElement) {\n if (element && overlayElement) {\n let dom = getDom(element);\n funcDict[element.id + \"keydown:Enter\"] = (e) => preventKeyOnCondition(e, \"enter\", () => overlayElement.offsetParent !== null);\n (dom as HTMLElement).addEventListener(\"keydown\", funcDict[element.id + \"keydown:Enter\"], false);\n }\n}\n\nexport function removePreventEnterOnOverlayVisible(element) {\n if (element) {\n let dom = getDom(element);\n (dom as HTMLElement).removeEventListener(\"keydown\", funcDict[element.id + \"keydown:Enter\"]);\n funcDict[element.id + \"keydown:Enter\"] = null;\n }\n}","//extract from https://github.com/ichord/Caret.js\n\nclass InputCaret {\n domInputor: any;\n\n constructor(inputor) {\n this.domInputor = inputor;\n }\n\n getPos = function () {\n return this.domInputor.selectionStart;\n };\n\n getPosition = function (pos) {\n var domInputor, end_range, format, html, mirror, start_range;\n domInputor = this.domInputor;\n\n format = function (value) {\n value = value.replace(/<|>|`|\"|&/g, '?').replace(/\\r\\n|\\r|\\n/g, \"
\");\n if (/firefox/i.test(navigator.userAgent)) {\n value = value.replace(/\\s/g, ' ');\n }\n return value;\n };\n if (!pos) {\n pos = this.getPos();\n }\n let inputorValue = domInputor.value;\n start_range = inputorValue.slice(0, pos);\n end_range = inputorValue.slice(pos);\n html = \"\" + format(start_range) + \"\";\n html += \"|\";\n html += \"\" + format(end_range) + \"\";\n mirror = new Mirror(domInputor);\n return mirror.create(html).rect();\n };\n\n getOffset = function (pos = null) {\n var offset, position, domInputor;\n domInputor = this.domInputor;\n\n var rect = domInputor.getBoundingClientRect();\n\n offset = {\n left: rect.left,\n top: rect.top\n };\n \n position = this.getPosition(pos);\n return offset = {\n left: offset.left + position.left - domInputor.scrollLeft, \n top: offset.top + position.top - domInputor.scrollTop, \n height: position.height\n };\n };\n\n}\n\nclass Mirror {\n domInputor: any;\n css_attr: any;\n constructor(inputor) {\n this.domInputor = inputor;\n this.css_attr = [];\n }\n\n create = function (html) {\n this.$mirror = document.createElement(\"div\");\n\n (window).AntDesign.interop.css(this.$mirror, this.mirrorCss());\n\n this.$mirror.innerHTML = html;\n this.domInputor.parentElement.append(this.$mirror);\n\n return this;\n };\n\n mirrorCss = function () {\n var css, _this = this;\n css = {\n position: 'absolute',\n left: -9999,\n top: 0,\n zIndex: -20000\n };\n\n this.css_attr.push('width');\n\n this.css_attr.forEach((p) => {\n return css[p] = _this.domInputor.style[p]//_this.$inputor.css(p);\n })\n \n return css;\n };\n\n rect = function () {\n var flag, pos, rect;\n flag = this.$mirror.querySelector(\"#caret\");\n var oRect = flag.getBoundingClientRect();\n\n pos = {\n left: flag.offsetLeft,\n top: flag.offsetTop\n }; //$flag.position();\n\n rect = {\n left: pos.left,\n top: pos.top,\n height: oRect.height\n };\n\n this.$mirror.parentElement.removeChild(this.$mirror)\n return rect;\n };\n\n}\n\nfunction getOffset(elem) {\n return (new InputCaret(elem)).getOffset();\n}\n\nexport default getOffset;","\nconst throttle = (fn, threshold = 160) => {\n let timeout;\n var start = +new Date;\n return function (...args) {\n let context = this, curTime = +new Date() - 0;\n //总是干掉事件回调\n window.clearTimeout(timeout);\n if (curTime - start >= threshold) {\n //只执行一部分方法,这些方法是在某个时间段内执行一次\n fn.apply(context, args);\n start = curTime;\n }\n else {\n //让方法在脱离事件后也能执行一次\n timeout = window.setTimeout(() => {\n //@ts-ignore\n fn.apply(this, args);\n }, threshold);\n }\n };\n}\n\nconst eventMap = new Map();\n\nconst defaultOptions = {\n inViewport: true\n}\n\nclass Dragger {\n\n private _triggler: HTMLElement = null;\n private _container: HTMLElement = null;\n private _options: any = null;\n private _state: any = null;\n private _isFirst: boolean = true;\n private _style: string = null;\n\n constructor(triggler: HTMLElement, container: HTMLElement, dragInViewport: boolean) {\n this._triggler = triggler;\n this._container = container;\n this._options = Object.assign({}, defaultOptions, {\n inViewport: dragInViewport\n });\n this._state = {\n isInDrag: false,\n mX: 0, // mouse x\n mY: 0, // mouse y\n domStartX: 0, // on mousedown, the mouse x\n domStartY: 0, // on mousedown, the mouse y \n }\n }\n\n getContainerPos() {\n const rect = this._container.getBoundingClientRect();\n return {\n left: rect.left,\n top: rect.top\n }\n }\n\n onMousedown = (e) => {\n const state = this._state;\n state.isInDrag = true;\n state.mX = e.clientX;\n state.mY = e.clientY;\n this._container.style.position = \"absolute\";\n const { left, top } = this.getContainerPos();\n\n if (this._isFirst) {\n\n state.domMaxY = document.documentElement.clientHeight\n - this._container.offsetHeight - 1;\n state.domMaxX = document.documentElement.clientWidth\n - this._container.offsetWidth - 1;\n\n this._container.style.left = left + 'px';\n this._container.style.top = top + 'px';\n\n if (!this._style) {\n this._style = this._container.getAttribute(\"style\");\n }\n\n this._isFirst = false;\n }\n\n state.domStartX = left;\n state.domStartY = top;\n }\n\n onMouseup = (e) => {\n const state = this._state;\n\n state.isInDrag = false;\n\n const { left, top } = this.getContainerPos();\n state.domStartX = left;\n state.domStartY = top;\n }\n\n onMousemove = throttle((e) => {\n const state = this._state;\n if (state.isInDrag) {\n var nowX = e.clientX,\n nowY = e.clientY,\n disX = nowX - state.mX,\n disY = nowY - state.mY;\n\n var newDomX = state.domStartX + disX;\n var newDomY = state.domStartY + disY;\n if (this._options.inViewport) {\n if (newDomX < 0) {\n newDomX = 0;\n }\n else if (newDomX > state.domMaxX) {\n newDomX = state.domMaxX;\n }\n if (newDomY < 0) {\n newDomY = 0;\n }\n else if (newDomY > state.domMaxY) {\n newDomY = state.domMaxY;\n }\n }\n this._container.style.position = \"absolute\";\n this._container.style.margin = \"0\";\n this._container.style.paddingBottom = \"0\";\n this._container.style.left = newDomX + \"px\";\n this._container.style.top = newDomY + \"px\";\n }\n }, 10).bind(this);\n\n onResize = throttle((e) => {\n const state = this._state;\n\n state.domMaxY = document.documentElement.clientHeight\n - this._container.offsetHeight - 1;\n state.domMaxX = document.documentElement.clientWidth\n - this._container.offsetWidth - 1;\n state.domStartY = parseInt(this._container.style.top);\n state.domStartX = parseInt(this._container.style.left);\n if (state.domStartY > state.domMaxY) {\n if (state.domMaxY > 0) {\n this._container.style.top = state.domMaxY + \"px\";\n }\n }\n if (state.domStartX > state.domMaxX) {\n this._container.style.left = state.domMaxX + \"px\";\n }\n }, 10).bind(this);\n\n bindDrag() {\n const triggler = this._triggler;\n const options = this._options;\n\n triggler.addEventListener(\"mousedown\", this.onMousedown, false);\n window.addEventListener(\"mouseup\", this.onMouseup, false);\n document.addEventListener(\"mousemove\", this.onMousemove);\n if (options.inViewport) {\n window.addEventListener(\"resize\", this.onResize, false);\n }\n }\n\n unbindDrag() {\n const triggler = this._triggler;\n\n triggler.removeEventListener(\"mousedown\", this.onMousedown, false);\n window.removeEventListener(\"mouseup\", this.onMouseup, false);\n document.removeEventListener(\"mousemove\", this.onMousemove);\n if (this._options.inViewport) {\n window.removeEventListener(\"resize\", this.onResize, false);\n }\n }\n\n resetContainerStyle() {\n if (this._style !== null) {\n this._isFirst = true;\n this._container.setAttribute(\"style\", this._style);\n }\n }\n}\n\nfunction enableDraggable(triggler: HTMLElement, container: HTMLElement, dragInViewport: boolean = true) {\n let dragger = eventMap.get(triggler);\n if (!dragger) {\n dragger = new Dragger(triggler, container, dragInViewport);\n eventMap.set(triggler, dragger);\n } \n dragger.bindDrag();\n}\n\nfunction disableDraggable(triggler: HTMLElement) {\n const dragger = eventMap.get(triggler);\n if (dragger) {\n dragger.unbindDrag();\n }\n}\n\nfunction resetModalPosition(triggler: HTMLElement) {\n const dragger = eventMap.get(triggler);\n if (dragger) {\n dragger.resetContainerStyle();\n }\n}\n\nexport { enableDraggable, disableDraggable, resetModalPosition };","import * as interop from \"./core/JsInterop/interop\";\n\ndeclare global {\n interface Window {\n AntDesign: any;\n }\n}\n\nwindow.AntDesign = {\n interop,\n};\n"]}