@clickview/lite 0.28.0 → 0.28.1-dev.0
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-29b943ffcf-lite.chunk.js → 1200-c660ead757-lite.chunk.js} +1 -1
- package/dist/scripts/{1592-8ed1b6f608-lite.chunk.js → 1592-25f15b02c4-lite.chunk.js} +1 -1
- package/dist/scripts/{1672-83d48591e7-lite.chunk.js → 1672-e836178ef9-lite.chunk.js} +1 -1
- package/dist/scripts/{1820-fbc2e889b5-lite.chunk.js → 1820-e45cf8e956-lite.chunk.js} +1 -1
- package/dist/scripts/1837-52b6e1ee27-lite.chunk.js +1 -0
- package/dist/scripts/2272-2fe2548936-lite.chunk.js +1 -0
- package/dist/scripts/3020-12fec481c9-lite.chunk.js +1 -0
- package/dist/scripts/3533-086eb42ce8-lite.chunk.js +1 -0
- package/dist/scripts/{3645-a9641e1e98-lite.chunk.js → 3645-7012a9deb4-lite.chunk.js} +1 -1
- package/dist/scripts/{3667-91220cd295-lite.chunk.js → 3667-7a4905d241-lite.chunk.js} +1 -1
- package/dist/scripts/{3754-07ded15197-lite.chunk.js → 3754-a44f50257f-lite.chunk.js} +1 -1
- package/dist/scripts/{4113-4bca29731e-lite.chunk.js → 4113-9d16a22892-lite.chunk.js} +1 -1
- package/dist/scripts/{4617-818d698ee4-lite.chunk.js → 4617-b8fdee94a5-lite.chunk.js} +1 -1
- package/dist/scripts/{5622-bffd5eb9ed-lite.chunk.js → 5622-cb4b32b249-lite.chunk.js} +1 -1
- package/dist/scripts/5940-1d395519c6-lite.chunk.js +1 -0
- package/dist/scripts/6285-238931e4ca-lite.chunk.js +1 -0
- package/dist/scripts/{6325-9ab7021dfa-lite.chunk.js → 6325-c055a0e9b0-lite.chunk.js} +1 -1
- package/dist/scripts/{6623-71359d65ed-lite.chunk.js → 6623-d63feb5314-lite.chunk.js} +1 -1
- package/dist/scripts/6725-1a22508324-lite.chunk.js +1 -0
- package/dist/scripts/{6736-29998bc029-lite.chunk.js → 6736-bc87f1f7cf-lite.chunk.js} +1 -1
- package/dist/scripts/{6801-d1a4ee7e80-lite.chunk.js → 6801-e99413e1a6-lite.chunk.js} +1 -1
- package/dist/scripts/{6825-50180bc045-lite.chunk.js → 6825-2409612ac2-lite.chunk.js} +1 -1
- package/dist/scripts/{7221-9d874df838-lite.chunk.js → 7221-c8301bebac-lite.chunk.js} +1 -1
- package/dist/scripts/7318-5111004d2f-lite.chunk.js +1 -1
- package/dist/scripts/7338-3a180ca601-lite.chunk.js +1 -0
- package/dist/scripts/7818-44121bf9bc-lite.chunk.js +1 -0
- package/dist/scripts/{8323-c79ceaf96b-lite.chunk.js → 8323-fa67115c10-lite.chunk.js} +1 -1
- package/dist/scripts/{8681-667e704ffc-lite.chunk.js → 8681-eb6dfae2ab-lite.chunk.js} +1 -1
- package/dist/scripts/{8772-efba191089-lite.chunk.js → 8772-2a5767ea3c-lite.chunk.js} +1 -1
- package/dist/scripts/9016-cc7bbbda6e-lite.chunk.js +1 -0
- package/dist/scripts/{9038-7af5e82062-lite.chunk.js → 9038-542c5c0610-lite.chunk.js} +1 -1
- package/dist/scripts/{9428-10ffcc2ee6-lite.chunk.js → 9428-f6fceb0c25-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-db167dca52-lite.chunk.js → 9478-5e92b55305-lite.chunk.js} +1 -1
- package/dist/scripts/{9522-85d32cce72-lite.chunk.js → 9522-28d0fc8cb2-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-d797c236df.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/1837-de58e1e7e5-lite.chunk.js +0 -1
- package/dist/scripts/2272-8f7b3e0b8c-lite.chunk.js +0 -1
- package/dist/scripts/3020-0f04e7de48-lite.chunk.js +0 -1
- package/dist/scripts/3533-d309a732dd-lite.chunk.js +0 -1
- package/dist/scripts/5940-ce68bc05bf-lite.chunk.js +0 -1
- package/dist/scripts/6285-a981d9a09e-lite.chunk.js +0 -1
- package/dist/scripts/6381-4ffba82b81-lite.chunk.js +0 -1
- package/dist/scripts/6725-ccaab75fff-lite.chunk.js +0 -1
- package/dist/scripts/7939-50f661db95-lite.chunk.js +0 -1
- package/dist/scripts/9016-e5ae124e33-lite.chunk.js +0 -1
- package/dist/scripts/bundle-9e54223f39.min.js +0 -2
- /package/dist/css/{6381-lite-e7bdc675ac.chunk.css → 7818-lite-e7bdc675ac.chunk.css} +0 -0
- /package/dist/scripts/{1200-29b943ffcf-lite.chunk.js.LICENSE.txt → 1200-c660ead757-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1324-10af0e38d5-lite.chunk.js → 1324-e384a61648-lite.chunk.js} +0 -0
- /package/dist/scripts/{1341-cee09bdc60-lite.chunk.js → 1341-62cd9fda19-lite.chunk.js} +0 -0
- /package/dist/scripts/{1518-52f96377e9-lite.chunk.js → 1518-b2d9290017-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-8ed1b6f608-lite.chunk.js.LICENSE.txt → 1592-25f15b02c4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1672-83d48591e7-lite.chunk.js.LICENSE.txt → 1672-e836178ef9-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1725-323bb79c71-lite.chunk.js → 1725-1bb9d994f3-lite.chunk.js} +0 -0
- /package/dist/scripts/{1766-698bc9cd88-lite.chunk.js → 1766-a20f8ca951-lite.chunk.js} +0 -0
- /package/dist/scripts/{189-0a61029d45-lite.chunk.js → 189-23e550bede-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-2c2ee5d012-lite.chunk.js → 1891-78f16d16b5-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-b758505518-lite.chunk.js → 1924-fb8b06883e-lite.chunk.js} +0 -0
- /package/dist/scripts/{2229-9595bfde64-lite.chunk.js → 2229-da7e3718e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-2f5557d9fc-lite.chunk.js → 227-93f408f1a3-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-89b42ca4f0-lite.chunk.js → 2279-0357e8c5f0-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-bbbcc9cfc4-lite.chunk.js → 2452-c3bbdacb87-lite.chunk.js} +0 -0
- /package/dist/scripts/{2512-b2c018882d-lite.chunk.js → 2512-80402b3b02-lite.chunk.js} +0 -0
- /package/dist/scripts/{2608-ac9d6b8fe2-lite.chunk.js → 2608-afdc1fd54c-lite.chunk.js} +0 -0
- /package/dist/scripts/{2883-e005246642-lite.chunk.js → 2883-249e663736-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-8a3f28a101-lite.chunk.js → 2966-f9a387e639-lite.chunk.js} +0 -0
- /package/dist/scripts/{3007-4a6a008485-lite.chunk.js → 3007-9507eed4ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-f3974602a6-lite.chunk.js → 3108-5d79868c9f-lite.chunk.js} +0 -0
- /package/dist/scripts/{3135-2d41300b3b-lite.chunk.js → 3135-a2b8e90f5a-lite.chunk.js} +0 -0
- /package/dist/scripts/{3171-9d875939c2-lite.chunk.js → 3171-699c11d338-lite.chunk.js} +0 -0
- /package/dist/scripts/{3200-cf7e73288b-lite.chunk.js → 3200-b7b20bafa0-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-5f56aec632-lite.chunk.js → 3216-d5e762fedd-lite.chunk.js} +0 -0
- /package/dist/scripts/{3285-ae37b21cb6-lite.chunk.js → 3285-982cd6417d-lite.chunk.js} +0 -0
- /package/dist/scripts/{3378-fc302b090c-lite.chunk.js → 3378-b536ae3d82-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-a2e8c33439-lite.chunk.js → 3468-01000087b7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3645-a9641e1e98-lite.chunk.js.LICENSE.txt → 3645-7012a9deb4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3667-91220cd295-lite.chunk.js.LICENSE.txt → 3667-7a4905d241-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3787-47a5b48c6c-lite.chunk.js → 3787-44df1e3ec9-lite.chunk.js} +0 -0
- /package/dist/scripts/{3853-be39afc2b7-lite.chunk.js → 3853-6d54890f44-lite.chunk.js} +0 -0
- /package/dist/scripts/{389-d875f227d5-lite.chunk.js → 389-5b4ef87c08-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-6a23ba7bc3-lite.chunk.js → 4182-035e0fa807-lite.chunk.js} +0 -0
- /package/dist/scripts/{4326-42392bed2e-lite.chunk.js → 4326-fb83469d05-lite.chunk.js} +0 -0
- /package/dist/scripts/{4332-de23e1a59c-lite.chunk.js → 4332-64260580ab-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-e3f4c34bb8-lite.chunk.js → 4541-05fe9db815-lite.chunk.js} +0 -0
- /package/dist/scripts/{455-aa9c645793-lite.chunk.js → 455-7db70a2b62-lite.chunk.js} +0 -0
- /package/dist/scripts/{4632-6ad80fd2d7-lite.chunk.js → 4632-9c0a39cc12-lite.chunk.js} +0 -0
- /package/dist/scripts/{4690-ed9601cff2-lite.chunk.js → 4690-615d599d4c-lite.chunk.js} +0 -0
- /package/dist/scripts/{482-1c3f7afad5-lite.chunk.js → 482-ecb69d936c-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-fcc707ef84-lite.chunk.js → 4893-f93122e034-lite.chunk.js} +0 -0
- /package/dist/scripts/{4898-0241893d16-lite.chunk.js → 4898-fbd3e5cf3e-lite.chunk.js} +0 -0
- /package/dist/scripts/{5048-ffa85668fb-lite.chunk.js → 5048-9875295531-lite.chunk.js} +0 -0
- /package/dist/scripts/{5143-0b5dcaf64b-lite.chunk.js → 5143-78f573b89d-lite.chunk.js} +0 -0
- /package/dist/scripts/{5347-a5f56dda73-lite.chunk.js → 5347-ccd8de3f0f-lite.chunk.js} +0 -0
- /package/dist/scripts/{5606-dff56395be-lite.chunk.js → 5606-7cbf9eac88-lite.chunk.js} +0 -0
- /package/dist/scripts/{5622-bffd5eb9ed-lite.chunk.js.LICENSE.txt → 5622-cb4b32b249-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5877-f86225eba6-lite.chunk.js → 5877-7046ce19c7-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-64cb4ae7f6-lite.chunk.js → 5914-4a4f639116-lite.chunk.js} +0 -0
- /package/dist/scripts/{5929-5b10815d4b-lite.chunk.js → 5929-1303d1335d-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-747f198553-lite.chunk.js → 5974-3e8e4b123b-lite.chunk.js} +0 -0
- /package/dist/scripts/{6001-d9d5be6f0c-lite.chunk.js → 6001-57c0348656-lite.chunk.js} +0 -0
- /package/dist/scripts/{6113-2ea3b388c5-lite.chunk.js → 6113-d4ec49bc4d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6158-1358110ebe-lite.chunk.js → 6158-56c724e56a-lite.chunk.js} +0 -0
- /package/dist/scripts/{6186-ae31f21046-lite.chunk.js → 6186-b5b6801244-lite.chunk.js} +0 -0
- /package/dist/scripts/{6204-83730d0969-lite.chunk.js → 6204-d0ca07ab11-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-2621ceda1b-lite.chunk.js → 6274-f629715490-lite.chunk.js} +0 -0
- /package/dist/scripts/{6290-181b02948f-lite.chunk.js → 6290-a238bea1dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{6302-a1931cb2e3-lite.chunk.js → 6302-715fa93771-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-60bbc5eae9-lite.chunk.js → 6368-fcdd69d073-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-3b3d8c6470-lite.chunk.js → 6370-e63ec86ee9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6427-9a59eecfdb-lite.chunk.js → 6427-811f314784-lite.chunk.js} +0 -0
- /package/dist/scripts/{6450-3abc8b4c2b-lite.chunk.js → 6450-c356dc0f2e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-99093f44bd-lite.chunk.js → 6465-bc887a476c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6477-dbc3a1e738-lite.chunk.js → 6477-f1afe5dedb-lite.chunk.js} +0 -0
- /package/dist/scripts/{6480-065754f037-lite.chunk.js → 6480-58d15a5d3d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-623c62340e-lite.chunk.js → 6493-a2234f38ee-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-56f4be7f5b-lite.chunk.js → 6604-a0e85622c6-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-29998bc029-lite.chunk.js.LICENSE.txt → 6736-bc87f1f7cf-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6770-9f5ed5e338-lite.chunk.js → 6770-d258a89525-lite.chunk.js} +0 -0
- /package/dist/scripts/{6821-0dcfd046eb-lite.chunk.js → 6821-fb59d25618-lite.chunk.js} +0 -0
- /package/dist/scripts/{6825-50180bc045-lite.chunk.js.LICENSE.txt → 6825-2409612ac2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6873-b460f2ca2a-lite.chunk.js → 6873-213431db9d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6884-849955e54b-lite.chunk.js → 6884-088f26fbdd-lite.chunk.js} +0 -0
- /package/dist/scripts/{7045-f3a6e5e504-lite.chunk.js → 7045-1ba9c37697-lite.chunk.js} +0 -0
- /package/dist/scripts/{7056-387a14b8fe-lite.chunk.js → 7056-3b0010bdc1-lite.chunk.js} +0 -0
- /package/dist/scripts/{7108-ed8ac42171-lite.chunk.js → 7108-99d939ab6b-lite.chunk.js} +0 -0
- /package/dist/scripts/{711-1a1a687ba1-lite.chunk.js → 711-3d471017ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{7115-6b73c41135-lite.chunk.js → 7115-cf586a019e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-72cd7308cc-lite.chunk.js → 7128-ea9ffbef0e-lite.chunk.js} +0 -0
- /package/dist/scripts/{714-a15b2d53a9-lite.chunk.js → 714-6a106e218c-lite.chunk.js} +0 -0
- /package/dist/scripts/{7153-520f1879ce-lite.chunk.js → 7153-c493405763-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-06197fd85d-lite.chunk.js → 7172-84fd78c047-lite.chunk.js} +0 -0
- /package/dist/scripts/{7178-a4cfba2946-lite.chunk.js → 7178-a618a275af-lite.chunk.js} +0 -0
- /package/dist/scripts/{7201-5e425f8f67-lite.chunk.js → 7201-bcbd1b4d95-lite.chunk.js} +0 -0
- /package/dist/scripts/{7221-9d874df838-lite.chunk.js.LICENSE.txt → 7221-c8301bebac-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7506-b7083c98d5-lite.chunk.js → 7506-22f0984a5f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7510-e1c04f004b-lite.chunk.js → 7510-9501b1d0dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{7708-47021d1e5b-lite.chunk.js → 7708-baf1a813f0-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-c9b3936f6f-lite.chunk.js → 7767-f3f6802232-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-18892e9a03-lite.chunk.js → 7855-bacabbfa76-lite.chunk.js} +0 -0
- /package/dist/scripts/{7891-0fe77d6dbd-lite.chunk.js → 7891-b65f1f57f0-lite.chunk.js} +0 -0
- /package/dist/scripts/{7925-271289a49d-lite.chunk.js → 7925-d30e261c55-lite.chunk.js} +0 -0
- /package/dist/scripts/{7954-65e5bb6010-lite.chunk.js → 7954-b2d81af52b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8025-a0b56d79cd-lite.chunk.js → 8025-607bc245f4-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-2775b70394-lite.chunk.js → 8038-ddf5bd09cd-lite.chunk.js} +0 -0
- /package/dist/scripts/{8046-2c6f090035-lite.chunk.js → 8046-11616f81e3-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-ba3e42847a-lite.chunk.js → 8056-075083271e-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-e344fd42be-lite.chunk.js → 823-33c42d9323-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-2d7e85be2c-lite.chunk.js → 8252-69211514aa-lite.chunk.js} +0 -0
- /package/dist/scripts/{8300-f4f3d53b9b-lite.chunk.js → 8300-703afbe2cf-lite.chunk.js} +0 -0
- /package/dist/scripts/{8323-c79ceaf96b-lite.chunk.js.LICENSE.txt → 8323-fa67115c10-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8419-84dd3bc04f-lite.chunk.js → 8419-da4afe33ae-lite.chunk.js} +0 -0
- /package/dist/scripts/{8466-e82f214dd7-lite.chunk.js → 8466-cc9a3f6479-lite.chunk.js} +0 -0
- /package/dist/scripts/{8564-49f313276d-lite.chunk.js → 8564-90cd54b265-lite.chunk.js} +0 -0
- /package/dist/scripts/{8681-667e704ffc-lite.chunk.js.LICENSE.txt → 8681-eb6dfae2ab-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8779-d766559d37-lite.chunk.js → 8779-eea963a7dc-lite.chunk.js} +0 -0
- /package/dist/scripts/{8789-e978e03164-lite.chunk.js → 8789-da29fe2902-lite.chunk.js} +0 -0
- /package/dist/scripts/{8816-d89635a6fd-lite.chunk.js → 8816-342ea960a7-lite.chunk.js} +0 -0
- /package/dist/scripts/{8944-1de1271c47-lite.chunk.js → 8944-aba9581f23-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-52b7479a62-lite.chunk.js → 8955-a5eb1c4e00-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-c28030bbc0-lite.chunk.js → 9060-8ddf46f10f-lite.chunk.js} +0 -0
- /package/dist/scripts/{9133-8b5eafbe0e-lite.chunk.js → 9133-46d5f97a09-lite.chunk.js} +0 -0
- /package/dist/scripts/{9226-8910921034-lite.chunk.js → 9226-da5c2c0c4c-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-4e75cd3956-lite.chunk.js → 9242-f9579a0c78-lite.chunk.js} +0 -0
- /package/dist/scripts/{9428-10ffcc2ee6-lite.chunk.js.LICENSE.txt → 9428-f6fceb0c25-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9455-8f5fabcf17-lite.chunk.js → 9455-3261e5e6c4-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-db167dca52-lite.chunk.js.LICENSE.txt → 9478-5e92b55305-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9483-e328141db5-lite.chunk.js → 9483-d959cc524e-lite.chunk.js} +0 -0
- /package/dist/scripts/{9522-85d32cce72-lite.chunk.js.LICENSE.txt → 9522-28d0fc8cb2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9556-919031c6c7-lite.chunk.js → 9556-428e5200dc-lite.chunk.js} +0 -0
- /package/dist/scripts/{9590-603873656c-lite.chunk.js → 9590-6fdf764823-lite.chunk.js} +0 -0
- /package/dist/scripts/{9863-c903f472ca-lite.chunk.js → 9863-26b32711a0-lite.chunk.js} +0 -0
- /package/dist/scripts/{9897-56216d7f8b-lite.chunk.js → 9897-2e460c1751-lite.chunk.js} +0 -0
- /package/dist/scripts/{9961-f9b90ea0d0-lite.chunk.js → 9961-6781c098f1-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-9e54223f39.min.js.LICENSE.txt → bundle-d797c236df.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7338],{68670:(e,t,n)=>{n.d(t,{p:()=>p});var r=n(1024),a=n.n(r),o=n(92802),l=n(23481),i=n(38365),s=n(83345),c=n(23201),u="shared.changePasswordForm",m=l.T.encloseNamespace(u);function p(e){var t=(0,o.u6)();return a().createElement(o.l0,null,!e.hideCurrentPassword&&a().createElement(i.W,{className:e.inputWidthClass,name:"currentPassword",label:m("currentPassword"),placeholder:m("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",showRequiredStar:!0}),a().createElement(i.W,{className:e.inputWidthClass,name:"newPassword",label:m("newPassword"),placeholder:m("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",showRequiredStar:!0}),a().createElement(i.W,{className:e.inputWidthClass,name:"confirmPassword",label:m("confirmPassword"),placeholder:m("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",showRequiredStar:!0}),e.showChangeOnNextLogin&&a().createElement(i.W,{id:"changeOnNextLogin",name:"changeOnNextLogin",label:m("changeOnNextLogin"),type:"checkbox",checked:t.values.changeOnNextLogin,checkboxLabelFontWeight:"normal"}),!e.hideButtons&&a().createElement("div",{className:e.buttonContainerClass},!e.hideCancelButton&&!!e.onClickCancel&&a().createElement("button",{type:"button",className:"btn btn-link mr-2 ".concat("lg"===e.buttonSize?"btn-lg":""),onClick:e.onClickCancel},a().createElement(s.x,{namespace:u,phrase:"cancel"})),a().createElement(c.A,{isNew:!1,submitText:e.submitText||m("save"),variant:e.submitVariant,size:e.buttonSize})))}p.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"}},23201:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(1024),a=n(92802),o=n(33936),l=n(83345),i=n(2102),s="shared.formButtons";function c(e){var t=(0,a.u6)(),n=(0,o.l)(t);return r.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?r.createElement(r.Fragment,null,e.submitText):r.createElement(l.x,{namespace:s,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>w,W:()=>O});var r=n(1024),a=n(92802),o=n(99910),l=n(1048),i=n(79014),s=n(73814),c=n(36848),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function m(e){var t=e.label,n=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,l=e.className,i=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return r.createElement(o.Form.Group,null,r.createElement("div",{className:"custom-control custom-checkbox ".concat(l)},r.createElement(w,Object.assign({className:"custom-control-input"},i)),r.createElement(o.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===a?"font-weight-normal":""," \n ").concat(n),htmlFor:i.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&r.createElement(r.Fragment,null,r.createElement("span",null," "),r.createElement(c.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var p=n(83914),d=n(58130),f=n(83345);function b(e){var t=(0,a.u6)().values[e.fieldName];return"string"!=typeof t?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-right text-muted font-weight-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG"};function y(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 g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},v="shared.formField";function w(e){var t,n,o=e.children,s=g(e,["children"]),c=(t=r.useState(e.type),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,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(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.")}()),u=c[0],m=c[1],f=i.q.isFunction(o)?function(e){return o(e)}:r.Children.count(o)?o:null;if("password"!==s.type)return r.createElement(a.gN,Object.assign({},l.t.omit(s,["formSize"])),f);var b="position-relative ".concat(h.passwordContainer);return s.className&&(b+=" ".concat(s.className)),s.disabled&&(b+=" ".concat(h.passwordContainerDisabled)),r.createElement("div",{className:b},r.createElement(a.gN,Object.assign({},l.t.omit(s,["formSize","type","className"]),{type:u,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),f),"password"===s.type&&r.createElement(p.x,{svgName:"password"===u?d.vn.VisibleOn:d.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){m("password"===u?"text":"password")}}))}function O(e){var t=e.label,n=e.className,i=e.showCharacterCounter,c=e.showRequiredStar,u=e.infoTooltip,y=e.infoTooltipPlacement,O=e.infoText,C=e.formSize,S=e.showOptionalLabel,x=g(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),N=(0,a.u6)(),E=N.errors,k=N.touched,j=function(){};if("checkbox"===x.type){var P=l.t.omit(e,["formSize"]);return e.disabled&&(P.onChange=j),r.createElement(m,Object.assign({},P))}var F=Object.assign(Object.assign({},x),{className:s.w.getCustomFormControlClassName(E,k,x.name,C,n)});return e.disabled&&(F.onChange=j),r.createElement(o.Form.Group,null,!!t&&r.createElement(o.Form.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,c&&r.createElement("span",{className:"text-danger"},"*"),u&&r.createElement(p.x,{className:"svg-container text-muted ".concat(h.infoTooltip),svgName:d.vn.Info,title:u,tooltipPlacement:y,tooltipSpanHack:!0}),S&&r.createElement("span",{className:"text-muted"}," ",r.createElement(f.x,{namespace:v,phrase:"optional"})),!!i&&!!x.maxLength&&r.createElement("div",{className:"ml-auto"},r.createElement(b,{fieldName:x.name,limit:x.maxLength}))),r.createElement(w,Object.assign({},F)),!!O&&r.createElement(o.Form.Text,{className:"text-muted"},O),r.createElement(a.Bc,{name:x.name},(function(e){return r.createElement(o.Form.Control.Feedback,{type:"invalid"},e)})))}w.defaultProps={autoComplete:"off"},O.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>c});var r=n(1024),a=n(92802),o=n(79014),l=n(1048);function i(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 s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function c(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,c=e.initialValues,u=e.onSubmit,m=s(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),p=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=l.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&(l.t.isObject(n[r])?e(n[r]):null===t[r]&&delete t[r])}))}(t),t}(c)):c,d={allowInitialSubmit:e.allowInitialSubmit};return r.createElement(a.J9,Object.assign({enableReinitialize:!0},m,{initialValues:p,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,l=r.setFieldError,s=n&&e.validationSchema?e.validationSchema.cast(t):t;u(s,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&o(),n.errors)for(var r=0,s=Object.entries(n.errors);r<s.length;r++){var c=(e=s[r],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e,t)||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.")}()),u=c[0],m=c[1];l(u,m)}a(!1)}))},initialStatus:d}),o.q.isFunction(e.children)?function(t){return e.children(t)}:r.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}c.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},73814:(e,t,n)=>{n.d(t,{w:()=>a});var r=n(92802),a={getCustomFormControlClassName:function(e,t,n,a,o){var l="form-control";return"sm"===a&&(l+=" form-control-sm"),"lg"===a&&(l+=" form-control-lg"),(0,r.u9)(t,n)&&(0,r.u9)(e,n)&&(l+=" is-invalid"),o&&(l+=" ".concat(o)),l}}},706:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(99940),a={getCustomerSecuritySettings:function(e,t,n){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"customers:security:settings",normalize:!1,success:t,error:n}},setCustomerSecuritySettings:function(e,t,n,a){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"update:security:settings",invalidationKeys:"customers:security:settings",type:r.k.PUT,normalize:!1,data:t,success:n,error:a}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7818],{49935:(e,r,t)=>{t.d(r,{Oo:()=>m,b2:()=>d});var a=t(1024),n=t(36848),o=t(5859),s=t(86764),i=t(3747),c=t(83914),u=t(58130),l=function(e){var r=e.breadcrumb,t=r.name,o=r.appLink,s=r.active,i=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(s?" active":"")},s?a.createElement("strong",null,t):a.createElement(n.F,{appLink:o},i&&a.createElement(c.x,{svgName:u.vn.ChevronLeft,size:c.S.Small}),a.createElement("span",{className:i?"ml-2":""},t)))},m=function(e){var r=e.breadcrumbs,t=(0,i.a)(s.r.XS),n=null==r?void 0:r.length;return!n||t&&n<2?a.createElement(a.Fragment,null):t?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(l,{breadcrumb:r[n-2],withBackIcon:!0}))):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},r.map((function(e,r){return a.createElement(l,{key:r,breadcrumb:e})}))))},d=a.memo((function(e){var r=e.numItems,t=void 0===r?3:r;return(0,i.a)(s.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:t}).map((function(e,r){var t=e.width;return a.createElement("li",{key:r,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:t},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},70197:(e,r,t)=>{var a;t.d(r,{q:()=>a}),function(e){e.YearGroupValues="yearGroupValues",e.Status="status"}(a||(a={}))},5859:(e,r,t)=>{function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}t.d(r,{u:()=>o});var n={numItems:5,minWidth:50,maxWidth:100},o={getPartialLoadingItems:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},n),r);return(e=Array(t.numItems),function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return a(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,r):void 0}}(e)||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.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth),"px")}}))}}},81803:(e,r,t)=>{t.d(r,{d:()=>y});var a=t(1024),n=t.n(a),o=t(81886),s=t(23481),i=t(49935),c=t(22902),u=t(97291),l=t(14070),m=t(96368);function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var f="settings.settingsLayout",p=function(e){var r=(0,c.T)().hasPermissions,t=(0,m.e)();if(e)return r(e);var a=o.Q.AppLinkHelper.getCurrentAppLink();return a.application!==u.O.SETTINGS||t.some((function(e){return e.modules.some((function(e){return"appLink"in e&&e.appLink.action===a.action}))}))};function y(e){var r=p(e.requiredPermissions);if(n().useEffect((function(){r||o.Q.AppLinkHelper.trigger({application:u.O.SETTINGS,action:l.e.Settings.HOME},{replace:!0})}),[r]),!r)return n().createElement(n().Fragment,null);var t,a=e.breadcrumbs.map((function(r,t){return{name:r,appLink:{application:u.O.SETTINGS,action:l.e.Settings.HOME},active:t===e.breadcrumbs.length-1}}));return n().createElement("div",{className:"px-3"},n().createElement("h1",{className:"h2"},e.heading),n().createElement("div",{className:"pb-3"},n().createElement(i.Oo,{breadcrumbs:[{name:s.T.getPhrase(f,"settingsBreadcrumb"),appLink:{application:u.O.SETTINGS,action:l.e.Settings.HOME}}].concat((t=a,function(e){if(Array.isArray(e))return d(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,r){if(e){if("string"==typeof e)return d(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,r):void 0}}(t)||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.")}()))})),e.description&&n().createElement(n().Fragment,null,n().createElement("p",null,e.description),n().createElement("hr",null)),e.children)}},26381:(e,r,t)=>{t.r(r),t.d(r,{AccountSettingsView:()=>F});var a=t(1024),n=t.n(a),o=t(58566),s=t(20354),i=t(23481),c=t(31949),u=t(69883),l=t(3747),m=t(86764),d=t(39739),f=t(49985),p=t(65858),y=t(39872),g=t(92802),v=t(83345),h=t(82644),b=t(38365),w=t(23201),E=t(5173),k="settings.emailSettings",S=(0,E.Ry)().shape({email:(0,E.Z_)().required((function(){return i.T.getPhrase(k,"emailRequired")})).email((function(){return i.T.getPhrase(k,"emailInvalid")})).trim().default("")}),P=t(86794);function I(){return n().createElement(P.b,null,n().createElement("svg",{viewBox:"0 0 24 24"},n().createElement("path",{d:"M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"})))}function T(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var A="settings.emailSettings",j=i.T.encloseNamespace(A);function N(e){var r,t,a=(0,l.a)(m.r.MDDown),o=(r=n().useState(!a),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,o,s,i=[],c=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=o.call(t)).done)&&(i.push(a.value),i.length!==r);c=!0);}catch(e){u=!0,n=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(u)throw n}}return i}}(r,t)||function(e,r){if(e){if("string"==typeof e)return T(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,r):void 0}}(r,t)||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.")}()),s=o[0],i=o[1],c=e.currentUser.emailVerified;return n().useEffect((function(){a||s||i(!0)}),[a,s]),n().createElement(v.D.Provider,{value:A},n().createElement("h2",{className:"h4 d-flex align-items-center"},n().createElement(v.x,{phrase:"heading"}),c&&n().createElement("span",{className:"font-size-normal font-weight-500 text-primary d-flex align-items-center mb-0 ml-2"},n().createElement(v.x,{phrase:"verified"}),n().createElement(I,null))),c&&n().createElement("p",null,n().createElement(v.x,{phrase:"info",options:{email:e.currentUser.email}})),s?n().createElement(h.n,{initialValues:{email:e.currentUser.email||""},onSubmit:e.onChangeEmail,validationSchema:S},n().createElement(g.l0,null,n().createElement(b.W,{className:"w-75",name:"email",placeholder:j("emailPlaceholder"),autoComplete:"email"}),n().createElement("div",{className:"d-flex justify-content-end w-75 ".concat(a?"ml-n2":"")},a&&n().createElement("button",{type:"button",className:"btn btn-link mr-2",onClick:function(){return i(!1)}},n().createElement(v.x,{phrase:"cancel"})),n().createElement(w.A,{isNew:!1,submitText:j(c?"updateEmail":"verifyEmail"),variant:c?"outline-dark":"dark"})))):n().createElement(n().Fragment,null,n().createElement("div",{className:"d-flex"},n().createElement("button",{className:"btn btn-outline-dark mr-2",onClick:function(){return i(!0)}},n().createElement(v.x,{phrase:"change"})))),n().createElement("p",{className:"mb-0 mt-2"},n().createElement(v.x,{phrase:"note"})))}var O=t(68670),C=i.T.encloseNamespace("settings.passwordSettings"),U=function(e){return(0,E.Ry)().shape({currentPassword:(0,E.Z_)().required((function(){return C("currentPasswordRequired")})).trim().default(""),newPassword:(0,E.Z_)().required((function(){return C("newPasswordRequired")})).min(e,(function(){return C("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,E.Z_)().required((function(){return C("confirmPasswordRequired")})).oneOf([(0,E.iH)("newPassword"),null],(function(){return C("passwordsDontMatch")})).trim().default("")})};function x(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var L="settings.passwordSettings",q={currentPassword:"",newPassword:"",confirmPassword:""};function M(e){var r,t,a=(0,l.a)(m.r.MDDown),o=(r=n().useState(!a),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,o,s,i=[],c=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=o.call(t)).done)&&(i.push(a.value),i.length!==r);c=!0);}catch(e){u=!0,n=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(u)throw n}}return i}}(r,t)||function(e,r){if(e){if("string"==typeof e)return x(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(e,r):void 0}}(r,t)||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.")}()),s=o[0],c=o[1];return n().useEffect((function(){a||s||c(!0)}),[a,s]),n().createElement(v.D.Provider,{value:L},n().createElement("h2",{className:"h4"},n().createElement(v.x,{phrase:"heading"})),s?n().createElement(n().Fragment,null,n().createElement("p",null,n().createElement(v.x,{phrase:"info"})),n().createElement(h.n,{initialValues:q,onSubmit:function(r,t){e.onChangePassword(r,t,(function(){return t({reset:!0})}))},validationSchema:U(e.minPasswordLength)},n().createElement(O.p,{onClickCancel:function(){return c(!1)},hideCancelButton:!a,submitText:i.T.getPhrase(L,"savePassword"),buttonContainerClass:a?"d-flex justify-content-end ml-n2 w-75":"d-flex justify-content-end w-75",inputWidthClass:"w-75"}))):n().createElement("button",{className:"btn btn-outline-dark ",onClick:function(){return c(!0)}},n().createElement(v.x,{phrase:"change"})))}const _={partialLabel:"aKssR",partialInfo:"ZrKZk",partialInput:"Lvn15",partialSubmit:"TActD",partialNote:"pqp7j"};function z(){return n().createElement("div",{className:"w-50"},n().createElement("div",{className:"partial-loading-background mb-2 ".concat(_.partialLabel)}),n().createElement("div",{className:"partial-loading-background ".concat(_.partialInfo)}),n().createElement("div",{className:"form-group"},n().createElement("div",{className:"partial-loading-background ".concat(_.partialInput)})),n().createElement("div",{className:"partial-loading-background ".concat(_.partialSubmit)}),n().createElement("div",{className:"partial-loading-background mt-2 ".concat(_.partialNote)}))}var B=t(81803),D=t(706),R=i.T.encloseNamespace("settings.accountSettings");function F(){var e,r=(0,o.useDispatch)(),t=(0,u.Z)(),a=(0,l.a)(m.r.MDDown),i=s.a.useBasicFetch(c.N.currentUser()),g=s.a.useBasicFetch(i.data&&y.N.getUser(i.data.id)),v=s.a.useBasicFetch(i.data&&D.F.getCustomerSecuritySettings(i.data.customerId)),h=d.P.getMinimumPasswordLength(v.data,null===(e=g.data)||void 0===e?void 0:e.userType,i.data.role);return n().createElement(B.d,{heading:R("heading"),breadcrumbs:[R("breadcrumb")]},n().createElement("div",{className:a?"w-100":"w-50"},i.data?n().createElement(N,{currentUser:i.data,onChangeEmail:function(e,a){s.a.fetch(r,y.N.changeEmail(e.email,(function(){f.k.logUserAction({id:i.data.id,oldEmail:i.data.email,newEmail:e.email},{actionType:p.UserAction.VerifyEmail,entity:p.EntityType.User,location:p.LocationContext.Settings,workflowPhase:p.WorkflowPhase.Start}),t.success(R("changeEmailRequestSuccess",{email:e.email,escapeText:!0}))}),(function(){t.error(R("changeEmailRequestError"))}),a))}}):n().createElement(z,null)),n().createElement("hr",null),n().createElement("div",{className:a?"w-100":"w-50"},v.data&&n().createElement(M,{onChangePassword:function(e,a,n){s.a.fetch(r,y.N.changePassword(e,(function(){f.k.logUserAction({id:i.data.id,oldPassword:e.currentPassword,newPassword:e.newPassword},{actionType:p.UserAction.ChangePassword,entity:p.EntityType.User,location:p.LocationContext.Settings,workflowPhase:p.WorkflowPhase.Complete}),t.success(R("changePasswordSuccess")),n()}),(function(e){var r=e.responseJSON;"user.password-too-short"===r.errorCode?t.error(R("changePasswordRequirementsError")):"user.invalid-password"===r.errorCode?t.error(R("changePasswordInvalid")):"user.same-password"===r.errorCode?t.error("changePasswordSame"):"user.locked-out"===r.errorCode?t.error("changePasswordLockedOut"):t.error(R("changePasswordError"))}),a))},minPasswordLength:h})))}},39872:(e,r,t)=>{t.d(r,{N:()=>f});var a,n,o=t(97395),s=t(99940),i=t(54610),c=t(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"}(a||(a={})),function(e){e.TermsGroupBy="terms-group-by"}(n||(n={}));var u=t(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 m(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!==l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var f={getUsers:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,i={query:c.P.buildGetUsersQuery(r,t)};a&&(i.cursor=a);var u="school:users:".concat(e,":").concat(r);return u+=Object.keys(i).map((function(e){return i[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),i),key:u,success:n,error:s}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},bulkRemoveUsers:function(e,r,t,a){var n,o=["school:users","search:users","search:aggregation"];return(null===(n=e.userIds)||void 0===n?void 0:n.length)&&e.userIds.forEach((function(e){return o.push("school:users:".concat(e))})),{url:"{gateway}/v1/users/delete",key:"remove:school:users",invalidationKeys:o,type:s.k.POST,data:e,success:r,error:t,always:a}},createUsers:function(e,r,t,a,n){return{url:"{gateway}/v1/users",key:"create:users",data:e,type:s.k.POST,invalidationKeys:["school:users","user:count"],success:t,error:a,always:n,normalize:!1}},updateUser:function(e,r,t,a,n){var o=["school:users:".concat(e.userId)];return r.toString()===e.userId.toString()&&o.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:s.k.PUT,data:e,invalidationKeys:["search:aggregation"],success:t,error:a,always:n}},searchUsers:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,i=c.P.buildSearchParams(e,r,t);a&&(i.cursor=a);var u="search:users:".concat(a);return u+=Object.keys(i).sort().map((function(e){return i[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/users",i),key:u,success:n,error:s}},getSearchUserIds:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=c.P.buildSearchParams(e,r,t),i="search:user:ids";return i+=Object.keys(s).sort().map((function(e){return s[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/user/ids",s),key:i,normalize:!1,success:a,error:n}},getSearchAggregation:function(e){var r=e.userId,t=e.customerId,o=e.userType,i=e.queryParams,l=void 0===i?{}:i,m=e.userIds,d=e.field,f=c.P.buildSearchFiltersObject(t,o,l),p="search:aggregation:".concat(r,":").concat(t,":").concat(d,":");p+=Object.keys(f).sort().map((function(e){return f[e]})).join(":"),p+=":"+m.join(":");var y={indices:["user"],searchType:a.User,isLearner:!1,type:n.TermsGroupBy,userId:r.toString(),customerId:t.toString(),data:{field:d},idFilters:m,filters:f};return{url:"{gateway}/v1/search/aggregation",type:s.k.POST,key:p,data:y,normalize:!1,formatData:function(e){var r=e.termCount;return d!==u.q.Status?r:Object.keys(r).reduce((function(e,t){return e[t.charAt(0).toUpperCase()+t.slice(1)]=r[t],e}),{})}}},bulkToggleActivation:function(e,r,t,a,n){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:s.k.PUT,data:e,success:t,error:a,always:n,invalidationKeys:["school:users:".concat(e.customerId,":").concat(r)].concat((o=e.users.map((function(e){return"school:users:".concat(e.userId)})),function(e){if(Array.isArray(e))return d(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,r){if(e){if("string"==typeof e)return d(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,r):void 0}}(o)||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 o},bulkValidate:function(e,r,t,a,n){return{url:"{gateway}/v1/users/validate",type:s.k.POST,key:"validate:users",data:e,success:t,error:a,always:n,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,r,t,a){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:s.k.PUT,invalidationKeys:["currentuser","school:users:".concat(r)],data:{fileId:e,fileIdType:i.z9.ImageAPIv2},success:t,error:a}},deleteAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:s.k.DELETE,updateState:{keys:["school:users:".concat(r),"currentuser"],updateData:function(e){var t,a=e["school:users:".concat(r)],n=e.currentuser;return a.avatar=null,n.avatar=null,m(t={},"school:users:".concat(r),a),m(t,"currentuser",n),t}},success:t,error:a}},changeEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:s.k.PUT,data:{email:e},success:r,error:t,always:a}},changePassword:function(e,r,t,a){return{url:"{gateway}/v1/users/me/password",key:"change:password",type:s.k.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:r,error:t,always:a}},changeUserPassword:function(e,r,t,a,n,o,i){return{url:"{gateway}/v1/users/admin/change-password",key:"change:password:".concat(r,":").concat(e),type:s.k.PUT,data:{userId:e,newPassword:t,changeOnNextLogin:a},success:n,error:o,always:i}},resendActivationEmail:function(e,r,t){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:s.k.POST,data:{userId:e},success:r,error:t}},sendPasswordResetEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/account-reminder",key:"send:password:reset:email",type:s.k.POST,data:{userIds:[e],customerId:r},success:t,error:a}},resendVerificationEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:s.k.POST,data:{userId:e,customerId:r},success:t,error:a}},exportList:function(e,r,t,a){return{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users/report"),{userType:r}),key:"export:users:".concat(r),type:s.k.GET,formatData:function(e){return"data:text/csv;charset=utf-8,".concat(e)},success:t,error:a,invalidationKeys:["export:users:".concat(r)],normalize:!1}},userCount:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=c.P.buildSearchParams(e,r,t),n="search:user:count";return n+=Object.keys(a).sort().map((function(e){return a[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/user/count",a),key:n,normalize:!1}},authenticationMethods:function(e){return{url:o._.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,r){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e,":update"),type:s.k.POST,invalidationKeys:"sso:year:group:mappings:".concat(e),data:r}},joinRequests:function(){return{url:"{gateway}/v1/customers/join-requests?status=pending",key:"join:requests",normalize:!1}},resolveJoinRequest:function(e,r){return{url:"{gateway}/v1/customers/join-requests/".concat(e),key:"resolve:join:request",type:s.k.PUT,data:{status:r},normalize:!1,invalidationKeys:["join:requests"]}}}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 8323-
|
|
1
|
+
/*! For license information please see 8323-fa67115c10-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8323],{58703:(e,t,r)=>{r.d(t,{N:()=>U,d:()=>M});var n=r(1024),a=r.n(n),o=r(81886),i=r(2948),l=r(23481),c=r(79352),u=r(92583),s=r(76881),d=r(89476),p=r(38143),f=r(99910),m=r(56050),h=r(36848),v=r(83345),y=r(96728),b=r(24453),g=r(12458);function k(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 w="userManager.userWizardHeader";function A(e){var t,r,n=(t=(0,i.D)(p.g.BULK_USER_ACTIONS),r=1,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,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(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.")}())[0],l=a().useContext(y.e),c=l.disableNext,u=l.onClickConfirm;return b.O.getCurrentContext().appLink.action===e.appLinks.bulkActionsStatus.complete.action?a().createElement(h.F,{className:"btn btn-dark ".concat(c?"disabled":""),appLink:e.appLinks.userManager,disabled:c,onClick:e.onFinish},a().createElement(v.x,{namespace:w,phrase:"finish"})):"confirmation"===e.currentStep?a().createElement(f.Button,{className:c?"disabled":"",variant:"dark",onClick:function(){g.I.onClickNext(n,e.currentStep),u()},disabled:c},a().createElement(v.x,{namespace:w,phrase:"confirm"})):"status"===e.currentStep?a().createElement(a().Fragment,null):a().createElement(h.F,{className:"btn btn-dark ".concat(c?"disabled":""),appLink:function(){switch(e.currentStep){case"review-accounts":return e.appLinks.bulkActionsSelectAction;case"select-action":return function(){if(!(null==n?void 0:n.action))return null;switch(n.action){case"delete":return e.appLinks.bulkActionsActionDetails.delete;case"activation":return e.appLinks.bulkActionsActionDetails.activation;case"yearGroupRollover":return e.appLinks.bulkActionsActionDetails.yearGroupRollover;case"changeYearGroup":return e.appLinks.bulkActionsActionDetails.changeYearGroup;case"addToClassroom":return e.appLinks.bulkActionsActionDetails.addToClassroom;case"resetPassword":return e.appLinks.bulkActionsActionDetails.resetPassword;case"resetEmail":return e.appLinks.bulkActionsConfirmation.resetEmail}o.Q.ErrorHelper.throw(new m.H("Missing switch statement case for ".concat(n.action," in BulkUserActionsContinueButton.tsx")))}();case"action-details":return e.appLinks.bulkActionsConfirmation[null==n?void 0:n.subAction];default:return null}}(),onClick:function(){return g.I.onClickNext(n,e.currentStep)},disabled:c},a().createElement(v.x,{namespace:w,phrase:"next"}))}var E=r(49985),S=r(65858),L=r(17291);function x(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 C="userManager.userWizardBackButtons";function I(e){var t,r,n=(t=(0,i.D)(p.g.BULK_USER_ACTIONS),r=1,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,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return x(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)?x(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.")}())[0];return"status"===e.currentStep?a().createElement(a().Fragment,null):a().createElement(h.F,{className:"btn btn-link mr-2",appLink:function(){switch(e.currentStep){case"review-accounts":return e.appLinks.userManager;case"select-action":return e.appLinks.bulkActionsReviewAccounts;case"action-details":return e.appLinks.bulkActionsSelectAction;case"confirmation":return function(){if(!(null==n?void 0:n.action))return null;switch(n.action){case"delete":return e.appLinks.bulkActionsActionDetails.delete;case"activation":return e.appLinks.bulkActionsActionDetails.activation;case"yearGroupRollover":return e.appLinks.bulkActionsActionDetails.yearGroupRollover;case"changeYearGroup":return e.appLinks.bulkActionsActionDetails.changeYearGroup;case"addToClassroom":return e.appLinks.bulkActionsActionDetails.addToClassroom;case"resetPassword":return e.appLinks.bulkActionsActionDetails.resetPassword;case"resetEmail":return e.appLinks.bulkActionsConfirmation.resetEmail}}()}}()},a().createElement(v.x,{namespace:C,phrase:"review-accounts"===e.currentStep?"cancel":"back"}))}function N(){return a().createElement(a().Fragment,null,a().createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.75rem",width:"15rem"}}),a().createElement("div",{className:"partial-loading-background mb-3",style:{height:"1.5rem",width:"12rem"}}),a().createElement("div",{className:"partial-loading-background mb-2",style:{height:"8em",width:"40rem"}}))}const T={wizardContent:"UBwkq"};function j(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 O="userManager.bulkUserActionsWizardLayout",U="bulk-user-actions-wizard";function M(e){var t,r,n,f=(r=(0,i.D)(p.g.BULK_USER_ACTIONS),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return j(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)?j(e,t):void 0}}(r,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.")}()),m=f[0],h=f[1],v=(0,d.f)();function b(){var t,r;if(m){var n={step:e.currentStep,userCount:null!==(r=null===(t=null==m?void 0:m.userIdMap)||void 0===t?void 0:t.size)&&void 0!==r?r:0},a=g.I.getAnalyticsActionName(m);a&&(n.action=a),E.k.logUserAction(n,{workflowPhase:S.WorkflowPhase.Discard,actionType:S.UserAction.BulkAction,location:S.LocationContext.BulkUserActionsWizard,entity:S.EntityType.User})}}a().useEffect((function(){var t;return(null===(t=null==m?void 0:m.userIdMap)||void 0===t?void 0:t.size)||e.preventRedirect?e.preventNavLock?void 0:(v.lock({id:U,title:l.T.getPhrase(O,"navLockTitle"),text:l.T.getPhrase(O,"navLockBody"),appLinkWhitelist:u.b.getWizardAppLinks(e.appLinks),onConfirmUnlock:function(){b(),h({})}}),function(){v.unlock(U)}):(o.Q.AppLinkHelper.trigger(e.appLinks.userManager,{replace:!0}),void b())}),[]);var k=e.loaded&&!!(null===(t=e.users)||void 0===t?void 0:t.length);return a().createElement(y.D,null,a().createElement("div",{className:"px-3"},a().createElement(L.C,{title:l.T.getPhrase(O,"bulkActions"),currentStep:e.currentStep,hideHeader:e.hideHeader,loaded:e.loaded,continueButton:a().createElement(A,{currentStep:e.currentStep,appLinks:e.appLinks,onFinish:function(){h({})}}),backButton:a().createElement(I,{currentStep:e.currentStep,appLinks:e.appLinks}),breadcrumbs:[{name:l.T.getPhrase(O,"settingsBreadcrumb"),appLink:e.appLinks.settings},{name:l.T.getPhrase(O,e.userType===s.Y.Learner?"studentManager":"staffManager"),appLink:e.appLinks.userManager},{name:l.T.getPhrase(O,"bulkActions"),active:!0}]}),a().createElement("div",{className:"row no-gutters"},a().createElement("div",{className:"col-3"},a().createElement(c.a,{steps:u.b.getSteps(e.userType,e.userCount,e.appLinks,null==m?void 0:m.action),currentStep:e.currentStep,disableAppLinks:!k||e.disableAppLinks})),a().createElement("div",{className:"col-9 ".concat(T.wizardContent)},k?e.children:a().createElement(N,null)))))}},12458:(e,t,r)=>{r.d(t,{I:()=>c});var n=["userIdMap","params","action","subAction","allUsersSelected","allUsersCount","scrollContainer"],a=r(49985),o=r(65858),i=r(1048),l=r(58739),c={getAnalyticsActionName:function(e){if(!(null==e?void 0:e.action))return null;switch(e.action){case"activation":return(null==e?void 0:e.subAction)?"deactivate"===e.subAction?"Deactivate":"Reactivate":"Deactivate / reactivate";case"addToClassroom":return"Add to classroom";case"changeYearGroup":return"Change year group";case"delete":return"Delete user";case"resetEmail":return"Send password reset email";case"resetPassword":return"Reset password";case"yearGroupRollover":return"Annual year group rollover";default:return null}},onClickNext:function(e,t){if(e){var r={userCount:e.userIdMap.size,step:t},l=c.getAnalyticsActionName(e);l&&(r.action=l);var u=i.t.omit(e,n);Object.keys(u).length&&(r.actionData=u),a.k.logUserAction(r,{location:o.LocationContext.BulkUserActionsWizard,workflowPhase:o.WorkflowPhase.Next,actionType:o.UserAction.BulkAction,entity:o.EntityType.User})}},logYearGroupRolloverEntry:function(e){a.k.logUserAction({action:c.getAnalyticsActionName({action:"yearGroupRollover"})},{entity:o.EntityType.User,actionType:o.UserAction.BulkAction,workflowPhase:o.WorkflowPhase.Start,location:e})},getJobStatus:function(e){switch(e){case l.K.Completed:return"Success";case l.K.CompletedWithError:return"Completed with some errors";case l.K.Failed:return"Failed";default:return null}}}},49935:(e,t,r)=>{r.d(t,{Oo:()=>d,b2:()=>p});var n=r(1024),a=r(36848),o=r(5859),i=r(86764),l=r(3747),c=r(83914),u=r(58130),s=function(e){var t=e.breadcrumb,r=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?n.createElement("strong",null,r):n.createElement(a.F,{appLink:o},l&&n.createElement(c.x,{svgName:u.vn.ChevronLeft,size:c.S.Small}),n.createElement("span",{className:l?"ml-2":""},r)))},d=function(e){var t=e.breadcrumbs,r=(0,l.a)(i.r.XS),a=null==t?void 0:t.length;return!a||r&&a<2?n.createElement(n.Fragment,null):r?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(s,{breadcrumb:t[a-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(s,{key:t,breadcrumb:e})}))))},p=n.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return(0,l.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},17291:(e,t,r)=>{r.d(t,{C:()=>l});var n=r(1024),a=r.n(n),o=r(96728),i=r(49935);function l(e){var t=a().useContext(o.e).showButtons;return a().createElement("div",{className:"d-flex justify-content-between"},e.hideHeader?a().createElement("div",null):a().createElement("div",null,a().createElement("h1",{className:"h2"},e.title),e.breadcrumbs&&a().createElement("div",{className:"pb-3"},a().createElement(i.Oo,{breadcrumbs:e.breadcrumbs}))),e.loaded&&t&&a().createElement("div",{className:"d-flex align-items-center"},e.backButton,e.continueButton))}},79352:(e,t,r)=>{r.d(t,{a:()=>u});var n=r(1024),a=r.n(n),o=r(23481),i=r(36848),l=o.T.encloseNamespace("shared.wizardStepList");function c(e){var t="",r="";e.isSelected&&(t+=" font-weight-500"),(!e.isSelected&&!e.isCompleted||e.disabled)&&(t+=" text-muted",r+=" text-muted");var n=a().createElement(a().Fragment,null,a().createElement("div",{className:t},e.text),e.subText&&a().createElement("div",{className:"ml-2 pl-1 pt-1 ".concat(r)},e.subText)),o="".concat(e.isSelected?"bg-light-blue":""," px-2 py-1 mb-1 rounded d-inline-block");return a().createElement("li",null,e.isCompleted&&e.appLink?a().createElement(i.F,{appLink:e.appLink,className:o},n):a().createElement("div",{className:o},n))}function u(e){var t=e.steps.reduce((function(t,r,n){return r.id===e.currentStep&&(t=n+1),t}),1);return a().createElement(a().Fragment,null,a().createElement("h2",{className:"h4"},l("stepNumber",{currentStep:t,totalSteps:e.steps.length})),a().createElement("ol",{className:"list-unstyled"},e.steps.map((function(r,n){var o=r.id===e.currentStep,i=t>n+1;return a().createElement(c,{key:r.id,text:r.text,subText:r.subText,isSelected:o,isCompleted:i,appLink:!e.disableAppLinks&&r.appLink,disabled:r.disabled})}))))}},58739:(e,t,r)=>{var n;r.d(t,{K:()=>n}),function(e){e[e.Submitted=0]="Submitted",e[e.Queued=1]="Queued",e[e.Pending=2]="Pending",e[e.InProgress=3]="InProgress",e[e.Completed=4]="Completed",e[e.CompletedWithError=5]="CompletedWithError",e[e.Failed=6]="Failed"}(n||(n={}))},63936:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1024),a=r(50242),o=r(79014),i=r(45719),l=r(8843);function c(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 u(e,t,r,u,s,d){var p,f,m=(p=(0,n.useState)(0),f=2,function(e){if(Array.isArray(e))return e}(p)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(p,f)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(p,f)||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.")}()),h=m[0],v=m[1],y=t,b=(0,i.P)((function(t){if(!e)return null;var r=e(t);return r?r.key:null}),u,s);return(0,l.M)({fetchNextPage:function(){if(t&&e&&b)return v((function(e){return e+1})),y(b.nextCursor)},hasMore:!!(null==b?void 0:b.nextCursor),isFetching:null==b?void 0:b.isFetching,scrollContainer:d}),(0,n.useEffect)((function(){b&&b.shouldInitialFetch&&t&&(y(),v((function(e){return e+1})))}),[null==b?void 0:b.shouldInitialFetch,t]),(0,n.useEffect)((function(){var e,t;if((null==b?void 0:b.statusCode)&&o.q.isFunction(r)){var n=+(null===(t=null===(e=b.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));n!==a.k.ClientError&&n!==a.k.ServerError||r(h,b.statusCode)}}),[null==b?void 0:b.statusCode]),{items:null==b?void 0:b.items,hasMore:!!(null==b?void 0:b.nextCursor),nextCursor:null==b?void 0:b.nextCursor,isFetching:null==b?void 0:b.isFetching,totalItems:null==b?void 0:b.totalItems}}},8843:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(1024),a=r(79014),o=400;function i(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-o)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-o)return;e.fetchNextPage()}};(0,n.useEffect)((function(){var r=a.q.throttle(t,200),n=e.scrollContainer||window;return e.hasMore&&n.addEventListener("scroll",r),function(){return n.removeEventListener("scroll",r)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},5859:(e,t,r)=>{function n(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}r.d(t,{u:()=>o});var a={numItems:5,minWidth:50,maxWidth:100},o={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},a),t);return(e=Array(r.numItems),function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(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)?n(e,t):void 0}}(e)||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.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth),"px")}}))}}},88323:(e,t,r)=>{r.d(t,{h:()=>S});var n=r(20354),a=r(31949),o=r(1024),i=r.n(o),l=r(58566),c=r(81886),u=r(2948),s=r(63936),d=r(89476),p=r(58703),f=r(38143),m=r(89422),h=r(65858),v=r(69217),y=r(49985);function b(e){return b="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},b(e)}function g(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),l=new C(a||[]);return n(i,"_invoke",{value:E(e,r,l)}),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function m(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(I([])));y&&y!==t&&r.call(y,o)&&(h=y);var k=m.prototype=p.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function a(n,o,i,l){var c=s(e[n],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==b(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,i,l)}),(function(e){a("throw",e,i,l)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return a("throw",e,i,l)}))}l(c.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){a(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return{value:void 0,done:!0}}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var l=S(i,r);if(l){if(l===d)continue;return l}}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 c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(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,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var a=s(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function L(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=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 a.next=a}}throw new TypeError(b(e)+" is not iterable")}return f.prototype=m,n(k,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:f,configurable:!0}),f.displayName=c(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},w(A.prototype),c(A.prototype,i,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new A(u(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"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=I,C.prototype={constructor:C,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 a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):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),d},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),d}},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 a=n.arg;x(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,t)||w(e,t)||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.")}()}function w(e,t){if(e){if("string"==typeof e)return A(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)?A(e,t):void 0}}function A(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 E=r(18087),S=function(e){var t,r=(0,E.Y)(e);return function(e){var t,r,a,o=g().mark(U),b=e.appLinks,E=e.getUsersRequest,S=k((0,u.D)(f.g.BULK_USER_ACTIONS),2),L=S[0],x=S[1],C=(0,l.useDispatch)(),I=(0,d.f)(),N=k(i().useState(!0),2),T=N[0],j=N[1],O=i().useRef({keys:null===(t=null==L?void 0:L.userIdMap)||void 0===t?void 0:t.keys(),pages:{}});function U(e,t){var r;return g().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t-- >0)){n.next=8;break}if(r=e.next().value){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,r;case 6:n.next=0;break;case 8:case"end":return n.stop()}}),o)}function M(e){var t;if(!(null===(t=null==L?void 0:L.userIdMap)||void 0===t?void 0:t.size)||!O.current.keys)return null;if(O.current.pages[e]){var r=O.current.pages[e];return r.length?E(r):null}var n,a=function(e){if(Array.isArray(e))return A(e)}(n=U(O.current.keys,m.K.USER_PAGE_LIMIT))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||w(n)||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.")}();return O.current.pages[e]=a,a.length?E(a):(j(!1),null)}function P(e){var t=M(e);if(t)return n.a.getFetch(C)(t)}var F=(0,s.K)(M,P,null,(function(e){return e}),(function(e){var t;return null===(t=e[e.length-1])||void 0===t?void 0:t.id}),null==L?void 0:L.scrollContainer),_=F.items,B=F.isFetching,D=F.nextCursor,G=(0,v.N)();function R(){var e;return null===(e=null==L?void 0:L.userIdMap)||void 0===e?void 0:e.size}var z=null!==(r=null==_?void 0:_.filter((function(e){return L.userIdMap.has(e.id.toString())})))&&void 0!==r?r:[];return i().useEffect((function(){(null==L?void 0:L.userIdMap)&&!L.userIdMap.size&&setTimeout((function(){I.unlock(p.N),c.Q.AppLinkHelper.trigger(b.userManager,{replace:!0})}),0)}),[null===(a=null==L?void 0:L.userIdMap)||void 0===a?void 0:a.size,B]),{users:z,isFetching:B,removeUser:function(e){L.userIdMap.delete(e.id.toString()),x("allUsersSelected",!1),G(),y.k.logUserAction({id:e.id.toString(),userCount:R()},{location:h.LocationContext.BulkUserActionsWizard,entity:h.EntityType.User,actionType:h.UserAction.Remove})},hasMore:T,fetchNext:function(){return P(D)},count:R(),setAllUserIds:function(e){var t=new Map;e.forEach((function(e){t.set(e,!0)})),x({userIdMap:t,allUsersSelected:!0,allUsersCount:t.size}),O.current.keys=t.keys(),G()}}}({customerId:null===(t=n.a.useBasicFetch(a.N.currentUser()).data)||void 0===t?void 0:t.customerId,userType:e,appLinks:r,getUsersRequest:a.N.usersById})}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 8681-
|
|
1
|
+
/*! For license information please see 8681-eb6dfae2ab-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8681],{17464:(e,t,r)=>{r.d(t,{c:()=>a});var n=r(1024),o=r(7121);function a(e){var t="d-flex align-items-center badge-list ".concat(o.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),n.createElement("div",{className:t},e.children)}},84678:(e,t,r)=>{r.d(t,{L:()=>i});var n=r(1024),o=r.n(n),a=r(76246);function i(e){return o().createElement(a.C,{type:a.g.Restriction,data:{restrictions:e.restrictions,yearGroups:e.yearGroups},inline:!0})}},21491:(e,t,r)=>{r.d(t,{I:()=>i});var n=r(99940),o=r(97395),a=r(62803),i={getRestrictions:function(e){return{key:"restrictions:".concat(e),url:o._.urlBuilder("{gateway}/v1/objects/restrictions",{id:e})}},addRestriction:function(e){return{type:n.k.POST,key:"restrictions:".concat(e.objectTypeId,":").concat(e.objectId,":add"),url:"{gateway}/v1/restrictions",data:[e],invalidationKeys:["restrictions"]}},deleteRestrictions:function(e){return{url:o._.urlBuilder("{gateway}/v1/restrictions",{objectId:e}),key:"restrictions:delete",type:n.k.DELETE,invalidationKeys:["restrictions"]}},getRestrictedObjects:function(e,t){var r={type:e,"query.video":a.v.VIDEO_COLLECTION,"query.interactive":a.v.INTERACTIVE,"query.clip":a.v.CLIP_COLLECTION};return t&&(r.cursor=t),{url:o._.urlBuilder("{gateway}/v1/restrictions/objects",r),key:"restrictions:objects:".concat(e.sort().join(","),":").concat(t)}},approveAll:function(){return{url:"{gateway}/v1/library-reviews/restrictions",key:"restrictions:approve:all",type:n.k.DELETE}}}},48681:(e,t,r)=>{r.r(t),r.d(t,{ManageAccessPopupView:()=>K});var n=r(1024),o=r.n(n),a=r(20354),i=r(23481),c=r(83345),u=r(9111),l=r(11607),s=r(31949),f=r(1666),p=r(13876),d=r(5345),v=r(21491),h=r(58130),y=r(28329),m=r(49439),g=r(83914),b=r(36532),E=r(76246);const w={firstItem:"RcBIB",lastItem:"_YfTU",opacity100:"QV8wx",opacity50:"WoP6Y",yearGroupButton:"DOT14"};var S="shared.verticalYearGroupSelector";function x(e){return e.isDisabled?o().createElement("div",{className:"text-muted"},o().createElement(c.x,{namespace:S,phrase:"isDisabled"})," ",o().createElement("div",{className:"d-inline ".concat(w.opacity50)},o().createElement(E.C,{data:e.contentRating,type:E.g.Rating,inline:!0}))," ",o().createElement(c.x,{namespace:S,phrase:"ratingRestricted"})):e.isSelected?o().createElement(c.x,{namespace:S,phrase:"isSelected"}):o().createElement(c.x,{namespace:S,phrase:"canAccess"})}function I(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 k=i.T.encloseNamespace("shared.verticalYearGroupSelector");function N(e){var t,r,n=(t=(0,m.X)({delay: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,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return I(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)?I(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.")}()),a=n[0],i=n[1];return o().useEffect((function(){e.isDisabled||e.onHover(i)}),[i]),o().createElement("div",{className:"row align-items-center mx-auto"},o().createElement(b.u,{title:e.isDisabled?k("tooltip"):"",placement:"left",spanHack:!0},o().createElement(l.L,{ref:a,onClick:e.onClick,className:"btn px-2 py-1 border ".concat(w.yearGroupButton," ").concat(e.getButtonClass())},o().createElement(g.x,{size:g.S.Standard,svgName:e.getButtonSvg()}))),o().createElement("div",{className:"col-3"},e.item.name),o().createElement("div",{className:"col"},o().createElement(x,{contentRating:e.contentRating,isDisabled:e.isDisabled,isSelected:e.isSelected})))}function L(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 j=i.T.encloseNamespace("shared.verticalYearGroupSelector");function O(e){var t,r,n=(t=o().useState(),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,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return L(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)?L(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.")}()),a=n[0],i=n[1],c=(0,y.N)(a,20),u={name:j("staff"),value:Number.MAX_SAFE_INTEGER};function l(e,t){i(t?e:void 0)}function s(e){return!!c&&e<=c}function f(t){return!!e.selection&&t.value<=e.selection.value}function p(t){var r,n,o=null!==(r=e.yearGroups[t])&&void 0!==r?r:u;(null===(n=e.selection)||void 0===n?void 0:n.value)===o.value&&(o=t?e.yearGroups[t-1]:void 0),o&&d(o)&&(o=void 0),e.onSelect(o)}function d(t){return"rating"in t&&t.rating.value<e.contentRating.value}function v(t,r){var n=s(t),o=f(r),a=d(r),i=0===t,c=t===e.yearGroups.length,u="rounded-0 border-bottom-0";return!n||a||o||(u+=" hovering"),i&&(u="rounded-top border-bottom-0 ".concat(w.firstItem)),c&&(u="rounded-bottom ".concat(w.lastItem)),"".concat(u,o||a?" btn-dark":" btn-outline-dark")}function m(e,t){var r=s(e),n=f(t),o=d(t);return r||n||o?h.vn.Lock:h.vn.VisibleOn}return o().createElement("div",{className:"pb-2"},e.yearGroups.map((function(t,r){return o().createElement(N,{key:t.id,item:t,contentRating:e.contentRating,isActive:s(r),isSelected:f(t),onClick:function(){return p(r)},onHover:function(e){return l(r,e)},getButtonClass:function(){return v(r,t)},getButtonSvg:function(){return m(r,t)},isDisabled:d(t)})})),o().createElement(N,{item:u,contentRating:e.contentRating,isActive:s(e.yearGroups.length),isSelected:f(u),onClick:function(){return p(e.yearGroups.length)},onHover:function(t){return l(e.yearGroups.length,t)},getButtonClass:function(){return v(e.yearGroups.length,u)},getButtonSvg:function(){return m(e.yearGroups.length,u)},isDisabled:!1}))}var A=r(69883),G=r(4594),T=r(11025),C=r(60139),_=r(97291),R=r(14070),P=r(84678),B=r(17464),F=r(36848);function D(e){return D="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},D(e)}function M(){M=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",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f={};function p(){}function d(){}function v(){}var h={};u(h,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(N([])));m&&m!==t&&r.call(m,a)&&(h=m);var g=v.prototype=p.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,a,i,c){var u=s(e[n],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==D(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(f).then((function(e){l.value=e,i(l)}),(function(e){return o("throw",e,i,c)}))}c(u.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 w(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 c=S(i,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(e,t,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 S(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,S(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=s(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 x(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function N(e){if(e||""===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}}throw new TypeError(D(e)+" is not iterable")}return d.prototype=v,n(g,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:d,configurable:!0}),d.displayName=u(v,c,"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,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(E.prototype),u(E.prototype,i,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new E(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(g),u(g,c,"Generator"),u(g,a,(function(){return this})),u(g,"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=N,k.prototype={constructor:k,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(I),!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 c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)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),I(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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(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)?V(e,t):void 0}}(e,t)||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.")}()}function V(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 Y=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function c(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}u((n=n.apply(e,t||[])).next())}))},H="shared.manageAccessPopup",X=i.T.encloseNamespace(H),q={application:_.O.SETTINGS,action:R.e.Settings.CONTENT_PERMISSIONS};function K(e){var t,r,n=a.a.useGetFetchAsync(),i=U(o().useState(),2),h=i[0],y=i[1],m=U(o().useState(),2),g=m[0],b=m[1],E=U(o().useState(!1),2),w=E[0],S=E[1],x=(0,A.Z)(),I=a.a.useBasicFetch(s.N.currentUser()),k=a.a.useBasicFetch((null===(t=I.data)||void 0===t?void 0:t.isAuthenticated)&&f.h.yearGroups(I.data.customerId)),N=T.M.getVideoRequest(e.objectId,e.objectTypeId),L=a.a.useBasicFetch(N),j=a.a.useBasicFetch(v.I.getRestrictions(e.objectId));o().useEffect((function(){var e;if(j.hasCompleted&&k.hasCompleted&&L.hasCompleted){var t=null===(e=j.data)||void 0===e?void 0:e.find((function(e){return e.type===d.c.User}));if(t){var r=k.data.find((function(e){return e.value===t.yearGroup}));if(r)return b(r),void y(r);var n={name:null,value:Number.MAX_SAFE_INTEGER};b(n),y(n)}}}),[j.data,k.data,L.data]);var D=j.hasCompleted&&L.hasCompleted&&(!(null===(r=I.data)||void 0===r?void 0:r.isAuthenticated)||k.hasCompleted),V=D&&T.M.getRating(L.data),K=D&&k.data.filter((function(e){return e.rating.value<=V.value})),$=D&&k.data.filter((function(e){return!K.includes(e)&&e.value<=(null==g?void 0:g.value)}));return o().createElement(u.G,{title:X("title"),closePopup:e.closePopup,showLoadingSpinner:!D},D&&o().createElement(o().Fragment,null,o().createElement("div",{className:"mb-3"},o().createElement("p",null,o().createElement(F.F,{appLink:q,className:"info-link",onClick:e.closePopup},o().createElement(c.x,{namespace:H,phrase:"infoStart"})),o().createElement(c.x,{namespace:H,phrase:"infoEnd"})),o().createElement("p",null,o().createElement(c.x,{namespace:H,phrase:"prompt"})),o().createElement(O,{selection:g,yearGroups:k.data,contentRating:V,onSelect:function(e){b(e)}}),g&&o().createElement(B.c,{className:"pt-1 mb-2"},o().createElement(P.L,{restrictions:{value:[{type:d.c.User,yearGroup:g.value===Number.MAX_SAFE_INTEGER?null:g.value}]},yearGroups:k.data})),!!g&&o().createElement(l.L,{onClick:function(){b(void 0)},className:"d-inline info-link"},o().createElement(c.x,{namespace:H,phrase:"clear",options:{smartCount:null==$?void 0:$.length}}))),o().createElement(p.u,null,o().createElement(p.u.Cancel,{text:X("cancel"),onClick:e.closePopup}),o().createElement(p.u.Submit,{text:X("update"),onClick:function(){g?function(){Y(this,void 0,void 0,M().mark((function t(){var r,o;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S(!0),(r=g.value)===Number.MAX_SAFE_INTEGER&&(r=null),o={targetId:I.data.customerId,targetTypeId:G.E.Customer,objectId:L.data.id,objectTypeId:L.data.typeId,ownerId:I.data.id,type:d.c.User,yearGroup:r},t.prev=4,t.next=7,n(v.I.addRestriction(o));case 7:return t.next=9,n(N);case 9:x.success({heading:C.R6.Success,type:C.NK.Success,message:X("success",{name:L.data.name}),appLink:{application:_.O.SETTINGS,action:R.e.Settings.VIDEO_RESTRICTIONS},appLinkText:X("successAppLink"),appLinkClassName:"info-link"}),e.closePopup(),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(4),x.error(X("error"));case 16:S(!1);case 17:case"end":return t.stop()}}),t,null,[[4,13]])})))}():function(){Y(this,void 0,void 0,M().mark((function t(){return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S(!0),t.prev=1,t.next=4,n(v.I.deleteRestrictions(L.data.id));case 4:return t.next=6,n(N);case 6:x.success(X("removedSuccess")),e.closePopup(),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),x.error(X("error"));case 13:S(!0);case 14:case"end":return t.stop()}}),t,null,[[1,10]])})))}()},variant:"dark",showSpinner:w,disabled:(null==h?void 0:h.value)===(null==g?void 0:g.value)}))))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8772],{14919:(e,a,t)=>{t.d(a,{w:()=>m});var r=t(1024),n=t.n(r),c=t(11607),i=t(2786),s=t(64249),l=t(96022),o=t(4594),d=t(9085),u=t(7733);const p={thumbnail:"rqTEq",mask:"OIUOX",metadata:"zNnIi",rating:"Oz2zW",playButtonCircle:"zima4",playButtonIcon:"pE_sD",logo:"GYD9W"};function m(e){var a=e.onClick,t=e.sharedResource,r=function(e){var a,t,r;return"rating"in e?null===(a=e.rating)||void 0===a?void 0:a.code:"_parentVideo"in e?null===(r=null===(t=e._parentVideo)||void 0===t?void 0:t.rating)||void 0===r?void 0:r.code:void 0}(t),m=function(e){switch(e){case"E":return"bg-purple";case"G":return"bg-green";case"PG":return"bg-info";case"M":return"bg-red";case"MA15+":return"bg-pink";case"R18+":return"bg-yellow";default:return""}}(r),g=s.I.getImageUrl(t),E="";return g||(E=(0,d.x)(t.name,u.b)),n().createElement(c.L,{className:"".concat(p.thumbnail," ").concat(E," cursor-pointer"),style:{backgroundImage:g?"url('".concat(g,"')"):""},onClick:a},!!g&&n().createElement("div",{className:p.mask}),n().createElement("div",{className:p.metadata},n().createElement("h1",null,t.typeId===o.E.Video&&n().createElement(l.M,{video:t,analyticsOptions:{},size:"sm"}),t.name),n().createElement("div",{className:"d-flex align-items-center"},!!r&&n().createElement("div",{className:"".concat(p.rating," badge rating-badge d-flex justify-content-center mr-2 ").concat(m)},r))),n().createElement("div",{className:p.playButtonCircle},n().createElement("span",{className:p.playButtonIcon,"aria-hidden":"true"},n().createElement("svg",{width:"18px",height:"22px",viewBox:"0 0 18 22"},n().createElement("g",{transform:"translate(-49.000000, -995.000000)"},n().createElement("g",{transform:"translate(38.000000, 986.000000)"},n().createElement("path",{d:"M11.6666667,10.2471475 L11.6666667,29.7687516 C11.6666667,30.044894 11.8905243,30.2687516 12.1666667,30.2687516 C12.2586483,30.2687516 12.3488474,30.2433786 12.4273395,30.1954244 L28.4039522,20.4346223 C28.6395971,20.2906567 28.7139178,19.9829216 28.5699522,19.7472767 C28.5285771,19.6795534 28.4716755,19.6226518 28.4039522,19.5812767 L12.4273395,9.8204747 C12.1916946,9.67650907 11.8839595,9.75082979 11.7399939,9.98647467 C11.6920397,10.0649668 11.6666667,10.1551659 11.6666667,10.2471475 Z",id:"play"})))))),n().createElement("div",{className:p.logo},n().createElement(i.Yo,null)))}},58772:(e,a,t)=>{t.r(a),t.d(a,{EmbedLoginView:()=>
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8772],{14919:(e,a,t)=>{t.d(a,{w:()=>m});var r=t(1024),n=t.n(r),c=t(11607),i=t(2786),s=t(64249),l=t(96022),o=t(4594),d=t(9085),u=t(7733);const p={thumbnail:"rqTEq",mask:"OIUOX",metadata:"zNnIi",rating:"Oz2zW",playButtonCircle:"zima4",playButtonIcon:"pE_sD",logo:"GYD9W"};function m(e){var a=e.onClick,t=e.sharedResource,r=function(e){var a,t,r;return"rating"in e?null===(a=e.rating)||void 0===a?void 0:a.code:"_parentVideo"in e?null===(r=null===(t=e._parentVideo)||void 0===t?void 0:t.rating)||void 0===r?void 0:r.code:void 0}(t),m=function(e){switch(e){case"E":return"bg-purple";case"G":return"bg-green";case"PG":return"bg-info";case"M":return"bg-red";case"MA15+":return"bg-pink";case"R18+":return"bg-yellow";default:return""}}(r),g=s.I.getImageUrl(t),E="";return g||(E=(0,d.x)(t.name,u.b)),n().createElement(c.L,{className:"".concat(p.thumbnail," ").concat(E," cursor-pointer"),style:{backgroundImage:g?"url('".concat(g,"')"):""},onClick:a},!!g&&n().createElement("div",{className:p.mask}),n().createElement("div",{className:p.metadata},n().createElement("h1",null,t.typeId===o.E.Video&&n().createElement(l.M,{video:t,analyticsOptions:{},size:"sm"}),t.name),n().createElement("div",{className:"d-flex align-items-center"},!!r&&n().createElement("div",{className:"".concat(p.rating," badge rating-badge d-flex justify-content-center mr-2 ").concat(m)},r))),n().createElement("div",{className:p.playButtonCircle},n().createElement("span",{className:p.playButtonIcon,"aria-hidden":"true"},n().createElement("svg",{width:"18px",height:"22px",viewBox:"0 0 18 22"},n().createElement("g",{transform:"translate(-49.000000, -995.000000)"},n().createElement("g",{transform:"translate(38.000000, 986.000000)"},n().createElement("path",{d:"M11.6666667,10.2471475 L11.6666667,29.7687516 C11.6666667,30.044894 11.8905243,30.2687516 12.1666667,30.2687516 C12.2586483,30.2687516 12.3488474,30.2433786 12.4273395,30.1954244 L28.4039522,20.4346223 C28.6395971,20.2906567 28.7139178,19.9829216 28.5699522,19.7472767 C28.5285771,19.6795534 28.4716755,19.6226518 28.4039522,19.5812767 L12.4273395,9.8204747 C12.1916946,9.67650907 11.8839595,9.75082979 11.7399939,9.98647467 C11.6920397,10.0649668 11.6666667,10.1551659 11.6666667,10.2471475 Z",id:"play"})))))),n().createElement("div",{className:p.logo},n().createElement(i.Yo,null)))}},58772:(e,a,t)=>{t.r(a),t.d(a,{EmbedLoginView:()=>b});var r=t(1024),n=t.n(r),c=t(81886),i=t(20354),s=t(97395),l=t(39151),o=t(30439),d=t(62756),u=t(97291),p=t(14070),m=t(6736),g=t(75608),E=t(14919);function b(e){var a=i.a.useBasicFetch(l.L.config()),t=i.a.useBasicFetch(o.o.getShareObject(e.shareId)),r=(0,g.a)(e.shareId);function b(){var e=c.Q.AppLinkHelper.getCurrentAppLink(),a=c.Q.AppLinkHelper.getHref(Object.assign(Object.assign({},e),{params:{a:!0}}));c.Q.LocationUtils.PageLoad(a)}return a.data&&t.data&&r?n().createElement(E.w,{onClick:function(){if(t.data.isPasswordProtected){var r={application:u.O.EMBED,action:p.e.Embed.VIEW_EMBEDDED_RESOURCE,args:[e.shareId],params:c.Q.AppLinkHelper.getCurrentAppLink().params};c.Q.AppLinkHelper.trigger({application:u.O.LAUNCHPAD,action:p.e.Launchpad.PASSWORD_PROTECTED_SHARE_LINK,args:[e.shareId],params:{appLink:r}})}else if(m.b.canUseCookies())m.b.renderSignInPopup({primaryUrl:a.data.primaryUrl,shareId:e.shareId,customerId:e.customerId,isMicrosoftTeams:e.consumerKey===d.A.MicrosoftTeams,onClose:b});else{var n=s._.safeUrlConcat(a.data.primaryUrl,"/share/".concat(e.shareId));window.open(n,"_blank")}},sharedResource:r}):n().createElement(n().Fragment,null)}},75608:(e,a,t)=>{t.d(a,{a:()=>m});var r=t(20354),n=t(4594),c=t(21750),i=t(31949),s=t(1575),l=t(43012),o=t(20768),d=t(59991),u=t(60011),p=t(30439),m=function(e){var a=r.a.useBasicFetch(i.N.currentUser()),t=r.a.useBasicFetch(p.o.getShareObject(e)),m=function(){if(!t.data||!a.data)return null;switch(t.data.objectTypeId){case n.E.Video:return s.R.publicVideo(t.data.objectId,e);case n.E.Clip:return l.e.publicClip(t.data.objectId,e);case n.E.Interactive:return o.b.publicInteractiveMetadata(t.data.objectId,e);case n.E.Playlist:return d.C.getSharedPlaylist(t.data.objectId,e);case n.E.Subject:return c.x.classification(t.data.objectId,a.data.id);case n.E.Series:return u.J.sharedSeries(t.data.objectId,e)}}();return r.a.useBasicFetch(m).data}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9016],{9826:(e,t,n)=>{n.d(t,{e:()=>d});var r=n(1024),a=n(79014),c=n(10038),i=n(81514),o=n(86764);const u={stickyFooter:"rIUL4",nonStickyFooter:"PuC_F"};function l(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 s=50;function m(e){var t="justify-content-".concat(e.justify);return r.createElement("div",{className:"py-3 bg-white ".concat(u.stickyFooter)},r.createElement("div",{className:"w-75 mx-auto d-flex ".concat(t)},e.children))}function f(e){var t=(0,i.V)(),n=t===o.r.SM||t===o.r.XS?"w-100":"w-75",a="justify-content-".concat(e.justify);return r.createElement("div",{className:"".concat(n," ").concat(a," ").concat(u.nonStickyFooter," d-flex px-3")},e.children)}function d(e){var t,n,i=function(){return window.innerHeight+window.scrollY>=document.body.offsetHeight-s},o=(t=r.useState(!1),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,c,i,o=[],u=!0,l=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=c.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 l(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)?l(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.")}()),u=o[0],d=o[1];r.useEffect((function(){return d(!i())}),[]);var p=a.q.throttle((function(){var e=!i();!u||e?!u&&e&&d(!0):d(!1)}),100);return r.useEffect((function(){return window.addEventListener("scroll",p),function(){return window.removeEventListener("scroll",p)}}),[u,d]),(0,c.H)(p,p,[u,d]),u?r.createElement(m,Object.assign({},e),e.children):r.createElement(f,Object.assign({},e),e.children)}d.defaultProps={justify:"between"}},49935:(e,t,n)=>{n.d(t,{Oo:()=>m,b2:()=>f});var r=n(1024),a=n(36848),c=n(5859),i=n(86764),o=n(3747),u=n(83914),l=n(58130),s=function(e){var t=e.breadcrumb,n=t.name,c=t.appLink,i=t.active,o=e.withBackIcon;return r.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?r.createElement("strong",null,n):r.createElement(a.F,{appLink:c},o&&r.createElement(u.x,{svgName:l.vn.ChevronLeft,size:u.S.Small}),r.createElement("span",{className:o?"ml-2":""},n)))},m=function(e){var t=e.breadcrumbs,n=(0,o.a)(i.r.XS),a=null==t?void 0:t.length;return!a||n&&a<2?r.createElement(r.Fragment,null):n?r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},r.createElement(s,{breadcrumb:t[a-2],withBackIcon:!0}))):r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(s,{key:t,breadcrumb:e})}))))},f=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,o.a)(i.r.XS)?r.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},c.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},38502:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(1024),a=n.n(r),c=n(11607),i=n(36848),o=n(49985),u=n(87432),l=n(76246);function s(e){var t;return a().createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},a().createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(u.Z.pillTabSelector)},e.tabs.map((function(e){return a().createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?a().createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(u.Z.pillItem)},e.name,"number"==typeof e.count&&a().createElement("div",{className:"pl-2"},a().createElement(l.C,{type:l.g.Count,data:e.count}))):a().createElement(c.L,{className:"".concat(u.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&a().createElement("div",{className:"pl-2"},a().createElement(l.C,{type:l.g.Count,data:e.count}))))}))))}},81514:(e,t,n)=>{n.d(t,{V:()=>c});var r=n(86764),a=n(3747);function c(){var e=(0,a.a)(r.r.XS),t=(0,a.a)(r.r.SM),n=(0,a.a)(r.r.MD),c=(0,a.a)(r.r.LG),i=(0,a.a)(r.r.XL),o=(0,a.a)(r.r.XXL),u=r.r.LG;return e&&(u=r.r.XS),t&&(u=r.r.SM),n&&(u=r.r.MD),c&&(u=r.r.LG),i&&(u=r.r.XL),o&&(u=r.r.XXL),u}},5859:(e,t,n)=>{function r(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}n.d(t,{u:()=>c});var a={numItems:5,minWidth:50,maxWidth:100},c={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},a),t);return(e=Array(n.numItems),function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}(e)||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.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*n.maxWidth),n.minWidth),"px")}}))}}},69454:(e,t,n)=>{n.d(t,{T:()=>l});var r=n(75896),a=n(1048),c=/\d/,i=n(55171),o=/([0-9]+)/gi,u=/\s|\+/gi,l={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t="";switch(+r.m.first(e).presentationId){case i.e.PresentationIds.DEFAULT:case i.e.PresentationIds.AU_SECONDARY:case i.e.PresentationIds.US_ELEMENTARY:case i.e.PresentationIds.AU_PRIMARY:if(1===e.length)return e[0];t=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],r=t.split(" ").filter((function(e){return isNaN(+e)}))||[],a=e.find((function(e){return!c.test(e.name)})),i=r.find((function(e){return e!==(null==a?void 0:a.name)}));if(e.length>1&&(i+="s"),a&&n.length)return"".concat(i," ").concat(a.name.charAt(0)," - ").concat(n.pop());var o=function(e){var t,n,r,a,c=!1,i=[];for(e=e.sort((function(e,t){return e-t})),r=0;r<e.length;r++)a=r+1,c||(t=e[r]),n=e[a],e[r]+1===n?c=!0:c?(i.push("".concat(t," - ").concat(e[r])),c=!1):(i.push("".concat(e[r])),c=!1);return i}(n);return"".concat(i," ").concat(o.join(", "))}(e);break;case i.e.PresentationIds.SCOTLAND_PRIMARY:case i.e.PresentationIds.SCOTLAND_SECONDARY:case i.e.PresentationIds.INTERNATIONAL_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];t=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var r=e.split(" ");Object.keys(n).forEach((function(e){r.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var r=Object.keys(n)[0],a=n[r];if(!r)return e[0].name;var c=e[0].name,i=e[e.length-1].name,o=function(e){return e.split(r)[0]},u="".concat(o(c)," - ").concat(o(i));return"start"===a?"".concat(r," ").concat(u):"".concat(u," ").concat(r)}(e);break;case i.e.PresentationIds.ENGLAND_PRIMARY:t=function(e){var t=r.m.first(e),n=r.m.last(e),a=r.m.first(t.name.split(" ")),c=r.m.first(n.name.split(" ")),i=t.name.split(" ").find((function(e){return!isNaN(+e)})),o=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===a||"Reception"===a?t.name:"".concat(a," KS").concat(i);var u="",l="";return u="Reception"===a?"R":"KS".concat(i),l="KS".concat(o),"Lower"===a&&"Upper"===c?"L ".concat(u," - U ").concat(l):("Lower"===a&&(u="Lower ".concat(u)),"Upper"===c&&(l="Upper ".concat(l)),"Key"===c&&(l=n.name),"".concat(u," - ").concat(l))}(e);case i.e.PresentationIds.US_MIDDLE:case i.e.PresentationIds.US_HIGH:}return t?{name:t}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var a=+r.m.first(e.name.match(o));if(!t)return t=e,void(n=a);a<n&&(t=e)})),t):null;var t,n},n={},a=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void a.push(e);a.push(e),n[e.name]++;var r=a.splice(a.length-n[e.name]).sort((function(e,n){var r=t(e.subjectPresentationAudiences.data),a=t(n.subjectPresentationAudiences.data);if(!r&&a)return 1;if(!a)return-1;var c=r.name.localeCompare(a.name);return 0===c?c:c>0?-1:1}));a=a.concat(r)})),a},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.t.isObject(t)&&!a.t.isEmpty(t)&&e&&e.length&&l.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var r=function(e){return e.replace(u,"").toLowerCase()},c=n.reduce((function(e,t){return e[r(t)]=t,e}),{});return e.filter((function(e){return c[r(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},71164:(e,t,n)=>{n.d(t,{T:()=>b});var r=n(1024),a=n.n(r),c=n(81886),i=n(23481),o=n(75795),u=n(38502),l=n(14070),s=n(97291),m=n(81803),f=n(4312),d=n(69454);const p={tabs:"oHDjZ"};var v=i.T.encloseNamespace("settings.preferencesLayout");function b(e){var t,n=null===(t=o.O.getCurrentRoute())||void 0===t?void 0:t.appLink,r=function(e){return e===(null==n?void 0:n.action)},i=function(e){c.Q.AppLinkHelper.trigger({application:s.O.SETTINGS,action:e})};function b(){var t=[{name:v("topics"),active:r(l.e.Settings.TOPIC_PREFERENCES),onSelect:function(){return i(l.e.Settings.TOPIC_PREFERENCES)}}];d.T.shouldShowAudiences(e.audiences)&&t.push({name:v("yearGroups"),active:r(l.e.Settings.AUDIENCE_PREFERENCES),onSelect:function(){return i(l.e.Settings.AUDIENCE_PREFERENCES)}});var n=f.b.hasManyPresentationTypes(e.availablePresentations),a=n.hasManyCurriculumPresentations,c=n.hasManySubjectPresentations;return a&&t.push({name:v("curriculum"),active:r(l.e.Settings.CURRICULUM),onSelect:function(){return i(l.e.Settings.CURRICULUM)}}),c&&t.push({name:v("schoolLevel"),active:r(l.e.Settings.SCHOOL_LEVEL),onSelect:function(){return i(l.e.Settings.SCHOOL_LEVEL)}}),t}var h=b();return a().createElement(m.d,{heading:v("heading"),breadcrumbs:[v("breadcrumb")]},h.length>1&&a().createElement(u.r,{tabs:b(),className:p.tabs}),e.children)}},81803:(e,t,n)=>{n.d(t,{d:()=>v});var r=n(1024),a=n.n(r),c=n(81886),i=n(23481),o=n(49935),u=n(22902),l=n(97291),s=n(14070),m=n(96368);function f(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 d="settings.settingsLayout",p=function(e){var t=(0,u.T)().hasPermissions,n=(0,m.e)();if(e)return t(e);var r=c.Q.AppLinkHelper.getCurrentAppLink();return r.application!==l.O.SETTINGS||n.some((function(e){return e.modules.some((function(e){return"appLink"in e&&e.appLink.action===r.action}))}))};function v(e){var t=p(e.requiredPermissions);if(a().useEffect((function(){t||c.Q.AppLinkHelper.trigger({application:l.O.SETTINGS,action:s.e.Settings.HOME},{replace:!0})}),[t]),!t)return a().createElement(a().Fragment,null);var n,r=e.breadcrumbs.map((function(t,n){return{name:t,appLink:{application:l.O.SETTINGS,action:s.e.Settings.HOME},active:n===e.breadcrumbs.length-1}}));return a().createElement("div",{className:"px-3"},a().createElement("h1",{className:"h2"},e.heading),a().createElement("div",{className:"pb-3"},a().createElement(o.Oo,{breadcrumbs:[{name:i.T.getPhrase(d,"settingsBreadcrumb"),appLink:{application:l.O.SETTINGS,action:s.e.Settings.HOME}}].concat((n=r,function(e){if(Array.isArray(e))return f(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(n)||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.")}()))})),e.description&&a().createElement(a().Fragment,null,a().createElement("p",null,e.description),a().createElement("hr",null)),e.children)}},87432:(e,t,n)=>{n.d(t,{Z:()=>r});const r={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9038],{11140:(e,t,r)=>{r.r(t),r.d(t,{AddTeachersToClassroomView:()=>L});var n=r(1024),a=r.n(n),o=r(58566),c=r(23481),i=r(20354),l=r(97395),s=r(9111),u=r(69883),m=r(88630),f=r(49985),p=r(31949),d=r(39151),y=r(76881),b=r(40424),h=r(2997),E=r(7855),v=r(83345),g=r(16714),S=r(36848),A=r(22902),w=r(13876),C=r(65858),
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9038],{11140:(e,t,r)=>{r.r(t),r.d(t,{AddTeachersToClassroomView:()=>L});var n=r(1024),a=r.n(n),o=r(58566),c=r(23481),i=r(20354),l=r(97395),s=r(9111),u=r(69883),m=r(88630),f=r(49985),p=r(31949),d=r(39151),y=r(76881),b=r(40424),h=r(2997),E=r(7855),v=r(83345),g=r(16714),S=r(36848),A=r(22902),w=r(13876),C=r(65858),T=r(99742),P=r(14070),R=r(97291);function I(e){return I="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},I(e)}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,c,i=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(s)throw a}}return i}}(e,t)||_(e,t)||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.")}()}function _(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(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 U(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===I(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x="classrooms.addTeachersToClassroom",N=c.T.encloseNamespace(x);function L(e){var t=F(a().useState(!1),2),r=t[0],n=t[1],c=F(a().useState([]),2),I=c[0],L=c[1],j=i.a.useBasicFetch(p.N.currentUser()),M=i.a.useBasicFetch(d.L.config()),O=i.a.useBasicFetch(p.N.token()),B=i.a.useBasicFetch(j.data&&m.F.getClassroom(e.id,j.data.id)),D=(0,o.useDispatch)(),H=(0,u.Z)(),W=(0,A.T)().hasPermissions,X={application:R.O.USER_MANAGER,action:P.e.UserManager.STAFF},Y=!!(O.data&&B.data&&M.data&&j.data);return a().createElement(s.G,{closePopup:e.closePopup,title:N("title")},Y&&a().createElement(a().Fragment,null,a().createElement("div",{className:"pb-3"},a().createElement(E.R,{placeholder:N("placeholder"),getRemoteUrl:function(t){return function(e,t,r,n){var a,o=l._.safeUrlConcat(e,"/v1/search/users");return l._.urlBuilder(o,(U(a={query:t},"".concat(h.w.FILTER_PARAM_PREFIX,"userType"),y.Y.Staff),U(a,"".concat(h.w.FILTER_PARAM_PREFIX,"userStatus"),"".concat(b.w.Active.toLowerCase(),",").concat(b.w.Inactive.toLowerCase())),U(a,"".concat(h.w.FILTER_PARAM_PREFIX,"excludeClassroom"),r),U(a,"".concat(h.w.FILTER_PARAM_PREFIX,"customerId"),n),U(a,"index","user"),U(a,"limit",E.d),a))}(M.data.gatewayApiUrl,t,e.id,j.data.customerId)},requestHeaders:{authorization:"Bearer ".concat(O.data.value)},selections:I,formatRemoteSuggestions:function(e){return e.results},onSuggestionSelected:function(e){return L([].concat(function(e){if(Array.isArray(e))return k(e)}(t=I)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||_(t)||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.")}(),[e]));var t},removeSelection:function(e){return L(I.filter((function(t){return t.id!==e.id})))},imageCdnUrl:M.data.imageCdnUrl,activationLength:2,debounceTime:200,errorStateImageUrl:T.W.TYPEAHEAD_ERROR,emptyStateImageUrl:T.W.EmptyStates.TYPEAHEAD_RESULTS})),a().createElement("div",{className:"pb-3 d-flex flex-column align-items-center"},a().createElement("img",{className:"img-fluid w-25 pb-2 pt-1",src:T.W.EmptyStates.Classrooms.ADD_TEACHERS}),a().createElement("p",{className:"mb-0 text-center"},a().createElement(v.x,{namespace:x,phrase:"info"})),W(g.C.ManageUsers)&&a().createElement("p",{className:"mb-0 text-center"},a().createElement(v.x,{namespace:x,phrase:"createStaff"})," ",a().createElement(S.F,{appLink:X,onClick:e.closePopup,className:"info-link"},a().createElement(v.x,{namespace:x,phrase:"staffManager"})))),a().createElement(w.u,null,a().createElement(w.u.Cancel,{onClick:e.closePopup}),a().createElement(w.u.Submit,{variant:"dark",onClick:function(){(null==I?void 0:I.length)&&(n(!0),i.a.fetch(D,m.F.addInvitees(I.map((function(e){return e.id})),e.id,(function(){n(!1),f.k.logUserAction({id:e.id,userCount:I.length},{actionType:C.UserAction.Associate,entity:C.EntityType.Classroom,location:C.LocationContext.Popup,descriptor:C.AssocDescriptor.User,workflowPhase:C.WorkflowPhase.Complete}),H.success(N("success",{smartCount:I.length,classroomName:B.data.name,escapeText:!0})),e.closePopup()}),(function(){n(!1),H.error(N("error",{smartCount:I.length,classroomName:B.data.name})),e.closePopup()}))))},text:N("addTeachers"),disabled:!(null==I?void 0:I.length),showSpinner:r}))))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 9428-
|
|
1
|
+
/*! For license information please see 9428-f6fceb0c25-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9428],{89428:(t,e,r)=>{r.r(e),r.d(e,{ApproveAllVideosView:()=>L});var n=r(1024),o=r.n(n),i=r(20354),a=r(55460),c=r(23481),u=r(9111),l=r(83345),s=r(36848),f=r(13876),h=r(69883),p=r(97291),y=r(14070),v=r(21491);function d(t){return d="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},d(t)}function m(){m=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 S(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 p(){}function y(){}var v={};u(v,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(_([])));w&&w!==e&&r.call(w,i)&&(v=w);var b=y.prototype=h.prototype=Object.create(v);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"==d(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function _(t){if(t||""===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}}throw new TypeError(d(t)+" is not iterable")}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"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,y):(t.__proto__=y,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:S,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:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function g(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 w=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())}))},b="settings.approveAllVideos",E=c.T.encloseNamespace(b);function L(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 g(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)?g(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.")}()),c=n[0],d=n[1],L=i.a.useGetFetchAsync(),x=(0,h.Z)();return o().createElement(u.G,{title:E("heading"),closePopup:t.closePopup},o().createElement("p",null,o().createElement(l.x,{namespace:b,phrase:"message1"})),o().createElement("p",null,o().createElement(l.x,{namespace:b,phrase:"message2"})," ",o().createElement(s.F,{className:"info-link",appLink:{application:p.O.SETTINGS,action:y.e.Settings.CONTENT_REVIEW_SETTINGS},onClick:t.closePopup},o().createElement(l.x,{namespace:b,phrase:"contentReviewAppLink"})," ")),o().createElement(f.u,null,o().createElement(f.u.Cancel,{onClick:t.closePopup}),o().createElement(f.u.Submit,{variant:"dark",text:E("approveAll"),showSpinner:c,onClick:function(){return w(this,void 0,void 0,m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d(!0),t.prev=1,t.next=4,L(v.I.approveAll());case 4:x.success(E("success")),a.LocationUtils.Reload(),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),x.error(E("error")),d(!1);case 12:case"end":return t.stop()}}),t,null,[[1,8]])})))}})))}},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}}}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 9478-
|
|
1
|
+
/*! For license information please see 9478-5e92b55305-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>d});var n=r(1024),o=r.n(n),i=r(20354),a=r(30439),c=r(4594);function u(t){return u="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},u(t)}function l(){l=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 s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:L(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};s(m,i,(function(){return this}));var w=Object.getPrototypeOf,g=w&&w(w(O([])));g&&g!==e&&r.call(g,i)&&(m=g);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var l=h(t[n],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(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){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(l.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 L(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=S(a,r);if(c){if(c===d)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=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(t){if(t||""===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}}throw new TypeError(u(t)+" is not iterable")}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=s(y,c,"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,y):(t.__proto__=y,s(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),s(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,c,"Generator"),s(b,i,(function(){return this})),s(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=O,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(I),!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,d):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),d},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),I(r),d}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function s(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 f=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())}))},h=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||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}}(n,i)||function(t,e){if(t){if("string"==typeof t)return s(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)?s(t,e):void 0}}(n,i)||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.")}()),u=a[0],h=a[1];return o().useEffect((function(){u&&h(null)}),[e.videoId]),o().useEffect((function(){if(t&&!u){var n=t.objectTypeId;switch(e.videoId?n=c.E.Video:e.clipId?n=c.E.Clip:e.interactiveId&&(n=c.E.Interactive),n){case c.E.Video:var i=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(1518),r.e(3378),r.e(8789),r.e(8882)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));h(i);break;case c.E.Interactive:var a=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(1518),r.e(711),r.e(9590)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));h(a);break;case c.E.Clip:var s=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(1518),r.e(3378),r.e(7620)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));h(s);break;case c.E.Playlist:var d=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(7201),r.e(7591)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));h(d);break;case c.E.Series:var v=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(7153),r.e(1095)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));h(v)}}}),[t,u]),u};function d(t){var e=t.shareId,r=t.queryParams,n=i.a.useBasicFetch(e&&a.o.getShareObject(e)),c=h(n.data,r);if(!c)return o().createElement(o().Fragment,null);var u={shareId:e,queryParams:r,objectId:r.videoId?r.videoId:r.clipId?r.clipId:r.interactiveId?r.interactiveId:n.data.objectId};return o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(c,Object.assign({},u)))}}}]);
|