{"version":3,"sources":["widgets lazy /^/.*/Index$/ groupOptions: {} namespace object","serviceWorker.ts","components/LazyWidget.tsx","index.tsx","utils/QueryString.ts","services/Mediator.ts"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","all","slice","keys","Object","module","exports","Boolean","window","location","hostname","match","LazyWidget","props","React","useState","Fragment","currentWidgetId","Widget","widgetProps","setWidgetProps","load","widgetId","a","mergedProps","resolveProps","default","useEffect","fallback","processedProps","qs","getQueryStringValues","qsProps","p","propsSignature","type","getValue","toLowerCase","length","value","top","mediator","getService","key","element","source","selectedValue","disabled","tabIndex","onChange","Component","lazy","ReactDOM","render","StrictMode","className","defaultValue","selection","entity","separator","root","context","document","body","widgetHosts","querySelectorAll","evt","CustomEvent","detail","forEach","getAttribute","attributeProps","Array","from","attributes","filter","name","startsWith","attr","substring","eId","querySelector","JSON","parse","fieldId","handleChange","console","log","removeEventListener","undefined","unmountComponentAtNode","addEventListener","combinedProps","i18n-optout","dispatchEvent","baseUrl","getBaseUrl","getElementById","wroot","App","navigator","serviceWorker","ready","registration","unregister","catch","error","message","event","parseQueryString","search","hash","output","input","split","param","paramsPair","decodeURIComponent","replace","query","href","origin","pathname","searches","hashes","q","push","encodeURIComponent","join","PropsHelper","this","base","baseElement","getElementsByTagName","test","Publisher","subscriptions","subscriptionCounter","eventType","handler","token","foundSubscription","subscription","i","indexOf","splice","eventData","foundSubscriptions","Subscription","pubsubToken","EventType","authorized","authorizationExpired","authorizationFailed","authorizationForbidden","navigate","raiseError","raiseFatalError","showNotification","showModal","sizeChanged","showToast","unauthorized","actionCompleted","actionBegin","actionEnd","setQRCode","entityFormAction","Mediator","publisher","publish","create","subscribe","unsubscribe","data","options"],"mappings":"kHAAA,IAAIA,EAAM,CACT,wBAAyB,CACxB,GACA,EACA,EACA,GACA,IAED,mBAAoB,CACnB,GACA,IAED,0BAA2B,CAC1B,GACA,EACA,IAED,gBAAiB,CAChB,GACA,EACA,EACA,GACA,IAED,4BAA6B,CAC5B,GACA,EACA,EACA,EACA,EACA,IAED,oBAAqB,CACpB,GACA,EACA,EACA,EACA,EACA,IAED,wBAAyB,CACxB,GACA,EACA,EACA,EACA,EACA,IAED,8BAA+B,CAC9B,GACA,EACA,EACA,EACA,EACA,IAED,gCAAiC,CAChC,GACA,EACA,EACA,GACA,IAED,wBAAyB,CACxB,GACA,IAED,sBAAuB,CACtB,GACA,IAED,+BAAgC,CAC/B,GACA,EACA,EACA,EACA,EACA,IAED,oBAAqB,CACpB,GACA,EACA,IAED,sBAAuB,CACtB,GACA,EACA,EACA,EACA,EACA,IAED,6BAA8B,CAC7B,GACA,EACA,EACA,IAED,iCAAkC,CACjC,GACA,EACA,EACA,IAED,qBAAsB,CACrB,GACA,EACA,EACA,EACA,GACA,IAED,2BAA4B,CAC3B,GACA,EACA,EACA,EACA,EACA,IAED,gCAAiC,CAChC,GACA,EACA,EACA,EACA,EACA,IAED,kCAAmC,CAClC,GACA,EACA,IAED,4BAA6B,CAC5B,GACA,EACA,IAED,0CAA2C,CAC1C,GACA,EACA,EACA,EACA,EACA,IAED,qBAAsB,CACrB,GACA,EACA,EACA,EACA,EACA,IAED,yBAA0B,CACzB,GACA,EACA,EACA,EACA,IAED,uBAAwB,CACvB,GACA,EACA,EACA,EACA,GACA,IAED,wBAAyB,CACxB,GACA,EACA,EACA,EACA,EACA,KAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,KAIR,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAON,QAAQQ,IAAIF,EAAIG,MAAM,GAAGd,IAAIG,EAAoBK,IAAID,MAAK,WAChE,OAAOJ,EAAoBS,MAG7BX,EAAoBc,KAAO,WAC1B,OAAOC,OAAOD,KAAKf,IAE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,EAAUS,UAAW,CAAEe,KAAMC,QAtClD,KA0CItI,EAAqBjC,OAAOgC,IAAP,cAA8B,IAAIgI,EAC5C/H,Q","file":"static/js/main.e51c0305.chunk.js","sourcesContent":["var map = {\n\t\"./avatar-upload/Index\": [\n\t\t25,\n\t\t0,\n\t\t1,\n\t\t36,\n\t\t46\n\t],\n\t\"./bing-map/Index\": [\n\t\t26,\n\t\t47\n\t],\n\t\"./call-quick-form/Index\": [\n\t\t27,\n\t\t5,\n\t\t43\n\t],\n\t\"./cards/Index\": [\n\t\t43,\n\t\t0,\n\t\t1,\n\t\t24,\n\t\t44\n\t],\n\t\"./component-factory/Index\": [\n\t\t28,\n\t\t0,\n\t\t1,\n\t\t3,\n\t\t6,\n\t\t28\n\t],\n\t\"./data-grid/Index\": [\n\t\t24,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t4,\n\t\t19\n\t],\n\t\"./entity-browse/Index\": [\n\t\t29,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t3,\n\t\t14\n\t],\n\t\"./entity-field-picker/Index\": [\n\t\t30,\n\t\t0,\n\t\t1,\n\t\t3,\n\t\t5,\n\t\t21\n\t],\n\t\"./global-search-results/Index\": [\n\t\t32,\n\t\t0,\n\t\t5,\n\t\t37,\n\t\t33\n\t],\n\t\"./global-search/Index\": [\n\t\t31,\n\t\t42\n\t],\n\t\"./hello-world/Index\": [\n\t\t33,\n\t\t53\n\t],\n\t\"./language-label-admin/Index\": [\n\t\t42,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t4,\n\t\t13\n\t],\n\t\"./link-list/Index\": [\n\t\t44,\n\t\t0,\n\t\t41\n\t],\n\t\"./mobile-form/Index\": [\n\t\t23,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t3,\n\t\t15\n\t],\n\t\"./nano-screen-parser/Index\": [\n\t\t34,\n\t\t0,\n\t\t5,\n\t\t34\n\t],\n\t\"./oauth-token-management/Index\": [\n\t\t35,\n\t\t0,\n\t\t5,\n\t\t31\n\t],\n\t\"./pdf-viewer/Index\": [\n\t\t36,\n\t\t0,\n\t\t1,\n\t\t4,\n\t\t23,\n\t\t48\n\t],\n\t\"./portal-bulletins/Index\": [\n\t\t45,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t4,\n\t\t17\n\t],\n\t\"./portal-profile-avatar/Index\": [\n\t\t46,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t4,\n\t\t26\n\t],\n\t\"./quick-form-progress-bar/Index\": [\n\t\t47,\n\t\t5,\n\t\t38\n\t],\n\t\"./quick-forms-admin/Index\": [\n\t\t48,\n\t\t5,\n\t\t25\n\t],\n\t\"./quick-forms-problem-types-admin/Index\": [\n\t\t37,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t3,\n\t\t12\n\t],\n\t\"./teams-chat/Index\": [\n\t\t38,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t7,\n\t\t16\n\t],\n\t\"./telephone-host/Index\": [\n\t\t39,\n\t\t0,\n\t\t1,\n\t\t3,\n\t\t39\n\t],\n\t\"./toast-button/Index\": [\n\t\t40,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t30,\n\t\t50\n\t],\n\t\"./webhook-admin/Index\": [\n\t\t41,\n\t\t0,\n\t\t1,\n\t\t2,\n\t\t4,\n\t\t11\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 14;\nmodule.exports = webpackAsyncContext;","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.0/8 are considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\ntype Config = {\r\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\r\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\r\n};\r\n\r\nexport function register(config?: Config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(\r\n process.env.PUBLIC_URL,\r\n window.location.href\r\n );\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl: string, config?: Config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl, {\r\n headers: { 'Service-Worker': 'script' }\r\n })\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready\r\n .then(registration => {\r\n registration.unregister();\r\n })\r\n .catch(error => {\r\n console.error(error.message);\r\n });\r\n }\r\n}\r\n","import React, { Suspense } from 'react';\r\nimport { getQueryStringValues } from '@utils/QueryString';\r\n\r\nconst LazyWidget: React.FunctionComponent<{ widgetId: string, widgetProps?: any}> = (props) => {\r\n const [[currentWidgetId, Widget, widgetProps], setWidgetProps] = React.useState<[string, React.ComponentType, any]>(['', React.Fragment, {}]);\r\n\r\n let load = async (widgetId: string) => {\r\n let module = (await import(`../widgets/${widgetId}/Index`)) as { default: React.ComponentType, propsSignature: any };\r\n let mergedProps = resolveProps(module, props);\r\n setWidgetProps([widgetId, module.default, mergedProps]);\r\n };\r\n\r\n React.useEffect(() => {\r\n if (currentWidgetId !== props.widgetId) {\r\n load(props.widgetId);\r\n }\r\n });\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default LazyWidget;\r\n\r\nfunction resolveProps(module: { default: React.ComponentType; propsSignature: any; }, props: React.PropsWithChildren<{ widgetId: string; widgetProps?: any; }>) {\r\n let processedProps: any = {};\r\n let qs = getQueryStringValues();\r\n let qsProps: any = {};\r\n for (let p in module.propsSignature) {\r\n let type = typeof module.propsSignature[p];\r\n if (qs) {\r\n if (p in qs) {\r\n qsProps[p] = getValue(qs, p, type);\r\n }\r\n else if (p.toLowerCase() in qs) {\r\n qsProps[p] = getValue(qs, p.toLowerCase(), type);\r\n }\r\n }\r\n if (typeof props.widgetProps !== 'undefined' && Object.keys(props.widgetProps).length > 0) {\r\n if (p in props.widgetProps) {\r\n processedProps[p] = getValue(props.widgetProps, p, type);\r\n }\r\n else if (p.toLowerCase() in props.widgetProps) {\r\n processedProps[p] = getValue(props.widgetProps, p.toLowerCase(), type);\r\n }\r\n }\r\n }\r\n\r\n let mergedProps = { ...processedProps, ...qsProps };\r\n return mergedProps;\r\n}\r\nfunction getValue(qs: { [x: string]: string | undefined; }, p: string, type: string) {\r\n let value: any = qs[p];\r\n if (typeof value === 'string') {\r\n if (type === 'boolean') {\r\n value = value === 'true';\r\n }\r\n else if (type === 'number') {\r\n value = +value;\r\n }\r\n }\r\n return value;\r\n}","import React, { Suspense } from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport { getBaseUrl, getValue } from \"@utils/QueryString\";\r\nimport mediator from \"@services/Mediator\";\r\n\r\nimport * as serviceWorker from \"./serviceWorker\";\r\nimport \"./index.css\";\r\nimport LazyWidget from \"@components/LazyWidget\";\r\nimport { Field } from \"@components/selectors/ComponentModel\";\r\n\r\nif (window === window.top) {\r\n window.top[\"asm_mediator\"] = mediator;\r\n}\r\n\r\n(window as any).getService = async (\r\n key: \"data-service\" | \"asm-mediator\" | \"tiered-select-component-factory\" | \"field-picker-component-factory\" | \"widget-controller\"\r\n) => {\r\n switch (key) {\r\n case \"data-service\":\r\n return await import(\"@services/Data\");\r\n case \"asm-mediator\":\r\n return mediator;\r\n case \"tiered-select-component-factory\":\r\n return async (\r\n element: HTMLElement,\r\n source: any[],\r\n selectedValue: number,\r\n disabled: boolean,\r\n tabIndex: string,\r\n onChange: (value: number) => void\r\n ) => {\r\n let Component = React.lazy(() =>\r\n import(\"@components/selectors/TieredSelect\")\r\n );\r\n ReactDOM.render(\r\n \r\n
\r\n \r\n {\r\n onChange(selection as number);\r\n }}\r\n />\r\n \r\n
\r\n
,\r\n element\r\n );\r\n };\r\n\r\n case \"field-picker-component-factory\":\r\n return async (\r\n element: HTMLElement,\r\n entity: string,\r\n onChange: (values: Array) => void,\r\n separator?: string\r\n ) => {\r\n let Component = React.lazy(() =>\r\n import(\"@components/selectors/FieldPicker\")\r\n );\r\n ReactDOM.render(\r\n \r\n
\r\n \r\n {\r\n onChange(selection as Array);\r\n }}\r\n separator={separator}\r\n />\r\n \r\n
\r\n
,\r\n element\r\n );\r\n };\r\n case \"widget-controller\":\r\n return (root?:HTMLElement) => {\r\n var context = root || document.body;\r\n\r\n let widgetHosts = context.querySelectorAll(\"[widget-id]\");\r\n if (widgetHosts) {\r\n var evt = new CustomEvent(\"widgets-loaded\", {\r\n detail: { mediator: mediator },\r\n });\r\n let render = (o: Element) => {\r\n let id = o.getAttribute(\"widget-id\") as string;\r\n\r\n let attributeProps: any = {};\r\n let pageProps: any = {};\r\n\r\n //wp - widget property\r\n //wppe - widget property page element\r\n Array.from(o.attributes)\r\n .filter(\r\n (o) =>\r\n o.name.startsWith(\"wp-\") ||\r\n o.name.startsWith(\"wppe-\") ||\r\n o.name.startsWith(\"wpqs-\")\r\n )\r\n .forEach((attr) => {\r\n if (attr.name.startsWith(\"wp-\")) {\r\n let name = attr.name.substring(3);\r\n attributeProps[name] = o.getAttribute(\r\n attr.name\r\n );\r\n } else if (attr.name.startsWith(\"wppe-\")) {\r\n let name = attr.name.substring(5);\r\n let eId = o.getAttribute(attr.name) as string;\r\n let e = context.querySelector(`[id=\"${eId}\" i]`) as HTMLInputElement;\r\n if (e) {\r\n attributeProps[name] = e.value;\r\n }\r\n } else if (attr.name.startsWith(\"wpqs-\")) {\r\n let name = attr.name.substring(5);\r\n let key = o.getAttribute(attr.name) as string;\r\n let value = getValue(key);\r\n attributeProps[name] = value;\r\n }\r\n });\r\n\r\n let props = JSON.parse(\r\n o.getAttribute(\"widget-props\") || \"{}\"\r\n );\r\n\r\n for(let p in props){\r\n const value = props[p];\r\n if(typeof value === 'string' && value.startsWith('@field:')){\r\n let fieldId = value.substring(7);\r\n let element = context.querySelector(`[id=\"${fieldId}\" i]`) as HTMLInputElement;\r\n if (element) {\r\n\r\n let handleChange: any = (e: Event) => {\r\n console.log('[Widget] prop changed: ' + fieldId);\r\n element.removeEventListener('change', handleChange);\r\n handleChange = undefined;\r\n ReactDOM.unmountComponentAtNode(o);\r\n render(o);\r\n }\r\n element.addEventListener('change', handleChange);\r\n \r\n props[p] = element.value;\r\n }\r\n }\r\n }\r\n\r\n let combinedProps = { ...props, ...attributeProps };\r\n\r\n ReactDOM.render(\r\n
\r\n \r\n
,\r\n o\r\n );\r\n \r\n o.addEventListener(\"props-changed\", () => {\r\n ReactDOM.unmountComponentAtNode(o);\r\n render(o);\r\n });\r\n };\r\n widgetHosts.forEach(render);\r\n\r\n window.dispatchEvent(evt);\r\n }\r\n };\r\n }\r\n};\r\n\r\nlet baseUrl = getBaseUrl();\r\n\r\ndeclare var __webpack_require__: { p: string };\r\nif (typeof __webpack_require__ !== \"undefined\") {\r\n __webpack_require__.p = baseUrl + \"alemba.web.widgets/\";\r\n}\r\n\r\nlet root = document.getElementById(\"app-root\");\r\nlet wroot = document.getElementById(\"widget-root\");\r\nif (root) {\r\n let App = React.lazy(() => import(\"./App\"));\r\n ReactDOM.render(\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
,\r\n root\r\n );\r\n\r\n // If you want your app to work offline and load faster, you can change\r\n // unregister() to register() below. Note this comes with some pitfalls.\r\n // Learn more about service workers: https://bit.ly/CRA-PWA\r\n serviceWorker.unregister();\r\n} else if (wroot) {\r\n let id = getValue(\"widgetId\") as string;\r\n ReactDOM.render(\r\n
\r\n \r\n
,\r\n wroot\r\n );\r\n}\r\n\r\nwindow.addEventListener('load', function (event) {\r\n console.log('[widgets-available]')\r\n window.dispatchEvent(new CustomEvent(\"widgets-available\", {\r\n detail: { mediator: mediator },\r\n }));\r\n});\r\n","type Querystring = {\r\n search: {\r\n [name: string]: string | undefined\r\n },\r\n hash: {\r\n [name: string]: string | undefined\r\n }\r\n}\r\n\r\nexport default function parseQueryString(window: Window): Querystring {\r\n let search: { [name: string]: string } = {};\r\n let hash: { [name: string]: string } = {};\r\n\r\n [{ output: search, input: window.location.search }, { output: hash, input: window.location.hash }].forEach(o => {\r\n if (o.input && o.input.length > 0) {\r\n o.input.substring(1).split('&').forEach(param => {\r\n var paramsPair = param.split('=');\r\n o.output[(paramsPair[0] || '').toLowerCase()] = decodeURIComponent(paramsPair[1] || '');\r\n });\r\n }\r\n });\r\n\r\n return { search, hash };\r\n};\r\n\r\nexport function getQueryStringValues() {\r\n let qs = parseQueryString(window);\r\n let props = { ...qs.search, ...qs.hash };\r\n return props;\r\n}\r\n\r\nexport function replace(window: Window, query: Querystring) {\r\n\r\n var href = window.location.origin + window.location.pathname;\r\n let searches: string[] = [];\r\n let hashes: string[] = [];\r\n\r\n var q = parseQueryString(window);\r\n if (query.search) {\r\n for (let p in query.search) {\r\n q.search[p.toLowerCase()] = query.search[p]+'';\r\n }\r\n }\r\n if (query.hash) {\r\n q.hash = q.hash || {};\r\n for (let p in query.hash) {\r\n q.hash[p.toLowerCase()] = query.hash[p]+'';\r\n }\r\n }\r\n\r\n if (q.search) {\r\n for (let p in q.search) {\r\n let value = q.search[p];\r\n if (typeof value === 'string' && value.length) {\r\n searches.push(p + '=' + encodeURIComponent(value));\r\n }\r\n else {\r\n searches.push(p);\r\n }\r\n }\r\n if (searches.length) {\r\n href += '?' + searches.join('&');\r\n }\r\n }\r\n\r\n if (q.hash) {\r\n for (let p in q.hash) {\r\n let value = q.hash[p];\r\n if (typeof value === 'string' && value.length) {\r\n hashes.push(p + '=' + encodeURIComponent(value));\r\n }\r\n else {\r\n hashes.push(p);\r\n }\r\n }\r\n if (hashes.length) {\r\n href += '#' + hashes.join('&');\r\n }\r\n }\r\n\r\n return href;\r\n}\r\n\r\nexport function getValue(key: string) {\r\n let qs = parseQueryString(window);\r\n key = key.toLowerCase();\r\n if (key in qs.search) {\r\n return qs.search[key];\r\n }\r\n if (key in qs.hash) {\r\n return qs.hash[key];\r\n }\r\n}\r\n\r\nexport class PropsHelper {\r\n constructor(private element: { props: T }) { }\r\n public getProp(name: K): T[K] | string | undefined {\r\n if (typeof name === 'string') {\r\n if (name in this.element.props && typeof this.element.props[name] !== 'undefined') {\r\n return this.element.props[name];\r\n }\r\n return getValue(name);\r\n }\r\n }\r\n}\r\n\r\nexport function getBaseUrl() {\r\n let base = window.location.href.toLowerCase();\r\n let baseElement = document.getElementsByTagName('base')[0];\r\n if (baseElement) {\r\n base = (baseElement.getAttribute('href') || base).toLowerCase();\r\n } \r\n if (/\\/alemba.web.*/i.test(base)){\r\n return base.replace(/\\/alemba.web.*/i,'/');\r\n }\r\n return base.replace(/\\/[^\\/]+\\.(htm|aspx).*/i,'/');\r\n}","\r\nclass Publisher {\r\n private subscriptions: {eventType: keyof EventType|string, handler: SubscriptionCallback, token: number}[] = [];\r\n private subscriptionCounter = 0;\r\n\r\n subscribe(eventType: keyof EventType|string, handler: SubscriptionCallback) {\r\n if (eventType) {\r\n this.subscriptions.push({ token: ++this.subscriptionCounter, eventType: eventType, handler: handler });\r\n return this.subscriptionCounter;\r\n }\r\n else {\r\n return 0;\r\n }\r\n };\r\n\t\r\n unsubscribe(token: number) {\r\n if (token > 0) {\r\n var foundSubscription = this.subscriptions.filter((subscription) => {\r\n return subscription.token === token;\r\n });\r\n if (foundSubscription.length) {\r\n var i = this.subscriptions.indexOf(foundSubscription[0]);\r\n if (i >= 0) {\r\n this.subscriptions.splice(i, 1);\r\n }\r\n\r\n return foundSubscription[0];\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n publish(eventType: keyof EventType|string, eventData: EventData) {\r\n if (eventType) {\r\n var foundSubscriptions = this.subscriptions.filter((subscription) => {\r\n return subscription.eventType === eventType;\r\n });\r\n if (foundSubscriptions.length) {\r\n foundSubscriptions.forEach((subscription) => {\r\n if (typeof subscription.handler === 'function') {\r\n subscription.handler(eventType, eventData);\r\n }\r\n });\r\n }\r\n }\r\n }\r\n}\r\n\r\ntype SubscriptionCallback = (eventType: keyof EventType|string, eventData?: EventData) => void;\r\n\r\nexport class Subscription {\r\n constructor(eventType: string, pubsubToken: number) {\r\n this.eventType = eventType;\r\n this.token = pubsubToken;\r\n }\r\n\r\n public eventType: string;\r\n public token: number;\r\n}\r\n\r\n\r\nexport interface EventData {\r\n message?: string;\r\n error?: Error;\r\n data?: any;\r\n context?: any;\r\n}\r\n\r\nclass EventType {\r\n public static readonly authorized: string = \"authorized\";\r\n public static readonly authorizationExpired: string = \"authorizationExpired\";\r\n public static readonly authorizationFailed: string = \"authorizationFailed\";\r\n public static readonly authorizationForbidden: string = \"authorizationForbidden\";\r\n public static readonly navigate: string = \"navigate\";\r\n public static readonly raiseError: string = \"raiseError\";\r\n public static readonly raiseFatalError: string = \"raiseFatalError\";\r\n public static readonly showNotification: string = \"showNotification\";\r\n public static readonly showModal: string = \"showModal\";\r\n public static readonly sizeChanged: string = \"sizeChanged\";\r\n public static readonly showToast: string = \"showToast\";\r\n public static readonly unauthorized: string = \"unauthorized\";\r\n public static readonly actionCompleted: string = \"actionCompleted\";\r\n public static readonly actionBegin: string = \"actionBegin\";\r\n public static readonly actionEnd: string = \"actionEnd\";\r\n public static readonly setQRCode: string = \"setQRCode\";\r\n public static readonly entityFormAction: string = \"entityFormAction\";\r\n}\r\n\r\nexport class Mediator {\r\n private publisher: Publisher;\r\n\r\n constructor() {\r\n this.publisher = new Publisher();\r\n //PubSub.immediateExceptions = true;\r\n }\r\n\r\n public publish(eventType: keyof EventType | string, eventData?: EventData) {\r\n //PubSub.publishSync(eventType, eventData || Object.create(null));\r\n this.publisher.publish(eventType, eventData || Object.create(null));\r\n }\r\n\r\n public subscribe(eventType: string, handler: SubscriptionCallback): Subscription {\r\n //var pubsubToken = PubSub.subscribe(eventType, handler);\r\n var token = this.publisher.subscribe(eventType, handler)\r\n return new Subscription(eventType, token);\r\n //return null;\r\n }\r\n\r\n public unsubscribe(subscription: Subscription) {\r\n //PubSub.unsubscribe(subscription.token);\r\n this.publisher.unsubscribe(subscription.token);\r\n }\r\n\r\n public error(error: Error) {\r\n this.publish(EventType.raiseError, { error: error });\r\n }\r\n\r\n public toast(message: string) {\r\n this.publish(EventType.showToast, { message: message });\r\n }\r\n\r\n public notification(message: string) {\r\n this.publish(EventType.showNotification, { data: { message: message } });\r\n }\r\n\r\n public modal(options: any) {\r\n this.publish(EventType.showModal, { data: options });\r\n }\r\n}\r\n\r\nvar mediator: Mediator = window.top[\"asm_mediator\"] || new Mediator();\r\nexport default mediator;"],"sourceRoot":""}