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UAAAkD,SAAR,SAAiBhB,EAAekB,GAC9B,OAAOlB,EAAQkB,EAAM,GAAKlB,EAAQkB,EAAM,EAC1C,EAEQ/E,EAAA2B,UAAAmD,YAAR,SAAoBjB,EAAekB,GACjC,OAAgB,IAARlB,EAAekB,CACzB,EAEQ/E,EAAA2B,UAAAuC,WAAR,SAAmBc,GACjB,IACE,IAAM/E,EAASI,KAAKC,MAAM0E,GAC1B,OAAqB,IAAjB/E,EAAOK,MACFxD,KAAKoH,WAAWjE,EAAO4D,OAEzB5D,EAAO4D,K,CACd,MAAOoB,GACP,OAAOD,C,CAEX,EACFhF,CAAA,CA3HA,GAAarD,EAAAA,OAAAqD,C,sEC4CbrD,EAAAA,QAzEe,CACbyB,KAAM,CACJG,UAAW,wBACX2G,cAAe,oCAEjB5G,MAAO,CACLC,UAAW,wCAEbE,KAAM,CACJ0G,KAAM,wCACN1C,OAAQ,8BACR/D,WAAY,+CAEd0G,QAAS,CACP,CACEC,MAAO,4BACPC,QAAS,4BAEX,CACED,MAAO,qBACPC,QAAS,4BAEX,CACED,MAAO,qBACPC,QAAS,4BAEX,CACED,MAAO,qBACPC,QAAS,4BAEX,CACED,MAAO,yBACPC,QAAS,8BAGbC,qBAAqB,EACrBC,8BAA8B,EAC9BC,sBAAsB,EACtBC,iBAAkB,iBAClBC,UAAW,SACXC,QAAS,SACTC,QAAS,sBACTC,aAAc,IACdC,MAAO,uCACPC,aAAc,oCACdC,iBAAkB,yCAClBC,qBAlD0B,EAmD1BC,0BAA2B,GAC3BC,yBAAyB,EACzBvI,mBAAmB,E","sources":["webpack://addon-stakeholder/./projects/common/src/exceptions/Exception.ts","webpack://addon-stakeholder/./projects/common/src/exceptions/application/AddInFeatureNotSupportedException.ts","webpack://addon-stakeholder/./projects/common/src/exceptions/graph/GraphLoginException.ts","webpack://addon-stakeholder/./projects/common/src/utils/assertHasGraphApi.ts","webpack://addon-stakeholder/./projects/common/src/utils/graphAuthUtils.ts","webpack://addon-stakeholder/./projects/common/src/utils/office-js-helpers/dialog.ts","webpack://addon-stakeholder/./projects/darzin/config.ts"],"sourcesContent":["/** ES5 doesn't support extending from Error, so we'll make our own version of Error to include the stack in all our exceptions */\n\nexport class Exception {\n message: string;\n stack: string;\n originalException: unknown;\n constructor(message?: string, originalException?: unknown) {\n this.message = message;\n this.originalException = originalException;\n this.stack = new Error().stack;\n // unwrap Error because otherwise it will not be converted to JSON, because Errors can't be stringified\n if (this.originalException instanceof Error) {\n this.originalException = {\n name: this.originalException.name,\n message: this.originalException.message,\n stack: this.originalException.stack,\n };\n }\n }\n}\n","import { Exception } from '../Exception';\n\nexport class AddInFeatureNotSupportedException extends Exception {\n constructor(message: string) {\n super(message);\n }\n}\n","import { Exception } from '../Exception';\r\n\r\nexport class GraphLoginException extends Exception {\r\n constructor(message: string, originalException: unknown) {\r\n super(message, originalException);\r\n }\r\n}\r\n","import { AddInFeatureNotSupportedException } from 'common/exceptions/application/AddInFeatureNotSupportedException';\r\nimport CONFIG from 'config';\r\n\r\n/**\r\n * Asserts that {@link CONFIG.isGraphApiEnabled} is `true`.\r\n *\r\n * @throws {@link AddInFeatureNotSupportedException} Thrown if `isGraphApiEnabled` is `false`\r\n */\r\nexport function assertHasGraphApi() {\r\n if (!CONFIG.isGraphApiEnabled) {\r\n throw new AddInFeatureNotSupportedException(\r\n 'Microsoft Graph is not supported by this add-in'\r\n );\r\n }\r\n}\r\n","import {\r\n AuthenticationResult,\r\n AuthError,\r\n CacheLookupPolicy,\r\n Configuration,\r\n LogLevel,\r\n PublicClientApplication,\r\n} from '@azure/msal-browser';\r\nimport { AuthenticationProvider } from '@microsoft/microsoft-graph-client';\r\nimport { GraphLoginException } from 'common/exceptions/graph/GraphLoginException';\r\nimport { GraphLoginResult } from 'common/models/GraphLoginResult';\r\nimport CONFIG from 'config';\r\nimport { assertHasGraphApi } from './assertHasGraphApi';\r\nimport { Dialog } from './office-js-helpers/dialog';\r\n\r\nconst TAG = 'MSA3: ';\r\n\r\n/**\r\n * Configuration class for @azure/msal-browser:\r\n * https://azuread.github.io/microsoft-authentication-library-for-js/ref/msal-browser/modules/_src_config_configuration_.html\r\n */\r\nconst MSAL_CONFIG: Configuration = {\r\n auth: {\r\n clientId: CONFIG.graph.client_id,\r\n redirectUri: CONFIG.urls.graphLogin,\r\n },\r\n cache: {\r\n cacheLocation: 'localStorage', // needed to avoid \"login required\" error\r\n storeAuthStateInCookie: true, // recommended to avoid certain IE/Edge issues\r\n },\r\n system: {\r\n loggerOptions: {\r\n loggerCallback: (level, message, containsPii) => {\r\n if (containsPii) {\r\n return;\r\n }\r\n\r\n switch (level) {\r\n case LogLevel.Error:\r\n console.error(TAG, message);\r\n return;\r\n case LogLevel.Info:\r\n console.info(TAG, message);\r\n return;\r\n case LogLevel.Verbose:\r\n console.debug(TAG, message);\r\n return;\r\n case LogLevel.Warning:\r\n console.warn(TAG, message);\r\n return;\r\n }\r\n },\r\n },\r\n },\r\n};\r\n\r\nconst SCOPES = [\r\n 'Calendars.Read.Shared',\r\n 'Contacts.ReadWrite',\r\n 'Mail.ReadWrite',\r\n];\r\n\r\nconst clientApplication = new PublicClientApplication(MSAL_CONFIG);\r\n\r\n/**\r\n * Checks whether we are in the middle of a redirect and handles state accordingly. Only required for redirect flows.\r\n *\r\n * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/initialization.md#redirect-apis\r\n */\r\nexport async function handleRedirectPromise(): Promise {\r\n await clientApplication.initialize();\r\n\r\n const resp = await clientApplication.handleRedirectPromise();\r\n return handleResponse(resp);\r\n}\r\n\r\n/**\r\n * Handles the response from a popup or redirect. If response is null, will check if we have any accounts and attempt to sign in.\r\n * @param response\r\n */\r\nfunction handleResponse(response: AuthenticationResult | null) {\r\n if (response !== null) {\r\n clientApplication.setActiveAccount(response.account);\r\n }\r\n\r\n return response;\r\n}\r\n\r\nexport function loginRedirect(): void {\r\n clientApplication.loginRedirect({\r\n scopes: SCOPES,\r\n });\r\n}\r\n\r\nasync function openLoginDialog(): Promise {\r\n const resultString = await new Dialog(CONFIG.urls.graphLogin).result;\r\n\r\n const result: GraphLoginResult = JSON.parse(resultString);\r\n\r\n if (!result.success) {\r\n throw result.error;\r\n }\r\n\r\n console.log(TAG, 'Graph login result', result);\r\n}\r\n\r\nasync function getToken(retry: boolean): Promise {\r\n assertHasGraphApi();\r\n\r\n try {\r\n await clientApplication.initialize();\r\n\r\n const result = await clientApplication.acquireTokenSilent({\r\n scopes: SCOPES,\r\n cacheLookupPolicy: CacheLookupPolicy.AccessTokenAndRefreshToken,\r\n });\r\n\r\n return result.accessToken;\r\n } catch (error: unknown) {\r\n if (retry && error instanceof AuthError) {\r\n console.log(TAG, 'acquireTokenSilent failed, retrying', error);\r\n await openLoginDialog();\r\n return await getToken(false);\r\n }\r\n\r\n throw new GraphLoginException(\r\n 'Microsoft Graph Token Acquisition Failed',\r\n error\r\n );\r\n }\r\n}\r\n\r\nexport class GraphAuthenticationProvider implements AuthenticationProvider {\r\n async getAccessToken(): Promise {\r\n return await getToken(true);\r\n }\r\n}\r\n","// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license.\n\nimport { Exception } from 'common/exceptions/Exception';\n\ninterface DialogResult {\n parse: boolean;\n value: unknown;\n}\n\n/**\n * Custom error type to handle API specific errors.\n */\nexport class DialogError extends Exception {\n constructor(message: string, public innerError?: unknown) {\n super(message, innerError);\n }\n}\n\n/**\n * An optimized size object computed based on Screen Height & Screen Width\n */\nexport interface IDialogSize {\n // Width in pixels\n width: number;\n\n // Width in percentage\n width$: number;\n\n // Height in pixels\n height: number;\n\n // Height in percentage\n height$: number;\n}\n\nexport class Dialog {\n /**\n * @constructor\n *\n * @param url Url to be opened in the dialog.\n * @param width Width of the dialog.\n * @param height Height of the dialog.\n */\n constructor(\n public url: string = location.origin,\n width = 1024,\n height = 768\n ) {\n if (!/^https/.test(url)) {\n throw new DialogError('URL has to be loaded over HTTPS.');\n }\n\n this.size = this._optimizeSize(width, height);\n }\n\n private _result: Promise;\n get result(): Promise {\n if (this._result == null) {\n this._result = this._addInDialog();\n }\n\n return this._result;\n }\n\n size: IDialogSize;\n\n private _addInDialog(): Promise {\n return new Promise((resolve, reject) => {\n Office.context.ui.displayDialogAsync(\n this.url,\n { width: this.size.width$, height: this.size.height$ },\n (result: Office.AsyncResult) => {\n if (result.status === Office.AsyncResultStatus.Failed) {\n reject(new DialogError(result.error.message, result.error));\n } else {\n const dialog = result.value;\n dialog.addEventHandler(\n Office.EventType.DialogMessageReceived,\n (args: { message: string; origin: string | undefined }) => {\n const result = this._safeParse(args.message) as T;\n resolve(result);\n dialog.close();\n }\n );\n\n dialog.addEventHandler(\n Office.EventType.DialogEventReceived,\n (args: { message?: string; error: number }) => {\n reject(new DialogError(args.message, args.error));\n dialog.close();\n }\n );\n }\n }\n );\n });\n }\n\n /**\n * Close any open dialog by providing an optional message.\n * If more than one dialogs are attempted to be opened\n * an exception will be created.\n */\n static close(message?: unknown) {\n let parse = false;\n let value = message;\n\n if (typeof message === 'function') {\n throw new DialogError(\n 'Invalid message. Cannot pass functions as arguments'\n );\n } else if (!(value == null) && typeof value === 'object') {\n parse = true;\n value = JSON.stringify(value);\n }\n\n try {\n Office.context.ui.messageParent(\n JSON.stringify({ parse, value })\n );\n } catch (error) {\n throw new DialogError('Cannot close dialog', error);\n }\n }\n\n private _optimizeSize(\n desiredWidth: number,\n desiredHeight: number\n ): IDialogSize {\n const { width: screenWidth, height: screenHeight } = window.screen;\n\n const width = this._maxSize(desiredWidth, screenWidth);\n const height = this._maxSize(desiredHeight, screenHeight);\n const width$ = this._percentage(width, screenWidth);\n const height$ = this._percentage(height, screenHeight);\n\n return { width$, height$, width, height };\n }\n\n private _maxSize(value: number, max: number) {\n return value < max - 30 ? value : max - 30;\n }\n\n private _percentage(value: number, max: number) {\n return (value * 100) / max;\n }\n\n private _safeParse(data: string) {\n try {\n const result = JSON.parse(data) as DialogResult;\n if (result.parse === true) {\n return this._safeParse(result.value as string);\n }\n return result.value;\n } catch (_e) {\n return data;\n }\n }\n}\n","/* AUTO-GENERATED, DO NOT EDIT */\n//Regions enabled\nconst enableDemoAPIRegion = false;\nconst enableBetaAPIRegion = false;\nconst enableLocalhostAPIRegion = false;\n\nconst CONFIG = {\n auth: {\n client_id: 'darzin-outlook-add-in',\n client_secret: 'F5155C0B127B4D12885999BED0E1EC0F',\n },\n graph: {\n client_id: '4198f4d9-3053-4839-91a8-146ef5924d43',\n },\n urls: {\n form: 'https://outlook.darzin.com/index.html',\n origin: 'https://outlook.darzin.com/',\n graphLogin: 'https://outlook.darzin.com/graph-login.html',\n },\n regions: [\n {\n label: 'Australia (au.darzin.com)',\n api_url: 'https://auapi.darzin.com',\n },\n {\n label: 'UK (uk.darzin.com)',\n api_url: 'https://ukapi.darzin.com',\n },\n {\n label: 'US (us.darzin.com)',\n api_url: 'https://usapi.darzin.com',\n },\n {\n label: 'EU (eu.darzin.com)',\n api_url: 'https://euapi.darzin.com',\n },\n {\n label: 'Canada (ca.darzin.com)',\n api_url: 'https://ca-api.darzin.com',\n },\n ],\n isComplaintsEnabled: true,\n isConfidentialOptionsEnabled: true,\n isAttachmentsEnabled: true,\n contactGroupName: 'DarzinAutosave',\n appPrefix: 'darzin',\n appName: 'Darzin',\n appIcon: '/assets/icon_60.png',\n appIconWidth: 140,\n appId: '03134ae1-d2c5-4d3f-9126-261c616ac672', // must be the same as in manifest\n freeTrialUrl: 'https://www.darzin.com/free-trial',\n privacyPolicyUrl: 'https://www.darzin.com/privacy-policy/',\n enableDemoAPIRegion: enableDemoAPIRegion,\n autosaveIntervalInMinutes: 15,\n allowToSaveMessageAgain: false,\n isGraphApiEnabled: true,\n};\n\nif (enableDemoAPIRegion) {\n CONFIG.regions.push({\n label: 'Demo (demo.darzin.com)',\n api_url: 'https://demo-api.darzin.com',\n });\n}\n\nif (enableBetaAPIRegion) {\n CONFIG.regions.push({\n label: 'Beta (beta.darzin.com)',\n api_url: 'https://beta-api.darzin.com',\n });\n}\n\nif (enableLocalhostAPIRegion) {\n CONFIG.regions.push({\n label: 'localhost (localhost:44336)',\n api_url: 'https://localhost:44334',\n });\n}\n\nexport default CONFIG;\n"],"names":["exports","message","originalException","this","stack","Error","name","AddInFeatureNotSupportedException","_super","call","__extends","require","Exception","GraphLoginException","AddInFeatureNotSupportedException_1","config_1","__importDefault","default","isGraphApiEnabled","msal_browser_1","GraphLoginException_1","assertHasGraphApi_1","dialog_1","TAG","MSAL_CONFIG","auth","clientId","graph","client_id","redirectUri","urls","graphLogin","cache","cacheLocation","storeAuthStateInCookie","system","loggerOptions","loggerCallback","level","containsPii","LogLevel","console","error","Info","info","Verbose","debug","Warning","warn","SCOPES","clientApplication","PublicClientApplication","openLoginDialog","Dialog","result","resultString","_a","sent","JSON","parse","success","log","getToken","retry","assertHasGraphApi","initialize","acquireTokenSilent","scopes","cacheLookupPolicy","CacheLookupPolicy","AccessTokenAndRefreshToken","accessToken","error_1","AuthError","handleRedirectPromise","response","setActiveAccount","account","loginRedirect","GraphAuthenticationProvider","prototype","getAccessToken","_typeof","o","Symbol","iterator","constructor","DialogError","innerError","_this","url","width","height","location","origin","test","size","_optimizeSize","Object","defineProperty","_result","_addInDialog","Promise","resolve","reject","Office","context","ui","displayDialogAsync","width$","height$","status","AsyncResultStatus","Failed","value","addEventHandler","EventType","DialogMessageReceived","args","_safeParse","close","DialogEventReceived","stringify","messageParent","desiredWidth","desiredHeight","window","screen","screenWidth","screenHeight","_maxSize","_percentage","max","data","_e","client_secret","form","regions","label","api_url","isComplaintsEnabled","isConfidentialOptionsEnabled","isAttachmentsEnabled","contactGroupName","appPrefix","appName","appIcon","appIconWidth","appId","freeTrialUrl","privacyPolicyUrl","enableDemoAPIRegion","autosaveIntervalInMinutes","allowToSaveMessageAgain"],"sourceRoot":""}