{"version":3,"sources":["webpack://elemental/./js/ae_dropdown.js","webpack://elemental/./js/anchor.js","webpack://elemental/./js/clipboard-interop.js","webpack://elemental/./js/getDimensions.js","webpack://elemental/./js/initializeSidebar.js","webpack://elemental/./js/modal-helper.js","webpack://elemental/./js/saveAsFile.js","webpack://elemental/./js/sidenav.js","webpack://elemental/./js/tableToolTipHelper.js","webpack://elemental/./js/virtualScrolling.js","webpack://elemental/./js/walkThrough.js"],"names":["window","aedropdown","dropdowns","initialize","id","push","dispose","filter","_id","toggleVisibility","document","querySelector","classList","toggle","addEventListener","event","forEach","element","contains","target","remove","BlazorScrollToId","getElementById","HTMLElement","scrollIntoView","behavior","block","inline","ScrollPos","pos","getPositionOnDoc","scrollTo","top","ScrollPosFromId","BlazorClipboadInterop","ListeningForPasteEvents","dotNetObject","e","pasteEvent","toBase64","file","Promise","resolve","reject","reader","FileReader","readAsDataURL","onload","result","onerror","error","async","data","navigator","clipboard","read","items","i","length","item","j","types","type","blob","getType","startsWith","content","text","invokeMethodAsync","preventDefault","getDimensions","width","clientWidth","height","clientHeight","getPosition","rect","getBoundingClientRect","Math","floor","left","bottom","right","pageYOffset","pageXOffset","setZIndex","zIndex","style","initializeSidebar","ref","add","getInnerHeight","innerHeight","getInnerWidth","innerWidth","registerResizeCallback","resized","DotNet","then","modalHelper","scrollTop","scrollLeft","lockBodyScrolling","this","documentElement","getElementsByTagName","overflowY","position","getElementsByClassName","unlockBodyScrolling","setModalPosition","saveAsFile","filename","bytesBase64","msSaveBlob","_blazorDownloadFileData","atob","_blazorDownloadFileBytes","Uint8Array","charCodeAt","_blazorDownloadFileBlob","Blob","buffer","link","createElement","download","href","body","appendChild","click","removeChild","RemoveAllOfArrayOfClasses","list","classname","$","removeClass","RemoveAllOfClass","IfSubMenuExist","activeMainHref","location","pathname","substr","split","children","sidenav","sidenavExpandThreshold","sidenavShrinkThreshold","stayCollapse","toggleExpansion","closeSidenav","hasClass","main","css","addClass","initializeSidenav","firstRender","expandThreshold","shrunkThreshold","_sidenav","_sidenavMainMenu","_window","resize","mouseenter","currentTarget","attr","subMenuGroup","mouseleave","updateNav","splitHref","activeSubMenuHref","activeSubMenuItem","subSubMenuGroup","activeDatabaseHref","ready","initializeToolTip","dotnetHelper","virtualScrolling","getScrollView","parseInt","walkThroughHelper","walkThrough","props","DotNetReference","dotNetReference","steps","sort","a","b","order","popperModifiers","modifiers","name","options","offset","allowedAutoPlacements","vfdvd","tour","Shepherd","Tour","defaultStepOptions","cancelIcon","enabled","canClickTarget","clickable","popperOptions","useModalOverlay","overlay","step","addStep","title","attachTo","on","buttons","getButtons","overlap","altAxis","arrow","start","stepOrder","numOfSteps","buttonSet","back","classes","next"],"mappings":"AAACA,OAAOC,WAAa,CACjBC,UAAW,GACXC,WAAaC,IACTJ,OAAOC,WAAWC,UAAUG,KAAKD,IAErCE,QAAUF,IACNJ,OAAOC,WAAWC,UAAYF,OAAOC,WAAWC,UAAUK,QAAOC,GACtDA,IAAQJ,KAGvBK,iBAAmBL,IACDM,SAASC,cAAc,WAAWP,OACxCQ,UAAUC,OAAO,aAIjCH,SAASI,iBAAiB,SAAS,SAAUC,GACzCf,OAAOC,WAAWC,UAAUc,SAAQZ,IAChC,IAAIa,EAAUP,SAASC,cAAc,WAAWP,OAC5Ca,EAAQL,UAAUM,SAAS,aAAeD,EAAQC,SAASH,EAAMI,SACjEF,EAAQL,UAAUQ,OAAO,iBCpBpCC,iBAAmB,SAAUjB,GAC1B,MAAMa,EAAUP,SAASY,eAAelB,GACpCa,aAAmBM,aACvBN,EAAQO,eAAe,CACnBC,SAAU,SACVC,MAAO,QACPC,OAAQ,aAKhBC,UAAY,SAAUX,GAClB,GAAIA,aAAmBM,YAAa,CAChC,IAAIM,EAAM7B,OAAO8B,iBAAiBb,GAClCjB,OAAO+B,SAAS,EAAGF,EAAIG,OAG/BC,gBAAkB,SAAU7B,GACxBwB,UAAUlB,SAASY,eAAelB,K,MClBrCJ,OAAOkC,sBAAwBlC,OAAOkC,uBAAy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ToN,QAAQT,EAAKS,WAIrBpB,EAAKe,GAAG,YAAY,KAChB7B,EAAgBlH,kBAAkB,2BAGtCgI,EAAKqB,SAETJ,WAAY,SAAUK,EAAWC,GAC7B,IAAIC,EAAY,GAiBhB,OAhBkB,IAAdF,GACAE,EAAUvN,KAAK,CACX,SACI,OAAOkG,KAAKsH,QAEhBC,QAAS,4BACT3J,KAAM,SAGdyJ,EAAUvN,KAAK,CACX,SACI,OAAOkG,KAAKwH,QAEhB5J,KAAMuJ,GAAaC,EAAa,OAAS,SAGtCC","file":"aebundle.js","sourcesContent":["window.aedropdown = {\r\n dropdowns: [],\r\n initialize: (id) => {\r\n window.aedropdown.dropdowns.push(id);\r\n },\r\n dispose: (id) => {\r\n window.aedropdown.dropdowns = window.aedropdown.dropdowns.filter(_id => {\r\n return _id !== id;\r\n });\r\n },\r\n toggleVisibility: (id) => {\r\n let element = document.querySelector(`[ae-id=\"${id}\"]`);\r\n element.classList.toggle(\"visible\");\r\n },\r\n}\r\n\r\ndocument.addEventListener('click', function (event) {\r\n window.aedropdown.dropdowns.forEach(id => {\r\n let element = document.querySelector(`[ae-id=\"${id}\"]`);\r\n if (element.classList.contains(\"visible\") && !element.contains(event.target)) {\r\n element.classList.remove(\"visible\");\r\n }\r\n })\r\n})\r\n","BlazorScrollToId = function (id) {\r\n const element = document.getElementById(id);\r\n if (element instanceof HTMLElement) {\r\n element.scrollIntoView({\r\n behavior: \"smooth\",\r\n block: \"start\",\r\n inline: \"nearest\"\r\n });\r\n }\r\n}\r\n\r\nScrollPos = function (element) {\r\n if (element instanceof HTMLElement) {\r\n var pos = window.getPositionOnDoc(element);\r\n window.scrollTo(0, pos.top);\r\n }\r\n}\r\nScrollPosFromId = function (id) {\r\n ScrollPos(document.getElementById(id));\r\n}\r\n\r\n","window.BlazorClipboadInterop = window.BlazorClipboadInterop || {};\r\n\r\nwindow.BlazorClipboadInterop.ListeningForPasteEvents = function (element, dotNetObject) {\r\n element.addEventListener('paste', function (e) { BlazorClipboadInterop.pasteEvent(e, dotNetObject) });\r\n};\r\n\r\nconst toBase64 = file => new Promise((resolve, reject) => {\r\n const reader = new FileReader();\r\n reader.readAsDataURL(file);\r\n reader.onload = () => resolve(reader.result);\r\n reader.onerror = error => reject(error);\r\n});\r\n\r\nwindow.BlazorClipboadInterop.pasteEvent =\r\n async function (e, dotNetObject) {\r\n\r\n var data = await navigator.clipboard.read();\r\n var items = []; //is passed to C#\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n var item = {};\r\n items.push(item);\r\n for (let j = 0; j < data[i].types.length; j++) {\r\n\r\n const type = data[i].types[j];\r\n\r\n const blob = await data[i].getType(type);\r\n if (blob) {\r\n\r\n if (type.startsWith(\"text\") == true) {\r\n const content = await blob.text();\r\n item[type] = content;\r\n }\r\n else {\r\n item[type] = await toBase64(blob);\r\n }\r\n }\r\n }\r\n }\r\n\r\n await dotNetObject.invokeMethodAsync('Pasted', items);\r\n e.preventDefault();\r\n }\r\n","//simple script for use with GetDimensionsService.cs\r\nwindow.getDimensions = function (element) {\r\n return {\r\n width: element.clientWidth,\r\n height: element.clientHeight\r\n };\r\n};\r\n\r\nwindow.getPosition = function (element) { \r\n var rect = element.getBoundingClientRect();\r\n return {\r\n top: Math.floor(rect.top),\r\n left: Math.floor(rect.left),\r\n bottom: Math.floor(rect.bottom),\r\n right: Math.floor(rect.right)\r\n };\r\n};\r\n\r\nwindow.getPositionOnDoc = function (element) {\r\n var rect = window.getPosition(element)\r\n return {\r\n top: Math.floor(rect.top + window.pageYOffset),\r\n left: Math.floor(rect.left + window.pageXOffset),\r\n bottom: Math.floor(rect.bottom + window.pageYOffset),\r\n right: Math.floor(rect.right + window.pageXOffset)\r\n };\r\n};\r\n\r\nwindow.setZIndex = function (element, zIndex) {\r\n element.style.zIndex = zIndex;\r\n}\r\n","window.initializeSidebar = {\r\n \r\n initialize: (ref) => {\r\n ref.addEventListener('mouseover', function () {\r\n if (document.querySelector('.ae.side-nav').clientWidth <= 56) {\r\n var rect = ref.getBoundingClientRect();\r\n ref.querySelector('span').style.top = Math.floor(rect.top) + 'px';\r\n ref.querySelector('span').classList.add(\"show\");\r\n }\r\n }); \r\n ref.addEventListener('mouseout', function () {\r\n if (document.querySelector('.ae.side-nav').clientWidth <= 56) {\r\n ref.querySelector('span').classList.remove(\"show\");\r\n }\r\n }); \r\n },\r\n\r\n getInnerHeight: function () {\r\n return window.innerHeight;\r\n },\r\n getInnerWidth: function () {\r\n return window.innerWidth;\r\n },\r\n registerResizeCallback: function () {\r\n window.addEventListener(\"resize\", initializeSidebar.resized);\r\n },\r\n resized: function () {\r\n //DotNet.invokeMethod(\"BrowserResize\", 'OnBrowserResize');\r\n DotNet.invokeMethodAsync(\"Elemental\", 'OnBrowserResize').then(data => data);\r\n }\r\n \r\n}\r\n\r\n\r\n","window.modalHelper = {\r\n scrollTop: null,\r\n scrollLeft: null,\r\n lockBodyScrolling: function () { \r\n this.scrollTop = document.documentElement.scrollTop;\r\n this.scrollLeft = document.documentElement.scrollLeft;\r\n document.getElementsByTagName('html')[0].style.overflowY = 'scroll';\r\n document.getElementsByTagName('body')[0].style.top = -(document.documentElement.scrollTop) + 'px'; \r\n document.getElementsByTagName('body')[0].style.position = 'fixed';\r\n document.getElementsByTagName('body')[0].style.width = '100%';\r\n document.getElementsByClassName('modal')[0].style.top = -(document.documentElement.scrollTop) + 'px';\r\n \r\n },\r\n\r\n unlockBodyScrolling: function () {\r\n document.getElementsByTagName('html')[0].style.overflowY = 'auto';\r\n document.getElementsByTagName('body')[0].style.top = 'auto';\r\n document.getElementsByTagName('body')[0].style.width = 'auto'; // the default for the css property\r\n document.getElementsByTagName('body')[0].style.position = 'static'; // the default for the css property\r\n window.scrollTo(this.scrollLeft, this.scrollTop);\r\n },\r\n\r\n setModalPosition: function () {\r\n }\r\n}\r\n","window.saveAsFile = (filename, bytesBase64) => {\r\n if (navigator.msSaveBlob) {\r\n //Download document in Edge\r\n var _blazorDownloadFileData = atob(bytesBase64);\r\n var _blazorDownloadFileBytes = new Uint8Array(_blazorDownloadFileData.length);\r\n for (var i = 0; i < _blazorDownloadFileData.length; i++) {\r\n {\r\n _blazorDownloadFileBytes[i] = _blazorDownloadFileData.charCodeAt(i);\r\n }\r\n }\r\n _blazorDownloadFileData = null;\r\n var _blazorDownloadFileBlob = new Blob([_blazorDownloadFileBytes.buffer], { type: \"application/octet-stream\" });\r\n _blazorDownloadFileBytes = null;\r\n navigator.msSaveBlob(_blazorDownloadFileBlob, filename);\r\n _blazorDownloadFileBlob = null;\r\n }\r\n else {\r\n //Download document in other browsers\r\n var link = document.createElement('a');\r\n link.download = filename;\r\n link.href = \"data:application/octet-stream;base64,\" + bytesBase64;\r\n document.body.appendChild(link); // Needed for Firefox\r\n link.click();\r\n document.body.removeChild(link);\r\n }\r\n\r\n}","window.sidenav = {\r\n sidenavExpandThreshold: null,\r\n sidenavShrinkThreshold: null,\r\n stayCollapse: false,\r\n toggleExpansion: closeSidenav => {\r\n if (closeSidenav === undefined || closeSidenav === null) {\r\n closeSidenav = $('.ae.sidenav').hasClass('expanded');\r\n }\r\n var sidenav = $('.ae.sidenav');\r\n var main = $('.ae.content-wrapper');\r\n if (closeSidenav) {\r\n sidenav.removeClass('expanded');\r\n main.css('margin-left', 60);\r\n }\r\n else {\r\n sidenav.addClass('expanded');\r\n }\r\n\r\n if ($(window).width() > window.sidenav.sidenavExpandThreshold) {\r\n if (!closeSidenav) { \r\n main.css('margin-left', 300);\r\n } \r\n } \r\n //$('.toggle-expand > i').toggleClass('fa-chevron-double-left').toggleClass('fa-chevron-double-right');\r\n },\r\n\r\n initializeSidenav: (firstRender, expandThreshold, shrunkThreshold, stayCollapse) => {\r\n window.sidenav.sidenavExpandThreshold = expandThreshold;\r\n window.sidenav.sidenavShrinkThreshold = shrunkThreshold;\r\n window.sidenav.stayCollapse = stayCollapse;\r\n let _sidenav = $('.ae.sidenav');\r\n let _sidenavMainMenu = $('.ae.sidenav-main-menu');\r\n let _window = $(window);\r\n \r\n\r\n if (firstRender && _window.width() > window.sidenav.sidenavExpandThreshold && IfSubMenuExist()) {\r\n //$('.toggle-expand').hide();\r\n window.sidenav.toggleExpansion(false);\r\n }\r\n\r\n if (firstRender && _window.width() < window.sidenav.sidenavExpandThreshold) {\r\n //$('.toggle-expand').hide();\r\n window.sidenav.toggleExpansion(true);\r\n }\r\n\r\n\r\n if (!window.sidenav.stayCollapse) {\r\n _window.resize(() => {\r\n if (_window.width() > window.sidenav.sidenavExpandThreshold && !_sidenav.hasClass('expanded') && IfSubMenuExist()) {\r\n window.sidenav.toggleExpansion(false);\r\n //$('.toggle-expand').show();\r\n return;\r\n }\r\n\r\n if (_window.width() < window.sidenav.sidenavShrinkThreshold && _sidenav.hasClass('expanded')) {\r\n window.sidenav.toggleExpansion(true);\r\n //$('.toggle-expand').hide();\r\n return;\r\n }\r\n })\r\n\r\n _sidenavMainMenu.children(`.ae.sidenav-item`).mouseenter(e => {\r\n let href = $(e.currentTarget).attr(\"href\");\r\n let subMenuGroup = $(`[data-nav-href=\"${href}\"]`);\r\n if (_window.width() < window.sidenav.sidenavShrinkThreshold) {\r\n if (subMenuGroup.children(`[href*=\"${href}/\"]`).length != 0) {\r\n\r\n RemoveAllOfArrayOfClasses([\r\n \"expanded\"\r\n ]);\r\n\r\n subMenuGroup.addClass('expanded');\r\n window.sidenav.toggleExpansion(false);\r\n return;\r\n }\r\n else {\r\n window.sidenav.toggleExpansion(true);\r\n return;\r\n }\r\n }\r\n })\r\n _sidenav.mouseleave(() => {\r\n if (_window.width() < window.sidenav.sidenavShrinkThreshold) { \r\n window.sidenav.toggleExpansion(true);\r\n return;\r\n }\r\n }) \r\n }\r\n },\r\n\r\n updateNav: () =>\r\n {\r\n let href = window.location.pathname.substr(1);\r\n let splitHref = href.split('/');\r\n\r\n RemoveAllOfArrayOfClasses([\r\n \"expanded\",\r\n \"exact\",\r\n \"active\",\r\n ]);\r\n\r\n $(`[href=\"/${href}\"]`).addClass('exact');\r\n\r\n if (splitHref.length > 0) {\r\n let activeMainHref = splitHref[0];\r\n let subMenuGroup = $(`[data-nav-href=\"/${activeMainHref}\"]`);\r\n \r\n\r\n $(`[href=\"/${activeMainHref}\"]`).addClass('active');\r\n\r\n \r\n subMenuGroup.addClass('expanded');\r\n //if sub menu is empty, collapse\r\n if ($('.ae.sidenav').hasClass('expanded') && subMenuGroup.children(`[href*=\"/${activeMainHref}/\"]`).length == 0) {\r\n window.sidenav.toggleExpansion(true);\r\n }\r\n //if sub menu is not empty, expand\r\n else if (!$('.ae.sidenav').hasClass('expanded') && subMenuGroup.children(`[href*=\"/${activeMainHref}/\"]`).length != 0 && $(window).width() > window.sidenav.sidenavExpandThreshold ) {\r\n window.sidenav.toggleExpansion(false);\r\n }\r\n\r\n if (splitHref.length > 1) {\r\n\r\n let activeSubMenuHref = `${activeMainHref}/${splitHref[1]}`;\r\n let activeSubMenuItem = subMenuGroup.children(`[href=\"/${activeSubMenuHref}\"]`);\r\n\r\n if (activeSubMenuItem.length == 0) {\r\n window.sidenav.toggleExpansion(true);\r\n }\r\n else {\r\n activeSubMenuItem.addClass('active');\r\n\r\n let subSubMenuGroup = $(`[data-nav-href=\"/${activeSubMenuHref}\"]`);\r\n subSubMenuGroup.addClass('expanded');\r\n\r\n\r\n if (splitHref.length > 2) {\r\n\r\n let activeDatabaseHref = `${activeSubMenuHref}/${splitHref[2]}`;\r\n let activeDatabase = subSubMenuGroup.children(`[href=\"/${activeDatabaseHref}\"]`);\r\n activeDatabase.addClass('active');\r\n }\r\n }\r\n }\r\n \r\n \r\n }\r\n \r\n },\r\n};\r\n\r\nfunction RemoveAllOfArrayOfClasses(list) {\r\n list.forEach(classname => RemoveAllOfClass(classname))\r\n}\r\n\r\nfunction RemoveAllOfClass(classname) {\r\n $(`.ae.sidenav-container .${classname}`).removeClass(classname);\r\n $(`.sidenav-group-wrapper .${classname}`).removeClass(classname);\r\n}\r\n\r\nfunction IfSubMenuExist() {\r\n let href = window.location.pathname.substr(1);\r\n let splitHref = href.split('/');\r\n let activeMainHref = splitHref[0];\r\n let subMenuGroup = $(`[data-nav-href=\"/${activeMainHref}\"]`);\r\n return subMenuGroup.children(`[href*=\"/${activeMainHref}/\"]`).length != 0;\r\n}\r\n\r\n$(document).ready(function () {\r\n //console.log($(\".ae.sidenav\").width())\r\n});","window.initializeToolTip = (element, dotnetHelper) => {\r\n element.addEventListener('mouseout', () => {\r\n dotnetHelper.invokeMethodAsync('OnMouseOutHideToolTip');\r\n });\r\n}","window.virtualScrolling = { \r\n getScrollView(ref) {\r\n return { scrollTop: parseInt(ref.scrollTop), clientHeight: ref.clientHeight };\r\n\r\n }\r\n\r\n};","window.walkThroughHelper = {\r\n walkThrough: function (props) {\r\n var DotNetReference = props.dotNetReference;\r\n\r\n var steps = props.steps.sort((a, b) => a.order - b.order);\r\n\r\n var popperModifiers = {\r\n modifiers: [{\r\n name: 'offset', options: { offset: [0, 3] }\r\n }, {\r\n name: 'flip',\r\n options: {\r\n allowedAutoPlacements: ['top', 'bottom', 'right', 'left'],\r\n }\r\n }, {\r\n name: 'eventListeners',\r\n options: {\r\n resize: true,\r\n vfdvd:true,\r\n }\r\n }]\r\n }\r\n\r\n const tour = new Shepherd.Tour({\r\n defaultStepOptions: {\r\n cancelIcon: {\r\n enabled: true\r\n },\r\n scrollTo: { behavior: 'smooth', block: 'center' },\r\n canClickTarget: props.clickable ? true : false,\r\n popperOptions: popperModifiers\r\n },\r\n useModalOverlay: props.overlay ? true : false\r\n });\r\n\r\n steps.forEach(step => {\r\n tour.addStep({\r\n title: step.title,\r\n text: step.content,\r\n attachTo: {\r\n element: step.id,\r\n on: step.position\r\n },\r\n buttons: this.getButtons(step.order, steps.length),\r\n scrollTo: !step.scrollTo ? false : true,\r\n popperOptions: !step.overlap ? { modifiers: [{ name: 'preventOverflow', options: { altAxis: false } }] } : popperModifiers,\r\n id: step.id,\r\n arrow: !step.arrow ? false : true\r\n })\r\n });\r\n\r\n tour.on('complete', () => {\r\n DotNetReference.invokeMethodAsync('WalkthroughCompleted')\r\n });\r\n\r\n tour.start();\r\n },\r\n getButtons: function (stepOrder, numOfSteps) {\r\n var buttonSet = [];\r\n if (stepOrder !== 1)\r\n buttonSet.push({\r\n action() {\r\n return this.back();\r\n },\r\n classes: 'shepherd-button-secondary',\r\n text: 'Back'\r\n });\r\n\r\n buttonSet.push({\r\n action() {\r\n return this.next();\r\n },\r\n text: stepOrder == numOfSteps ? \"Exit\" : \"Next\"\r\n })\r\n\r\n return buttonSet;\r\n }\r\n\r\n}"],"sourceRoot":""}