-
Notifications
You must be signed in to change notification settings - Fork 0
/
review.515734eb.js.map
1 lines (1 loc) · 106 KB
/
review.515734eb.js.map
1
{"version":3,"sources":["../../node_modules/uuid/dist/esm-browser/rng.js","../../node_modules/uuid/dist/esm-browser/regex.js","../../node_modules/uuid/dist/esm-browser/validate.js","../../node_modules/uuid/dist/esm-browser/stringify.js","../../node_modules/uuid/dist/esm-browser/v1.js","../../node_modules/uuid/dist/esm-browser/parse.js","../../node_modules/uuid/dist/esm-browser/v35.js","../../node_modules/uuid/dist/esm-browser/md5.js","../../node_modules/uuid/dist/esm-browser/v3.js","../../node_modules/uuid/dist/esm-browser/v4.js","../../node_modules/uuid/dist/esm-browser/sha1.js","../../node_modules/uuid/dist/esm-browser/v5.js","../../node_modules/uuid/dist/esm-browser/nil.js","../../node_modules/uuid/dist/esm-browser/version.js","../../node_modules/uuid/dist/esm-browser/index.js","../../node_modules/@taskbuddy/add-on/lib/tb-api.js","../../node_modules/@taskbuddy/add-on/lib/index.js","../../distTsc/src/ts/review.js"],"names":["getRandomValues","rnds8","Uint8Array","rng","crypto","bind","msCrypto","Error","validate","uuid","REGEX","test","stringify","byteToHex","i","push","toString","substr","arr","offset","arguments","length","undefined","toLowerCase","TypeError","v1","_nodeId","_clockseq","_lastMSecs","_lastNSecs","options","buf","b","Array","node","clockseq","seedBytes","random","msecs","Date","now","nsecs","dt","tl","tmh","n","parse","v","parseInt","slice","stringToBytes","str","unescape","encodeURIComponent","bytes","charCodeAt","DNS","URL","name","version","hashfunc","generateUUID","value","namespace","set","err","md5","msg","md5ToHexEncodedArray","wordsToMd5","bytesToWords","input","output","length32","x","hex","charAt","getOutputLength","inputLength8","len","a","c","d","olda","oldb","oldc","oldd","md5ff","md5gg","md5hh","md5ii","safeAdd","length8","Uint32Array","y","lsw","msw","bitRotateLeft","num","cnt","md5cmn","q","s","t","v3","v4","rnds","sha1","f","z","ROTL","K","H","isArray","prototype","call","l","N","Math","ceil","M","_i","j","pow","floor","_i2","W","_t","e","_t2","T","v5","__assign","Object","assign","p","hasOwnProperty","apply","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","adopt","done","then","__generator","body","_","g","label","sent","trys","ops","verb","Symbol","iterator","op","pop","__spreadArray","to","from","pack","ar","concat","defineProperty","exports","add_on_1","require","console","log","TBInitAddOn","id","impressions","renderFunc","tbapi","user","data","avg","_a","activeUser","user_type","getStorage","account_id","round","reviewedJobs","reduce","acc","curr","rating","objects","type","title","icon","onClick","webView","job","iconlabel","err_2","activeJob","settings","account","err_3","activeAccount","color","placeholder","onChange","setStorage","reRender","values"],"mappings":";AAkBC,aAfD,IAAIA,EAeH,OAAA,eAAA,QAAA,aAAA,CAAA,OAAA,IAAA,QAAA,QAAA,EAdD,IAAIC,EAAQ,IAAIC,WAAW,IACZ,SAASC,IAElB,IAACH,KAGHA,EAAoC,oBAAXI,QAA0BA,OAAOJ,iBAAmBI,OAAOJ,gBAAgBK,KAAKD,SAA+B,oBAAbE,UAAgE,mBAA7BA,SAASN,iBAAkCM,SAASN,gBAAgBK,KAAKC,WAG/N,MAAA,IAAIC,MAAM,4GAIbP,OAAAA,EAAgBC;;ACjBV,aAAA,OAAA,eAAA,QAAA,aAAA,CAAA,OAAA,IAAA,QAAA,aAAA,EAAA,IAAA,EAAA,sHAAA,QAAA,QAAA;;ACMAO,aAAAA,OAAAA,eAAAA,QAAAA,aAAAA,CAAAA,OAAAA,IAAAA,QAAAA,aAAAA,EANf,IAAA,EAAA,EAAA,QAAA,eAMeA,SAAAA,EAAAA,GAAAA,OAAAA,GAAAA,EAAAA,WAAAA,EAAAA,CAAAA,QAAAA,GAJf,SAASA,EAASC,GACT,MAAgB,iBAATA,GAAqBC,EAAMC,QAAAA,KAAKF,GAGjCD,IAAAA,EAAAA,EAAAA,QAAAA,QAAAA;;ACuBAI,aAAAA,OAAAA,eAAAA,QAAAA,aAAAA,CAAAA,OAAAA,IAAAA,QAAAA,aAAAA,EA7Bf,IAAA,EAAA,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pC,GAAI,YACJmB,KAAM,QACNC,MAAO,gBAEX,CACIpB,GAAI,kBACJmB,KAAM,eACNzK,QAAS,CACL,CAAEgC,MAAO,IAAKgG,MAAO,SACrB,CAAEhG,MAAO,IAAKgG,MAAO,WAEzBuD,YAAa,yBACbI,YAAwCnM,IAAhC0L,EAAS,mBAAmCA,EAAS,mBAAqB,CAAC,KACnFM,SAAU,SAAU/B,EAAOzH,GAAgB4E,OAAAA,OAAU,OAAQ,OAAQ,EAAQ,WAClEgB,OAAAA,EAAY,KAAM,SAAUiC,GACvBA,OAAAA,EAAG7B,OACF,KAAA,EAAU,MAAA,CAAC,EAAayB,EAAMgC,WAAW,UAAWN,EAAQ7B,GAAI,eAAgB,SAAUhD,EAASA,EAAS,GAAI4E,GAAW,CACrGlJ,kBAAAA,MAEtB,KAAA,EAGM,OAFP6H,EAAG5B,OACHwB,EAAMiC,WACC,CAAC,UAK5B,CACIpC,GAAI,YACJmB,KAAM,QACNC,MAAO,cAEX,CACIpB,GAAI,gBACJmB,KAAM,aACNc,YAAa,kBACbvJ,WAAqCxC,IAA9B0L,EAAS,iBAAiCA,EAAS,iBAAmB,UAC7EM,SAAU,SAAU/B,EAAOzH,GAAgB4E,OAAAA,OAAU,OAAQ,OAAQ,EAAQ,WAClEgB,OAAAA,EAAY,KAAM,SAAUiC,GACvBA,OAAAA,EAAG7B,OACF,KAAA,EAAU,MAAA,CAAC,EAAayB,EAAMgC,WAAW,UAAWN,EAAQ7B,GAAI,eAAgB,SAAUhD,EAASA,EAAS,GAAI4E,GAAW,CACvGlJ,gBAAAA,MAEpB,KAAA,EAGM,OAFP6H,EAAG5B,OACHwB,EAAMiC,WACC,CAAC","file":"review.515734eb.js","sourceRoot":"../src/html","sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js'; // **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\n\nvar _clockseq; // Previous uuid creation time\n\n\nvar _lastMSecs = 0;\nvar _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details\n\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || new Array(16);\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n\n if (node == null || clockseq == null) {\n var seedBytes = options.random || (options.rng || rng)();\n\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];\n }\n\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n } // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n\n\n var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)\n\n var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression\n\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n\n\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n } // Per 4.2.1.2 Throw error if too many uuids are requested\n\n\n if (nsecs >= 10000) {\n throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\");\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n\n msecs += 12219292800000; // `time_low`\n\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff; // `time_mid`\n\n var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff; // `time_high_and_version`\n\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n\n b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n\n b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`\n\n b[i++] = clockseq & 0xff; // `node`\n\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf || stringify(b);\n}\n\nexport default v1;","import validate from './validate.js';\n\nfunction parse(uuid) {\n if (!validate(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n var v;\n var arr = new Uint8Array(16); // Parse ########-....-....-....-............\n\n arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;\n arr[1] = v >>> 16 & 0xff;\n arr[2] = v >>> 8 & 0xff;\n arr[3] = v & 0xff; // Parse ........-####-....-....-............\n\n arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;\n arr[5] = v & 0xff; // Parse ........-....-####-....-............\n\n arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;\n arr[7] = v & 0xff; // Parse ........-....-....-####-............\n\n arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;\n arr[9] = v & 0xff; // Parse ........-....-....-....-############\n // (Use \"/\" to avoid 32-bit truncation when bit-shifting high-order bytes)\n\n arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;\n arr[11] = v / 0x100000000 & 0xff;\n arr[12] = v >>> 24 & 0xff;\n arr[13] = v >>> 16 & 0xff;\n arr[14] = v >>> 8 & 0xff;\n arr[15] = v & 0xff;\n return arr;\n}\n\nexport default parse;","import stringify from './stringify.js';\nimport parse from './parse.js';\n\nfunction stringToBytes(str) {\n str = unescape(encodeURIComponent(str)); // UTF8 escape\n\n var bytes = [];\n\n for (var i = 0; i < str.length; ++i) {\n bytes.push(str.charCodeAt(i));\n }\n\n return bytes;\n}\n\nexport var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\nexport var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';\nexport default function (name, version, hashfunc) {\n function generateUUID(value, namespace, buf, offset) {\n if (typeof value === 'string') {\n value = stringToBytes(value);\n }\n\n if (typeof namespace === 'string') {\n namespace = parse(namespace);\n }\n\n if (namespace.length !== 16) {\n throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');\n } // Compute hash of namespace and value, Per 4.3\n // Future: Use spread syntax when supported on all platforms, e.g. `bytes =\n // hashfunc([...namespace, ... value])`\n\n\n var bytes = new Uint8Array(16 + value.length);\n bytes.set(namespace);\n bytes.set(value, namespace.length);\n bytes = hashfunc(bytes);\n bytes[6] = bytes[6] & 0x0f | version;\n bytes[8] = bytes[8] & 0x3f | 0x80;\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = bytes[i];\n }\n\n return buf;\n }\n\n return stringify(bytes);\n } // Function#name is not settable on some platforms (#270)\n\n\n try {\n generateUUID.name = name; // eslint-disable-next-line no-empty\n } catch (err) {} // For CommonJS default export support\n\n\n generateUUID.DNS = DNS;\n generateUUID.URL = URL;\n return generateUUID;\n}","/*\n * Browser-compatible JavaScript MD5\n *\n * Modification of JavaScript MD5\n * https://github.com/blueimp/JavaScript-MD5\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n *\n * Based on\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\nfunction md5(bytes) {\n if (typeof bytes === 'string') {\n var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape\n\n bytes = new Uint8Array(msg.length);\n\n for (var i = 0; i < msg.length; ++i) {\n bytes[i] = msg.charCodeAt(i);\n }\n }\n\n return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));\n}\n/*\n * Convert an array of little-endian words to an array of bytes\n */\n\n\nfunction md5ToHexEncodedArray(input) {\n var output = [];\n var length32 = input.length * 32;\n var hexTab = '0123456789abcdef';\n\n for (var i = 0; i < length32; i += 8) {\n var x = input[i >> 5] >>> i % 32 & 0xff;\n var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);\n output.push(hex);\n }\n\n return output;\n}\n/**\n * Calculate output length with padding and bit length\n */\n\n\nfunction getOutputLength(inputLength8) {\n return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;\n}\n/*\n * Calculate the MD5 of an array of little-endian words, and a bit length.\n */\n\n\nfunction wordsToMd5(x, len) {\n /* append padding */\n x[len >> 5] |= 0x80 << len % 32;\n x[getOutputLength(len) - 1] = len;\n var a = 1732584193;\n var b = -271733879;\n var c = -1732584194;\n var d = 271733878;\n\n for (var i = 0; i < x.length; i += 16) {\n var olda = a;\n var oldb = b;\n var oldc = c;\n var oldd = d;\n a = md5ff(a, b, c, d, x[i], 7, -680876936);\n d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);\n c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);\n b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);\n a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);\n d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);\n c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);\n b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);\n a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);\n d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);\n c = md5ff(c, d, a, b, x[i + 10], 17, -42063);\n b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);\n a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);\n d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);\n c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);\n b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);\n a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);\n d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);\n c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);\n b = md5gg(b, c, d, a, x[i], 20, -373897302);\n a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);\n d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);\n c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);\n b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);\n a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);\n d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);\n c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);\n b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);\n a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);\n d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);\n c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);\n b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);\n a = md5hh(a, b, c, d, x[i + 5], 4, -378558);\n d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);\n c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);\n b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);\n a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);\n d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);\n c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);\n b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);\n a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);\n d = md5hh(d, a, b, c, x[i], 11, -358537222);\n c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);\n b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);\n a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);\n d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);\n c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);\n b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);\n a = md5ii(a, b, c, d, x[i], 6, -198630844);\n d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);\n c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);\n b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);\n a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);\n d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);\n c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);\n b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);\n a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);\n d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);\n c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);\n b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);\n a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);\n d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);\n c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);\n b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);\n a = safeAdd(a, olda);\n b = safeAdd(b, oldb);\n c = safeAdd(c, oldc);\n d = safeAdd(d, oldd);\n }\n\n return [a, b, c, d];\n}\n/*\n * Convert an array bytes to an array of little-endian words\n * Characters >255 have their high-byte silently ignored.\n */\n\n\nfunction bytesToWords(input) {\n if (input.length === 0) {\n return [];\n }\n\n var length8 = input.length * 8;\n var output = new Uint32Array(getOutputLength(length8));\n\n for (var i = 0; i < length8; i += 8) {\n output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;\n }\n\n return output;\n}\n/*\n * Add integers, wrapping at 2^32. This uses 16-bit operations internally\n * to work around bugs in some JS interpreters.\n */\n\n\nfunction safeAdd(x, y) {\n var lsw = (x & 0xffff) + (y & 0xffff);\n var msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return msw << 16 | lsw & 0xffff;\n}\n/*\n * Bitwise rotate a 32-bit number to the left.\n */\n\n\nfunction bitRotateLeft(num, cnt) {\n return num << cnt | num >>> 32 - cnt;\n}\n/*\n * These functions implement the four basic operations the algorithm uses.\n */\n\n\nfunction md5cmn(q, a, b, x, s, t) {\n return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);\n}\n\nfunction md5ff(a, b, c, d, x, s, t) {\n return md5cmn(b & c | ~b & d, a, b, x, s, t);\n}\n\nfunction md5gg(a, b, c, d, x, s, t) {\n return md5cmn(b & d | c & ~d, a, b, x, s, t);\n}\n\nfunction md5hh(a, b, c, d, x, s, t) {\n return md5cmn(b ^ c ^ d, a, b, x, s, t);\n}\n\nfunction md5ii(a, b, c, d, x, s, t) {\n return md5cmn(c ^ (b | ~d), a, b, x, s, t);\n}\n\nexport default md5;","import v35 from './v35.js';\nimport md5 from './md5.js';\nvar v3 = v35('v3', 0x30, md5);\nexport default v3;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","// Adapted from Chris Veness' SHA1 code at\n// http://www.movable-type.co.uk/scripts/sha1.html\nfunction f(s, x, y, z) {\n switch (s) {\n case 0:\n return x & y ^ ~x & z;\n\n case 1:\n return x ^ y ^ z;\n\n case 2:\n return x & y ^ x & z ^ y & z;\n\n case 3:\n return x ^ y ^ z;\n }\n}\n\nfunction ROTL(x, n) {\n return x << n | x >>> 32 - n;\n}\n\nfunction sha1(bytes) {\n var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];\n var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];\n\n if (typeof bytes === 'string') {\n var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape\n\n bytes = [];\n\n for (var i = 0; i < msg.length; ++i) {\n bytes.push(msg.charCodeAt(i));\n }\n } else if (!Array.isArray(bytes)) {\n // Convert Array-like to Array\n bytes = Array.prototype.slice.call(bytes);\n }\n\n bytes.push(0x80);\n var l = bytes.length / 4 + 2;\n var N = Math.ceil(l / 16);\n var M = new Array(N);\n\n for (var _i = 0; _i < N; ++_i) {\n var arr = new Uint32Array(16);\n\n for (var j = 0; j < 16; ++j) {\n arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];\n }\n\n M[_i] = arr;\n }\n\n M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);\n M[N - 1][14] = Math.floor(M[N - 1][14]);\n M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;\n\n for (var _i2 = 0; _i2 < N; ++_i2) {\n var W = new Uint32Array(80);\n\n for (var t = 0; t < 16; ++t) {\n W[t] = M[_i2][t];\n }\n\n for (var _t = 16; _t < 80; ++_t) {\n W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);\n }\n\n var a = H[0];\n var b = H[1];\n var c = H[2];\n var d = H[3];\n var e = H[4];\n\n for (var _t2 = 0; _t2 < 80; ++_t2) {\n var s = Math.floor(_t2 / 20);\n var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;\n e = d;\n d = c;\n c = ROTL(b, 30) >>> 0;\n b = a;\n a = T;\n }\n\n H[0] = H[0] + a >>> 0;\n H[1] = H[1] + b >>> 0;\n H[2] = H[2] + c >>> 0;\n H[3] = H[3] + d >>> 0;\n H[4] = H[4] + e >>> 0;\n }\n\n return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];\n}\n\nexport default sha1;","import v35 from './v35.js';\nimport sha1 from './sha1.js';\nvar v5 = v35('v5', 0x50, sha1);\nexport default v5;","export default '00000000-0000-0000-0000-000000000000';","import validate from './validate.js';\n\nfunction version(uuid) {\n if (!validate(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n return parseInt(uuid.substr(14, 1), 16);\n}\n\nexport default version;","export { default as v1 } from './v1.js';\nexport { default as v3 } from './v3.js';\nexport { default as v4 } from './v4.js';\nexport { default as v5 } from './v5.js';\nexport { default as NIL } from './nil.js';\nexport { default as version } from './version.js';\nexport { default as validate } from './validate.js';\nexport { default as stringify } from './stringify.js';\nexport { default as parse } from './parse.js';","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TBAPI = void 0;\nvar TBAPI = /** @class */ (function () {\n function TBAPI(tbcom, context) {\n this.tbCommunication = tbcom;\n this.ctx = context;\n }\n /**\n * reRender - re-renders the add-on to for example reflect changes made to some Taskbuddy data\n */\n TBAPI.prototype.reRender = function () {\n this.tbCommunication.request({\n cmd: 'get',\n type: 're-render',\n body: {\n context: this.ctx,\n },\n }, function (res) { });\n };\n /**\n * alert - open an Alert modal inside Taskbuddy UI\n */\n TBAPI.prototype.alert = function (message) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'get',\n type: 'alert-modal',\n body: {\n msg: message,\n context: _this.ctx,\n },\n }, function (res) {\n if (res.response.status === 200) {\n resolve(true);\n }\n else {\n resolve(false);\n }\n });\n });\n };\n /**\n * webView - open a Web View (iframe) modal inside Taskbuddy UI\n */\n TBAPI.prototype.webView = function (title, url) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'get',\n type: 'web-view-modal',\n body: {\n title: title,\n url: url,\n context: _this.ctx,\n },\n }, function (res) {\n resolve();\n });\n });\n };\n /**\n * closeWebView - closes an open Web View (iframe) modal inside Taskbuddy UI\n */\n TBAPI.prototype.closeWebView = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'set',\n type: 'close-web-view-modal',\n body: {\n context: _this.ctx,\n },\n }, function (res) {\n resolve();\n });\n });\n };\n /**\n * linkTo - navigate to a Taskbuddy resource\n */\n TBAPI.prototype.linkTo = function (url) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'get',\n type: 'link-to-url',\n body: {\n url: url,\n context: _this.ctx,\n },\n }, function (res) {\n resolve();\n });\n });\n };\n /**\n * postInChat - post a message orininating from the active user to the specified message channel\n */\n TBAPI.prototype.postInChat = function (channelId, msg) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'set',\n type: 'post-in-chat',\n body: {\n channelId: channelId,\n msg: msg,\n context: _this.ctx,\n },\n }, function (res) {\n if (res.response.status === 200) {\n resolve(res.response.body);\n }\n else {\n reject('Could not post chat msg');\n }\n });\n });\n };\n /**\n * getActiveContextInformation - get information about the given resource type that is in the current context\n */\n TBAPI.prototype.getActiveContextInformation = function (entity) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'get',\n type: 'active-' + entity,\n body: {\n context: _this.ctx,\n },\n }, function (res) {\n if (res.response.status === 200) {\n resolve(res.response.body);\n }\n else {\n reject('Could not get active ' + entity);\n }\n });\n });\n };\n /**\n * activeAccount - get information about the active Account in context\n */\n TBAPI.prototype.activeAccount = function () {\n return this.getActiveContextInformation('account');\n };\n /**\n * activeUser - get information about the active User in context\n */\n TBAPI.prototype.activeUser = function () {\n return this.getActiveContextInformation('user');\n };\n /**\n * activeJob - get information about the active Job in context\n */\n TBAPI.prototype.activeJob = function () {\n return this.getActiveContextInformation('job');\n };\n /**\n * activeChecklist - get information about the active Checklist in context\n */\n TBAPI.prototype.activeChecklist = function () {\n return this.getActiveContextInformation('checklist');\n };\n /**\n * activeClient - get information about the active Client in context\n */\n TBAPI.prototype.activeClient = function () {\n return this.getActiveContextInformation('client');\n };\n /**\n * activeSite - get information about the active Site in context\n */\n TBAPI.prototype.activeSite = function () {\n return this.getActiveContextInformation('site');\n };\n /**\n * getResource - get information about a resource\n */\n TBAPI.prototype.getResource = function (entity, id) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n var body = {};\n // @ts-ignore\n body[entity + \"_id\"] = id;\n _this.tbCommunication.request({\n cmd: 'get',\n type: 'resource-' + entity,\n body: body,\n }, function (res) {\n if (res.response.status === 200) {\n resolve(res.response.body);\n }\n else {\n reject('Could not get ' + entity);\n }\n });\n });\n };\n /**\n * getUser - get information about a User\n */\n TBAPI.prototype.getUser = function (userId) {\n return this.getResource('user', userId);\n };\n /**\n * getJob - get information about a Job\n */\n TBAPI.prototype.getJob = function (jobId) {\n return this.getResource('job', jobId);\n };\n /**\n * getStorage - get storage data\n */\n TBAPI.prototype.getStorage = function (type, resourceId, key, availableTo) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'get',\n type: 'storage',\n body: {\n context: _this.ctx,\n type: type,\n resourceId: resourceId,\n key: key,\n availableTo: availableTo,\n },\n }, function (res) {\n if (res.response.status === 200) {\n resolve(JSON.parse(res.response.body.data));\n }\n else {\n reject(\"Could not get storage for \" + type + \", \" + resourceId + \", \" + key + \", \" + availableTo);\n }\n });\n });\n };\n /**\n * setStorage - set storage data\n */\n TBAPI.prototype.setStorage = function (type, resourceId, key, availableTo, data) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.tbCommunication.request({\n cmd: 'set',\n type: 'storage',\n body: {\n context: _this.ctx,\n type: type,\n resourceId: resourceId,\n key: key,\n availableTo: availableTo,\n data: JSON.stringify(data),\n },\n }, function (res) {\n if (res.response.status === 200) {\n resolve();\n }\n else {\n reject(\"Could not set storage for \" + type + \", \" + resourceId + \", \" + key + \", \" + availableTo);\n }\n });\n });\n };\n return TBAPI;\n}());\nexports.TBAPI = TBAPI;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TBInitIframe = exports.TBInitAddOn = exports.TBAddOnCommunicationAPI = exports.TBAPI = void 0;\nvar uuid_1 = require(\"uuid\");\nvar tb_api_1 = require(\"./tb-api\");\nObject.defineProperty(exports, \"TBAPI\", { enumerable: true, get: function () { return tb_api_1.TBAPI; } });\nvar tb_api_2 = require(\"./tb-api\");\nvar replyToWindow = null;\nvar replyToOrigin = null;\nvar requestHandler;\nvar loaded = false;\nvar TBAddOnCommunicationAPI = /** @class */ (function () {\n function TBAddOnCommunicationAPI() {\n this.isInitialized = false;\n this.onClickListeners = [];\n this.onChangeListeners = [];\n }\n TBAddOnCommunicationAPI.prototype.requestProcessor = function (request, respond) {\n var _this = this;\n var fail = function (msg) {\n respond({\n status: 400,\n body: {\n msg: msg,\n },\n });\n };\n if (!this.config) {\n fail('Add-on, not initialized');\n return;\n }\n var handleRenderRequest = function () {\n if (!_this.config) {\n fail('Add-on, not initialized');\n return;\n }\n if (request.data.type !== 'render') {\n fail('Cannot handle invalid render request');\n return;\n }\n var impression = _this.config.impressions.find(function (imp) { return request.data.type === 'render' && imp.name === request.data.body.name; });\n if (!impression) {\n respond({\n status: 404,\n body: {\n msg: 'Not found',\n },\n });\n return;\n }\n impression\n .renderFunc(new tb_api_2.TBAPI(_this, request.data.body.context))\n .then(function (renderResponse) {\n renderResponse.objects.forEach(function (obj) {\n if (obj.type === 'button' && obj.onClick) {\n var alreadyRegistered = _this.onClickListeners.find(function (c) { return c.id === obj.id && c.name === impression.name; });\n if (!alreadyRegistered) {\n _this.onClickListeners = __spreadArray(__spreadArray([], _this.onClickListeners, true), [\n {\n id: obj.id,\n name: impression.name,\n onClick: obj.onClick,\n },\n ], false);\n }\n else {\n alreadyRegistered.onClick = obj.onClick;\n }\n }\n if (obj.onChange) {\n var alreadyRegistered = _this.onChangeListeners.find(function (c) { return c.id === obj.id && c.name === impression.name; });\n if (!alreadyRegistered) {\n _this.onChangeListeners = __spreadArray(__spreadArray([], _this.onChangeListeners, true), [\n {\n id: obj.id,\n name: impression.name,\n onChange: obj.onChange,\n },\n ], false);\n }\n else {\n alreadyRegistered.onChange = obj.onChange;\n }\n }\n });\n respond({\n status: 200,\n body: renderResponse,\n });\n })\n .catch(function (err) {\n fail(JSON.stringify(err));\n });\n };\n var handleOnClick = function () {\n if (!_this.config) {\n fail('Add-on, not initialized');\n return;\n }\n if (request.data.type !== 'onClick' ||\n (typeof request.data.body.name !== 'string' && typeof request.data.body.id !== 'string')) {\n fail('Cannot handle invalid onClick request');\n return;\n }\n var onClickHandler = _this.onClickListeners.find(function (ocl) {\n return request.data.type === 'onClick' &&\n ocl.id === request.data.body.id &&\n ocl.name === request.data.body.name;\n });\n if (!onClickHandler) {\n respond({\n status: 404,\n body: {\n msg: 'OnClick handler not found',\n },\n });\n return;\n }\n // Execute the registered onClick handler\n onClickHandler\n .onClick(new tb_api_2.TBAPI(_this, request.data.body.context))\n .then(function () {\n respond({\n status: 200,\n body: {\n msg: 'done',\n },\n });\n })\n .catch(function (err) {\n fail(JSON.stringify(err));\n });\n };\n var handleOnChange = function () {\n if (!_this.config) {\n fail('Add-on, not initialized');\n return;\n }\n if (request.data.type === 'onChange' &&\n typeof request.data.body.name !== 'string' &&\n typeof request.data.body.id !== 'string') {\n fail('Cannot handle invalid onChange request');\n return;\n }\n var onChangeHandler = _this.onChangeListeners.find(function (ocl) {\n return request.data.type === 'onChange' &&\n ocl.id === request.data.body.id &&\n ocl.name === request.data.body.name;\n });\n if (!onChangeHandler) {\n respond({\n status: 404,\n body: {\n msg: 'OnChange handler not found',\n },\n });\n return;\n }\n // Execute the registered onChange handler\n onChangeHandler\n .onChange(new tb_api_2.TBAPI(_this, request.data.body.context), request.data.body.value)\n .then(function () {\n respond({\n status: 200,\n body: {\n msg: 'done',\n },\n });\n })\n .catch(function (err) {\n fail(JSON.stringify(err));\n });\n };\n var handleConfigRequest = function () {\n if (!_this.config) {\n fail('Add-on, missing configuration');\n return;\n }\n respond({\n body: __assign(__assign({}, _this.config), { impressions: _this.config.impressions.map(function (im) { return ({\n name: im.name,\n }); }) }),\n status: 200,\n });\n };\n var handleCSSRequest = function () {\n var _a;\n if (!_this.config) {\n fail('Add-on, missing configuration');\n return;\n }\n if ((_a = request.data.body) === null || _a === void 0 ? void 0 : _a.css) {\n var style = document.createElement('style');\n style.innerHTML = request.data.body.css;\n var ref = document.querySelector('script');\n if (ref && ref.parentNode)\n ref.parentNode.insertBefore(style, ref);\n }\n respond({\n body: {\n msg: 'done',\n },\n status: 200,\n });\n };\n switch (request.data.type) {\n case 'render': {\n if (request.data.cmd !== 'get') {\n fail('cannot set render');\n return;\n }\n handleRenderRequest();\n return;\n }\n case 'config': {\n if (request.data.cmd !== 'get') {\n fail('cannot set config');\n return;\n }\n handleConfigRequest();\n return;\n }\n case 'css': {\n if (request.data.cmd !== 'set') {\n fail('cannot get css');\n return;\n }\n handleCSSRequest();\n return;\n }\n case 'onClick': {\n if (request.data.cmd !== 'get') {\n fail('cannot set onClick');\n return;\n }\n handleOnClick();\n return;\n }\n case 'onChange': {\n if (request.data.cmd !== 'get') {\n fail('cannot set onChange');\n return;\n }\n handleOnChange();\n return;\n }\n }\n fail('Could not process command');\n };\n TBAddOnCommunicationAPI.prototype.initialize = function (config, callback) {\n var _this = this;\n this.config = config;\n this.listen('', this.requestProcessor.bind(this));\n this.untilLoaded(function () {\n _this.isInitialized = true;\n callback();\n });\n };\n TBAddOnCommunicationAPI.prototype.untilLoaded = function (onComplete) {\n var _this = this;\n if (!loaded) {\n setTimeout(function () {\n _this.untilLoaded(onComplete);\n }, 300);\n }\n else {\n onComplete();\n }\n };\n // Send request to TB\n TBAddOnCommunicationAPI.prototype.request = function (req, callback) {\n ;\n window\n ._sendTBMessage(undefined, req)\n .then(function (res) {\n callback(res);\n })\n .catch(function (err) { });\n };\n // Listen for incoming requests from TB\n TBAddOnCommunicationAPI.prototype.listen = function (filter, callback) {\n requestHandler = callback;\n };\n return TBAddOnCommunicationAPI;\n}());\nexports.TBAddOnCommunicationAPI = TBAddOnCommunicationAPI;\nvar parseWindowMessage = function (msg, source, origin) {\n var _a, _b, _c, _d;\n var obj = null;\n var strVal = '';\n var type = 'unknown';\n switch (typeof msg) {\n case 'string':\n try {\n obj = JSON.parse(msg);\n if ((_a = obj) === null || _a === void 0 ? void 0 : _a.id) {\n type = 'add_on_request';\n }\n else if (((_c = (_b = obj) === null || _b === void 0 ? void 0 : _b.request) === null || _c === void 0 ? void 0 : _c.id) && ((_d = obj) === null || _d === void 0 ? void 0 : _d.response)) {\n type = 'add_on_response';\n }\n }\n catch (err) {\n strVal = msg;\n }\n break;\n case 'object':\n obj = msg;\n break;\n default:\n break;\n }\n return {\n objVal: obj,\n strVal: strVal,\n type: type,\n source: source,\n origin: origin,\n };\n};\nvar waitingFor = [];\nvar handleAddOnMessage = function (pMsg) {\n if (pMsg.type === 'unknown' || !pMsg.objVal)\n return;\n if (pMsg.type === 'add_on_request') {\n var req_1 = pMsg.objVal;\n if (req_1.id === 'welcome-msg') {\n loaded = true;\n replyToWindow = pMsg.source;\n replyToOrigin = pMsg.origin;\n window._sendTBMessage(req_1, {\n msg: 'thanks',\n });\n return;\n }\n // Check for request listeners\n if (requestHandler)\n requestHandler(req_1, function (data) {\n ;\n window._sendTBMessage(req_1, data);\n });\n }\n else if (pMsg.type === 'add_on_response') {\n // Check for response listeners\n var wf = waitingFor.find(function (wf1) { return wf1.mid === pMsg.objVal.request.id; });\n if (wf) {\n waitingFor = waitingFor.filter(function (wf1) { return wf1.mid !== pMsg.objVal.request.id; });\n wf.callback(pMsg);\n }\n }\n};\nwindow.addEventListener('message', function (event) {\n var pMsg = parseWindowMessage(event.data, event.source, event.origin);\n handleAddOnMessage(pMsg);\n}, false);\nwindow._sendTBMessage = function (respondingToRequest, data) {\n return new Promise(function (resolve, reject) {\n if (loaded) {\n if (!respondingToRequest) {\n // This is a request\n var req = {\n id: (0, uuid_1.v4)(),\n data: data,\n };\n waitingFor = __spreadArray(__spreadArray([], waitingFor, true), [\n {\n mid: req.id,\n callback: function (data1) {\n resolve(data1.objVal);\n },\n },\n ], false);\n if (window.tbPostMessage) {\n ;\n window.tbPostMessage(req);\n }\n else {\n replyToWindow.postMessage(JSON.stringify(req), replyToOrigin);\n }\n }\n else if (respondingToRequest) {\n var res = {\n request: respondingToRequest,\n response: data,\n };\n if (window.tbPostMessage) {\n ;\n window.tbPostMessage(res);\n }\n else {\n replyToWindow.postMessage(JSON.stringify(res), replyToOrigin);\n }\n resolve(true);\n }\n }\n else {\n reject(false);\n }\n });\n};\nvar TBInitAddOn = function (settings) {\n var tbComm = new TBAddOnCommunicationAPI();\n tbComm.initialize(settings, function () { });\n};\nexports.TBInitAddOn = TBInitAddOn;\nwindow.TaskbuddyInitAddOn = exports.TBInitAddOn;\nvar TBInitIframe = function (addonId, impression, callback) {\n var tbComm = new TBAddOnCommunicationAPI();\n var renderFunc = function (tbapi) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, callback(tbapi)];\n case 1:\n _a.sent();\n return [2 /*return*/, { objects: [] }];\n }\n });\n }); };\n tbComm.initialize({\n id: addonId + '-' + impression,\n impressions: [\n {\n name: 'tb-add-on-iframe',\n renderFunc: renderFunc,\n },\n ],\n name: 'tb-iframe',\n }, function () { });\n};\nexports.TBInitIframe = TBInitIframe;\nwindow.TaskbuddyInitIframe = exports.TBInitIframe;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar add_on_1 = require(\"@taskbuddy/add-on\");\nconsole.log('loading my Taskbuddy Review Typescripted add-on...');\n(0, add_on_1.TBInitAddOn)({\n name: 'Job Reviews',\n id: 'c5ndeu59aacjmf4ksd30',\n impressions: [\n {\n name: 'home-screen',\n renderFunc: function (tbapi) { return __awaiter(void 0, void 0, void 0, function () {\n var user, data, avg;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.activeUser()];\n case 1:\n user = _a.sent();\n if (!(user.user_type === 'admin' || user.user_type === 'super_admin')) return [3 /*break*/, 3];\n return [4 /*yield*/, tbapi.getStorage('account', user.account_id, 'job-reviews', 'all')];\n case 2:\n data = _a.sent();\n avg = Math.round((data.reviewedJobs.reduce(function (acc, curr) { return acc + curr.rating; }, 0) /\n data.reviewedJobs.length) *\n 10) / 10;\n return [2 /*return*/, {\n objects: [\n {\n id: 'review-rating-label',\n type: 'label',\n title: 'You have ' + data.reviewedJobs.length + ' job ratings',\n },\n {\n id: 'review-avg-rating',\n type: 'icon-label',\n title: '' + avg + ' in average',\n icon: 'https://taskbuddy-add-on-example.netlify.app/' + Math.round(avg) + '.png',\n },\n {\n id: 'review-btn',\n type: 'button',\n onClick: function (tbapi) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.webView('Your reviews', 'https://taskbuddy-add-on-example.netlify.app/all-feedback.html')];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n }); },\n title: 'See reviews',\n },\n ],\n }];\n case 3: return [2 /*return*/, { objects: [] }];\n }\n });\n }); },\n },\n {\n name: 'job-screen',\n renderFunc: function (tbapi) { return __awaiter(void 0, void 0, void 0, function () {\n var job, user, objects, data, iconlabel, err_1, err_2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n job = undefined;\n user = undefined;\n objects = [];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 9, , 10]);\n return [4 /*yield*/, tbapi.activeJob()];\n case 2:\n job = _a.sent();\n return [4 /*yield*/, tbapi.activeUser()];\n case 3:\n user = _a.sent();\n if (!(user.user_type === 'client')) return [3 /*break*/, 4];\n objects = __spreadArray(__spreadArray([], objects, true), [\n {\n id: 'review-btn',\n type: 'button',\n onClick: function (tbapi) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.webView('Job feedback', 'https://taskbuddy-add-on-example.netlify.app/feedback.html')];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n }); },\n title: 'Send feedback',\n },\n ], false);\n return [3 /*break*/, 8];\n case 4:\n if (!(user.user_type !== 'worker')) return [3 /*break*/, 8];\n _a.label = 5;\n case 5:\n _a.trys.push([5, 7, , 8]);\n return [4 /*yield*/, tbapi.getStorage('job', job.id, 'job-review', 'all')];\n case 6:\n data = _a.sent();\n iconlabel = [];\n if (data.rating) {\n iconlabel = [\n {\n id: 'review-rating',\n type: 'icon-label',\n title: '' + data.rating,\n icon: 'https://taskbuddy-add-on-example.netlify.app/' + data.rating + '.png',\n },\n ];\n }\n objects = __spreadArray(__spreadArray(__spreadArray([], objects, true), iconlabel, true), [\n {\n id: 'review-btn',\n type: 'button',\n onClick: function (tbapi) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.webView('Job feedback', 'https://taskbuddy-add-on-example.netlify.app/feedback.html')];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n }); },\n title: 'View feedback',\n },\n ], false);\n return [3 /*break*/, 8];\n case 7:\n err_1 = _a.sent();\n return [3 /*break*/, 8];\n case 8: return [3 /*break*/, 10];\n case 9:\n err_2 = _a.sent();\n console.log(err_2);\n return [3 /*break*/, 10];\n case 10: return [2 /*return*/, {\n objects: objects,\n }];\n }\n });\n }); },\n },\n {\n name: 'config-screen',\n renderFunc: function (tbapi) { return __awaiter(void 0, void 0, void 0, function () {\n var settings, account, err_3;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n settings = {};\n _a.label = 1;\n case 1:\n _a.trys.push([1, 4, , 5]);\n return [4 /*yield*/, tbapi.activeAccount()];\n case 2:\n account = _a.sent();\n return [4 /*yield*/, tbapi.getStorage('account', account.id, 'app-settings', 'admins')];\n case 3:\n settings = _a.sent();\n return [3 /*break*/, 5];\n case 4:\n err_3 = _a.sent();\n console.log(err_3);\n return [3 /*break*/, 5];\n case 5:\n console.log('App settings:', settings);\n return [2 /*return*/, {\n objects: [\n {\n id: 'my-label1',\n type: 'label',\n title: settings['my-test-input'] !== undefined ? settings['my-test-input'] : 'Badge',\n },\n {\n id: 'my-badge',\n type: 'badge',\n color: settings['my-select'] === 'green' ? 'green' : 'red',\n label: settings['my-select'] === 'green' ? '👍' : '👎',\n },\n {\n id: 'my-label2',\n type: 'label',\n title: 'Markdown text',\n },\n {\n id: 'my-md',\n type: 'markdown-text',\n placeholder: 'Some long text',\n value: settings['my-md'] !== undefined\n ? settings['my-md']\n : \"\\n# Title\\nand some text\\n\\n## Sub title\\nand som other text\\n \",\n onChange: function (tbapi, value) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.setStorage('account', account.id, 'app-settings', 'admins', __assign(__assign({}, settings), {\n 'my-md': value,\n }))];\n case 1:\n _a.sent();\n tbapi.reRender();\n return [2 /*return*/];\n }\n });\n }); },\n },\n {\n id: 'my-label3',\n type: 'label',\n title: 'Select',\n },\n {\n id: 'my-select',\n type: 'select',\n options: [\n { value: 'green', label: 'Tumme upp!' },\n { value: 'red', label: 'Tumme ner...' },\n ],\n placeholder: 'Select up or down',\n value: settings['my-select'] !== undefined ? settings['my-select'] : 'green',\n onChange: function (tbapi, value) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.setStorage('account', account.id, 'app-settings', 'admins', __assign(__assign({}, settings), {\n 'my-select': value,\n }))];\n case 1:\n _a.sent();\n tbapi.reRender();\n return [2 /*return*/];\n }\n });\n }); },\n },\n {\n id: 'my-label4',\n type: 'label',\n title: 'Switch',\n },\n {\n id: 'my-switch',\n type: 'switch',\n title: 'onoff',\n value: settings['my-switch'] !== undefined ? settings['my-switch'] : true,\n onChange: function (tbapi, value) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.setStorage('account', account.id, 'app-settings', 'admins', __assign(__assign({}, settings), {\n 'my-switch': value,\n }))];\n case 1:\n _a.sent();\n tbapi.reRender();\n return [2 /*return*/];\n }\n });\n }); },\n },\n {\n id: 'my-label5',\n type: 'label',\n title: 'Multi select',\n },\n {\n id: 'my-multi-select',\n type: 'multi-select',\n options: [\n { value: '1', label: 'First' },\n { value: '2', label: 'Second' },\n ],\n placeholder: 'Select first or second',\n values: settings['my-multi-select'] !== undefined ? settings['my-multi-select'] : ['1'],\n onChange: function (tbapi, value) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.setStorage('account', account.id, 'app-settings', 'admins', __assign(__assign({}, settings), {\n 'my-multi-select': value,\n }))];\n case 1:\n _a.sent();\n tbapi.reRender();\n return [2 /*return*/];\n }\n });\n }); },\n },\n {\n id: 'my-label6',\n type: 'label',\n title: 'Text input',\n },\n {\n id: 'my-test-input',\n type: 'text-input',\n placeholder: 'input your text',\n value: settings['my-test-input'] !== undefined ? settings['my-test-input'] : 'Hej ehj',\n onChange: function (tbapi, value) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tbapi.setStorage('account', account.id, 'app-settings', 'admins', __assign(__assign({}, settings), {\n 'my-test-input': value,\n }))];\n case 1:\n _a.sent();\n tbapi.reRender();\n return [2 /*return*/];\n }\n });\n }); },\n },\n ],\n }];\n }\n });\n }); },\n },\n ],\n});\n"]}