@clickview/lite 0.20.0 → 0.20.1-rc.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-0b2df6e770-lite.chunk.js → 1200-44a0a9f0e0-lite.chunk.js} +1 -1
- package/dist/scripts/{1330-cd97b4244c-lite.chunk.js → 1330-df9bcc7430-lite.chunk.js} +1 -1
- package/dist/scripts/{1592-14e9f658fd-lite.chunk.js → 1592-6f78f2b9a3-lite.chunk.js} +1 -1
- package/dist/scripts/{1935-79098f17a5-lite.chunk.js → 1935-3bddc23ab5-lite.chunk.js} +1 -1
- package/dist/scripts/{2097-1fec9b4c86-lite.chunk.js → 2097-9b51da3b04-lite.chunk.js} +1 -1
- package/dist/scripts/{2994-5511c71aa9-lite.chunk.js → 2994-1944be446f-lite.chunk.js} +1 -1
- package/dist/scripts/3574-6a573d9d74-lite.chunk.js +1 -0
- package/dist/scripts/{3667-b8ef9efadf-lite.chunk.js → 3667-60e5161e97-lite.chunk.js} +1 -1
- package/dist/scripts/{4617-3530a84536-lite.chunk.js → 4617-c9f9751bee-lite.chunk.js} +1 -1
- package/dist/scripts/{4722-02ba508014-lite.chunk.js → 4722-293b7210d8-lite.chunk.js} +1 -1
- package/dist/scripts/{5875-8c82598a1f-lite.chunk.js → 5875-973626a1aa-lite.chunk.js} +1 -1
- package/dist/scripts/{6226-73931a8fe9-lite.chunk.js → 6226-052ad37345-lite.chunk.js} +1 -1
- package/dist/scripts/{6263-e3a433ab7d-lite.chunk.js → 6263-a8da7e1fd6-lite.chunk.js} +1 -1
- package/dist/scripts/{6736-cffe5aabea-lite.chunk.js → 6736-326f546fb8-lite.chunk.js} +1 -1
- package/dist/scripts/{6801-a381d427d2-lite.chunk.js → 6801-bf08e9129d-lite.chunk.js} +1 -1
- package/dist/scripts/7318-2624f3e7a8-lite.chunk.js +1 -1
- package/dist/scripts/{7416-1d038cbc54-lite.chunk.js → 7416-1aa6580a1b-lite.chunk.js} +1 -1
- package/dist/scripts/{8323-abba3829a3-lite.chunk.js → 8323-199575a310-lite.chunk.js} +1 -1
- package/dist/scripts/{8333-9f369a0598-lite.chunk.js → 8333-821f67cd7d-lite.chunk.js} +1 -1
- package/dist/scripts/{8377-58e3a61887-lite.chunk.js → 8377-00ef43ca5f-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-21e4965323-lite.chunk.js → 9478-a2d2af4feb-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-8f6ea62f92.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/3574-816b2aaf9e-lite.chunk.js +0 -1
- package/dist/scripts/bundle-976e93492a.min.js +0 -2
- /package/dist/scripts/{1200-0b2df6e770-lite.chunk.js.LICENSE.txt → 1200-44a0a9f0e0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1219-05032cf285-lite.chunk.js → 1219-854fba77ec-lite.chunk.js} +0 -0
- /package/dist/scripts/{1285-4501141c29-lite.chunk.js → 1285-f6ac7e5387-lite.chunk.js} +0 -0
- /package/dist/scripts/{1291-70427d0f12-lite.chunk.js → 1291-24b5a1566e-lite.chunk.js} +0 -0
- /package/dist/scripts/{1330-cd97b4244c-lite.chunk.js.LICENSE.txt → 1330-df9bcc7430-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1365-324ce7eee3-lite.chunk.js → 1365-4dcf9a4bde-lite.chunk.js} +0 -0
- /package/dist/scripts/{1453-78a6c2ce35-lite.chunk.js → 1453-2edba54906-lite.chunk.js} +0 -0
- /package/dist/scripts/{1518-d42afd7de3-lite.chunk.js → 1518-281d1b696b-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-14e9f658fd-lite.chunk.js.LICENSE.txt → 1592-6f78f2b9a3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1620-68c0d6eff0-lite.chunk.js → 1620-56950a2cd2-lite.chunk.js} +0 -0
- /package/dist/scripts/{1712-ead600dd85-lite.chunk.js → 1712-75aefedc51-lite.chunk.js} +0 -0
- /package/dist/scripts/{1725-c086756402-lite.chunk.js → 1725-98acf0fb57-lite.chunk.js} +0 -0
- /package/dist/scripts/{1792-d40f895c3a-lite.chunk.js → 1792-2db7496827-lite.chunk.js} +0 -0
- /package/dist/scripts/{1863-2b2ba6802e-lite.chunk.js → 1863-299c4ea36a-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-6be69177b3-lite.chunk.js → 1891-d59f732615-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-248d8009be-lite.chunk.js → 1924-c9b3c5fa13-lite.chunk.js} +0 -0
- /package/dist/scripts/{1935-79098f17a5-lite.chunk.js.LICENSE.txt → 1935-3bddc23ab5-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{209-0036bf9620-lite.chunk.js → 209-36ac1c517f-lite.chunk.js} +0 -0
- /package/dist/scripts/{2097-1fec9b4c86-lite.chunk.js.LICENSE.txt → 2097-9b51da3b04-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2119-68e7b37f1f-lite.chunk.js → 2119-7fb61add58-lite.chunk.js} +0 -0
- /package/dist/scripts/{2140-85f47e5af8-lite.chunk.js → 2140-8bb7d840c6-lite.chunk.js} +0 -0
- /package/dist/scripts/{219-ac98fc79ac-lite.chunk.js → 219-4c70f18e52-lite.chunk.js} +0 -0
- /package/dist/scripts/{2215-a2a3c89f90-lite.chunk.js → 2215-3016159f9a-lite.chunk.js} +0 -0
- /package/dist/scripts/{2229-a17489a3b1-lite.chunk.js → 2229-0285f90484-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-47d9d69b18-lite.chunk.js → 227-e1e6911d36-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-673600a92b-lite.chunk.js → 2279-335f43ea35-lite.chunk.js} +0 -0
- /package/dist/scripts/{2303-c8806a714e-lite.chunk.js → 2303-d121a21e47-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-4a1c9e0123-lite.chunk.js → 2452-f1ccaff72b-lite.chunk.js} +0 -0
- /package/dist/scripts/{2608-a36f2a6bfa-lite.chunk.js → 2608-ed483a5cfd-lite.chunk.js} +0 -0
- /package/dist/scripts/{2757-9d4a2c4342-lite.chunk.js → 2757-16649d32ab-lite.chunk.js} +0 -0
- /package/dist/scripts/{2838-f04c9c101d-lite.chunk.js → 2838-4d084cee81-lite.chunk.js} +0 -0
- /package/dist/scripts/{291-dc43ed44d2-lite.chunk.js → 291-c189f97df1-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-a4d65b2891-lite.chunk.js → 2966-510ab402e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{2994-5511c71aa9-lite.chunk.js.LICENSE.txt → 2994-1944be446f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3007-ff224c6b4a-lite.chunk.js → 3007-67c669974c-lite.chunk.js} +0 -0
- /package/dist/scripts/{3012-385bc14160-lite.chunk.js → 3012-7e5e8f11aa-lite.chunk.js} +0 -0
- /package/dist/scripts/{3020-a306d41bfc-lite.chunk.js → 3020-07a660c04f-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-4e2349fae5-lite.chunk.js → 3108-eab647eb42-lite.chunk.js} +0 -0
- /package/dist/scripts/{3171-48a107d621-lite.chunk.js → 3171-20d8a113c7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-029fc03dc3-lite.chunk.js → 3216-b1d4c2ded5-lite.chunk.js} +0 -0
- /package/dist/scripts/{3237-f976897749-lite.chunk.js → 3237-0dd3509b7d-lite.chunk.js} +0 -0
- /package/dist/scripts/{3285-f85056c04f-lite.chunk.js → 3285-2d771421df-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-2f385ce0dd-lite.chunk.js → 3468-00730325f5-lite.chunk.js} +0 -0
- /package/dist/scripts/{3533-1bfb5747d2-lite.chunk.js → 3533-b438695633-lite.chunk.js} +0 -0
- /package/dist/scripts/{3667-b8ef9efadf-lite.chunk.js.LICENSE.txt → 3667-60e5161e97-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3745-cd90674c73-lite.chunk.js → 3745-63a4d71f99-lite.chunk.js} +0 -0
- /package/dist/scripts/{3754-fa7f42936a-lite.chunk.js → 3754-e5c26ec175-lite.chunk.js} +0 -0
- /package/dist/scripts/{3787-6a23e0bbc6-lite.chunk.js → 3787-8696fb6568-lite.chunk.js} +0 -0
- /package/dist/scripts/{389-9943206114-lite.chunk.js → 389-6e87daacd6-lite.chunk.js} +0 -0
- /package/dist/scripts/{3948-a54e85d36e-lite.chunk.js → 3948-5375b23b74-lite.chunk.js} +0 -0
- /package/dist/scripts/{402-8b8fcde181-lite.chunk.js → 402-5d3acd69f4-lite.chunk.js} +0 -0
- /package/dist/scripts/{4113-220d0e945f-lite.chunk.js → 4113-65189106ef-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-554dab5f52-lite.chunk.js → 4182-964678b7e2-lite.chunk.js} +0 -0
- /package/dist/scripts/{4279-9b4711a24a-lite.chunk.js → 4279-c0eec92c89-lite.chunk.js} +0 -0
- /package/dist/scripts/{4343-62c6b29bfc-lite.chunk.js → 4343-9f273ff584-lite.chunk.js} +0 -0
- /package/dist/scripts/{4380-250987f344-lite.chunk.js → 4380-1859fe8b27-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-8a5f2fb33e-lite.chunk.js → 4541-537b1dfac2-lite.chunk.js} +0 -0
- /package/dist/scripts/{4559-ccb034be56-lite.chunk.js → 4559-8990403a21-lite.chunk.js} +0 -0
- /package/dist/scripts/{4632-694064fb45-lite.chunk.js → 4632-a90a7f85d3-lite.chunk.js} +0 -0
- /package/dist/scripts/{482-b797830da6-lite.chunk.js → 482-7d8dd7275c-lite.chunk.js} +0 -0
- /package/dist/scripts/{4834-cbdc83eaa1-lite.chunk.js → 4834-badfa6600e-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-81662a0c1c-lite.chunk.js → 4893-553e8ae85e-lite.chunk.js} +0 -0
- /package/dist/scripts/{490-50588805a7-lite.chunk.js → 490-e4016b43d3-lite.chunk.js} +0 -0
- /package/dist/scripts/{5249-101e37757c-lite.chunk.js → 5249-217235658c-lite.chunk.js} +0 -0
- /package/dist/scripts/{5606-d19d45db84-lite.chunk.js → 5606-50e4a681b9-lite.chunk.js} +0 -0
- /package/dist/scripts/{5875-8c82598a1f-lite.chunk.js.LICENSE.txt → 5875-973626a1aa-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5877-0933eebe0e-lite.chunk.js → 5877-0409fd8611-lite.chunk.js} +0 -0
- /package/dist/scripts/{5894-ce0bffc8e7-lite.chunk.js → 5894-65b8fcb9b1-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-e3beb91ffc-lite.chunk.js → 5914-ee40d342b9-lite.chunk.js} +0 -0
- /package/dist/scripts/{5956-eb98106bf1-lite.chunk.js → 5956-83b2378ed6-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-c26980f894-lite.chunk.js → 5974-14c51a4a25-lite.chunk.js} +0 -0
- /package/dist/scripts/{6080-f3c955754f-lite.chunk.js → 6080-599549e042-lite.chunk.js} +0 -0
- /package/dist/scripts/{614-6e9538d83c-lite.chunk.js → 614-6f178b3e14-lite.chunk.js} +0 -0
- /package/dist/scripts/{6158-48f018bbdb-lite.chunk.js → 6158-9387aa7bcb-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-87d8a27451-lite.chunk.js → 6274-62cfc1e395-lite.chunk.js} +0 -0
- /package/dist/scripts/{6290-0886e989e5-lite.chunk.js → 6290-2837f7f171-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-3400596edf-lite.chunk.js → 6368-e86d8d042d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-62127696d9-lite.chunk.js → 6370-8bbe6fa78d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6374-d536577f73-lite.chunk.js → 6374-ee6c97a7d4-lite.chunk.js} +0 -0
- /package/dist/scripts/{6381-0cdbfe4277-lite.chunk.js → 6381-ab790321cf-lite.chunk.js} +0 -0
- /package/dist/scripts/{6450-11cdf0c405-lite.chunk.js → 6450-78e74f7202-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-5781dde945-lite.chunk.js → 6465-1608ceeb17-lite.chunk.js} +0 -0
- /package/dist/scripts/{6480-df1e964678-lite.chunk.js → 6480-6ea2df12ef-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-331029d2a9-lite.chunk.js → 6493-ae21e8927f-lite.chunk.js} +0 -0
- /package/dist/scripts/{6507-a22e294394-lite.chunk.js → 6507-1e66ea6ad9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-3d09473f89-lite.chunk.js → 6604-0872ee892d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6689-9959def9cb-lite.chunk.js → 6689-40f803dcb5-lite.chunk.js} +0 -0
- /package/dist/scripts/{6725-4681caad1e-lite.chunk.js → 6725-6a02a8aa52-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-cffe5aabea-lite.chunk.js.LICENSE.txt → 6736-326f546fb8-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6821-c2c09e0258-lite.chunk.js → 6821-aa942da9f9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6873-dd7240df43-lite.chunk.js → 6873-cbc488c212-lite.chunk.js} +0 -0
- /package/dist/scripts/{7045-aa30ff4722-lite.chunk.js → 7045-219ee73151-lite.chunk.js} +0 -0
- /package/dist/scripts/{7056-3d009caae3-lite.chunk.js → 7056-b3534ce4f4-lite.chunk.js} +0 -0
- /package/dist/scripts/{7058-ad3503e309-lite.chunk.js → 7058-070171efa7-lite.chunk.js} +0 -0
- /package/dist/scripts/{7115-04ab64ed64-lite.chunk.js → 7115-5d40008425-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-79f02bfd39-lite.chunk.js → 7128-a24bcfb120-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-8ad03692bd-lite.chunk.js → 7172-e8dce1ea68-lite.chunk.js} +0 -0
- /package/dist/scripts/{7178-54a7d54bce-lite.chunk.js → 7178-85103e884f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7332-2414e1498d-lite.chunk.js → 7332-7c591de12f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7407-35f8359eb8-lite.chunk.js → 7407-681233f6cd-lite.chunk.js} +0 -0
- /package/dist/scripts/{7416-1d038cbc54-lite.chunk.js.LICENSE.txt → 7416-1aa6580a1b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7506-09a70fbf9f-lite.chunk.js → 7506-68ed3f4e65-lite.chunk.js} +0 -0
- /package/dist/scripts/{7708-cd0bc87fee-lite.chunk.js → 7708-63a3fa0f58-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-7daefc5fac-lite.chunk.js → 7767-afdf49df83-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-18edc1946f-lite.chunk.js → 7855-74bda8e11e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7888-77a06a9360-lite.chunk.js → 7888-aa0c52f105-lite.chunk.js} +0 -0
- /package/dist/scripts/{7925-088d8201ec-lite.chunk.js → 7925-1ed74c737d-lite.chunk.js} +0 -0
- /package/dist/scripts/{7939-640b0a3ed9-lite.chunk.js → 7939-3ede3264b8-lite.chunk.js} +0 -0
- /package/dist/scripts/{8025-ccb49cd4aa-lite.chunk.js → 8025-ab2b2ecd89-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-f21a61b1ff-lite.chunk.js → 8038-656c52aed1-lite.chunk.js} +0 -0
- /package/dist/scripts/{8046-787309872c-lite.chunk.js → 8046-799f379c70-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-2ab549ad96-lite.chunk.js → 8056-80e7db3176-lite.chunk.js} +0 -0
- /package/dist/scripts/{8114-f8b208c585-lite.chunk.js → 8114-a404db12f2-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-15eec091e8-lite.chunk.js → 823-4dcac83167-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-25f5dcecbf-lite.chunk.js → 8252-ced0fbf148-lite.chunk.js} +0 -0
- /package/dist/scripts/{8323-abba3829a3-lite.chunk.js.LICENSE.txt → 8323-199575a310-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8466-6fc579e8a5-lite.chunk.js → 8466-cde97fcd2d-lite.chunk.js} +0 -0
- /package/dist/scripts/{8564-334451b594-lite.chunk.js → 8564-36c07d2f19-lite.chunk.js} +0 -0
- /package/dist/scripts/{8801-96901ce723-lite.chunk.js → 8801-70e800a30d-lite.chunk.js} +0 -0
- /package/dist/scripts/{8868-f58dea6bba-lite.chunk.js → 8868-8545161f5d-lite.chunk.js} +0 -0
- /package/dist/scripts/{8882-b4c020344a-lite.chunk.js → 8882-b9907bfe21-lite.chunk.js} +0 -0
- /package/dist/scripts/{8944-773e6390a7-lite.chunk.js → 8944-a077047351-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-92a584db62-lite.chunk.js → 8955-cb8d4a5b4c-lite.chunk.js} +0 -0
- /package/dist/scripts/{9035-09fb5ed2ac-lite.chunk.js → 9035-d118f7c4e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-2846accc15-lite.chunk.js → 9060-d956071902-lite.chunk.js} +0 -0
- /package/dist/scripts/{9096-b09571a6e4-lite.chunk.js → 9096-c59ee6f88e-lite.chunk.js} +0 -0
- /package/dist/scripts/{9107-2dd2e09031-lite.chunk.js → 9107-c432fb331e-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-5a2d447f21-lite.chunk.js → 9242-1cddf1b075-lite.chunk.js} +0 -0
- /package/dist/scripts/{9455-15f92cc7cf-lite.chunk.js → 9455-6f2d578ea3-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-21e4965323-lite.chunk.js.LICENSE.txt → 9478-a2d2af4feb-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9552-4f26e4c573-lite.chunk.js → 9552-91c4807c56-lite.chunk.js} +0 -0
- /package/dist/scripts/{9686-f9ddd9a8ee-lite.chunk.js → 9686-43c30eec32-lite.chunk.js} +0 -0
- /package/dist/scripts/{969-cb24282dcc-lite.chunk.js → 969-441e32fbfa-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-976e93492a.min.js.LICENSE.txt → bundle-8f6ea62f92.min.js.LICENSE.txt} +0 -0
package/.eslintrc.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["@clickview/eslint-config"]
|
|
1
|
+
{
|
|
2
|
+
"extends": ["@clickview/eslint-config"]
|
|
3
3
|
}
|
package/dist/bundles.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 1200-
|
|
1
|
+
/*! For license information please see 1200-44a0a9f0e0-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1200],{67370:(t,e,r)=>{r.d(e,{Ix:()=>a,RF:()=>c,UJ:()=>s,zV:()=>u});var n=r(19717),o=r(49985),i=r(65858);function a(t){var e=t.hasValidatedUsers,r=t.setInvalidUsers,a=t.userType,u=t.setHideValidListings;return function(t,s){var c=n.b.getInvalidUsers(t,s),l=t.reduce((function(t,e){return e.errorCodes.forEach((function(e){t[e]||(t[e]=0),t[e]++})),t}),{});e||o.k.logUserAction({totalUploaded:s.length,totalInvalid:Object.keys(c).length,errorCodeCount:l},Object.assign(Object.assign({},n.b.getAnalyticsOptions(a)),{workflowPhase:i.WorkflowPhase.Start,descriptor:i.OperationDescriptor.Bulk})),window.setTimeout((function(){Object.keys(c).length||u(!1),r(c)}),1e3)}}function u(t){var e=t.setHideValidListings,r=t.hideValidListings,a=t.userType;e(!r),o.k.logUserAction({hideValidListings:!r},Object.assign(Object.assign({},n.b.getAnalyticsOptions(a)),{actionType:i.UserAction.Click,descriptor:i.ClickDescriptor.ToggleHideValidListings,workflowPhase:i.WorkflowPhase.Complete}))}function s(t,e){t(null),e()}function c(t,e){t([]),e()}},63598:(t,e,r)=>{r.d(e,{Q:()=>h});var n=r(1024),o=r.n(n),i=r(23481),a=r(83345),u=r(9111),s=r(13876),c=r(76881),l=r(45541),f=r(49985),p=r(65858);function h(t){var e=(0,l.V)().deleteUsers,r=t.userType===c.Y.Learner?"userManager.deleteUploadedStudentPopup":"userManager.deleteUploadedStaffPopup",n=i.T.encloseNamespace(r);return o().createElement(a.D.Provider,{value:r},o().createElement(u.G,{title:n("title",{smartCount:t.users.length}),closePopup:t.closePopup},o().createElement("p",{className:"m-0 pb-3"},o().createElement(a.x,{phrase:"confirmation",options:{smartCount:t.users.length}})),o().createElement(s.u,null,o().createElement(s.u.Cancel,{onClick:t.closePopup}),o().createElement(s.u.Submit,{variant:"danger",onClick:function(){e(t.users),f.k.logUserAction({},f.k.mergeOptions(t.analyticsOptions,{workflowPhase:p.WorkflowPhase.Discard,descriptor:t.users.length>1?p.OperationDescriptor.Bulk:p.OperationDescriptor.Single})),t.closePopup()},text:n("delete",{smartCount:t.users.length})}))))}},93898:(t,e,r)=>{r.d(e,{n:()=>b});var n=r(1024),o=r.n(n),i=r(23481),a=r(57900),u=r(49985),s=r(65858),c=r(9111),l=r(35045),f=r(39739),p=r(45541);function h(t){return h="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},h(t)}function d(){d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=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 c(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new S(o||[]);return n(a,"_invoke",{value:E(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function p(){}function v(){}function y(){}var g={};s(g,i,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(j([])));w&&w!==e&&r.call(w,i)&&(g=w);var b=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,u){var s=l(t[n],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==h(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return o("throw",t,a,u)}))}u(s.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 E(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 u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function O(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,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function P(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:U}}function U(){return{value:void 0,done:!0}}return v.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},k(x.prototype),s(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(b),s(b,u,"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=j,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(L),!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 u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(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)?y(t,e):void 0}}(t,e)||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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var g=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},m=i.T.encloseNamespace("userManager.editUploadedUserPopup"),w="_cv:edit:next:user";function b(t){var e,r,n=(0,p.V)(),i=n.invalidUsers,h=n.updateUser,y=v(o().useState(!!i[t.user.lookupId]),2),b=y[0],k=y[1],x=v(o().useState(!1),2),E=x[0],O=x[1],P=v(o().useState(!!a.SG.get(w)),2),L=P[0],S=P[1],j=o().useMemo((function(){return Object.keys(i)}),[i]);o().useEffect((function(){k(!!i[t.user.lookupId]),u.k.logUserAction({isInvalid:!!i[t.user.lookupId],data:t.user},u.k.mergeOptions(t.analyticsOptions,{workflowPhase:s.WorkflowPhase.Start}))}),[t.user]),o().useEffect((function(){E&&window.setTimeout((function(){return O(!1)}),300)}),[E,O]);var U=i[t.user.lookupId],T=b&&j.length>1,I=m(T&&L?"saveAndNext":"save"),C=f.P.getMinimumPasswordLength(t.passwordPolicy,t.userType,b?null===(e=null==U?void 0:U.user)||void 0===e?void 0:e.masterRole:null===(r=null==t?void 0:t.user)||void 0===r?void 0:r.masterRole);return b&&!U?o().createElement(o().Fragment,null):o().createElement(c.G,{closePopup:t.closePopup,title:t.title,showLoadingSpinner:E},o().createElement(l.H,{key:t.user.lookupId,initialValues:b?U.user:t.user,initialErrors:b?f.P.getErrorMessages(U.errorCodes,C):[],userType:t.userType,onSubmit:function(e,r){var n,o,a;return g(this,void 0,void 0,d().mark((function c(){var l,p,v,y;return d().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(!b){c.next=11;break}return c.next=3,t.validateUser(e);case 3:if(l=c.sent,f.P.handleAsyncErrors(l,e,null,r)){c.next=7;break}return c.abrupt("return");case 7:p=j.indexOf(t.user.lookupId),v=L?j[p+1]||j[0]:"",O(!0),t.setUser(null===(n=i[v])||void 0===n?void 0:n.user);case 11:if(y=b?null===(o=null==U?void 0:U.user)||void 0===o?void 0:o.lookupId:null===(a=null==t?void 0:t.user)||void 0===a?void 0:a.lookupId){c.next=14;break}return c.abrupt("return");case 14:e&&(h(Object.assign(Object.assign({},e),{lookupId:y})),u.k.logUserAction({isInvalid:!1,data:e},u.k.mergeOptions(t.analyticsOptions,{workflowPhase:s.WorkflowPhase.Complete}))),b&&j.length&&L?r&&r({reset:!0}):window.setTimeout(t.closePopup,300);case 16:case"end":return c.stop()}}),c)})))},yearGroups:t.yearGroups,onClickCancel:t.closePopup,submitText:I,onToggleNextCheckbox:function(){S((function(t){return a.SG.set(w,!t),!t}))},shouldGoToNext:L,formSize:t.formSize,currentUser:t.currentUser,emailRequired:t.emailRequired,showPasswordField:t.showPasswordField,passwordPolicy:t.passwordPolicy}))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 1330-
|
|
1
|
+
/*! For license information please see 1330-df9bcc7430-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1330],{3278:(e,t,n)=>{n.d(t,{z:()=>h});var r=n(1024),a=n.n(r),o=n(81886),i=n(23481),c=n(83345),l=n(53957),s=n(38502),u=n(65858),p=n(55460),f=n(37802);const m={pillTab:"bMJM0"};var d="discover.header";function h(e){var t,n,r,h,v,y,g=(0,f.r)(null).hasSpecialEventCalendar;if(!e.type)return a().createElement(a().Fragment,null);if(e.type===l.DashboardUserType.Learner||e.hasStudentExperience)return a().createElement("div",{className:"py-3"},a().createElement("h1",{className:"h2 mb-0"},a().createElement(c.x,{namespace:d,phrase:"heading"})));function E(){var t,n,r=o.Q.AppLinkHelper.getCurrentAppLink();return(null===(t=e.appLinks)||void 0===t?void 0:t.newReleases.action)===r.action?"newReleases":(null===(n=e.appLinks)||void 0===n?void 0:n.calendar.action)===r.action?"calendar":"forYou"}var b=[{name:i.T.getPhrase(d,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===E(),analyticsData:{name:i.T.getPhrase(d,"forYou"),url:p.AppLinkHelper.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:u.UserAction.Click,entity:u.EntityType.Url,location:u.LocationContext.MagicTabs}},{name:i.T.getPhrase(d,"newReleases"),appLink:null===(r=e.appLinks)||void 0===r?void 0:r.newReleases,active:"newReleases"===E(),analyticsData:{name:i.T.getPhrase(d,"newReleases"),url:p.AppLinkHelper.getHref(null===(h=e.appLinks)||void 0===h?void 0:h.newReleases)},analyticsOptions:{actionType:u.UserAction.Click,entity:u.EntityType.Url,location:u.LocationContext.MagicTabs}}];return g&&b.push({name:i.T.getPhrase(d,"calendar"),appLink:null===(v=e.appLinks)||void 0===v?void 0:v.calendar,active:"calendar"===E(),analyticsData:{name:i.T.getPhrase(d,"calendar"),url:p.AppLinkHelper.getHref(null===(y=e.appLinks)||void 0===y?void 0:y.calendar)},analyticsOptions:{actionType:u.UserAction.Click,entity:u.EntityType.Url,location:u.LocationContext.MagicTabs}}),a().createElement("div",{className:"py-3 text-center"},a().createElement(s.r,{tabs:b,className:m.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>u});var r=n(1024),a=n.n(r),o=n(11607),i=n(8493),c=n(49985),l=n(87432),s=n(76246);function u(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(l.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(l.Z.pillItem)},e.name,"number"==typeof e.count&&a().createElement("div",{className:"pl-2"},a().createElement(s.C,{type:s.g.Count,data:e.count}))):a().createElement(o.L,{className:"".concat(l.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&c.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&a().createElement("div",{className:"pl-2"},a().createElement(s.C,{type:s.g.Count,data:e.count}))))}))))}},13037:(e,t,n)=>{n.d(t,{b:()=>d});var r=n(1024),a=n.n(r),o=n(23481),i=n(8493),c=n(42735),l=n(54610),s=n(67453),u=n(79967),p=n(61557);const f={modalWidth:"v5TkI",banner:"LlPSp",bannerContent:"upY3A"};var m="specialEventCalendar.eventsListItem";function d(e){var t=e.event,n=e.getAppLink,r=e.onClick,d=(0,u.k)(),h=n(t.content.id,t.name),v=t.name,y=t.description,g=t.content,E=g.metadata.backgroundColor,b=g.banner.url,k=t.startDate,w=t.endDate,O=s.j.createUrl(b,{size:l.h2.Large}),D=!!w;return a().createElement("div",null,a().createElement(i.F,{appLink:h,className:"cursor-pointer text-decoration-none",onClick:r},a().createElement("div",{className:"banner rounded-lg position-relative ".concat(f.banner),style:{backgroundColor:E,backgroundImage:"url('".concat(O,"')")},title:v},a().createElement("div",{className:"".concat(f.bannerContent," px-2")},a().createElement("div",{className:"text-white"},D&&a().createElement("div",{className:""},p.T.getDisplayDate(k,w)),a().createElement("h2",{className:"h4 clamp-1"},v)),a().createElement("div",{className:"flex-shrink-0"},a().createElement(c.K,{className:"btn btn-outline-dark font-weight-500"},o.T.getPhrase(m,d.xs?"mobileButtonLabel":"buttonLabel")))))),a().createElement("div",{className:"mt-2 mb-3"},y))}},39780:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(97395);function a(e){return a="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},a(e)}function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function p(e,t,n,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new x(a||[]);return r(i,"_invoke",{value:O(e,n,c)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=p;var m={};function d(){}function h(){}function v(){}var y={};u(y,c,(function(){return this}));var g=Object.getPrototypeOf,E=g&&g(g(M([])));E&&E!==t&&n.call(E,c)&&(y=E);var b=v.prototype=d.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,c,l){var s=f(e[r],e,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==a(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,c,l)}),(function(e){o("throw",e,c,l)})):t.resolve(p).then((function(e){u.value=e,c(u)}),(function(e){return o("throw",e,c,l)}))}l(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=D(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function D(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,D(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,m;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,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function M(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(b,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},k(w.prototype),u(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(p(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(b),u(b,s,"Generator"),u(b,c,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=M,x.prototype={constructor:x,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(N),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.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,m):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),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;N(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}var i={calendarEvents:function(e,t,a){var i=this;return{url:r._.urlBuilder("{gateway}/v1/special-events",{from:e,to:t,presentationId:a}),key:"events:from:".concat(e,":to").concat(t),successResponse:function(){return e=i,t=void 0,r=void 0,a=o().mark((function e(){var t,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(4279).then(n.t.bind(n,34279,19));case 2:return t=e.sent,r=t.default,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})),new(r||(r=Promise))((function(n,o){function i(e){try{l(a.next(e))}catch(e){o(e)}}function c(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((a=a.apply(e,t||[])).next())}));var e,t,r,a},timeout:300}}}},61557:(e,t,n)=>{n.d(t,{T:()=>c});var r=n(28400),a=n(110),o=n(97291),i=n(14070),c={getTopicAppLink:function(e,t){return{application:o.O.SUBJECT,action:i.e.Subjects.CLASSIFICATION,args:[e,r.m.slugify(t)]}},getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))}}},81330:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>re});var r=n(1024),a=n.n(r),o=n(20354),i=n(81886),c=n(75896),l=n(110),s=n(23049),u=n(23481),p=n(25925),f=n(21750),m=n(53957),d=n(3278),h=n(37802),v=n(97291),y=n(14070),g=n(79967),E=n(8493),b=n(75795),k=n(83914),w=n(58130),O=n(11607);const D={actions:"AN06o",chevron:"Nq52s",left:"c5fYo",right:"vogYk"};var L="specialEventCalendar.calendarHeader",N=6,x=12;function M(e){var t="previous"===e.action?w.vn.ChevronLeft:w.vn.ChevronRight,n="previous"===e.action?D.left:D.right;return a().createElement(O.L,{className:"".concat(D.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:e.onClick},a().createElement(k.x,{svgName:t,size:k.S.Medium,className:"svg-container d-inline-block ".concat(D.svg)}))}var C=new Date;function T(e){var t=(0,g.k)();function n(e){var t=b.O.getCurrentRoute().appLink,n=t.params?Object.assign({},t.params):{};return n.monthDate=l.O.format(e,"MM-DD-YYYY"),Object.assign(Object.assign({},t),{params:n})}var r=l.O.diffBetween(l.O.startOf(e.monthDate,"month"),l.O.startOf(C,"month"),"months"),o=r>-1*N,i=r<x;return a().createElement("div",{className:"d-flex justify-content-between align-items-center"},a().createElement("h1",{className:"mb-0 h2"},l.O.format(e.monthDate,t.xs?"MMM YYYY":"MMMM YYYY")),a().createElement("div",{className:"d-flex ".concat(D.actions)},o&&a().createElement(E.F,{appLink:n(l.O.startOf(l.O.subtract(e.monthDate,1,"month"),"month")),className:"d-flex"},a().createElement(M,{action:"previous",onClick:function(){var t=l.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)}})),a().createElement(E.F,{appLink:n(C),className:"d-flex"},a().createElement(O.L,{className:"".concat(D.todayWrapper," btn btn-outline-dark font-weight-500"),onClick:function(){l.O.format(C,"DD-MM-YYYY")!==l.O.format(e.monthDate,"DD-MM-YYYY")&&e.setViewingMonthDate(C)}},u.T.getPhrase(L,"today"))),i&&a().createElement(E.F,{appLink:n(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month")),className:"d-flex"},a().createElement(M,{action:"next",onClick:function(){var t=l.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}}))))}var S=n(99910),Y=n(54610),A=n(67453),j=n(61557);const P={eventCard:"MPgib",displayDate:"i5dV5",title:"od2i9",fixedTitle:"q_Zeg",circle:"Y9ovs",active:"DSUJW",left:"KBv2n",right:"dowd6"};function _(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}function I(e){var t,n,r=e.eventsOnDay,o=e.monthQuery,i=e.date,c=(t=a().useState(0),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,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return _(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)?_(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.")}()),l=c[0],s=c[1],u=r.length>1,p=r.find((function(e,t){return t===l})),f=!!p.endDate,m=p.name,d=p.content,h=d.metadata.backgroundColor,g=d.thumbnail.url,b=p.startDate,D=p.endDate,L=A.j.createUrl(g,{size:Y.h2.Small}),N=A.j.createUrl(p.content.cover.url,{size:Y.h2.Small}),x=j.T.getTopicAppLink(p.content.id,m),M={application:v.O.CALENDAR,action:y.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},o),{date:i.toString()})};return a().createElement(E.F,{appLink:u?M:x},a().createElement("div",{style:{backgroundColor:h,backgroundImage:"url('".concat(L||N,"')")},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white ".concat(P.eventCard)},f&&a().createElement("div",{className:P.displayDate},j.T.getDisplayDate(b,D)),a().createElement("div",{className:"text-center ".concat(P.title," ").concat(u&&!f?"".concat(P.fixedTitle):""," ").concat(u?"mb-1":"")},f?a().createElement("div",{className:"clamp-1",title:m},m):a().createElement("div",{className:"clamp-2",title:m},m)),u&&0!==l&&a().createElement("div",{className:"position-absolute text-white ".concat(P.left)},a().createElement(O.L,{onClick:function(e){e.stopPropagation(),e.preventDefault(),s((function(e){return e-1}))}},a().createElement(k.x,{svgName:w.vn.ChevronLeft,size:k.S.Small}))),u&&l!==r.length-1&&a().createElement("div",{className:"position-absolute text-white ".concat(P.right)},a().createElement(O.L,{onClick:function(e){e.stopPropagation(),e.preventDefault(),s((function(e){return e+1}))}},a().createElement(k.x,{svgName:w.vn.ChevronRight,size:k.S.Small}))),u&&a().createElement("div",{className:"d-flex"},r.map((function(e,t){var n=t===l;return a().createElement(O.L,{key:t,className:"".concat(P.circle," ").concat(n?P.active:""),onClick:function(e){e.stopPropagation(),e.preventDefault(),s(t)}})})))))}const U={wrapper:"ID5BX",notCurrentMonth:"KThJz",cellDate:"NNLEU",today:"aj22S",hasEvent:"t6Opv",weekend:"Le3vK"};function R(e){var t=e.date,n=e.notCurrentMonth,r=e.eventsOnDay,o="position-relative border border-light-blue ".concat(U.wrapper);(function(e){return 0===l.O.getWeekday(e)||6===l.O.getWeekday(e)})(t)&&(o+=" ".concat(U.weekend)),n&&(o+=" ".concat(U.notCurrentMonth));var i=l.O.isToday(t),c=r.length>0,s="d-flex p-2 justify-content-center align-items-center ".concat(U.cellDate);return i&&(s+=" ".concat(U.today)),n&&(s+=" ".concat(U.notCurrentMonth)),c&&(s+=" ".concat(U.hasEvent)),a().createElement("td",{className:o},a().createElement("div",{className:s},l.O.format(t,"D")),c&&a().createElement(I,Object.assign({},e)))}var F=n(83345),H=n(23232),B=n(99742),z="specialEvent.eventsEmptyState",V=u.T.encloseNamespace(z);function G(e){return a().createElement(F.D.Provider,{value:z},a().createElement(H.u,null,a().createElement(H.u.Image,{src:B.W.EmptyStates.CALENDAR.NO_EVENTS}),a().createElement(H.u.Heading,null,a().createElement(F.x,{phrase:"heading"})),a().createElement(H.u.Info,null,a().createElement(F.x,{namespace:z,phrase:"info"}),a().createElement(E.F,{appLink:e.appLink},a().createElement("span",{className:"text-blue"},V("link"))))))}var W=n(13037);function J(e){var t={};e.events.forEach((function(e){var n=e.startDate;t[n]?t[n].push(e):t[n]=[e]}));var n=Object.keys(t);return n.sort((function(e,t){return l.O.isBefore(e,t)?-1:0})),a().createElement("div",{className:"py-1"},n.map((function(e){return a().createElement("div",{key:e,className:"mt-2"},a().createElement("div",{className:"h3"},l.O.format(e,"D MMM")),t[e].map((function(e){return a().createElement(W.b,{key:e.content.id,getAppLink:j.T.getTopicAppLink,event:e})})))})))}const Q={header:"xLOrx",thead:"ef_XJ"};function Z(e){var t=(0,g.k)();if(e.loadingEvents)return a().createElement("div",{className:"text-center p-5 mt-5"},a().createElement(S.Spinner,{as:"div",animation:"border",role:"status"}));var n=j.T.getEventsInMonth(e.events,e.viewingMonth);return t.xs||t.sm||t.md?(null==n?void 0:n.length)?a().createElement(J,{events:n}):a().createElement(G,{appLink:{application:v.O.CONTENT_UPDATES,action:y.e.ContentUpdates.CONTENT_UPDATES}}):a().createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},a().createElement("thead",{className:"border border-light-blue ".concat(Q.thead)},a().createElement("tr",{className:"font-weight-500 bg-light-blue ".concat(Q.header)},e.weekDaysHeader.map((function(e){return a().createElement("th",{key:e,className:"px-2 h4"},e)})))),a().createElement("tbody",null,e.weekDays.map((function(t){return a().createElement("tr",{key:t[0].toString(),className:"font-weight-500"},t.map((function(t){var n=e.events.filter((function(e){return e.startDate===l.O.format(t,"YYYY-MM-DD")}))||[];return a().createElement(R,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,eventsOnDay:n,monthQuery:e.monthQuery})})))}))))}function K(e,t){return 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,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(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)?q(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 q(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 X=new Date;function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(e){var t=e?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],n=new Date;return t.map((function(e){return l.O.format(l.O.weekday(n,e),"ddd")}))}(t),r=a().useRef({}),o=K(a().useState(e||X),2),i=o[0],c=o[1],s=K(a().useState([]),2),u=s[0],p=s[1],f=l.O.format(i,"MM-YYYY");return a().useEffect((function(){var e=r.current[f];if(e)p(e.weeksTable);else{var n=function(e,t){for(var n=[],r={},a=function(e,t){for(var n=l.O.startOf(e,"month"),r=l.O.getWeekday(n),a=[],o=t?0===r?6:r-1:r,i=t?1:0;i<=o;i++){var c=n,s=l.O.weekday(c,r-i);a.push(Object.assign(s,{notCurrentMonth:!0}))}return a.reverse()}(e,t).concat(function(e){for(var t=l.O.daysInMonth(e),n=[],r=1;r<=t;r++){var a=l.O.set(e,"date",r);n.push(Object.assign(a,{notCurrentMonth:!1}))}return n}(e)).concat(function(e,t){for(var n=l.O.endOf(e,"month"),r=l.O.getWeekday(n),a=[],o=t?7-(0===r?7:r):7-r,i=1;i<=o;i+=1){var c=l.O.add(n,i,"days");a.push(Object.assign(c,{notCurrentMonth:!0}))}return a}(e,t)),o=function(e){var t=a.slice(i,i+7);t.forEach((function(t,n){r[l.O.format(t,"DD-MM-YYYY")]={row:e,col:n}})),n.push(t),e++,c=e},i=0,c=0;i<a.length;i+=7)o(c);return{datePositionMap:r,weeksTable:n}}(i,t),a=n.weeksTable,o=n.datePositionMap;r.current[f]={weeksTable:a,datePositionMap:o},p(a)}}),[f]),{weekDaysHeader:n,weekDays:u,monthDate:i,setMonthDate:function(e){f!==l.O.format(e,"MM-YYYY")&&c(e)}}}var ee=n(39780),te={dashboardAppLink:{application:v.O.DASHBOARD,action:y.e.Dashboard.HOME},contentUpdatesAppLink:{application:v.O.CONTENT_UPDATES,action:y.e.ContentUpdates.CONTENT_UPDATES},calendarAppLink:{application:v.O.CALENDAR,action:y.e.Calendar.CALENDAR}},ne=u.T.encloseNamespace("specialEventCalendar.calendarView");function re(e){(0,s.o)(ne("pageTitle"));var t=(0,h.r)(null),n=t.hasSpecialEventCalendar,r=t.isLoadingSettings,u=o.a.useBasicFetch(f.x.presentation(p.R.Subject));a().useEffect((function(){r||n||i.Q.AppLinkHelper.trigger(te.dashboardAppLink)}),[n,r]);var v=e.monthDate?new Date(e.monthDate):new Date,y=$(v),g=y.monthDate,E=y.setMonthDate,b=y.weekDays,k=y.weekDaysHeader,w=c.m.first(c.m.first(b)),O=c.m.last(c.m.last(b)),D=o.a.useBasicFetch(w&&O&&u.data&&ee.N.calendarEvents(l.O.format(w,"YYYY-MM-DD"),l.O.format(O,"YYYY-MM-DD"),u.data.id));return r?a().createElement(a().Fragment,null):a().createElement("div",{className:"bg-white px-3"},a().createElement(d.z,{type:m.DashboardUserType.Staff,appLinks:{forYou:te.dashboardAppLink,newReleases:te.contentUpdatesAppLink,calendar:te.calendarAppLink}}),a().createElement(T,{monthDate:g,setViewingMonthDate:E}),a().createElement(Z,{weekDays:b,weekDaysHeader:k,events:D.data,monthQuery:{from:null==w?void 0:w.toString(),to:null==O?void 0:O.toString()},viewingMonth:v,loadingEvents:!D.hasCompleted||D.isFetching}))}},87432:(e,t,n)=>{n.d(t,{Z:()=>r});const r={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 1592-
|
|
1
|
+
/*! For license information please see 1592-6f78f2b9a3-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1592],{9826:(e,t,n)=>{n.d(t,{e:()=>p});var r=n(1024),o=n(79014),a=n(10038),i=n(81514),c=n(86764);const l={stickyFooter:"rIUL4",nonStickyFooter:"PuC_F"};function u(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 d(e){var t="justify-content-".concat(e.justify);return r.createElement("div",{className:"py-3 bg-white ".concat(l.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===c.r.SM||t===c.r.XS?"w-100":"w-75",o="justify-content-".concat(e.justify);return r.createElement("div",{className:"".concat(n," ").concat(o," ").concat(l.nonStickyFooter," d-flex px-3")},e.children)}function p(e){var t,n,i=function(){return window.innerHeight+window.scrollY>=document.body.offsetHeight-s},c=(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,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(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.")}()),l=c[0],p=c[1];r.useEffect((function(){return p(!i())}),[]);var m=o.q.throttle((function(){var e=!i();!l||e?!l&&e&&p(!0):p(!1)}),100);return r.useEffect((function(){return window.addEventListener("scroll",m),function(){return window.removeEventListener("scroll",m)}}),[l,p]),(0,a.H)(m,m,[l,p]),l?r.createElement(d,Object.assign({},e),e.children):r.createElement(f,Object.assign({},e),e.children)}p.defaultProps={justify:"between"}},94035:(e,t,n)=>{n.d(t,{ed:()=>r.e,cQ:()=>h.c,i:()=>f,RP:()=>y});var r=n(9826),o=(n(95436),n(1024)),a=n(75896),i=n(86764),c=n(81514),l=n(70154),u=n(92875),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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function d(e){var t=o.useContext(l.x),n=t.expandedSubject,r=t.selectedSubjects;return o.createElement(o.Fragment,null,e.subjects.map((function(t){var a=function(e,t){return!(!t||e.id===t.id||t.children.find((function(t){return t.id===e.id})))}(t,n),i=e.onSelect;return t.isExpandableOption&&(i=e.onExpand),a&&(i=e.onCollapse),e.hasSelectedBulk&&(i=function(){}),o.createElement(y,{key:t.id,subject:t,selected:!e.hasSelectedBulk&&r.includes(t.id),disabled:e.hasSelectedBulk||a,onClick:function(){return i(t)},hasSelectedBulk:e.hasSelectedBulk})})))}function f(e){var t=e.subjects,n=e.hasSelectedBulk,r=s(e,["subjects","hasSelectedBulk"]),p=o.useContext(l.x).expandedSubject,m=function(){switch((0,c.V)()){case i.r.LG:default:return 5;case i.r.MD:return 4;case i.r.SM:return 3;case i.r.XS:return 2}}(),h=t.reduce((function(e,t,n){return n%m==0?e.push([t]):a.m.last(e).push(t),e}),[]);return o.createElement("ul",{className:u.Z.grid},h.map((function(e,t){var a=p&&!!e.find((function(e){return p.id===e.id&&e.isExpandableOption}));return o.createElement(o.Fragment,{key:t},o.createElement(d,Object.assign({subjects:e,hasSelectedBulk:n},r)),a&&o.createElement("li",{className:"".concat(u.Z.subgrid," m-0")},o.createElement(f,Object.assign({subjects:p.children,hasSelectedBulk:n},r))))})))}var p=n(67453),m=n(54610),h=n(386),v=n(36532);function y(e){var t,n,r=o.useContext(l.x),a=e.subject.cover?p.j.createUrl(e.subject.cover.url,{size:m.h2.Small}):"",i=e.subject.isExpandableOption?e.subject.children.map((function(e){return e.id})):[],c=e.hasSelectedBulk?0:null===(t=null==r?void 0:r.selectedSubjects)||void 0===t?void 0:t.filter((function(e){return i.includes(e)})).length,u=o.createElement(h.c,{name:e.subject.name,imageUrl:a,onClick:e.onClick,isSelected:e.selected,isDisabled:e.disabled,isExpandable:e.subject.isExpandableOption,expand:(null===(n=null==r?void 0:r.expandedSubject)||void 0===n?void 0:n.id)===e.subject.id,selectedChildCount:c,extraClasses:e.extraClasses,hideStatus:e.hideStatus});return e.disabled?o.createElement("span",null,u):o.createElement(v.u,{title:e.subject.name},o.createElement("span",null,u))}},95436:(e,t,n)=>{n.d(t,{a:()=>i});var r=n(1024),o=n(8493);const a={progress:"cwMAI",progressItem:"G0_JK"};function i(e){return r.createElement("nav",{className:"d-flex justify-content-center pt-3 position-relative ".concat(a.progress)},e.steps.map((function(e,t){return r.createElement(o.F,{key:t,appLink:e.disabled||e.active?null:e.appLink,className:(n=e.active,i=e.disabled,c="rounded-circle mx-2 "+a.progressItem,l=n?"bg-info":"bg-light",u=i||n?"":"cursor-pointer","".concat(c," ").concat(l," ").concat(u))});var n,i,c,l,u})))}},386:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(1024),o=n.n(r),a=n(83914),i=n(58130);const c={preferenceItem:"PSWHa",expandCaret:"CCsqs",up:"w7N1R",down:"mO0Kn",disabled:"Oyw2x",selected:"Czk2N",noBorder:"_e7oe",textBox:"pfksF",itemStatus:"H4u81",unchecked:"iYkPv",green:"w5g0e"};var l=function(e){return e.selectedChildrenCount?r.createElement("div",{className:"".concat(c.itemStatus," ").concat(c.green)},e.selectedChildrenCount):r.createElement(r.Fragment,null)},u=function(e){var t;return t=e.selected?r.createElement(a.x,{svgName:i.vn.Check}):e.radioButton?r.createElement(r.Fragment,null," "):r.createElement(a.x,{svgName:i.vn.Plus}),r.createElement("div",{className:"".concat(c.itemStatus," ").concat(e.selected?c.green:c.unchecked)},t)};function s(e){var t,n="".concat(c.expandCaret," ").concat(e.expand?c.up:c.down);return o().createElement("li",{className:(t="rounded-lg ".concat(c.preferenceItem),e.extraClasses&&(t+=" "+e.extraClasses),e.isDisabled&&(t+=" "+c.disabled),e.isSelected&&!e.isExpandable&&(t+=" "+c.selected),e.hideStatus&&(t+=" "+c.noBorder),t),onClick:e.onClick,"aria-checked":e.isSelected,"aria-haspopup":e.isExpandable,role:e.isExpandable?"button":"checkbox",style:{backgroundImage:"url(".concat(e.imageUrl,")")},tabIndex:0,title:e.name},o().createElement("div",{className:"".concat(c.textBox," p-2")},o().createElement("p",{className:"text-truncate mb-0"},e.name,o().createElement("span",{className:e.isExpandable?n:""})),!e.hideStatus&&o().createElement(o().Fragment,null,e.isExpandable?o().createElement(l,{selectedChildrenCount:e.selectedChildCount}):o().createElement(u,{selected:e.isSelected,radioButton:e.radioButton}))))}},70154:(e,t,n)=>{n.d(t,{x:()=>r});var r=(0,n(1024).createContext)(void 0)},1592:(e,t,n)=>{n.r(t),n.d(t,{SchoolLevelSelectorPopupView:()=>U});var r=n(1024),o=n.n(r),a=n(99910),i=n(81886),c=n(23481),l=n(2948),u=n(57900),s=n(83345),d=n(38143),f=function(){return o().createElement("span",{className:"d-inline-block animated-ellipsis"},o().createElement("span",null,"."),o().createElement("span",null,"."),o().createElement("span",null,"."))},p=n(25925),m=n(9111),h=n(94035),v=n(67453),y=n(54610),g=n(69883),b=n(83914),E=n(58130),w=n(52641),x=n(13876),S=n(49985),k=n(65858),j=n(14070),L=n(97291),O=n(86698);const C={preferenceList:"tLO8p",preferenceItem:"TOmGl",largePopup:"_9d72P",selectPresentation:"rVRaW",switchPresentation:"Q15YD"};function N(e){return N="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},N(e)}function P(){P=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),c=new j(o||[]);return r(i,"_invoke",{value:w(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function m(){}var h={};l(h,a,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==t&&n.call(y,a)&&(h=y);var g=m.prototype=f.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(r,a,i,c){var l=s(e[r],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==N(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return o("throw",e,i,c)}))}c(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function w(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;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,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=m,r(g,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(E.prototype),l(E.prototype,i,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,j.prototype={constructor:j,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(k),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function _(e,t){return 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,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(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.")}()}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 A=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function c(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))},T="settings.schoolLevelSelectorPopup",B=c.T.encloseNamespace(T),F=1750;function U(e){var t=(0,g.Z)(),n=_((0,l.D)(d.g.AUDIENCE_FILTER,void 0,{storage:u.Z1.SessionStorage}),2)[1],r=_(o().useState(!1),2),N=r[0],I=r[1],U=_(o().useState(null),2),G=U[0],H=U[1],M=(0,O.y)(p.R.Subject),R=M.presentation,D=M.availablePresentations,z=M.selectedPresentation,V=M.setSelectedPresentation,Y=M.persistPresentation,Q=M.hasLoaded;function X(){S.k.logUserAction({id:null==R?void 0:R.id,targetId:z.id},{actionType:k.UserAction.EditAssoc,entity:k.EntityType.Presentation,location:k.LocationContext.Popup,workflowPhase:k.WorkflowPhase.Complete,eventVersion:k.EventVersion.V3}),i.Q.AppLinkHelper.trigger({application:L.O.DASHBOARD,action:j.e.Dashboard.HOME}),t.success(B("success")),e.closePopup()}function Z(){t.error(c.T.getPhrase(T,"error"))}function W(){I(!0),n(null),function(){var e=this,t=window.setTimeout((function(){return A(e,void 0,void 0,P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y(X,Z);case 2:q();case 3:case"end":return e.stop()}}),e)})))}),F);H(t)}()}function q(){G&&window.clearTimeout(G),e.closePopup()}o().useEffect((function(){(null==R?void 0:R.id)&&V(R)}),[null==R?void 0:R.id]);var K=(null==D?void 0:D.length)>w._.MULTI_PRESENTATION_THRESHOLD?"lg":void 0,$=(null==D?void 0:D.length)>w._.MULTI_PRESENTATION_THRESHOLD?"largePopup":"";return o().createElement(m.G,{title:N?"":B("title"),closePopup:q,showLoadingSpinner:!Q,size:K},N?o().createElement((function(){var e,t;return(null==R?void 0:R.id)===(null==z?void 0:z.id)?o().createElement(o().Fragment,null):o().createElement("div",{className:"text-center pt-4 ".concat($," ").concat(C.switchPresentation)},o().createElement("div",{className:"position-relative d-inline-flex align-items-center py-3"},o().createElement(h.cQ,{key:null==R?void 0:R.id,name:null==R?void 0:R.name,imageUrl:v.j.createUrl(null===(e=null==R?void 0:R.cover)||void 0===e?void 0:e.url,{size:y.h2.Medium})||"",extraClasses:"".concat(C.preferenceItem," mx-2"),isSelected:!1,hideStatus:!0}),o().createElement(b.x,{svgName:E.vn.ArrowRight,className:"svg-container",size:b.S.XXL}),o().createElement(h.cQ,{key:null==z?void 0:z.id,name:null==z?void 0:z.name,imageUrl:v.j.createUrl(null===(t=null==z?void 0:z.cover)||void 0===t?void 0:t.url,{size:y.h2.Medium})||"",extraClasses:"".concat(C.preferenceItem," mx-2"),isSelected:!1,hideStatus:!0})),o().createElement("div",{className:"mt-3"},o().createElement("p",{className:"h4"},B("switching",{schoolLevel:null==z?void 0:z.name}),o().createElement(f,null)),o().createElement("p",null,B("redirect")),o().createElement(a.Button,{variant:"link",className:"info-link mr-2 py-3",onClick:q},o().createElement(s.x,{namespace:T,phrase:"cancel"}))))}),null):o().createElement((function(){return o().createElement("div",{className:"".concat(C.selectPresentation," ").concat($)},o().createElement("p",null,o().createElement(s.x,{namespace:T,phrase:"info"})),o().createElement("div",{className:"mt-3"},o().createElement("div",{className:"position-relative"},o().createElement("ul",{className:"list-unstyled d-flex ".concat(C.preferenceList)},null==D?void 0:D.map((function(e){var t;return e.type!==p.R.Subject?o().createElement(o().Fragment,{key:e.id}):o().createElement(h.cQ,{key:e.id,name:e.name,imageUrl:v.j.createUrl(null===(t=e.cover)||void 0===t?void 0:t.url,{size:y.h2.Medium})||"",onClick:function(){return function(e){V(e)}(e)},isSelected:(null==z?void 0:z.id)===e.id,extraClasses:"".concat(C.preferenceItem," m-2"),radioButton:!0})})))),o().createElement(x.u,null,o().createElement(x.u.Cancel,{onClick:q}),o().createElement(x.u.Submit,{variant:"dark",disabled:(null==R?void 0:R.id)===(null==z?void 0:z.id),onClick:W,text:B("save")}))))}),null))}},92875:(e,t,n)=>{n.d(t,{Z:()=>r});const r={grid:"X9r1Y",subgrid:"TgYhp"}}}]);
|