{"version":3,"sources":["webpack:///./js/matterhorn/namespace.js","webpack:///./js/matterhorn/domain/user.js","webpack:///./js/matterhorn/show-transaction.js"],"names":[],"mappings":"qGAAe,WAAmB,EAAM,EAAO,CAC7C,GAAI,GAAS,OACb,SAAW,KAAQ,GAAK,MAAM,KAC5B,EAAS,EAAO,IAAU,GAAO,GAAQ,IACvC,GAAO,EAAM,K,oCCFnB,QAAU,oBAAsB,GAAY,CAE1C,EAAQ,KAAO,KAAW,CACxB,YAAY,EAAU,CACpB,KAAK,mBAAqB,EAC1B,KAAK,cAAgB,GACrB,SAAW,KAAK,CACd,aACA,WACA,SACA,YACA,YACA,QACA,oBACA,YACA,2BACA,4BACA,SACA,cACA,SACC,CACD,GAAI,CAAE,KAAK,IAAW,KAAM,IAAI,OAAM,sBAAsB,KAC5D,KAAK,GAAK,EAAS,GAEjB,wBAA0B,IAC5B,MAAK,qBAAuB,EAAS,sBAGzC,gBAAgB,EAAI,EAAM,EAAM,CAC9B,KAAK,oBAAsB,EAC3B,+BAA+C,KAC7C,CAAC,CAAE,QAAS,KAA0B,CACpC,KAAK,cAAc,KAAK,EAAoB,OAAO,EAAI,EAAM,MAKnE,kBAAmB,CACjB,MAAO,MAAK,mBAAqB,EAGnC,mBAAmB,EAAI,CACrB,GAAI,GACJ,KAAM,GAAI,KAAK,cACT,EAAM,EAAE,OACd,OAAS,GAAI,EAAG,EAAI,EAAK,GAAK,EAC5B,GAAI,EAAE,GAAG,KAAO,EAAI,CAClB,EAAM,EACN,MAEA,GAAO,MACX,GAAE,OAAO,EAAK,GACd,KAAK,oBAAsB,OCpDjC,yGAA8B,KAAK,IAAM,CACvC","file":"4495-b1cc5676030703644df8.min.js","sourcesContent":["export default function namespace(name, block) {\n let target = window;\n for (const item of name.split('.'))\n target = target[item] || (target[item] = {});\n if (block) block(target);\n}\n","import namespace from '../namespace';\n\nnamespace('matterhorn.domain', (exports) => {\n // eslint-disable-next-line no-param-reassign\n exports.User = class User {\n constructor(userData) {\n this.notificationsCount = 0; // we can't rely on notifications.length due to the async behavior\n this.notifications = [];\n for (const p of [\n 'clientData',\n 'internal',\n 'editor',\n 'fromLexis',\n 'anonymous',\n 'email',\n 'lastSeenChangeLog',\n 'sessionId',\n 'includeReferencesOnPrint',\n 'includeReferencesOnExport',\n 'locale',\n 'permissions',\n 'group',\n ]) {\n if (!(p in userData)) throw new Error(`Missing user data: ${p}`);\n this[p] = userData[p];\n }\n if ('agreedWithDisclaimer' in userData)\n this.agreedWithDisclaimer = userData.agreedWithDisclaimer;\n }\n\n addNotification(id, type, data) {\n this.notificationsCount += 1;\n import('../notification/notification-factory').then(\n ({ default: NotificationFactory }) => {\n this.notifications.push(NotificationFactory.create(id, type, data));\n }\n );\n }\n\n hasNotifications() {\n return this.notificationsCount > 0;\n }\n\n removeNotification(id) {\n let idx;\n const n = this.notifications;\n const len = n.length;\n for (let i = 0; i < len; i += 1)\n if (n[i].id === id) {\n idx = i;\n break;\n }\n if (idx == null) return;\n n.splice(idx, 1);\n this.notificationsCount -= 1;\n }\n };\n});\n","import './domain/user';\n\nimport('./transactions/show').then(() => {\n import('../initial-async-setup');\n});\n"],"sourceRoot":""}