@clickview/lite 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +2 -2
- package/dist/bundles.json +1 -1
- package/dist/scripts/{1200-a6f398c740-lite.chunk.js → 1200-24f7d81a3e-lite.chunk.js} +1 -1
- package/dist/scripts/{1592-c696b63a52-lite.chunk.js → 1592-24f22211b4-lite.chunk.js} +1 -1
- package/dist/scripts/{1672-eb6f7a7c37-lite.chunk.js → 1672-6e7b2de488-lite.chunk.js} +1 -1
- package/dist/scripts/{2097-66aad0b2ec-lite.chunk.js → 2097-d9696e2dbc-lite.chunk.js} +1 -1
- package/dist/scripts/3533-2f719c9ba1-lite.chunk.js +1 -0
- package/dist/scripts/{3645-572a86efe5-lite.chunk.js → 3645-c4b6d25668-lite.chunk.js} +1 -1
- package/dist/scripts/{3667-ae719dc193-lite.chunk.js → 3667-d194d30365-lite.chunk.js} +1 -1
- package/dist/scripts/{4617-2ee079518a-lite.chunk.js → 4617-7ce1c796c2-lite.chunk.js} +1 -1
- package/dist/scripts/{4691-e92fff6b13-lite.chunk.js → 4691-126038272f-lite.chunk.js} +1 -1
- package/dist/scripts/{5622-df70c2e4d8-lite.chunk.js → 5622-548a92a2e4-lite.chunk.js} +1 -1
- package/dist/scripts/6285-aa8e98c9e9-lite.chunk.js +1 -0
- package/dist/scripts/{6736-cffe5aabea-lite.chunk.js → 6736-326f546fb8-lite.chunk.js} +1 -1
- package/dist/scripts/{6801-fc80a100b8-lite.chunk.js → 6801-ed1b790c00-lite.chunk.js} +1 -1
- package/dist/scripts/{7221-ab85d16be5-lite.chunk.js → 7221-f474cc63dd-lite.chunk.js} +1 -1
- package/dist/scripts/7318-2fb789e6d5-lite.chunk.js +1 -1
- package/dist/scripts/7338-1ed24967e2-lite.chunk.js +1 -0
- package/dist/scripts/7818-c41bf70fc3-lite.chunk.js +1 -0
- package/dist/scripts/{8323-0dac88a1c4-lite.chunk.js → 8323-3ffbedb5bf-lite.chunk.js} +1 -1
- package/dist/scripts/{862-1493e77233-lite.chunk.js → 862-d0e4b75ffa-lite.chunk.js} +1 -1
- package/dist/scripts/{8681-0629128300-lite.chunk.js → 8681-0ce42b0460-lite.chunk.js} +1 -1
- package/dist/scripts/{9428-37d616a4ba-lite.chunk.js → 9428-63f031caf2-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-f95ce2c8f9-lite.chunk.js → 9478-c910516183-lite.chunk.js} +1 -1
- package/dist/scripts/{9961-c4c4beec52-lite.chunk.js → 9961-9b2e96ca49-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-31e832cc92.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +62 -62
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/backbone.validation.d.ts +99 -99
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/cookiesjs.d.ts +25 -25
- package/typings/libs/draft-convert.d.ts +3 -3
- package/typings/libs/google-api.d.ts +93 -93
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/react-table-config.d.ts +138 -138
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +13 -13
- package/dist/scripts/3533-46dc3472a1-lite.chunk.js +0 -1
- package/dist/scripts/6285-0aa671a189-lite.chunk.js +0 -1
- package/dist/scripts/6381-f82b7cf11c-lite.chunk.js +0 -1
- package/dist/scripts/7939-d7fc07e19b-lite.chunk.js +0 -1
- package/dist/scripts/bundle-596ac32e5b.min.js +0 -2
- /package/dist/css/{6381-lite-e7bdc675ac.chunk.css → 7818-lite-e7bdc675ac.chunk.css} +0 -0
- /package/dist/scripts/{1200-a6f398c740-lite.chunk.js.LICENSE.txt → 1200-24f7d81a3e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1301-d12fe4100c-lite.chunk.js → 1301-60e044d3f6-lite.chunk.js} +0 -0
- /package/dist/scripts/{1324-9b93062a18-lite.chunk.js → 1324-e98193e3f2-lite.chunk.js} +0 -0
- /package/dist/scripts/{1341-1d126e4d81-lite.chunk.js → 1341-8598b45ad3-lite.chunk.js} +0 -0
- /package/dist/scripts/{1351-d541a802d3-lite.chunk.js → 1351-ba2b9149d5-lite.chunk.js} +0 -0
- /package/dist/scripts/{1453-92a6a27dc4-lite.chunk.js → 1453-96ade8023f-lite.chunk.js} +0 -0
- /package/dist/scripts/{1468-6b7516da29-lite.chunk.js → 1468-6834509551-lite.chunk.js} +0 -0
- /package/dist/scripts/{1518-da76a39f2b-lite.chunk.js → 1518-a7da7a4a51-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-c696b63a52-lite.chunk.js.LICENSE.txt → 1592-24f22211b4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1672-eb6f7a7c37-lite.chunk.js.LICENSE.txt → 1672-6e7b2de488-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1725-4e92f58b9d-lite.chunk.js → 1725-24fbd4f850-lite.chunk.js} +0 -0
- /package/dist/scripts/{189-21a10ea24b-lite.chunk.js → 189-a7cbc90799-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-90ee6260fb-lite.chunk.js → 1891-0720cadd72-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-ac80bc2a14-lite.chunk.js → 1924-e040d7f655-lite.chunk.js} +0 -0
- /package/dist/scripts/{2097-66aad0b2ec-lite.chunk.js.LICENSE.txt → 2097-d9696e2dbc-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2229-4452e6e7f0-lite.chunk.js → 2229-7227ffd514-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-4629d0203c-lite.chunk.js → 227-74577cc104-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-0a5ff3aa08-lite.chunk.js → 2279-32b0d69ef0-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-4a1c9e0123-lite.chunk.js → 2452-f1ccaff72b-lite.chunk.js} +0 -0
- /package/dist/scripts/{2512-284b6d3c60-lite.chunk.js → 2512-bb270efafe-lite.chunk.js} +0 -0
- /package/dist/scripts/{2608-c3012904f1-lite.chunk.js → 2608-2585e171c0-lite.chunk.js} +0 -0
- /package/dist/scripts/{2883-65715e3509-lite.chunk.js → 2883-2a751fe6b3-lite.chunk.js} +0 -0
- /package/dist/scripts/{2891-63e65de141-lite.chunk.js → 2891-9e5e26c8f4-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-0c0bfe06c3-lite.chunk.js → 2966-388683bcd6-lite.chunk.js} +0 -0
- /package/dist/scripts/{3007-ff224c6b4a-lite.chunk.js → 3007-67c669974c-lite.chunk.js} +0 -0
- /package/dist/scripts/{3020-2ba9f82a47-lite.chunk.js → 3020-32e560bee9-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-6dd48542e7-lite.chunk.js → 3108-26e520def9-lite.chunk.js} +0 -0
- /package/dist/scripts/{3135-591c86bf7e-lite.chunk.js → 3135-881a934f91-lite.chunk.js} +0 -0
- /package/dist/scripts/{3171-7a9504a852-lite.chunk.js → 3171-7ad002d155-lite.chunk.js} +0 -0
- /package/dist/scripts/{3200-d7f1b51fcd-lite.chunk.js → 3200-56a8b7ed84-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-251b8fbeae-lite.chunk.js → 3216-eec0d3f176-lite.chunk.js} +0 -0
- /package/dist/scripts/{3285-2b1e62d6c8-lite.chunk.js → 3285-d24a2cada1-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-e3a8589a83-lite.chunk.js → 3468-4184ab6da2-lite.chunk.js} +0 -0
- /package/dist/scripts/{3594-f3cc8f5129-lite.chunk.js → 3594-25c70f8234-lite.chunk.js} +0 -0
- /package/dist/scripts/{3645-572a86efe5-lite.chunk.js.LICENSE.txt → 3645-c4b6d25668-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3667-ae719dc193-lite.chunk.js.LICENSE.txt → 3667-d194d30365-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3754-d6b6bcf82d-lite.chunk.js → 3754-a48334c733-lite.chunk.js} +0 -0
- /package/dist/scripts/{3787-c4316adb83-lite.chunk.js → 3787-32f3253adf-lite.chunk.js} +0 -0
- /package/dist/scripts/{389-f594d7dc39-lite.chunk.js → 389-7d32d43138-lite.chunk.js} +0 -0
- /package/dist/scripts/{3952-2f0a18bb38-lite.chunk.js → 3952-15bb5076b6-lite.chunk.js} +0 -0
- /package/dist/scripts/{4113-c97dca2842-lite.chunk.js → 4113-bbe0a84f27-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-55931e55e9-lite.chunk.js → 4182-1031f69a05-lite.chunk.js} +0 -0
- /package/dist/scripts/{4332-f0ede6c5c9-lite.chunk.js → 4332-8acfa82a43-lite.chunk.js} +0 -0
- /package/dist/scripts/{4380-7578e72c04-lite.chunk.js → 4380-5fa3db4048-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-b4892876c5-lite.chunk.js → 4541-ceaf7c21d9-lite.chunk.js} +0 -0
- /package/dist/scripts/{455-6024297acb-lite.chunk.js → 455-aa4e644191-lite.chunk.js} +0 -0
- /package/dist/scripts/{4632-deb9589e38-lite.chunk.js → 4632-f152503c8a-lite.chunk.js} +0 -0
- /package/dist/scripts/{4690-9e14a0919a-lite.chunk.js → 4690-336ab1884e-lite.chunk.js} +0 -0
- /package/dist/scripts/{4691-e92fff6b13-lite.chunk.js.LICENSE.txt → 4691-126038272f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{482-7a049e5c64-lite.chunk.js → 482-01ae97c495-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-1b487b763c-lite.chunk.js → 4893-ab6fa2f373-lite.chunk.js} +0 -0
- /package/dist/scripts/{4898-132bd9a5d3-lite.chunk.js → 4898-378efc7d2f-lite.chunk.js} +0 -0
- /package/dist/scripts/{5143-4938e95932-lite.chunk.js → 5143-fb2823c2b7-lite.chunk.js} +0 -0
- /package/dist/scripts/{5347-9babbb5f99-lite.chunk.js → 5347-a861c646cc-lite.chunk.js} +0 -0
- /package/dist/scripts/{5606-153b1552e1-lite.chunk.js → 5606-37e298bfb4-lite.chunk.js} +0 -0
- /package/dist/scripts/{5622-df70c2e4d8-lite.chunk.js.LICENSE.txt → 5622-548a92a2e4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5877-f2fa601cb0-lite.chunk.js → 5877-3a56acd8bf-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-83f14d2f25-lite.chunk.js → 5914-7c936ecffb-lite.chunk.js} +0 -0
- /package/dist/scripts/{5929-2a5e740cc7-lite.chunk.js → 5929-6148f4f40c-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-d27435fa0c-lite.chunk.js → 5974-303622f9e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{614-c763ddc10d-lite.chunk.js → 614-d5f537378d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6158-13d2600fe2-lite.chunk.js → 6158-9ce2556fbf-lite.chunk.js} +0 -0
- /package/dist/scripts/{6186-70572e79ca-lite.chunk.js → 6186-05954cf461-lite.chunk.js} +0 -0
- /package/dist/scripts/{6230-9f18aee4c5-lite.chunk.js → 6230-79a1f184a5-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-77e1da657d-lite.chunk.js → 6274-f40aea9191-lite.chunk.js} +0 -0
- /package/dist/scripts/{6290-816af4c22e-lite.chunk.js → 6290-1518235544-lite.chunk.js} +0 -0
- /package/dist/scripts/{6302-01982ba99c-lite.chunk.js → 6302-522a99b56c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6325-8f75c4c6e3-lite.chunk.js → 6325-d597f213d1-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-0177013655-lite.chunk.js → 6368-e26bcc5b2c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-83fc0b220b-lite.chunk.js → 6370-3f5eace052-lite.chunk.js} +0 -0
- /package/dist/scripts/{6427-be33bb125b-lite.chunk.js → 6427-2d1d8f5a2e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6450-11cdf0c405-lite.chunk.js → 6450-78e74f7202-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-046937c195-lite.chunk.js → 6465-790119a36e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6477-00aed143b6-lite.chunk.js → 6477-f942858ba2-lite.chunk.js} +0 -0
- /package/dist/scripts/{6480-869e4680bb-lite.chunk.js → 6480-d58303f72c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-331029d2a9-lite.chunk.js → 6493-ae21e8927f-lite.chunk.js} +0 -0
- /package/dist/scripts/{6578-a417e4a31e-lite.chunk.js → 6578-3d08e29e91-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-6efe5b290b-lite.chunk.js → 6604-9d51729e51-lite.chunk.js} +0 -0
- /package/dist/scripts/{6725-4681caad1e-lite.chunk.js → 6725-6a02a8aa52-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-cffe5aabea-lite.chunk.js.LICENSE.txt → 6736-326f546fb8-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6821-c2c09e0258-lite.chunk.js → 6821-aa942da9f9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6873-4b14b86a51-lite.chunk.js → 6873-336d25fe83-lite.chunk.js} +0 -0
- /package/dist/scripts/{6884-2f4ddfd0e1-lite.chunk.js → 6884-181c455de3-lite.chunk.js} +0 -0
- /package/dist/scripts/{7045-882c8445fc-lite.chunk.js → 7045-655270d34b-lite.chunk.js} +0 -0
- /package/dist/scripts/{7056-8d38822c22-lite.chunk.js → 7056-813094b13e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7115-6628a56f8e-lite.chunk.js → 7115-938ebdb87e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-011ae9bfc9-lite.chunk.js → 7128-c78fe17b03-lite.chunk.js} +0 -0
- /package/dist/scripts/{714-9a9233a165-lite.chunk.js → 714-4a76ebb3dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-ec35d03d18-lite.chunk.js → 7172-1f31cf542d-lite.chunk.js} +0 -0
- /package/dist/scripts/{7178-18fc8d8e2b-lite.chunk.js → 7178-c16b898c4b-lite.chunk.js} +0 -0
- /package/dist/scripts/{7201-ab1af5ded2-lite.chunk.js → 7201-499b8d534f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7221-ab85d16be5-lite.chunk.js.LICENSE.txt → 7221-f474cc63dd-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7506-09a70fbf9f-lite.chunk.js → 7506-68ed3f4e65-lite.chunk.js} +0 -0
- /package/dist/scripts/{7510-beeed4b9c9-lite.chunk.js → 7510-c8dca44ece-lite.chunk.js} +0 -0
- /package/dist/scripts/{7708-ad01335580-lite.chunk.js → 7708-23d793f3dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-344dd935b6-lite.chunk.js → 7767-9268c4a683-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-1a9fc7604a-lite.chunk.js → 7855-57800672f3-lite.chunk.js} +0 -0
- /package/dist/scripts/{7925-088d8201ec-lite.chunk.js → 7925-1ed74c737d-lite.chunk.js} +0 -0
- /package/dist/scripts/{7954-65a6a51e46-lite.chunk.js → 7954-9c4b7b9e41-lite.chunk.js} +0 -0
- /package/dist/scripts/{7966-186e34627a-lite.chunk.js → 7966-02c7c80ac1-lite.chunk.js} +0 -0
- /package/dist/scripts/{8025-775d616671-lite.chunk.js → 8025-05b2146624-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-9812f4b940-lite.chunk.js → 8038-2be681e61a-lite.chunk.js} +0 -0
- /package/dist/scripts/{8046-787309872c-lite.chunk.js → 8046-799f379c70-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-d967c4ec71-lite.chunk.js → 8056-4476ad4eb5-lite.chunk.js} +0 -0
- /package/dist/scripts/{8082-b97f607a0b-lite.chunk.js → 8082-70126abd26-lite.chunk.js} +0 -0
- /package/dist/scripts/{8114-12abea85e8-lite.chunk.js → 8114-fab7b94633-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-497e142884-lite.chunk.js → 823-068473fb9c-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-4d30c82ba9-lite.chunk.js → 8252-b305f3dde8-lite.chunk.js} +0 -0
- /package/dist/scripts/{8300-49709fbd7a-lite.chunk.js → 8300-a09e213c8e-lite.chunk.js} +0 -0
- /package/dist/scripts/{8323-0dac88a1c4-lite.chunk.js.LICENSE.txt → 8323-3ffbedb5bf-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8466-3c9e7c601d-lite.chunk.js → 8466-153f30f63a-lite.chunk.js} +0 -0
- /package/dist/scripts/{8564-683d60e0f4-lite.chunk.js → 8564-8329268c13-lite.chunk.js} +0 -0
- /package/dist/scripts/{8573-fd6d95a74d-lite.chunk.js → 8573-3c69027e40-lite.chunk.js} +0 -0
- /package/dist/scripts/{862-1493e77233-lite.chunk.js.LICENSE.txt → 862-d0e4b75ffa-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8681-0629128300-lite.chunk.js.LICENSE.txt → 8681-0ce42b0460-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8779-4942783e86-lite.chunk.js → 8779-36c7415cf6-lite.chunk.js} +0 -0
- /package/dist/scripts/{8789-4f687e8d18-lite.chunk.js → 8789-f564c156ee-lite.chunk.js} +0 -0
- /package/dist/scripts/{8816-af3b26a394-lite.chunk.js → 8816-683aee9ef2-lite.chunk.js} +0 -0
- /package/dist/scripts/{8944-067bb6956e-lite.chunk.js → 8944-9f55b32981-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-c9c450fbd9-lite.chunk.js → 8955-60682c0ba8-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-383a7c915a-lite.chunk.js → 9060-0fee904b02-lite.chunk.js} +0 -0
- /package/dist/scripts/{9133-2608671a39-lite.chunk.js → 9133-6d32b1d3d1-lite.chunk.js} +0 -0
- /package/dist/scripts/{9150-07c6fe1623-lite.chunk.js → 9150-87fdc9b964-lite.chunk.js} +0 -0
- /package/dist/scripts/{9226-a0a3c6de00-lite.chunk.js → 9226-769882cac8-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-d8c79f1dc2-lite.chunk.js → 9242-207a851dbd-lite.chunk.js} +0 -0
- /package/dist/scripts/{9428-37d616a4ba-lite.chunk.js.LICENSE.txt → 9428-63f031caf2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9455-72327d9c81-lite.chunk.js → 9455-5a11fb14ae-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-f95ce2c8f9-lite.chunk.js.LICENSE.txt → 9478-c910516183-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9483-4da818b5d3-lite.chunk.js → 9483-cc903e423f-lite.chunk.js} +0 -0
- /package/dist/scripts/{9556-3f22a0a3a6-lite.chunk.js → 9556-2f7651a084-lite.chunk.js} +0 -0
- /package/dist/scripts/{9588-38f79e71d2-lite.chunk.js → 9588-472ef54c3f-lite.chunk.js} +0 -0
- /package/dist/scripts/{9590-4cc6bb88c9-lite.chunk.js → 9590-36f54fad9a-lite.chunk.js} +0 -0
- /package/dist/scripts/{9686-60bbe6df0e-lite.chunk.js → 9686-1271937a80-lite.chunk.js} +0 -0
- /package/dist/scripts/{9863-422648d985-lite.chunk.js → 9863-486a7b8941-lite.chunk.js} +0 -0
- /package/dist/scripts/{9897-b71da1b51a-lite.chunk.js → 9897-bc532bc4c5-lite.chunk.js} +0 -0
- /package/dist/scripts/{9905-771a1a107b-lite.chunk.js → 9905-fbcb0a1423-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-596ac32e5b.min.js.LICENSE.txt → bundle-31e832cc92.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 5622-
|
|
1
|
+
/*! For license information please see 5622-548a92a2e4-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5622],{17749:(t,e,r)=>{r.d(e,{g:()=>o});var n=r(99940),o={getLibraryReviewPeriod:function(){return{url:"{gateway}/v1/library-reviews",key:"coming:soon:settings",normalize:!1}},setLibraryReviewPeriod:function(t){return{url:"{gateway}/v1/library-reviews",key:"update:coming:soon:settings",invalidationKeys:"coming:soon:settings",type:n.k.POST,data:{reviewPeriod:t},normalize:!1}},deleteLibraryReviewPeriod:function(){return{url:"{gateway}/v1/library-reviews",key:"delete:coming:soon:settings",invalidationKeys:"coming:soon:settings",type:n.k.DELETE,normalize:!1}}}},55622:(t,e,r)=>{r.r(e),r.d(e,{TurnOffContentReviewView:()=>b});var n=r(1024),o=r.n(n),i=r(20354),a=r(23481),c=r(55460),u=r(9111),l=r(83345),s=r(13876),f=r(69883),h=r(21491),y=r(17749);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function p(){p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new _(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function y(){}function d(){}var g={};u(g,i,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(S([])));w&&w!==e&&r.call(w,i)&&(g=w);var b=d.prototype=h.prototype=Object.create(g);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function o(n,i,a,c){var u=s(t[n],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==v(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=d,n(b,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:y,configurable:!0}),y.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(L.prototype),u(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var g=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},m="settings.turnOffContentReview",w=a.T.encloseNamespace(m);function b(t){var e,r,n=(e=o().useState(!1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[0],v=n[1],b=i.a.useGetFetchAsync(),E=(0,f.Z)();return o().createElement(u.G,{title:w("title"),closePopup:t.closePopup},o().createElement("p",null,o().createElement(l.x,{namespace:m,phrase:"message"})),o().createElement(s.u,null,o().createElement(s.u.Cancel,{onClick:t.closePopup}),o().createElement(s.u.Submit,{variant:"dark",text:w("submit"),onClick:function(){return g(this,void 0,void 0,p().mark((function t(){var e,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v(!0),t.prev=1,e=b(y.g.deleteLibraryReviewPeriod()),r=b(h.I.approveAll()),t.next=6,Promise.all([e,r]);case 6:E.success(w("success")),c.LocationUtils.Reload(),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(1),E.error(w("error")),v(!1);case 14:case"end":return t.stop()}}),t,null,[[1,10]])})))},showSpinner:a})))}},21491:(t,e,r)=>{r.d(e,{I:()=>a});var n=r(99940),o=r(97395),i=r(62803),a={getRestrictions:function(t){return{key:"restrictions:".concat(t),url:o._.urlBuilder("{gateway}/v1/objects/restrictions",{id:t})}},addRestriction:function(t){return{type:n.k.POST,key:"restrictions:".concat(t.objectTypeId,":").concat(t.objectId,":add"),url:"{gateway}/v1/restrictions",data:[t],invalidationKeys:["restrictions"]}},deleteRestrictions:function(t){return{url:o._.urlBuilder("{gateway}/v1/restrictions",{objectId:t}),key:"restrictions:delete",type:n.k.DELETE,invalidationKeys:["restrictions"]}},getRestrictedObjects:function(t,e){var r={type:t,"query.video":i.v.VIDEO_COLLECTION,"query.interactive":i.v.INTERACTIVE,"query.clip":i.v.CLIP_COLLECTION};return e&&(r.cursor=e),{url:o._.urlBuilder("{gateway}/v1/restrictions/objects",r),key:"restrictions:objects:".concat(t.sort().join(","),":").concat(e)}},approveAll:function(){return{url:"{gateway}/v1/library-reviews/restrictions",key:"restrictions:approve:all",type:n.k.DELETE}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6285],{16715:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(5173),a=n(23481).T.encloseNamespace("userManager.validation"),s=function(e){return(0,r.Ry)().shape({newPassword:(0,r.Z_)().required((function(){return a("newPasswordRequired")})).min(e,(function(){return a("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,r.Z_)().required((function(){return a("confirmPasswordRequired")})).oneOf([(0,r.iH)("newPassword"),null],(function(){return a("passwordsDontMatch")})).trim().default("")})}},64767:(e,t,n)=>{n.r(t),n.d(t,{BulkUserActionsResetPasswordActionDetailsView:()=>L});var r=n(1024),a=n.n(r),s=n(20354),i=n(31949),o=n(58703),u=n(92802),l=n(2948),c=n(83345),d=n(38143),m=n(82644),f=n(68670),p=n(16715),h=n(96728);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v="userManager.bulkUserActionsResetPasswordActionDetails",g={newPassword:"",confirmPassword:"",changeOnNextLogin:!0};function y(e){var t=(0,u.u6)();return a().useEffect((function(){var n,r;e.onUpdate(null===(n=t.values)||void 0===n?void 0:n.newPassword,null===(r=t.values)||void 0===r?void 0:r.changeOnNextLogin,t.isValid&&t.dirty)}),[t.isValid,t.values]),a().createElement(f.p,{inputWidthClass:"w-50",hideButtons:!0,hideCurrentPassword:!0,showChangeOnNextLogin:!0})}function b(e){var t,n,r=(t=(0,l.D)(d.g.BULK_USER_ACTIONS),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s,i,o=[],u=!0,l=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],s=a().useContext(h.e),i=s.disableNext,o=s.setDisableNext;return a().useEffect((function(){o(!0)}),[]),a().useEffect((function(){r("subAction","resetPassword")}),[]),a().createElement(a().Fragment,null,a().createElement("h2",{className:"h4 mb-3"},a().createElement(c.x,{namespace:v,phrase:"heading"})),a().createElement("p",null,a().createElement(c.x,{namespace:v,phrase:"info",options:{smartCount:e.totalUsers}})),a().createElement("div",{className:"px-2 pt-2 border rounded mb-2 pb-0"},a().createElement("ul",{className:"mt-2 pl-3 ml-1"},a().createElement("li",null,a().createElement(c.x,{namespace:v,phrase:"ssoWarning"}))),a().createElement(m.n,{initialValues:g,onSubmit:function(){},validationSchema:(0,p.U)(e.minPasswordLength)},a().createElement(y,{onUpdate:function(e,t,n){n&&i&&o(!1),n||i||o(!0),r("password",e),r("changeOnNextLogin",t)}}))))}var E=n(88323),P=n(18087),U=n(706),x=n(39739),A=n(86613);function L(e){var t=(0,E.h)(e.userType),n=t.users,r=t.count,u=(0,P.Y)(e.userType),l=s.a.useBasicFetch(i.N.currentUser()),c=s.a.useBasicFetch(l.data&&U.F.getCustomerSecuritySettings(l.data.customerId)),d=x.P.getMinimumPasswordLength(c.data,e.userType,A.i.User);return a().createElement(o.d,{appLinks:u,userType:e.userType,users:n,currentStep:"action-details",userCount:r,loaded:!0},a().createElement(b,{minPasswordLength:d,totalUsers:r,appLinks:u}))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 6736-
|
|
1
|
+
/*! For license information please see 6736-326f546fb8-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6736],{6736:(t,e,r)=>{r.d(e,{b:()=>m});var n=r(81886),o=r(97395),i=r(23481),c=r(47663);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===a(o)?o:String(o)),n)}var o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f="embed.protectiveBrowserSettingsError",h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(h,t);var e,r,n,o,c=(n=h,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(n);if(o){var r=l(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=c.call(this,i.T.getPhrase(f,"title"))).url=t,e}return e=h,(r=[{key:"name",get:function(){return"ProtectiveBrowserSettingsError"}},{key:"dialogOptions",get:function(){return{title:i.T.getPhrase(f,"heading"),text:i.T.getPhrase(f,"description",{url:this.url}),buttons:[{text:i.T.getPhrase(f,"okay"),className:"btn btn-dark",success:!0}]}}}])&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(c.S),p=r(55460);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function d(){d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,c=Object.create(i.prototype),a=new j(o||[]);return n(c,"_invoke",{value:k(t,r,a)}),c}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function v(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(P([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=v.prototype=h.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function o(n,i,c,a){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==y(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,c,a)}),(function(t){o("throw",t,c,a)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return o("throw",t,c,a)}))}a(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function k(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=E(c,r);if(a){if(a===f)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=u(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(_.prototype),u(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new _(s(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},x(b),u(b,a,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return c.type="throw",c.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e,r,o){var i=window.open(t,"_blank",function(t){var e="sm"===t?500:screen.availWidth,r="sm"===t?500:screen.availWidth,n=parseInt(screen.availWidth/2-e/2+""),o=parseInt(screen.availHeight/2-r/2+"");return["width=".concat(e),"height=".concat(r),"status","resizable","left=".concat(n),"top=".concat(o),"screenX=".concat(n),"screenY=".concat(o),"scrollbars=yes"].join(",")}(o));if(i)return g(i,r),i;n.Q.ErrorHelper.throw(new h(e))}var m={renderSignInPopup:function(t){var e=t.primaryUrl,n=t.shareId,i=t.isMicrosoftTeams,c=t.customerId,a=t.onClose,u=t.redirectUrl,s=void 0===u?"/embed-login-success":u,l=t.size,f=void 0===l?"sm":l,h=o._.safeUrlConcat(e,"/login"),y={redirectUrl:s};n&&(y.shareId=n),c&&(y.customerId=c);var d=o._.urlBuilder(h,y);if(!i)return v(d,e,a,f);!function(t){r.e(4777).then(r.t.bind(r,94777,23)).then((function(e){e.initialize(),window.setTimeout((function(){e.authentication.authenticate({url:t,successCallback:function(){p.LocationUtils.Reload()},failureCallback:function(){p.LocationUtils.Reload()},height:1e3,width:1e3})}),0)}))}(d)},canUseCookies:function(){return docCookies.setItem("_cookieTest","1",10,null,null,!0,"none"),!!docCookies.getItem("_cookieTest")||(docCookies.setItem("_cookieTest","1",10),!!docCookies.getItem("_cookieTest"))},closePopup:function(t){return e=this,n=void 0,o=void 0,i=d().mark((function e(){var n,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=function(){try{n.initialize((function(){n.authentication.notifySuccess()}))}catch(t){}},e.next=3,r.e(4777).then(r.t.bind(r,94777,23));case 3:n=e.sent,t?(o(),window.close()):window.setTimeout((function(){o(),window.close()}),1e3),window.opener.postMessage({type:"authenticated"},"*");case 6:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,r){function c(t){try{u(i.next(t))}catch(t){r(t)}}function a(t){try{u(i.throw(t))}catch(t){r(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(c,a)}u((i=i.apply(e,n||[])).next())}));var e,n,o,i}};function g(t,e){setTimeout((function(){t&&(!1===t.closed?g(t,e):e())}),500)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6801],{86801:(t,e,n)=>{"use strict";n.r(e),n.d(e,{NotificationsView:()=>T});var i=n(81886),o=n(23481),r=n(71365),a=n(83905),s=n(50723),c=n(60735),l=n(18314),u=n(65220),f=n(39479),p=n(65858),y=n(49985),h=n(35454),v=n.n(h);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===b(e)?e:String(e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(a,t);var e,n,i,o,r=(i=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=k(i);if(o){var n=k(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,t)}return e=a,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return v()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var e=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+e<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,t[".previous-applink"]=n}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:f.extend({},this.options.appLink.params,(e={},n=this.options.cursorParamName,i=t,(n=d(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e))};var e,n,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var e=y.k.mergeOptions(this.options.analyticsOptions,{location:p.LocationContext.Pagination,entity:p.EntityType.Pagination,actionType:p.UserAction.Navigate}),n={id:this.options.collectionId,page:t};y.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.Q.Component),O=n(41546),P=n(43454),C=n.n(P),j=n(89224),x=n.n(j),S=n(58081),_=n(72264);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function I(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===E(o)?o:String(o)),i)}var o}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(h,t);var e,n,f,p,y=(f=h,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=R(f);if(p){var n=R(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,t)}return e=h,(n=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return C()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:x(),className:"px-1 py-2",viewOptions:{styles:S.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=r.u.getInstance(c.D.Notification,this),this.appVariables=r.u.getInstance(l.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new u.J(Object.assign({collectionPrefix:s.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new O.Z({collection:this.collection,childType:O.z.Default,liteUrl:this.config instanceof i.Q.Model?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof i.Q.Model?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),e=new w({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",e)}}},{key:"requiredResources",get:function(){return{config:_.p.config}}},{key:"viewOptions",value:function(){var t,e;return{containerClass:null!==(e=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==e?e:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(e){return t.onData(e)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&I(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.Q.View)},43454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.containerClass:r,e))+'">\n <h1 class="header border-bottom pb-2 m-0">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\n <div class="list-region"></div>\n <div class="pagination-region"></div>\n</div>'},useData:!0})},35454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({1:function(t,e,n,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\n</div>"},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6801],{86801:(t,e,n)=>{"use strict";n.r(e),n.d(e,{NotificationsView:()=>T});var i=n(81886),o=n(23481),r=n(71365),a=n(83905),s=n(50723),c=n(60735),l=n(18314),u=n(65220),f=n(39479),p=n(65858),y=n(49985),h=n(35454),v=n.n(h);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===b(e)?e:String(e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(a,t);var e,n,i,o,r=(i=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=k(i);if(o){var n=k(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,t)}return e=a,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return v()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var e=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+e<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,t[".previous-applink"]=n}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:f.extend({},this.options.appLink.params,(e={},n=this.options.cursorParamName,i=t,(n=d(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e))};var e,n,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var e=y.k.mergeOptions(this.options.analyticsOptions,{location:p.LocationContext.Pagination,entity:p.EntityType.Pagination,actionType:p.UserAction.Navigate}),n={id:this.options.collectionId,page:t};y.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.Q.Component),O=n(41546),P=n(43454),C=n.n(P),j=n(89224),x=n.n(j),S=n(58081),_=n(72264);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function I(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===E(o)?o:String(o)),i)}var o}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(h,t);var e,n,f,p,y=(f=h,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=R(f);if(p){var n=R(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,t)}return e=h,(n=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return C()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:x(),className:"px-1 py-2",viewOptions:{styles:S.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=r.u.getInstance(c.D.Notification,this),this.appVariables=r.u.getInstance(l.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new u.J(Object.assign({collectionPrefix:s.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new O.Z({collection:this.collection,childType:O.z.Default,liteUrl:this.config instanceof i.Q.Model?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof i.Q.Model?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),e=new w({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",e)}}},{key:"requiredResources",get:function(){return{config:_.p.config}}},{key:"viewOptions",value:function(){var t,e;return{containerClass:null!==(e=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==e?e:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(e){return t.onData(e)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&I(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.Q.View)},43454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.containerClass:r,e))+'">\r\n <h1 class="header border-bottom pb-2 m-0">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="list-region"></div>\r\n <div class="pagination-region"></div>\r\n</div>'},useData:!0})},35454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({1:function(t,e,n,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 7221-
|
|
1
|
+
/*! For license information please see 7221-f474cc63dd-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7221],{70197:(e,t,r)=>{var n;r.d(t,{q:()=>n}),function(e){e.YearGroupValues="yearGroupValues",e.Status="status"}(n||(n={}))},81422:(e,t,r)=>{var n;r.d(t,{C:()=>n}),function(e){e.Approved="Approved",e.Denied="Denied",e.Pending="Pending"}(n||(n={}))},39872:(e,t,r)=>{r.d(t,{N:()=>d});var n,o,a=r(97395),i=r(99940),u=r(54610),s=r(39739);!function(e){e.Content="content",e.OnlineContent="online_content",e.User="user",e.Customer="customer",e.Tag="tag",e.Organisation="organisation",e.Channel="channel"}(n||(n={})),function(e){e.TermsGroupBy="terms-group-by"}(o||(o={}));var c=r(70197);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={getUsers:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,u={query:s.P.buildGetUsersQuery(t,r)};n&&(u.cursor=n);var c="school:users:".concat(e,":").concat(t);return c+=Object.keys(u).map((function(e){return u[e]})).join(":"),{url:a._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),u),key:c,success:o,error:i}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},bulkRemoveUsers:function(e,t,r,n){var o,a=["school:users","search:users","search:aggregation"];return(null===(o=e.userIds)||void 0===o?void 0:o.length)&&e.userIds.forEach((function(e){return a.push("school:users:".concat(e))})),{url:"{gateway}/v1/users/delete",key:"remove:school:users",invalidationKeys:a,type:i.k.POST,data:e,success:t,error:r,always:n}},createUsers:function(e,t,r,n,o){return{url:"{gateway}/v1/users",key:"create:users",data:e,type:i.k.POST,invalidationKeys:["school:users","user:count"],success:r,error:n,always:o,normalize:!1}},updateUser:function(e,t,r,n,o){var a=["school:users:".concat(e.userId)];return t.toString()===e.userId.toString()&&a.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:i.k.PUT,data:e,invalidationKeys:["search:aggregation"],success:r,error:n,always:o}},searchUsers:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,u=s.P.buildSearchParams(e,t,r);n&&(u.cursor=n);var c="search:users:".concat(n);return c+=Object.keys(u).sort().map((function(e){return u[e]})).join(":"),{url:a._.urlBuilder("{gateway}/v1/search/users",u),key:c,success:o,error:i}},getSearchUserIds:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=s.P.buildSearchParams(e,t,r),u="search:user:ids";return u+=Object.keys(i).sort().map((function(e){return i[e]})).join(":"),{url:a._.urlBuilder("{gateway}/v1/search/user/ids",i),key:u,normalize:!1,success:n,error:o}},getSearchAggregation:function(e){var t=e.userId,r=e.customerId,a=e.userType,u=e.queryParams,l=void 0===u?{}:u,f=e.userIds,y=e.field,d=s.P.buildSearchFiltersObject(r,a,l),p="search:aggregation:".concat(t,":").concat(r,":").concat(y,":");p+=Object.keys(d).sort().map((function(e){return d[e]})).join(":"),p+=":"+f.join(":");var v={indices:["user"],searchType:n.User,isLearner:!1,type:o.TermsGroupBy,userId:t.toString(),customerId:r.toString(),data:{field:y},idFilters:f,filters:d};return{url:"{gateway}/v1/search/aggregation",type:i.k.POST,key:p,data:v,normalize:!1,formatData:function(e){var t=e.termCount;return y!==c.q.Status?t:Object.keys(t).reduce((function(e,r){return e[r.charAt(0).toUpperCase()+r.slice(1)]=t[r],e}),{})}}},bulkToggleActivation:function(e,t,r,n,o){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:i.k.PUT,data:e,success:r,error:n,always:o,invalidationKeys:["school:users:".concat(e.customerId,":").concat(t)].concat((a=e.users.map((function(e){return"school:users:".concat(e.userId)})),function(e){if(Array.isArray(e))return y(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["search:aggregation"])};var a},bulkValidate:function(e,t,r,n,o){return{url:"{gateway}/v1/users/validate",type:i.k.POST,key:"validate:users",data:e,success:r,error:n,always:o,normalize:!1,formatData:function(e){return e.failedResults.map((function(e){return{errorCodes:e.errorCodes,users:[e.user]}}))}}},yearGroups:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/year-groups?query={orderby:value}"),key:"yeargroups:".concat(e)}},updateAvatar:function(e,t,r,n){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:i.k.PUT,invalidationKeys:["currentuser","school:users:".concat(t)],data:{fileId:e,fileIdType:u.z9.ImageAPIv2},success:r,error:n}},deleteAvatar:function(e,t,r,n){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:i.k.DELETE,updateState:{keys:["school:users:".concat(t),"currentuser"],updateData:function(e){var r,n=e["school:users:".concat(t)],o=e.currentuser;return n.avatar=null,o.avatar=null,f(r={},"school:users:".concat(t),n),f(r,"currentuser",o),r}},success:r,error:n}},changeEmail:function(e,t,r,n){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:i.k.PUT,data:{email:e},success:t,error:r,always:n}},changePassword:function(e,t,r,n){return{url:"{gateway}/v1/users/me/password",key:"change:password",type:i.k.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:t,error:r,always:n}},changeUserPassword:function(e,t,r,n,o,a,u){return{url:"{gateway}/v1/users/admin/change-password",key:"change:password:".concat(t,":").concat(e),type:i.k.PUT,data:{userId:e,newPassword:r,changeOnNextLogin:n},success:o,error:a,always:u}},resendActivationEmail:function(e,t,r){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:i.k.POST,data:{userId:e},success:t,error:r}},sendPasswordResetEmail:function(e,t,r,n){return{url:"{gateway}/v1/users/admin/account-reminder",key:"send:password:reset:email",type:i.k.POST,data:{userIds:[e],customerId:t},success:r,error:n}},resendVerificationEmail:function(e,t,r,n){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:i.k.POST,data:{userId:e,customerId:t},success:r,error:n}},exportList:function(e,t,r,n){return{url:a._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users/report"),{userType:t}),key:"export:users:".concat(t),type:i.k.GET,formatData:function(e){return"data:text/csv;charset=utf-8,".concat(e)},success:r,error:n,invalidationKeys:["export:users:".concat(t)],normalize:!1}},userCount:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=s.P.buildSearchParams(e,t,r),o="search:user:count";return o+=Object.keys(n).sort().map((function(e){return n[e]})).join(":"),{url:a._.urlBuilder("{gateway}/v1/search/user/count",n),key:o,normalize:!1}},authenticationMethods:function(e){return{url:a._.urlBuilder("{gateway}/v1/users/authentication-methods",{id:e}),key:"login:methods:".concat(e.sort().join(":")),normalizeOptions:{idAttribute:"userId"}}},getIdentityProviders:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/identity-providers"),key:"identity:providers:".concat(e),normalize:!1}},getSsoMappings:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e),normalize:!1}},updateSsoMappings:function(e,t){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e,":update"),type:i.k.POST,invalidationKeys:"sso:year:group:mappings:".concat(e),data:t}},joinRequests:function(){return{url:"{gateway}/v1/customers/join-requests?status=pending",key:"join:requests",normalize:!1}},resolveJoinRequest:function(e,t){return{url:"{gateway}/v1/customers/join-requests/".concat(e),key:"resolve:join:request",type:i.k.PUT,data:{status:t},normalize:!1,invalidationKeys:["join:requests"]}}}},17221:(e,t,r)=>{r.r(t),r.d(t,{AccessRequestsPopupView:()=>S});var n,o=r(1024),a=r.n(o),i=r(23481),u=r(20354),s=r(9111),c=r(83345),l=r(69883),f=r(13876),y=r(81422),d=r(39872);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function v(){v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),u=new O(o||[]);return n(i,"_invoke",{value:P(e,r,u)}),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function y(){}function d(){}function h(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(A([])));w&&w!==t&&r.call(w,a)&&(m=w);var b=h.prototype=y.prototype=Object.create(m);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(n,a,i,u){var s=l(e[n],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==p(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,i,u)}),(function(e){o("throw",e,i,u)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,u)}))}u(s.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function P(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=j(i,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function j(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=h,n(b,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=s(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},k(S.prototype),s(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=A,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}s((n=n.apply(e,t||[])).next())}))},w="userManager.inviteRequestsPopup",b=i.T.encloseNamespace(w),k=(m(n={},y.C.Approved,{heading:"approveHeading",body:"approveBody",buttonLabel:"approveButton",buttonVariant:"dark",successAlert:"approveSuccessAlert",errorAlert:"approveErrorAlert"}),m(n,y.C.Denied,{heading:"rejectHeading",body:"rejectBody",buttonLabel:"rejectButton",buttonVariant:"danger",successAlert:"rejectSuccessAlert",errorAlert:"rejectErrorAlert"}),n);function S(e){var t,r,n=e.id,o=e.status,i=e.closePopup,y=u.a.useGetFetchAsync(),p=(0,l.Z)(),m=u.a.useBasicFetch(d.N.joinRequests()),S=!!m.data.length&&m.data.find((function(e){return e.id===n})),P=(t=a().useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(t,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=P[0],E=P[1];return m.hasCompleted?a().createElement(s.G,{title:b(k[o].heading),closePopup:e.closePopup},a().createElement(a().Fragment,null,a().createElement("p",null,a().createElement(c.x,{namespace:w,phrase:k[o].body})),S.fullName?a().createElement("div",{className:"mb-2"},a().createElement("div",{className:"font-weight-500"},a().createElement(c.x,{namespace:w,phrase:"nameLabel"})),S.fullName):a().createElement(a().Fragment,null),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"font-weight-500"},a().createElement(c.x,{namespace:w,phrase:"emailLabel"})),S.email),a().createElement(f.u,null,a().createElement(f.u.Cancel,{onClick:i}),a().createElement(f.u.Submit,{variant:k[o].buttonVariant,onClick:function(){return function(){return g(this,void 0,void 0,v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,E(!0),e.next=4,y(d.N.resolveJoinRequest(S.id,o));case 4:p.success(b(k[o].successAlert,{user:S.fullName||S.email})),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),p.error(b(k[o].errorAlert,{user:S.fullName||S.email}));case 10:return e.prev=10,E(!1),i(),e.finish(10);case 14:case"end":return e.stop()}}),e,null,[[0,7,10,14]])})))}()},text:b(k[o].buttonLabel),showSpinner:j})))):a().createElement(a().Fragment,null)}}}]);
|