@clickview/lite 0.0.36 → 0.0.37-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/101-lite-f6f9f41353.chunk.css +2 -0
- package/dist/css/102-lite-c735c29d04.chunk.css +2 -0
- package/dist/css/29-lite-697606d9b9.chunk.css +22 -0
- package/dist/css/30-lite-697606d9b9.chunk.css +22 -0
- package/dist/css/30-lite.chunk.css +1 -1
- package/dist/css/34-lite-a3708b1964.chunk.css +10 -0
- package/dist/css/35-lite-7ca3f0a11c.chunk.css +10 -0
- package/dist/css/36-lite-e5df365569.chunk.css +10 -0
- package/dist/css/56-lite-1696cbd6bd.chunk.css +4 -0
- package/dist/css/57-lite-d8801b4cc5.chunk.css +6 -0
- package/dist/css/67-lite-794d3729e3.chunk.css +4 -0
- package/dist/css/69-lite-223991f675.chunk.css +4 -0
- package/dist/css/70-lite-f429a540cb.chunk.css +4 -0
- package/dist/css/71-lite-2fff9bb973.chunk.css +6 -0
- package/dist/css/77-lite-42a5dcfa34.chunk.css +4 -0
- package/dist/css/78-lite-4a91cb7ba9.chunk.css +4 -0
- package/dist/css/84-lite-c5e12d3f1d.chunk.css +2 -0
- package/dist/css/87-lite-9ea4b2ab88.chunk.css +2 -0
- package/dist/css/88-lite-dc68a449e9.chunk.css +2 -0
- package/dist/css/89-lite-6e036f7110.chunk.css +2 -0
- package/dist/css/90-lite-b76c927aec.chunk.css +2 -0
- package/dist/css/91-lite-b76c927aec.chunk.css +2 -0
- package/dist/css/92-lite-37113f3b03.chunk.css +2 -0
- package/dist/css/93-lite-4ea4ab4f82.chunk.css +4 -0
- package/dist/css/94-lite-1b8d018064.chunk.css +2 -0
- package/dist/css/96-lite-dc68a449e9.chunk.css +2 -0
- package/dist/css/98-lite-fdc3ceff80.chunk.css +2 -0
- package/dist/css/lite-app-7e227fcbca.css +147 -0
- package/dist/css/lite-app-d1eacb1a19.css +147 -0
- package/dist/css/lite-app.css +9 -0
- package/dist/en.json +1 -1
- package/dist/scripts/0-3de875b3fa-lite.chunk.js +1 -0
- package/dist/scripts/0-50b38f3dee-lite.chunk.js +1 -0
- package/dist/scripts/1-b9a4a06758-lite.chunk.js +17 -0
- package/dist/scripts/1-c2600cf917-lite.chunk.js +17 -0
- package/dist/scripts/10-2f0f877392-lite.chunk.js +53 -0
- package/dist/scripts/10-5989ce1c6c-lite.chunk.js +53 -0
- package/dist/scripts/10-lite.chunk.js +1 -1
- package/dist/scripts/100-05d41e762e-lite.chunk.js +1 -0
- package/dist/scripts/100-50de42924f-lite.chunk.js +1 -0
- package/dist/scripts/101-ccc3d24eef-lite.chunk.js +1 -0
- package/dist/scripts/101-d3411d5438-lite.chunk.js +1 -0
- package/dist/scripts/102-30c5bf493e-lite.chunk.js +1 -0
- package/dist/scripts/102-93de61a473-lite.chunk.js +1 -0
- package/dist/scripts/103-5060210561-lite.chunk.js +1 -0
- package/dist/scripts/103-7f721637df-lite.chunk.js +1 -0
- package/dist/scripts/104-1f731f601f-lite.chunk.js +1 -0
- package/dist/scripts/104-efaefe9e56-lite.chunk.js +1 -0
- package/dist/scripts/105-749d2fae78-lite.chunk.js +1 -0
- package/dist/scripts/105-ce2b619d27-lite.chunk.js +1 -0
- package/dist/scripts/106-bf1bfb5453-lite.chunk.js +1 -0
- package/dist/scripts/106-ffce078c74-lite.chunk.js +1 -0
- package/dist/scripts/107-146b960531-lite.chunk.js +1 -0
- package/dist/scripts/107-3fdc324d98-lite.chunk.js +1 -0
- package/dist/scripts/108-ce5bf08ba1-lite.chunk.js +1 -0
- package/dist/scripts/108-eb9bf1d0f9-lite.chunk.js +1 -0
- package/dist/scripts/109-0e703e27bd-lite.chunk.js +1 -0
- package/dist/scripts/109-98039c9767-lite.chunk.js +1 -0
- package/dist/scripts/11-24d1152962-lite.chunk.js +1 -0
- package/dist/scripts/11-6a2ed615fa-lite.chunk.js +1 -0
- package/dist/scripts/110-4577784263-lite.chunk.js +1 -0
- package/dist/scripts/110-cc1e0c3450-lite.chunk.js +1 -0
- package/dist/scripts/111-62c0128a85-lite.chunk.js +1 -0
- package/dist/scripts/111-69ff0069c6-lite.chunk.js +1 -0
- package/dist/scripts/112-c1b3484100-lite.chunk.js +1 -0
- package/dist/scripts/112-c325b43d70-lite.chunk.js +1 -0
- package/dist/scripts/113-8e7315d212-lite.chunk.js +1 -0
- package/dist/scripts/113-b0f4c34f2b-lite.chunk.js +1 -0
- package/dist/scripts/114-941306e1ae-lite.chunk.js +1 -0
- package/dist/scripts/114-e3c4733c32-lite.chunk.js +1 -0
- package/dist/scripts/115-4bc52bc647-lite.chunk.js +1 -0
- package/dist/scripts/115-5dc866649d-lite.chunk.js +1 -0
- package/dist/scripts/116-032b3d9a36-lite.chunk.js +1 -0
- package/dist/scripts/116-7315159d99-lite.chunk.js +1 -0
- package/dist/scripts/117-019779e155-lite.chunk.js +1 -0
- package/dist/scripts/117-8a93c791a4-lite.chunk.js +1 -0
- package/dist/scripts/118-1608a35359-lite.chunk.js +1 -0
- package/dist/scripts/118-39a3deb1a5-lite.chunk.js +1 -0
- package/dist/scripts/119-3466e2361b-lite.chunk.js +1 -0
- package/dist/scripts/119-fc2643d9fe-lite.chunk.js +1 -0
- package/dist/scripts/12-53e41dc421-lite.chunk.js +1 -0
- package/dist/scripts/12-6673e2823a-lite.chunk.js +1 -0
- package/dist/scripts/12-lite.chunk.js +1 -1
- package/dist/scripts/120-09fe2f4a0a-lite.chunk.js +1 -0
- package/dist/scripts/120-4a2dcc876a-lite.chunk.js +1 -0
- package/dist/scripts/121-666911a249-lite.chunk.js +1 -0
- package/dist/scripts/121-8a07a48ee3-lite.chunk.js +1 -0
- package/dist/scripts/122-13af13ac0d-lite.chunk.js +1 -0
- package/dist/scripts/122-1468387844-lite.chunk.js +1 -0
- package/dist/scripts/123-8970b97f4b-lite.chunk.js +1 -0
- package/dist/scripts/123-8aa496545d-lite.chunk.js +1 -0
- package/dist/scripts/124-00c7675209-lite.chunk.js +1 -0
- package/dist/scripts/124-58c908d81a-lite.chunk.js +1 -0
- package/dist/scripts/125-694d0b470e-lite.chunk.js +1 -0
- package/dist/scripts/125-f98980b6f2-lite.chunk.js +1 -0
- package/dist/scripts/126-13cae21168-lite.chunk.js +1 -0
- package/dist/scripts/126-5331a1e22a-lite.chunk.js +1 -0
- package/dist/scripts/127-bac341d87f-lite.chunk.js +1 -0
- package/dist/scripts/128-53f566f0bb-lite.chunk.js +1 -0
- package/dist/scripts/13-98b93bd0f8-lite.chunk.js +1 -0
- package/dist/scripts/13-c2cac96302-lite.chunk.js +1 -0
- package/dist/scripts/133-lite.chunk.js +1 -1
- package/dist/scripts/14-f9be41b7ff-lite.chunk.js +1 -0
- package/dist/scripts/14-fda5e50373-lite.chunk.js +1 -0
- package/dist/scripts/141-lite.chunk.js +1 -1
- package/dist/scripts/15-175868579e-lite.chunk.js +1 -0
- package/dist/scripts/15-3039645709-lite.chunk.js +1 -0
- package/dist/scripts/16-3b68532ba4-lite.chunk.js +1 -0
- package/dist/scripts/16-87892585d7-lite.chunk.js +1 -0
- package/dist/scripts/17-5f65681cae-lite.chunk.js +1 -0
- package/dist/scripts/17-d86b8431c0-lite.chunk.js +1 -0
- package/dist/scripts/18-531a405ced-lite.chunk.js +1 -0
- package/dist/scripts/18-a3416a79f7-lite.chunk.js +1 -0
- package/dist/scripts/19-4037f36189-lite.chunk.js +1 -0
- package/dist/scripts/19-99d605b70e-lite.chunk.js +1 -0
- package/dist/scripts/2-aace6e333e-lite.chunk.js +1 -0
- package/dist/scripts/2-ae6eff5eca-lite.chunk.js +1 -0
- package/dist/scripts/20-090b8b78d0-lite.chunk.js +1 -0
- package/dist/scripts/20-5d321b0376-lite.chunk.js +1 -0
- package/dist/scripts/21-c6d4a74bb5-lite.chunk.js +1 -0
- package/dist/scripts/21-ccb3c0fddb-lite.chunk.js +1 -0
- package/dist/scripts/22-8a247c36f3-lite.chunk.js +1 -0
- package/dist/scripts/22-aa827a3c03-lite.chunk.js +1 -0
- package/dist/scripts/23-3911d254da-lite.chunk.js +1 -0
- package/dist/scripts/23-8b60b2d781-lite.chunk.js +1 -0
- package/dist/scripts/23-lite.chunk.js +1 -1
- package/dist/scripts/25-lite.chunk.js +2 -2
- package/dist/scripts/26-74ed6cccb4-lite.chunk.js +1 -0
- package/dist/scripts/26-91edc78c1f-lite.chunk.js +1 -0
- package/dist/scripts/27-e3fcebbc74-lite.chunk.js +1 -0
- package/dist/scripts/27-e6fe3e3648-lite.chunk.js +1 -0
- package/dist/scripts/28-25aa85123a-lite.chunk.js +1 -0
- package/dist/scripts/28-2678fa55d1-lite.chunk.js +1 -0
- package/dist/scripts/29-2618c24f2d-lite.chunk.js +1 -0
- package/dist/scripts/29-26f6bdc41a-lite.chunk.js +1 -0
- package/dist/scripts/3-0145e76ab5-lite.chunk.js +1 -0
- package/dist/scripts/3-0e165aa657-lite.chunk.js +1 -0
- package/dist/scripts/3-lite.chunk.js +4 -4
- package/dist/scripts/30-47fc1a1880-lite.chunk.js +1 -0
- package/dist/scripts/30-eeb6bf201c-lite.chunk.js +1 -0
- package/dist/scripts/30-lite.chunk.js +3 -3
- package/dist/scripts/31-20a21d1c09-lite.chunk.js +1 -0
- package/dist/scripts/31-c91348d5f8-lite.chunk.js +1 -0
- package/dist/scripts/31-lite.chunk.js +2 -2
- package/dist/scripts/32-6816fa2ee2-lite.chunk.js +1 -0
- package/dist/scripts/32-844155687a-lite.chunk.js +1 -0
- package/dist/scripts/32-lite.chunk.js +1 -1
- package/dist/scripts/33-20740c1bad-lite.chunk.js +1 -0
- package/dist/scripts/33-414f42000e-lite.chunk.js +1 -0
- package/dist/scripts/33-lite.chunk.js +5 -5
- package/dist/scripts/34-00b71d40ea-lite.chunk.js +1 -0
- package/dist/scripts/34-c52fc77c40-lite.chunk.js +1 -0
- package/dist/scripts/34-lite.chunk.js +1 -1
- package/dist/scripts/35-115a9fd709-lite.chunk.js +1 -0
- package/dist/scripts/35-def2489e94-lite.chunk.js +1 -0
- package/dist/scripts/36-122ea3f409-lite.chunk.js +1 -0
- package/dist/scripts/36-9ac5e01c3a-lite.chunk.js +1 -0
- package/dist/scripts/36-lite.chunk.js +1 -1
- package/dist/scripts/37-b3106da2a5-lite.chunk.js +1 -0
- package/dist/scripts/37-e37e5eef84-lite.chunk.js +1 -0
- package/dist/scripts/38-037f5b3b41-lite.chunk.js +1 -0
- package/dist/scripts/38-a7633567af-lite.chunk.js +1 -0
- package/dist/scripts/39-7a9bf2e7ea-lite.chunk.js +1 -0
- package/dist/scripts/39-92c5743561-lite.chunk.js +1 -0
- package/dist/scripts/4-f39bbfd9e1-lite.chunk.js +1 -0
- package/dist/scripts/4-fdb43b9924-lite.chunk.js +1 -0
- package/dist/scripts/40-202ce0fa96-lite.chunk.js +1 -0
- package/dist/scripts/40-b24137d4ba-lite.chunk.js +1 -0
- package/dist/scripts/41-23ec3d1061-lite.chunk.js +1 -0
- package/dist/scripts/41-99e1f436a3-lite.chunk.js +1 -0
- package/dist/scripts/41-lite.chunk.js +1 -1
- package/dist/scripts/42-4f18c05ef6-lite.chunk.js +1 -0
- package/dist/scripts/42-6b0f486977-lite.chunk.js +1 -0
- package/dist/scripts/43-11c715b79b-lite.chunk.js +1 -0
- package/dist/scripts/43-efe2515dce-lite.chunk.js +1 -0
- package/dist/scripts/43-lite.chunk.js +2 -2
- package/dist/scripts/44-cde3c1dffa-lite.chunk.js +1 -0
- package/dist/scripts/44-de932a54ad-lite.chunk.js +1 -0
- package/dist/scripts/44-lite.chunk.js +1 -1
- package/dist/scripts/45-0c60579abc-lite.chunk.js +1 -0
- package/dist/scripts/45-d674a8b2eb-lite.chunk.js +1 -0
- package/dist/scripts/46-0ddf1facdf-lite.chunk.js +1 -0
- package/dist/scripts/46-8a89347361-lite.chunk.js +1 -0
- package/dist/scripts/47-444d99d220-lite.chunk.js +7 -0
- package/dist/scripts/47-fb84a8ddd4-lite.chunk.js +7 -0
- package/dist/scripts/48-4f2b8d55c1-lite.chunk.js +1 -0
- package/dist/scripts/48-8a7776d967-lite.chunk.js +1 -0
- package/dist/scripts/49-63eed42db0-lite.chunk.js +1 -0
- package/dist/scripts/49-8d5b3e11b2-lite.chunk.js +1 -0
- package/dist/scripts/5-7b9a19ea59-lite.chunk.js +1 -0
- package/dist/scripts/5-93cad157e1-lite.chunk.js +1 -0
- package/dist/scripts/50-82330768fc-lite.chunk.js +1 -0
- package/dist/scripts/50-e07d3f9901-lite.chunk.js +1 -0
- package/dist/scripts/51-0da9a4fba9-lite.chunk.js +1 -0
- package/dist/scripts/51-2b74d49fd6-lite.chunk.js +1 -0
- package/dist/scripts/52-615eb877d9-lite.chunk.js +1 -0
- package/dist/scripts/52-a7f2938582-lite.chunk.js +1 -0
- package/dist/scripts/53-1cc60f86f0-lite.chunk.js +1 -0
- package/dist/scripts/53-ef100ea459-lite.chunk.js +1 -0
- package/dist/scripts/53-lite.chunk.js +2 -2
- package/dist/scripts/54-563552bbb9-lite.chunk.js +1 -0
- package/dist/scripts/54-95578b2330-lite.chunk.js +1 -0
- package/dist/scripts/55-3a32073089-lite.chunk.js +1 -0
- package/dist/scripts/55-ec9adafcb6-lite.chunk.js +1 -0
- package/dist/scripts/55-lite.chunk.js +2 -2
- package/dist/scripts/56-90cee4bfc8-lite.chunk.js +1 -0
- package/dist/scripts/56-a6a0f84019-lite.chunk.js +1 -0
- package/dist/scripts/57-13b7205b59-lite.chunk.js +1 -0
- package/dist/scripts/57-32128cf4c8-lite.chunk.js +1 -0
- package/dist/scripts/58-108571751c-lite.chunk.js +1 -0
- package/dist/scripts/58-8a74d8f476-lite.chunk.js +1 -0
- package/dist/scripts/58-lite.chunk.js +1 -1
- package/dist/scripts/59-12b84f2cb5-lite.chunk.js +1 -0
- package/dist/scripts/59-69c89ee84e-lite.chunk.js +1 -0
- package/dist/scripts/6-4d191a2dcd-lite.chunk.js +1 -0
- package/dist/scripts/6-c5a27dd416-lite.chunk.js +1 -0
- package/dist/scripts/60-7f5c7b530e-lite.chunk.js +1 -0
- package/dist/scripts/60-c6857184b8-lite.chunk.js +1 -0
- package/dist/scripts/61-0b656df2af-lite.chunk.js +1 -0
- package/dist/scripts/61-86c819fb19-lite.chunk.js +1 -0
- package/dist/scripts/62-94d2aa53f3-lite.chunk.js +1 -0
- package/dist/scripts/62-b81a743e9e-lite.chunk.js +1 -0
- package/dist/scripts/62-lite.chunk.js +2 -2
- package/dist/scripts/63-14992cddf3-lite.chunk.js +1 -0
- package/dist/scripts/63-e2ca96b7da-lite.chunk.js +1 -0
- package/dist/scripts/64-71d8e66f39-lite.chunk.js +1 -0
- package/dist/scripts/64-e90aadc39e-lite.chunk.js +1 -0
- package/dist/scripts/65-300c02e59b-lite.chunk.js +1 -0
- package/dist/scripts/65-d82282aaab-lite.chunk.js +1 -0
- package/dist/scripts/66-549b5d2478-lite.chunk.js +1 -0
- package/dist/scripts/66-60437be471-lite.chunk.js +1 -0
- package/dist/scripts/67-0348fba883-lite.chunk.js +1 -0
- package/dist/scripts/67-3906a17ece-lite.chunk.js +1 -0
- package/dist/scripts/68-8565f9307b-lite.chunk.js +1 -0
- package/dist/scripts/68-fa4df93d7b-lite.chunk.js +1 -0
- package/dist/scripts/69-51d62dbd9d-lite.chunk.js +1 -0
- package/dist/scripts/69-bf7b06729c-lite.chunk.js +1 -0
- package/dist/scripts/69-lite.chunk.js +1 -1
- package/dist/scripts/7-b68476da01-lite.chunk.js +1 -0
- package/dist/scripts/7-d0db9631cc-lite.chunk.js +1 -0
- package/dist/scripts/70-b2544979ff-lite.chunk.js +1 -0
- package/dist/scripts/70-ce2b3f265c-lite.chunk.js +1 -0
- package/dist/scripts/71-4052e67d97-lite.chunk.js +1 -0
- package/dist/scripts/71-67aa0e32ec-lite.chunk.js +1 -0
- package/dist/scripts/72-2c91b5ea6f-lite.chunk.js +1 -0
- package/dist/scripts/72-606031bdac-lite.chunk.js +1 -0
- package/dist/scripts/73-20d69773af-lite.chunk.js +1 -0
- package/dist/scripts/73-6650435713-lite.chunk.js +1 -0
- package/dist/scripts/73-lite.chunk.js +1 -1
- package/dist/scripts/74-133bfae4d3-lite.chunk.js +1 -0
- package/dist/scripts/74-fe7972988e-lite.chunk.js +1 -0
- package/dist/scripts/75-8fdae65838-lite.chunk.js +1 -0
- package/dist/scripts/75-fae9877a96-lite.chunk.js +1 -0
- package/dist/scripts/76-20601ce3fc-lite.chunk.js +1 -0
- package/dist/scripts/76-97979109a0-lite.chunk.js +1 -0
- package/dist/scripts/77-210c8e07d6-lite.chunk.js +1 -0
- package/dist/scripts/77-ad3d0204d4-lite.chunk.js +1 -0
- package/dist/scripts/78-15797c099a-lite.chunk.js +1 -0
- package/dist/scripts/78-c977cbf3a1-lite.chunk.js +1 -0
- package/dist/scripts/79-384e7d7e26-lite.chunk.js +1 -0
- package/dist/scripts/79-7c5cb59baa-lite.chunk.js +1 -0
- package/dist/scripts/79-lite.chunk.js +1 -1
- package/dist/scripts/8-7c355902eb-lite.chunk.js +27 -0
- package/dist/scripts/8-a71a1abdf5-lite.chunk.js +27 -0
- package/dist/scripts/80-8695b1d496-lite.chunk.js +1 -0
- package/dist/scripts/80-9c2400d0a4-lite.chunk.js +1 -0
- package/dist/scripts/81-831874151a-lite.chunk.js +1 -0
- package/dist/scripts/81-9b8dbee906-lite.chunk.js +1 -0
- package/dist/scripts/82-547dbce020-lite.chunk.js +1 -0
- package/dist/scripts/82-da3eda3d64-lite.chunk.js +1 -0
- package/dist/scripts/83-5f7d459b24-lite.chunk.js +1 -0
- package/dist/scripts/83-a4dafdc46f-lite.chunk.js +1 -0
- package/dist/scripts/84-7a53cbd60f-lite.chunk.js +1 -0
- package/dist/scripts/84-d5cad7c169-lite.chunk.js +1 -0
- package/dist/scripts/85-b5e8b70fa9-lite.chunk.js +1 -0
- package/dist/scripts/85-dfea2507ad-lite.chunk.js +1 -0
- package/dist/scripts/86-ab65482643-lite.chunk.js +1 -0
- package/dist/scripts/86-ac078a803f-lite.chunk.js +1 -0
- package/dist/scripts/87-99818f92db-lite.chunk.js +1 -0
- package/dist/scripts/87-cda3a719cd-lite.chunk.js +1 -0
- package/dist/scripts/88-cadf8ae2d8-lite.chunk.js +1 -0
- package/dist/scripts/88-fe6f817c49-lite.chunk.js +1 -0
- package/dist/scripts/89-0bca505688-lite.chunk.js +1 -0
- package/dist/scripts/89-601bda80ba-lite.chunk.js +1 -0
- package/dist/scripts/9-1943c53845-lite.chunk.js +1 -0
- package/dist/scripts/9-f8786982b9-lite.chunk.js +1 -0
- package/dist/scripts/90-115d0231ec-lite.chunk.js +1 -0
- package/dist/scripts/90-61959ea4e2-lite.chunk.js +1 -0
- package/dist/scripts/91-1278ef4058-lite.chunk.js +1 -0
- package/dist/scripts/91-f40223cb8a-lite.chunk.js +1 -0
- package/dist/scripts/92-213f7df310-lite.chunk.js +1 -0
- package/dist/scripts/92-262442dcb3-lite.chunk.js +1 -0
- package/dist/scripts/93-47364ff10f-lite.chunk.js +1 -0
- package/dist/scripts/93-f6ea8e6d5d-lite.chunk.js +1 -0
- package/dist/scripts/94-421441032e-lite.chunk.js +1 -0
- package/dist/scripts/94-44161a0c6f-lite.chunk.js +1 -0
- package/dist/scripts/95-4a09997927-lite.chunk.js +1 -0
- package/dist/scripts/95-ef6d924da9-lite.chunk.js +1 -0
- package/dist/scripts/96-49d6ba064a-lite.chunk.js +1 -0
- package/dist/scripts/96-8421f4cf84-lite.chunk.js +1 -0
- package/dist/scripts/96-lite.chunk.js +1 -1
- package/dist/scripts/97-2159a524ae-lite.chunk.js +1 -0
- package/dist/scripts/97-f51aacda64-lite.chunk.js +1 -0
- package/dist/scripts/98-1e96418149-lite.chunk.js +1 -0
- package/dist/scripts/98-325e3841cc-lite.chunk.js +1 -0
- package/dist/scripts/99-019b644dcf-lite.chunk.js +1 -0
- package/dist/scripts/99-1e3c875833-lite.chunk.js +1 -0
- package/dist/scripts/bundle-40f219265a.min.js +48 -0
- package/dist/scripts/bundle-9b5d0ec583.min.js +48 -0
- package/dist/scripts/bundle.js +8 -8
- package/dist/scripts/polyfills-4a63aaebcb.min.js +1 -0
- package/dist/scripts/polyfills-8423f68de2.min.js +1 -0
- package/package.json +59 -59
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[20],{1025:function(e,r,t){"use strict";t.d(r,"a",(function(){return i})),t.d(r,"b",(function(){return l}));var a=t(0),n=t(1024),s=t(46),o=t(66),u=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]])}return t};function i(e){var r=e.castInitialValues,t=e.castValuesOnSubmit,i=e.initialValues,l=e.onSubmit,c=u(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=r&&e.validationSchema?e.validationSchema.cast(function e(r){var t=o.a.deepClone(r);return Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&(o.a.isObject(t[r])?t[r]=e(t[r]):null===t[r]&&delete t[r])})),t}(i)):i,m={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(n.d,Object.assign({enableReinitialize:!0},c,{initialValues:d,onSubmit:function(r,a){var n=a.setSubmitting,s=a.resetForm,o=t&&e.validationSchema?e.validationSchema.cast(r):r;l(o,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&s(),n(!1)}))},initialStatus:m}),s.a.isFunction(e.children)?function(r){return e.children(r)}:a.Children.count(e.children)?e.children:null)}function l(){return Object(n.f)()}i.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},1026:function(e,r,t){"use strict";t.d(r,"a",(function(){return p}));var a=t(8),n=t(32),s=t(4),o=t(288),u=t(237),i=t(1043),l=t(1069),c=t(289),d=t(1055);function m(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var f=function(e){return"_cv:usermanager:sort:".concat(e)},p={filterIdenticalEntries:function(e){var r=function(e){var r,t,a,n,s,o,u,i,l,c,d,m;return[null!==(t=null===(r=e.firstName)||void 0===r?void 0:r.trim())&&void 0!==t?t:"",null!==(n=null===(a=e.surname)||void 0===a?void 0:a.trim())&&void 0!==n?n:"",null!==(o=null===(s=e.masterYearGroup)||void 0===s?void 0:s.id)&&void 0!==o?o:"",null!==(l=null===(i=null===(u=e.username)||void 0===u?void 0:u.toLowerCase())||void 0===i?void 0:i.trim())&&void 0!==l?l:"",null!==(m=null===(d=null===(c=e.email)||void 0===c?void 0:c.toLowerCase())||void 0===d?void 0:d.trim())&&void 0!==m?m:""].join(":")};return e.filter((function(e,t,a){return t===a.findIndex((function(t){return r(t)===r(e)}))}))},getNewDuplicates:function(e){var r=[],t=[],a={};e.forEach((function(e){e.username?a[e.username]?a[e.username].push(e):a[e.username]=[e]:t.push(e)})),Object.keys(a).map((function(e){1!==a[e].length?r.push({errorCodes:[i.a.UsernameAlreadyExisted],users:a[e]}):t.push(a[e][0])}));var n={};return t.forEach((function(e){e.email&&(n[e.email]?n[e.email].push(e):n[e.email]=[e])})),Object.keys(n).map((function(e){1!==n[e].length&&r.push({errorCodes:[i.a.EmailAlreadyExisted],users:n[e]})})),r},formatCreateUserRequest:function(e,r,t){return{users:e.map((function(e){var a={firstName:e.firstName,email:e.email,surname:e.surname,username:e.username,userType:r,customerId:t,isPrimaryContact:e.isPrimaryContact,roleId:r===o.a.Learner?1:2,masterRole:e.masterRole||u.b.User,requirePasswordChange:!1,generatePassword:!!e.generatePassword,password:e.password};return r===o.a.Learner&&(a.masterYearGroup=e.masterYearGroup),a.username||delete a.username,a.password||delete a.password,a.password&&a.generatePassword&&(a.generatePassword=!1),a}))}},formatDeleteRequest:function(e,r,t){var a={customerId:e};if(!r.length){var n=s.a.LocationUtils.DeserializeQueryParams(s.a.LocationUtils.GetCurrentQueryString().substring(1));n.query&&(a.searchQuery=n.query);var o=n.status&&(Array.isArray(n.status)?n.status:[n.status]);(null==o?void 0:o.length)&&(a.userStatuses=[],o.forEach((function(e){"active"===e&&a.userStatuses.push(c.a.Active),"deactivated"===e&&a.userStatuses.push(c.a.Disabled),"pending"===e&&a.userStatuses.push(c.a.Inactive)}))),n.yearGroup&&(a.yearGroupValues=Array.isArray(n.yearGroup)?n.yearGroup:[n.yearGroup])}return 1===Object.keys(a).length?a.userIds=r.map((function(e){return e.id})):a.userType=t,a},formatToggleStatusRequest:function(e,r,t){return{customerId:r,users:[{userId:e.id,status:t}]}},getErrorMessages:function(e,r){var t,n,s={},o=a.a.encloseNamespace("userManager.utils"),u=(m(t={},i.a.Ok,""),m(t,i.a.UsernameRequired,""),m(t,i.a.EmailRequired,o("emailRequired")),m(t,i.a.FirstnameRequired,o("nameRequired")),m(t,i.a.SurnameRequired,o("surnameRequired")),m(t,i.a.YearGroupRequired,o("yearGroupRequired")),m(t,i.a.EmailAlreadyExisted,o(r?"emailExistsShort":"emailExistsLong")),m(t,i.a.UsernameAlreadyExisted,o(r?"usernameExistsShort":"usernameExistsLong")),m(t,i.a.UserTypeRequired,""),m(t,i.a.MasterYearGroupRequired,o("yearGroupRequired")),m(t,i.a.EmptyUserEntity,""),m(t,i.a.CustomerIdRequired,""),m(t,i.a.CustomerNotFoundInOnline,""),m(t,i.a.EmailTooLong,o("emailExceeds")),m(t,i.a.UsernameTooLong,o("usernameExceeds")),m(t,i.a.FirstnameTooLong,o("nameExceeds")),m(t,i.a.SurnameTooLong,o("surnameExceeds")),m(t,i.a.EmailInvalid,o(r?"emailInvalidShort":"emailInvalidLong")),m(t,i.a.EmailInUse,o(r?"emailExistsShort":"emailExistsLong")),m(t,i.a.UsernameInvalid,o(r?"usernameInvalidShort":"usernameInvalidLong")),m(t,i.a.PasswordTooShort,o("passwordToShort")),m(t,i.a.EmailDuplicated,""),m(t,i.a.UsernameDuplicated,""),t),l=(m(n={},i.a.Ok,""),m(n,i.a.UsernameRequired,""),m(n,i.a.EmailRequired,"email"),m(n,i.a.FirstnameRequired,"firstName"),m(n,i.a.SurnameRequired,"surname"),m(n,i.a.YearGroupRequired,"masterYearGroup"),m(n,i.a.EmailAlreadyExisted,"email"),m(n,i.a.UsernameAlreadyExisted,"username"),m(n,i.a.UserTypeRequired,""),m(n,i.a.MasterYearGroupRequired,"masterYearGroup"),m(n,i.a.EmptyUserEntity,""),m(n,i.a.CustomerIdRequired,""),m(n,i.a.CustomerNotFoundInOnline,""),m(n,i.a.EmailTooLong,"email"),m(n,i.a.UsernameTooLong,"username"),m(n,i.a.FirstnameTooLong,"firstName"),m(n,i.a.SurnameTooLong,"surname"),m(n,i.a.EmailInvalid,"email"),m(n,i.a.EmailInUse,"email"),m(n,i.a.UsernameInvalid,"username"),m(n,i.a.PasswordTooShort,"password"),m(n,i.a.EmailDuplicated,""),m(n,i.a.UsernameDuplicated,""),n);return e.forEach((function(e){var r,t=null!==(r=u[e])&&void 0!==r?r:"";if(t){var a=l[e];a&&(s[a]=t)}})),s},showEmptyState:function(e,r){var t;if(!e.data)return!1;var a=Object.keys(r).length;return!("results"in e.data)&&!a&&!(null===(t=e.data.data)||void 0===t?void 0:t.length)},showPagination:function(e,r){var t;return!!e.data&&("results"in e.data?0!==r||e.data.totalResults-(r+e.data.results.length)>0:!!(null===(t=e.data.pagination)||void 0===t?void 0:t.cursors))},getSearchCursors:function(e,r){var t=0!==r;return{next:e.totalResults-(r+e.results.length)>0?(r+d.a.SEARCH_PAGE_LIMIT).toString():null,previous:t?(r-d.a.SEARCH_PAGE_LIMIT).toString():null}},getDefaultSortOption:function(e){return n.a.get(f(e))},setDefaultSortOption:function(e,r){n.a.set(f(r),e)},getFilters:function(e,r,t){var a=p.getDefaultSortOption(r.id),n=l.a.getNameSortOptions().map((function(e){return e.default&&(e.default=!1),e.id===a&&(e.default=!0),e})),s=[l.b.SortBy(n)];return e===o.a.Learner&&s.push(l.b.YearGroup(l.a.getYearGroupOptions(t))),s.push(l.b.Status()),e===o.a.Staff&&s.push(l.b.IsAdmin()),s}}},1030:function(e,r,t){"use strict";var a=t(0),n=t(1024),s=t(41);function o(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],a=!0,n=!1,s=void 0;try{for(var o,u=e[Symbol.iterator]();!(a=(o=u.next()).done)&&(t.push(o.value),!r||t.length!==r);a=!0);}catch(e){n=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(n)throw s}}return t}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,r)}(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.")}()}function u(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 i=t(232);t.d(r,"a",(function(){return l}));function l(e){var r=Object(n.f)(),t=function(e){var r,t=o(a.useState(!1),2),n=t[0],s=t[1];return a.useEffect((function(){var r;e.isValid&&(e.dirty||(null===(r=e.initialStatus)||void 0===r?void 0:r.allowInitialSubmit))?s(!0):s(!1)}),[e.isValid,null===(r=e.initialStatus)||void 0===r?void 0:r.allowInitialSubmit,e.dirty,e.values]),a.useEffect((function(){e.isSubmitting&&s(!1)}),[e.isSubmitting]),n}(r);return a.createElement(s.Button,{variant:e.variant||"primary",type:"submit",disabled:!t,size:e.size,className:e.className?e.className:""},r.isSubmitting?a.createElement(s.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(i.b,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}},1031:function(e,r,t){"use strict";t.d(r,"a",(function(){return n}));var a=t(1024),n={getCustomFormControlClassName:function(e,r,t,n,s){var o="form-control";return"sm"===n&&(o+=" form-control-sm"),"lg"===n&&(o+=" form-control-lg"),Object(a.e)(r,t)&&Object(a.e)(e,t)&&(o+=" is-invalid"),s&&(o+=" ".concat(s)),o}}},1033:function(e,r,t){"use strict";var a=t(0),n=t(1024),s=t(41),o=t(66),u=t(46),i=t(1031),l=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]])}return t};function c(e){var r=e.label,t=e.checkboxLabelClassName,n=e.checkboxLabelFontWeight,o=l(e,["label","checkboxLabelClassName","checkboxLabelFontWeight"]);return a.createElement(s.Form.Group,null,a.createElement("div",{className:"custom-control custom-checkbox"},a.createElement(v,Object.assign({className:"custom-control-input"},o)),a.createElement(s.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===n?"font-weight-normal":""," \n ").concat(t),htmlFor:o.id},r)))}var d=t(73),m=t(24),f=t(232);function p(e){var r=Object(n.f)().values[e.fieldName];return"string"!=typeof r?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-right text-muted"},r.length,"/",e.limit)}t.d(r,"a",(function(){return v})),t.d(r,"b",(function(){return h}));var y=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]])}return t};function v(e){var r=e.children,t=y(e,["children"]);return a.createElement(n.b,Object.assign({},o.a.omit(t,["formSize"])),u.a.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null)}function h(e){var r=e.label,t=e.className,u=e.showCharacterCounter,l=e.showRequiredStar,h=e.infoTooltip,b=e.infoText,g=e.formSize,E=e.showOptionalLabel,w=y(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoText","formSize","showOptionalLabel"]),S=Object(n.f)(),I=S.errors,O=S.touched,R=function(){};if("checkbox"===w.type){var P=o.a.omit(e,["formSize"]);return e.disabled&&(P.onChange=R),a.createElement(c,Object.assign({},P))}var T=Object.assign(Object.assign({},w),{className:i.a.getCustomFormControlClassName(I,O,w.name,g,t)});return e.disabled&&(T.onChange=R),a.createElement(s.Form.Group,null,!!r&&a.createElement(s.Form.Label,{htmlFor:w.id,className:"d-flex align-items-center"},r,l&&a.createElement("span",{className:"text-danger"},"*"),h&&a.createElement(d.a,{svgName:m.b.Info,title:h,tooltipPlacement:"top",tooltipSpanHack:!0}),E&&a.createElement("span",{className:"text-muted"}," ",a.createElement(f.b,{namespace:"shared.formField",phrase:"optional"}))),a.createElement(v,Object.assign({},T)),!!u&&!!w.maxLength&&a.createElement(p,{fieldName:w.name,limit:w.maxLength}),!!b&&a.createElement(s.Form.Text,{className:"text-muted"},b),a.createElement(n.a,{name:w.name},(function(e){return a.createElement(s.Form.Control.Feedback,{type:"invalid"},e)})))}v.defaultProps={autoComplete:"off"},h.defaultProps={autoComplete:"off"}},1043:function(e,r,t){"use strict";var a;t.d(r,"a",(function(){return a})),function(e){e.Ok="Ok",e.UsernameRequired="UsernameRequired",e.EmailRequired="EmailRequired",e.FirstnameRequired="FirstnameRequired",e.SurnameRequired="SurnameRequired",e.YearGroupRequired="YearGroupRequired",e.EmailAlreadyExisted="EmailAlreadyExisted",e.UsernameAlreadyExisted="UsernameAlreadyExisted",e.UserTypeRequired="UserTypeRequired",e.MasterYearGroupRequired="MasterYearGroupRequired",e.EmptyUserEntity="EmptyUserEntity",e.CustomerIdRequired="CustomerIdRequired",e.CustomerNotFoundInOnline="CustomerNotFoundInOnline",e.EmailTooLong="EmailTooLong",e.UsernameTooLong="UsernameTooLong",e.FirstnameTooLong="FirstnameTooLong",e.SurnameTooLong="SurnameTooLong",e.EmailInvalid="EmailInvalid",e.EmailInUse="EmailInUse",e.UsernameInvalid="UsernameInvalid",e.PasswordTooShort="PasswordTooShort",e.EmailDuplicated="EmailDuplicated",e.UsernameDuplicated="UsernameDuplicated"}(a||(a={}))},1048:function(e,r,t){"use strict";t.d(r,"a",(function(){return f}));var a=t(25),n=t(15),s=t(47),o=t(289),u=t(1082),i=t(1026),l=t(237);function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return d(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,r)}(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.")}()}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}function m(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var f={getUsers:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=t.yearGroup,u=void 0===o?"":o,c=t.status,d=void 0===c?"":c,m=t.isAdmin,f=void 0===m?"":m,y=t.sortName;if(!y){var v=i.a.getDefaultSortOption(e.id);y=v||"newest"}var h=function(){var e=["usertype:".concat(r)];if(u&&(Array.isArray(u)?e.push("yeargroups.value:[".concat(u.join(","),"]")):e.push("yeargroups.value:".concat(u))),"true"===f&&e.push("role:".concat(l.b.Admin)),d&&(Array.isArray(d)?e.push("status:[".concat(d.map((function(e){return p[e]})).join(","),"]")):e.push("status:".concat(p[d]))),y)switch(y){case"first-name-atoz":e.push("orderby:name");break;case"first-name-ztoa":e.push("orderbydesc:name");break;case"surname-atoz":e.push("orderby:surname");break;case"surname-ztoa":e.push("orderbydesc:surname");break;case"newest":e.push("orderbydesc:datecreated");break;case"oldest":e.push("orderby:datecreated")}return"{".concat(e.join(","),"}count(),avatar")},b={query:h()};(null==t?void 0:t.cursor)&&(b.cursor=t.cursor);var g="school:users:".concat(e.customerId,":").concat(r);return g+=Object.keys(b).map((function(e){return b[e]})).join(":"),{url:a.a.urlBuilder("{gateway}/v1/customers/".concat(e.customerId,"/users"),b),key:g,expiryTime:1/0,success:n,error:s}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e),expiryTime:1/0}},bulkRemoveUsers:function(e,r,t,a){var s,o=["school:users","search:users"];return(null===(s=e.userIds)||void 0===s?void 0:s.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:n.a.POST,data:e,success:r,error:t,always:a}},createUsers:function(e,r,t,a,s){return{url:"{gateway}/v1/users",key:"create:users",data:e,type:n.a.POST,invalidationKeys:["school:users"],success:t,error:a,always:s,normalize:!1}},updateUser:function(e,r,t,a,s){var o=["school:users:".concat(e.userId)];return r.toString()===e.userId.toString()&&o.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:n.a.PUT,data:e,success:t,error:a,always:s}},searchUsers:function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,d=t.query,f=(m(r={},"".concat(u.a.FILTER_PARAM_PREFIX,"userType"),o.toLowerCase()),m(r,"".concat(u.a.FILTER_PARAM_PREFIX,"customerId"),e),r);"true"===t.isAdmin&&(f["".concat(u.a.FILTER_PARAM_PREFIX,"userRole")]=l.b.Admin.toLowerCase()),t.yearGroup&&(Array.isArray(t.yearGroup)?f["".concat(u.a.FILTER_PARAM_PREFIX,"yearGroup")]="".concat(t.yearGroup.join(",")):f["".concat(u.a.FILTER_PARAM_PREFIX,"yearGroup")]=t.yearGroup),t.status&&(Array.isArray(t.status)?f["".concat(u.a.FILTER_PARAM_PREFIX,"userStatus")]=t.status.map((function(e){return p[e]})).join(","):f["".concat(u.a.FILTER_PARAM_PREFIX,"userStatus")]=p[t.status]);var y=Object.assign({query:t.query,offset:s,limit:n,index:"user"},f),v="search:users:".concat(d,":").concat(n,":").concat(s);return v+=Object.keys(f).map((function(e){return f[e]})).join(":"),{url:a.a.urlBuilder("{gateway}/v1/search/users",y),key:v,expiryTime:1/0,success:i,error:c}},bulkToggleActivation:function(e,r,t,a,s){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:n.a.PUT,data:e,success:t,error:a,always:s,invalidationKeys:["school:users:".concat(e.customerId,":").concat(r)].concat(c(e.users.map((function(e){return"school:users:".concat(e.userId)}))))}},bulkValidate:function(e,r,t,a,s){return{url:"{gateway}/v1/users/validate",type:n.a.POST,key:"validate:users",data:e,success:t,error:a,always:s,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"),key:"yeargroups:".concat(e)}},updateAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:n.a.PUT,invalidationKeys:["currentuser","school:users:".concat(r)],data:{fileId:e,fileIdType:s.a.ImageAPIv2},success:t,error:a}},deleteAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:n.a.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:n.a.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:n.a.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:r,error:t,always:a}},changeStudentPassword:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/password",key:"change:student:password",type:n.a.PUT,data:{userId:e,newPassword:r},success:t,error:a}},resendActivationEmail:function(e,r,t){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:n.a.POST,data:{userId:e},success:r,error:t}},exportList:function(e,r,t,s){return{url:a.a.urlBuilder("{gateway}/v1/customers/".concat(e,"/users/report"),{userType:r}),key:"export:users:".concat(r),type:n.a.GET,formatData:function(e){return"data:text/csv;charset=utf-8,".concat(e)},success:t,error:s,invalidationKeys:["export:users:".concat(r)],normalize:!1}}},p={active:o.a.Active.toLowerCase(),deactivated:o.a.Disabled.toLowerCase(),pending:o.a.Inactive.toLowerCase()}},1055:function(e,r,t){"use strict";t.d(r,"a",(function(){return a}));var a={SEARCH_PAGE_LIMIT:25,USER_REQUEST_DEFAULT_CHUNK_SIZE:50,USER_REQUEST_MAX_RETRY_ATTEMPTS:1,MAX_USER_SPREADSHEET_ROWS:5e3}},1085:function(e,r,t){"use strict";t.d(r,"a",(function(){return a}));var a={MINIMUM_PASSWORD_LENGTH:8,VIDEO_START_TIME_CUTOFF:10}},1451:function(e,r,t){"use strict";t.d(r,"a",(function(){return d}));var a=t(0),n=t.n(a),s=t(1024),o=t(8),u=t(1033),i=t(232),l=t(1030),c=o.a.encloseNamespace("shared.changePasswordForm");function d(e){return n.a.createElement(s.c,null,!e.hideCurrentPassword&&n.a.createElement(u.b,{className:e.inputWidthClass,name:"currentPassword",label:c("currentPassword"),placeholder:c("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",formSize:"lg"}),n.a.createElement(u.b,{className:e.inputWidthClass,name:"newPassword",label:c("newPassword"),placeholder:c("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",formSize:"lg"}),n.a.createElement(u.b,{className:e.inputWidthClass,name:"confirmPassword",label:c("confirmPassword"),placeholder:c("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",formSize:"lg"}),n.a.createElement("div",{className:e.buttonContainerClass},!e.hideCancelButton&&n.a.createElement("button",{type:"button",className:"btn btn-link mr-2 ".concat("lg"===e.buttonSize?"btn-lg":""),onClick:e.onClickCancel},n.a.createElement(i.b,{namespace:"shared.changePasswordForm",phrase:"cancel"})),n.a.createElement(l.a,{isNew:!1,submitText:e.submitText||c("save"),variant:e.submitVariant,size:e.buttonSize})))}d.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[21],{1067:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(15),i={createViewKey:function(t,e){return{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:r.a.POST,data:{mediaId:t.toString(),mediaIdType:e},expiryTime:1/0}}}},1068:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Share="share",t.MasterObject="masterobject"}(r||(r={}))},1080:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=function(t,e,n){var r=e-(t=t.toString()).length;return r<=0?t:new Array(r+1).join(n)+t},o={ToDisplayDuration:function(t){if(!r.isNumber(t))return"";var e=new Date(t),n=e.getUTCHours(),o=i(e.getUTCMinutes(),2,"0"),a=i(e.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(o,":").concat(a):"".concat(o,":").concat(a)}}},1672:function(t,e,n){},1673:function(t,e,n){},1674:function(t,e,n){t.exports={timeInput:"_3f1zC",controlsContainer:"_3zQGP",arrowContainer:"_3wgxR",upArrow:"_2qIEU",downArrow:"_3Gl3V"}},1890:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),o=n(11),a=n(74),c=n(4),u=n(8),l=n(343),s=n(1067),f=n(113),p=n(360),d=n(371),m=n(1);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=C(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=C(t);if(e){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=m.a.getComponent("Component"),w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(o,t);var e,n,r,i=T(o);function o(){return h(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"buildCSSClass",value:function(){return"cv-clip-timepoint-handle ".concat(g(C(o.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return g(C(o.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass(),innerHTML:'<svg viewBox="0 0 5 14" pointer-events="none"><g id="Clips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Clip-2" transform="translate(-835.000000, -632.000000)" fill="#FFFFFF"><g id="Video-Copy" transform="translate(275.000000, 96.000000)"><g id="Handles" transform="translate(560.000000, 536.000000)"><circle id="Oval" cx="1" cy="1" r="1"></circle><circle id="Oval-Copy-2" cx="1" cy="5" r="1"></circle><circle id="Oval-Copy-4" cx="1" cy="9" r="1"></circle><circle id="Oval-Copy-8" cx="1" cy="13" r="1"></circle><circle id="Oval-Copy" cx="4" cy="1" r="1"></circle><circle id="Oval-Copy-3" cx="4" cy="5" r="1"></circle><circle id="Oval-Copy-5" cx="4" cy="9" r="1"></circle><circle id="Oval-Copy-9" cx="4" cy="13" r="1"></circle></g></g></g></g></svg>'}),n)}},{key:"isEventTarget",value:function(t){return this.el().contains(t.target)}}])&&v(e.prototype,n),r&&v(e,r),o}(E);n(1672);function O(t){return(O="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})(t)}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=D(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=D(t);if(e){var i=D(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==O(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(o,t);var e,n,r,i=j(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this,t,e)).dragStartActive=!1,n.dragEndActive=!1,n.dragSliderActive=!1,n.dragSliderCurrentPosition=null,n.minDuration=Math.min(t.duration(),n.options_.minDuration),n.setStartTime(e.startTime,!1),n.setEndTime(e.endTime,!1),n.startHandle=new w(n.player(),e),n.startHandle.addClass("cv-clip-start-handle"),n.addChild(n.startHandle),n.endHandle=new w(n.player(),e),n.endHandle.addClass("cv-clip-end-handle"),n.addChild(n.endHandle),n.on(n.player(),"update:clip:start:time",(function(t){var e=t.time;return n.setStartTime(e)})),n.on(n.player(),"update:clip:end:time",(function(t){var e=t.time;return n.setEndTime(e)})),n.bindListeners(),n.update(),n}return e=o,(n=[{key:"createEl",value:function(){return k(D(o.prototype),"createEl",this).call(this,"div",{className:"cv-clip-timepoint-selector"},{})}},{key:"update",value:function(){var t=this;this.options_.onChangeStartTime(this.startTime),this.options_.onChangeEndTime(this.endTime),this.requestAnimationFrame((function(){t.setStartOffset(),t.setWidth()}))}},{key:"setStartTime",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(t)){var n=this.endTime||this.player().duration(),r=n-this.minDuration;t>r&&(t=r),t<0&&(t=0),this.startTime=t,this.endTime&&this.endTime-this.startTime<this.minDuration&&this.setEndTime(this.startTime+this.minDuration),this.player().currentTime(this.startTime),e&&this.update()}}},{key:"setEndTime",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(t)){var n=this.startTime||0,r=n+this.minDuration;t<r&&(t=r),t>this.player().duration()&&(t=this.player().duration()),this.endTime=t,this.startTime&&this.endTime-this.startTime<this.minDuration&&this.setStartTime(this.endTime-this.minDuration),e&&this.update()}}},{key:"bindListeners",value:function(){var t=this;this.on("mousedown",this.dragStart),this.on("touchstart",this.dragStart),this.player().on("dispose",(function(){t.off("mousedown",t.dragStart),t.off("touchstart",t.dragStart)}))}},{key:"dragStart",value:function(t){this.startHandle.isEventTarget(t)&&(t.stopImmediatePropagation(),this.dragStartActive=!0),this.endHandle.isEventTarget(t)&&(t.stopImmediatePropagation(),this.dragEndActive=!0),t.target===this.el()&&(t.stopImmediatePropagation(),this.dragSliderActive=!0,this.dragSliderCurrentPosition=this.getPosition(t));var e=this.el().ownerDocument;this.on(e,"mousemove",this.drag),this.on(e,"mouseup",this.dragEnd),this.on(e,"touchmove",this.drag),this.on(e,"touchend",this.dragEnd),this.drag(t)}},{key:"dragEnd",value:function(){this.dragStartActive=!1,this.dragEndActive=!1,this.dragSliderActive=!1,this.dragSliderCurrentPosition=null;var t=this.el().ownerDocument;this.off(t,"mousemove",this.drag),this.off(t,"mouseup",this.dragEnd),this.off(t,"touchmove",this.drag),this.off(t,"touchend",this.dragEnd)}},{key:"drag",value:function(t){if((this.dragStartActive||this.dragEndActive||this.dragSliderActive)&&m.a.dom.isSingleLeftClick(t)){var e=this.getPosition(t),n=e*this.player().duration();this.dragStartActive&&this.handleStartHandleDrag(n),this.dragEndActive&&this.handleEndHandleDrag(n),this.dragSliderActive&&this.handleSliderDrag(e)}}},{key:"handleStartHandleDrag",value:function(t){this.setStartTime(t)}},{key:"handleEndHandleDrag",value:function(t){this.setEndTime(t)}},{key:"handleSliderDrag",value:function(t){var e=(t-this.dragSliderCurrentPosition)*this.player().duration(),n=this.startTime+e,r=this.endTime+e;n<=0||r>=this.player().duration()||(this.dragSliderCurrentPosition=t,this.setStartTime(n),this.setEndTime(r))}},{key:"getPosition",value:function(t){return m.a.dom.getPointerPosition(this.el_.parentNode,t).x}},{key:"setStartOffset",value:function(){this.el_.style.marginLeft="".concat(this.getPercentage(this.startTime),"%")}},{key:"setWidth",value:function(){this.el_.style.width="".concat(this.getPercentage(this.endTime-this.startTime),"%")}},{key:"getPercentage",value:function(t){return+(t/this.player().duration()*100).toFixed(4)}}])&&P(e.prototype,n),r&&P(e,r),o}(m.a.getComponent("Component"));n(1673);function N(t){return(N="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})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B(t,e){return(B=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L(t);if(e){var i=L(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return F(this,n)}}function F(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&B(t,e)}(o,t);var e,n,r,i=I(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this,t,e)).addClass("cv-create-clip-seek-bar"),n}return e=o,(n=[{key:"initialize",value:function(t){var e=new A(this.player(),t);this.addChild(e)}}])&&x(e.prototype,n),r&&x(e,r),o}(m.a.getComponent("SeekBar"));function M(t){return(M="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})(t)}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V(t,e,n){return(V="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=q(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function K(t,e){return(K=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=q(t);if(e){var i=q(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return G(this,n)}}function G(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?W(t):e}function W(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function q(t){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}H.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},m.a.browser.IS_IOS||m.a.browser.IS_ANDROID||H.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),m.a.registerComponent("CreateClipSeekBar",H);var J=m.a.getPlugin("plugin"),Y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&K(t,e)}(o,t);var e,n,r,i=z(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this,t,e)).options=e,n.initCreateClipSeekBar=n.initCreateClipSeekBar.bind(W(n)),n.player.one("loadedmetadata",(function(){return n.player.ready(n.initCreateClipSeekBar)})),n}return e=o,(n=[{key:"initCreateClipSeekBar",value:function(){var t,e=null===(t=this.player.controlBar.getChild("ProgressControl"))||void 0===t?void 0:t.getChild("SeekBar");if(e){var n=!isNaN(this.options.startTime)&&this.options.startTime>=0?this.options.startTime:0,r=!isNaN(this.options.endTime)&&this.options.endTime<=this.player.duration()?this.options.endTime:this.player.duration(),i=Math.min(this.options.minDuration||5,this.player.duration());e.initialize({startTime:n,endTime:r,minDuration:i,onChangeStartTime:this.options.onChangeStartTime,onChangeEndTime:this.options.onChangeEndTime})}}},{key:"dispose",value:function(){this.player.off("loadedmetadata",this.initCreateClipSeekBar),V(q(o.prototype),"dispose",this).call(this)}}])&&U(e.prototype,n),r&&U(e,r),o}(J);function Q(t){return(Q="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})(t)}function $(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return(X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=et(t);if(e){var i=et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(t,e){return!e||"object"!==Q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}m.a.registerPlugin("createClipPlugin",Y);var nt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}(o,t);var e,n,r,i=Z(o);function o(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,t,Object.assign(Object.assign({},e),{playbackRates:null,enableLocalCache:!1}))}return e=o,(n=[{key:"getPlayerClassName",value:function(){return"cv-create-clip-player"}},{key:"configurePlugins",value:function(){var t=this.options,e=t.startTime,n=t.endTime,r=t.minDuration,i=t.onChangeStartTime,o=t.onChangeEndTime;this.player.createClipPlugin({startTime:e,endTime:n,minDuration:r,onChangeStartTime:i,onChangeEndTime:o})}},{key:"getSeekBarName",value:function(){return"CreateClipSeekBar"}},{key:"getAnalyticsPlayerType",value:function(){return"create-clip-player"}}])&&$(e.prototype,n),r&&$(e,r),o}(d.a);function rt(t){var e=i.a.useRef(),n=i.a.useRef();return i.a.useEffect((function(){n.current=new nt(e.current,t)}),[]),i.a.useEffect((function(){var e;null===(e=n.current)||void 0===e||e.trigger({type:"update:clip:start:time",time:t.startTime})}),[t.startTime]),i.a.useEffect((function(){var e;null===(e=n.current)||void 0===e||e.trigger({type:"update:clip:end:time",time:t.endTime})}),[t.endTime]),i.a.createElement("div",{ref:e})}var it=n(49),ot=n(1080),at=n(232),ct=n(1674),ut=u.a.encloseNamespace("shared.clipTimeForm");function lt(t){function e(){t.setTime(Math.floor(t.value)+1)}function n(){t.setTime(Math.floor(t.value)-1)}return r.createElement("div",{className:"position-relative"},r.createElement("input",{className:"form-control form-control-lg text-center ".concat(ct.timeInput),value:ot.a.ToDisplayDuration(1e3*t.value),onChange:function(){},onKeyDown:function(t){38===t.keyCode&&e(),40===t.keyCode&&n()}}),r.createElement("div",{className:ct.controlsContainer},r.createElement("div",{className:ct.arrowContainer,onClick:e},r.createElement("div",{className:ct.upArrow})),r.createElement("div",{className:ct.arrowContainer,onClick:n},r.createElement("div",{className:ct.downArrow}))))}function st(t){if(isNaN(t.startTime)||isNaN(t.endTime))return r.createElement(r.Fragment,null);var e=Math.floor(t.endTime)-Math.floor(t.startTime);return r.createElement("div",{className:"px-3"},r.createElement("form",{className:"form-inline justify-content-center pb-4"},r.createElement("div",{className:"form-group"},r.createElement(lt,{value:t.startTime,setTime:t.setStartTime})),r.createElement("span",{className:"px-2"},"-"),r.createElement("div",{className:"form-group mr-2"},r.createElement(lt,{value:t.endTime,setTime:t.setEndTime})),r.createElement("span",null,r.createElement("strong",null,r.createElement(at.b,{namespace:"shared.clipTimeForm",phrase:"duration"}))," ",ot.a.ToDisplayDuration(1e3*e))),r.createElement("div",{className:"d-flex justify-content-end"},r.createElement("button",{className:"btn btn-link",onClick:t.onCancel},ut("cancel")),r.createElement("button",{className:"btn btn-dark",onClick:t.onSubmit},ut("next"))))}var ft=n(6),pt=n(9),dt=n(359),mt=n(236),yt=n(358),ht=n(1068);function vt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return gt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(t,e)}(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 gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"EditClipTimepointsView",(function(){return Tt}));var bt=u.a.encloseNamespace("shared.editClipTimepoints");function Tt(t){var e,n,i,d,m=vt(Object(a.a)(it.a.WEB_PLAYER_DATA),2),y=m[0],h=m[1],v=t.startTime||(null===(e=null==y?void 0:y.playerRef)||void 0===e?void 0:e.currentTime())||0,g=vt(r.useState(v),2),b=g[0],T=g[1],S=vt(r.useState(v+30),2),C=S[0],E=S[1],w=o.a.useBasicFetch(f.a.config()),O=o.a.useBasicFetch(!!t.id&&dt.a.clip(t.id)),P=(null===(i=null===(n=O.data)||void 0===n?void 0:n.video)||void 0===i?void 0:i.id)||t.videoId,k=o.a.useBasicFetch(!!P&&s.a.createViewKey(P,ht.a.MasterObject)),_=o.a.useBasicFetch(!!P&&mt.a.video(P)),j=Object(yt.a)();return Object(l.a)(t.id?null===(d=O.data)||void 0===d?void 0:d.name:bt("pageTitle")),r.useEffect((function(){h("allowFloatingPlayer",!1),j.lock({id:"edit-clip-timepoints",title:u.a.getPhrase("shared.editClipTimepoints","navLockTitle"),text:u.a.getPhrase("shared.editClipTimepoints","navLockBody")})}),[]),r.useEffect((function(){O.data&&(T(O.data.startTime),E(O.data.endTime))}),[O.data]),t.id||t.videoId?r.createElement("div",{className:"px-3"},!!w.data&&!!k.data&&!!_.data&&(!t.id||!!O.data)&&r.createElement("div",{className:"pb-3"},r.createElement("div",{className:"mb-3"},r.createElement(rt,{playerApi:new URL(w.data.playerApiUrl),viewKey:k.data.viewKey,startTime:b,endTime:C,onChangeStartTime:T,onChangeEndTime:E,minDuration:5,autoplay:!0})),r.createElement(st,{startTime:b,endTime:C,setStartTime:T,setEndTime:E,onSubmit:function(){var e="";b>C&&(e=bt("startTimeGreaterThanEndTime")),C-b<5&&(e=bt("tooShort",{minDuration:5})),e?function(t){p.a.render(r.createElement("p",null,t),{title:bt("errorHeading"),buttons:[{variant:"link",buttonText:bt("close")}]})}(e):(j.unlock("edit-clip-timepoints"),c.a.AppLinkHelper.trigger({application:ft.a.DEFAULT,action:t.id?pt.a.Default.EDIT_CLIP_DETAILS:pt.a.Default.CREATE_CLIP_DETAILS,args:t.id?[t.id]:[t.videoId],params:{startTime:b,endTime:C}}))},onCancel:function(){var t,e;c.a.AppLinkHelper.trigger({application:ft.a.DEFAULT,action:pt.a.Default.PLAY_VIDEO,args:[null===(t=_.data)||void 0===t?void 0:t.id,null===(e=_.data)||void 0===e?void 0:e.name]})}}))):r.createElement(r.Fragment,null)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[21],{1067:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(15),i={createViewKey:function(t,e,n){var i={mediaId:t.toString(),mediaIdType:e};return n&&(i.shareId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:r.a.POST,data:i,expiryTime:1/0}}}},1068:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Share="share",t.MasterObject="masterobject"}(r||(r={}))},1080:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=function(t,e,n){var r=e-(t=t.toString()).length;return r<=0?t:new Array(r+1).join(n)+t},o={ToDisplayDuration:function(t){if(!r.isNumber(t))return"";var e=new Date(t),n=e.getUTCHours(),o=i(e.getUTCMinutes(),2,"0"),a=i(e.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(o,":").concat(a):"".concat(o,":").concat(a)}}},1676:function(t,e,n){},1677:function(t,e,n){},1678:function(t,e,n){t.exports={timeInput:"_3f1zC",controlsContainer:"_3zQGP",arrowContainer:"_3wgxR",upArrow:"_2qIEU",downArrow:"_3Gl3V"}},1897:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),o=n(11),a=n(74),c=n(4),u=n(8),l=n(346),s=n(1067),f=n(113),p=n(361),d=n(373),m=n(1);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=C(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=C(t);if(e){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=m.a.getComponent("Component"),w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(o,t);var e,n,r,i=T(o);function o(){return h(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"buildCSSClass",value:function(){return"cv-clip-timepoint-handle ".concat(g(C(o.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return g(C(o.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass(),innerHTML:'<svg viewBox="0 0 5 14" pointer-events="none"><g id="Clips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Clip-2" transform="translate(-835.000000, -632.000000)" fill="#FFFFFF"><g id="Video-Copy" transform="translate(275.000000, 96.000000)"><g id="Handles" transform="translate(560.000000, 536.000000)"><circle id="Oval" cx="1" cy="1" r="1"></circle><circle id="Oval-Copy-2" cx="1" cy="5" r="1"></circle><circle id="Oval-Copy-4" cx="1" cy="9" r="1"></circle><circle id="Oval-Copy-8" cx="1" cy="13" r="1"></circle><circle id="Oval-Copy" cx="4" cy="1" r="1"></circle><circle id="Oval-Copy-3" cx="4" cy="5" r="1"></circle><circle id="Oval-Copy-5" cx="4" cy="9" r="1"></circle><circle id="Oval-Copy-9" cx="4" cy="13" r="1"></circle></g></g></g></g></svg>'}),n)}},{key:"isEventTarget",value:function(t){return this.el().contains(t.target)}}])&&v(e.prototype,n),r&&v(e,r),o}(E);n(1676);function O(t){return(O="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})(t)}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=D(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=D(t);if(e){var i=D(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==O(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(o,t);var e,n,r,i=j(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this,t,e)).dragStartActive=!1,n.dragEndActive=!1,n.dragSliderActive=!1,n.dragSliderCurrentPosition=null,n.minDuration=Math.min(t.duration(),n.options_.minDuration),n.setStartTime(e.startTime,!1),n.setEndTime(e.endTime,!1),n.startHandle=new w(n.player(),e),n.startHandle.addClass("cv-clip-start-handle"),n.addChild(n.startHandle),n.endHandle=new w(n.player(),e),n.endHandle.addClass("cv-clip-end-handle"),n.addChild(n.endHandle),n.on(n.player(),"update:clip:start:time",(function(t){var e=t.time;return n.setStartTime(e)})),n.on(n.player(),"update:clip:end:time",(function(t){var e=t.time;return n.setEndTime(e)})),n.bindListeners(),n.update(),n}return e=o,(n=[{key:"createEl",value:function(){return k(D(o.prototype),"createEl",this).call(this,"div",{className:"cv-clip-timepoint-selector"},{})}},{key:"update",value:function(){var t=this;this.options_.onChangeStartTime(this.startTime),this.options_.onChangeEndTime(this.endTime),this.requestAnimationFrame((function(){t.setStartOffset(),t.setWidth()}))}},{key:"setStartTime",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(t)){var n=this.endTime||this.player().duration(),r=n-this.minDuration;t>r&&(t=r),t<0&&(t=0),this.startTime=t,this.endTime&&this.endTime-this.startTime<this.minDuration&&this.setEndTime(this.startTime+this.minDuration),this.player().currentTime(this.startTime),e&&this.update()}}},{key:"setEndTime",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(t)){var n=this.startTime||0,r=n+this.minDuration;t<r&&(t=r),t>this.player().duration()&&(t=this.player().duration()),this.endTime=t,this.startTime&&this.endTime-this.startTime<this.minDuration&&this.setStartTime(this.endTime-this.minDuration),e&&this.update()}}},{key:"bindListeners",value:function(){var t=this;this.on("mousedown",this.dragStart),this.on("touchstart",this.dragStart),this.player().on("dispose",(function(){t.off("mousedown",t.dragStart),t.off("touchstart",t.dragStart)}))}},{key:"dragStart",value:function(t){this.startHandle.isEventTarget(t)&&(t.stopImmediatePropagation(),this.dragStartActive=!0),this.endHandle.isEventTarget(t)&&(t.stopImmediatePropagation(),this.dragEndActive=!0),t.target===this.el()&&(t.stopImmediatePropagation(),this.dragSliderActive=!0,this.dragSliderCurrentPosition=this.getPosition(t));var e=this.el().ownerDocument;this.on(e,"mousemove",this.drag),this.on(e,"mouseup",this.dragEnd),this.on(e,"touchmove",this.drag),this.on(e,"touchend",this.dragEnd),this.drag(t)}},{key:"dragEnd",value:function(){this.dragStartActive=!1,this.dragEndActive=!1,this.dragSliderActive=!1,this.dragSliderCurrentPosition=null;var t=this.el().ownerDocument;this.off(t,"mousemove",this.drag),this.off(t,"mouseup",this.dragEnd),this.off(t,"touchmove",this.drag),this.off(t,"touchend",this.dragEnd)}},{key:"drag",value:function(t){if((this.dragStartActive||this.dragEndActive||this.dragSliderActive)&&m.a.dom.isSingleLeftClick(t)){var e=this.getPosition(t),n=e*this.player().duration();this.dragStartActive&&this.handleStartHandleDrag(n),this.dragEndActive&&this.handleEndHandleDrag(n),this.dragSliderActive&&this.handleSliderDrag(e)}}},{key:"handleStartHandleDrag",value:function(t){this.setStartTime(t)}},{key:"handleEndHandleDrag",value:function(t){this.setEndTime(t)}},{key:"handleSliderDrag",value:function(t){var e=(t-this.dragSliderCurrentPosition)*this.player().duration(),n=this.startTime+e,r=this.endTime+e;n<=0||r>=this.player().duration()||(this.dragSliderCurrentPosition=t,this.setStartTime(n),this.setEndTime(r))}},{key:"getPosition",value:function(t){return m.a.dom.getPointerPosition(this.el_.parentNode,t).x}},{key:"setStartOffset",value:function(){this.el_.style.marginLeft="".concat(this.getPercentage(this.startTime),"%")}},{key:"setWidth",value:function(){this.el_.style.width="".concat(this.getPercentage(this.endTime-this.startTime),"%")}},{key:"getPercentage",value:function(t){return+(t/this.player().duration()*100).toFixed(4)}}])&&P(e.prototype,n),r&&P(e,r),o}(m.a.getComponent("Component"));n(1677);function N(t){return(N="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})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B(t,e){return(B=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L(t);if(e){var i=L(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return F(this,n)}}function F(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&B(t,e)}(o,t);var e,n,r,i=I(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this,t,e)).addClass("cv-create-clip-seek-bar"),n}return e=o,(n=[{key:"initialize",value:function(t){var e=new A(this.player(),t);this.addChild(e)}}])&&x(e.prototype,n),r&&x(e,r),o}(m.a.getComponent("SeekBar"));function M(t){return(M="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})(t)}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V(t,e,n){return(V="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=q(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function K(t,e){return(K=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=q(t);if(e){var i=q(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return G(this,n)}}function G(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?W(t):e}function W(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function q(t){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}H.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},m.a.browser.IS_IOS||m.a.browser.IS_ANDROID||H.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),m.a.registerComponent("CreateClipSeekBar",H);var J=m.a.getPlugin("plugin"),Y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&K(t,e)}(o,t);var e,n,r,i=z(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this,t,e)).options=e,n.initCreateClipSeekBar=n.initCreateClipSeekBar.bind(W(n)),n.player.one("loadedmetadata",(function(){return n.player.ready(n.initCreateClipSeekBar)})),n}return e=o,(n=[{key:"initCreateClipSeekBar",value:function(){var t,e=null===(t=this.player.controlBar.getChild("ProgressControl"))||void 0===t?void 0:t.getChild("SeekBar");if(e){var n=!isNaN(this.options.startTime)&&this.options.startTime>=0?this.options.startTime:0,r=!isNaN(this.options.endTime)&&this.options.endTime<=this.player.duration()?this.options.endTime:this.player.duration(),i=Math.min(this.options.minDuration||5,this.player.duration());e.initialize({startTime:n,endTime:r,minDuration:i,onChangeStartTime:this.options.onChangeStartTime,onChangeEndTime:this.options.onChangeEndTime})}}},{key:"dispose",value:function(){this.player.off("loadedmetadata",this.initCreateClipSeekBar),V(q(o.prototype),"dispose",this).call(this)}}])&&U(e.prototype,n),r&&U(e,r),o}(J);function Q(t){return(Q="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})(t)}function $(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return(X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=et(t);if(e){var i=et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(t,e){return!e||"object"!==Q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}m.a.registerPlugin("createClipPlugin",Y);var nt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}(o,t);var e,n,r,i=Z(o);function o(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,t,Object.assign(Object.assign({},e),{playbackRates:null,enableLocalCache:!1}))}return e=o,(n=[{key:"getPlayerClassName",value:function(){return"cv-create-clip-player"}},{key:"configurePlugins",value:function(){var t=this.options,e=t.startTime,n=t.endTime,r=t.minDuration,i=t.onChangeStartTime,o=t.onChangeEndTime;this.player.createClipPlugin({startTime:e,endTime:n,minDuration:r,onChangeStartTime:i,onChangeEndTime:o})}},{key:"getSeekBarName",value:function(){return"CreateClipSeekBar"}},{key:"getAnalyticsPlayerType",value:function(){return"create-clip-player"}}])&&$(e.prototype,n),r&&$(e,r),o}(d.a);function rt(t){var e=i.a.useRef(),n=i.a.useRef();return i.a.useEffect((function(){n.current=new nt(e.current,t)}),[]),i.a.useEffect((function(){var e;null===(e=n.current)||void 0===e||e.trigger({type:"update:clip:start:time",time:t.startTime})}),[t.startTime]),i.a.useEffect((function(){var e;null===(e=n.current)||void 0===e||e.trigger({type:"update:clip:end:time",time:t.endTime})}),[t.endTime]),i.a.createElement("div",{ref:e})}var it=n(49),ot=n(1080),at=n(233),ct=n(1678),ut=u.a.encloseNamespace("shared.clipTimeForm");function lt(t){function e(){t.setTime(Math.floor(t.value)+1)}function n(){t.setTime(Math.floor(t.value)-1)}return r.createElement("div",{className:"position-relative"},r.createElement("input",{className:"form-control form-control-lg text-center ".concat(ct.timeInput),value:ot.a.ToDisplayDuration(1e3*t.value),onChange:function(){},onKeyDown:function(t){38===t.keyCode&&e(),40===t.keyCode&&n()}}),r.createElement("div",{className:ct.controlsContainer},r.createElement("div",{className:ct.arrowContainer,onClick:e},r.createElement("div",{className:ct.upArrow})),r.createElement("div",{className:ct.arrowContainer,onClick:n},r.createElement("div",{className:ct.downArrow}))))}function st(t){if(isNaN(t.startTime)||isNaN(t.endTime))return r.createElement(r.Fragment,null);var e=Math.floor(t.endTime)-Math.floor(t.startTime);return r.createElement("div",{className:"px-3"},r.createElement("form",{className:"form-inline justify-content-center pb-4"},r.createElement("div",{className:"form-group"},r.createElement(lt,{value:t.startTime,setTime:t.setStartTime})),r.createElement("span",{className:"px-2"},"-"),r.createElement("div",{className:"form-group mr-2"},r.createElement(lt,{value:t.endTime,setTime:t.setEndTime})),r.createElement("span",null,r.createElement("strong",null,r.createElement(at.b,{namespace:"shared.clipTimeForm",phrase:"duration"}))," ",ot.a.ToDisplayDuration(1e3*e))),r.createElement("div",{className:"d-flex justify-content-end"},r.createElement("button",{className:"btn btn-link",onClick:t.onCancel},ut("cancel")),r.createElement("button",{className:"btn btn-dark",onClick:t.onSubmit},ut("next"))))}var ft=n(6),pt=n(9),dt=n(243),mt=n(186),yt=n(360),ht=n(1068);function vt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return gt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(t,e)}(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 gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"EditClipTimepointsView",(function(){return Tt}));var bt=u.a.encloseNamespace("shared.editClipTimepoints");function Tt(t){var e,n,i,d,m=vt(Object(a.a)(it.a.WEB_PLAYER_DATA),2),y=m[0],h=m[1],v=t.startTime||(null===(e=null==y?void 0:y.playerRef)||void 0===e?void 0:e.currentTime())||0,g=vt(r.useState(v),2),b=g[0],T=g[1],S=vt(r.useState(v+30),2),C=S[0],E=S[1],w=o.a.useBasicFetch(f.a.config()),O=o.a.useBasicFetch(!!t.id&&dt.a.clip(t.id)),P=(null===(i=null===(n=O.data)||void 0===n?void 0:n.video)||void 0===i?void 0:i.id)||t.videoId,k=o.a.useBasicFetch(!!P&&s.a.createViewKey(P,ht.a.MasterObject)),_=o.a.useBasicFetch(!!P&&mt.a.video(P)),j=Object(yt.a)();return Object(l.a)(t.id?null===(d=O.data)||void 0===d?void 0:d.name:bt("pageTitle")),r.useEffect((function(){h("allowFloatingPlayer",!1),j.lock({id:"edit-clip-timepoints",title:u.a.getPhrase("shared.editClipTimepoints","navLockTitle"),text:u.a.getPhrase("shared.editClipTimepoints","navLockBody")})}),[]),r.useEffect((function(){O.data&&(T(O.data.startTime),E(O.data.endTime))}),[O.data]),t.id||t.videoId?r.createElement("div",{className:"px-3"},!!w.data&&!!k.data&&!!_.data&&(!t.id||!!O.data)&&r.createElement("div",{className:"pb-3"},r.createElement("div",{className:"mb-3"},r.createElement(rt,{playerApi:new URL(w.data.playerApiUrl),viewKey:k.data.viewKey,startTime:b,endTime:C,onChangeStartTime:T,onChangeEndTime:E,minDuration:5,autoplay:!0})),r.createElement(st,{startTime:b,endTime:C,setStartTime:T,setEndTime:E,onSubmit:function(){var e="";b>C&&(e=bt("startTimeGreaterThanEndTime")),C-b<5&&(e=bt("tooShort",{minDuration:5})),e?function(t){p.a.render(r.createElement("p",null,t),{title:bt("errorHeading"),buttons:[{variant:"link",buttonText:bt("close")}]})}(e):(j.unlock("edit-clip-timepoints"),c.a.AppLinkHelper.trigger({application:ft.a.DEFAULT,action:t.id?pt.a.Default.EDIT_CLIP_DETAILS:pt.a.Default.CREATE_CLIP_DETAILS,args:t.id?[t.id]:[t.videoId],params:{startTime:b,endTime:C}}))},onCancel:function(){var t,e;c.a.AppLinkHelper.trigger({application:ft.a.DEFAULT,action:pt.a.Default.PLAY_VIDEO,args:[null===(t=_.data)||void 0===t?void 0:t.id,null===(e=_.data)||void 0===e?void 0:e.name]})}}))):r.createElement(r.Fragment,null)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[22],{1025:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var a=n(0),i=n(1024),r=n(46),o=n(66),l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function c(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,c=e.initialValues,s=e.onSubmit,u=l(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function e(t){var n=o.a.deepClone(t);return Object.keys(n).forEach((function(t){n.hasOwnProperty(t)&&(o.a.isObject(n[t])?n[t]=e(n[t]):null===n[t]&&delete n[t])})),n}(c)):c,d={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.d,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=n&&e.validationSchema?e.validationSchema.cast(t):t;s(o,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&r(),i(!1)}))},initialStatus:d}),r.a.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function s(){return Object(i.f)()}c.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},1030:function(e,t,n){"use strict";var a=n(0),i=n(1024),r=n(41);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=n(233);n.d(t,"a",(function(){return s}));function s(e){var t=Object(i.f)(),n=function(e){var t,n=o(a.useState(!1),2),i=n[0],r=n[1];return a.useEffect((function(){var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?r(!0):r(!1)}),[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),a.useEffect((function(){e.isSubmitting&&r(!1)}),[e.isSubmitting]),i}(t);return a.createElement(r.Button,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:""},t.isSubmitting?a.createElement(r.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(c.b,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}},1031:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1024),i={getCustomFormControlClassName:function(e,t,n,i,r){var o="form-control";return"sm"===i&&(o+=" form-control-sm"),"lg"===i&&(o+=" form-control-lg"),Object(a.e)(t,n)&&Object(a.e)(e,n)&&(o+=" is-invalid"),r&&(o+=" ".concat(r)),o}}},1033:function(e,t,n){"use strict";var a=n(0),i=n(1024),r=n(41),o=n(66),l=n(46),c=n(1031),s=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=s(e,["label","checkboxLabelClassName","checkboxLabelFontWeight"]);return a.createElement(r.Form.Group,null,a.createElement("div",{className:"custom-control custom-checkbox"},a.createElement(v,Object.assign({className:"custom-control-input"},o)),a.createElement(r.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===i?"font-weight-normal":""," \n ").concat(n),htmlFor:o.id},t)))}var m=n(73),d=n(25),p=n(233);function f(e){var t=Object(i.f)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-right text-muted"},t.length,"/",e.limit)}n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return h}));var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function v(e){var t=e.children,n=b(e,["children"]);return a.createElement(i.b,Object.assign({},o.a.omit(n,["formSize"])),l.a.isFunction(t)?function(e){return t(e)}:a.Children.count(t)?t:null)}function h(e){var t=e.label,n=e.className,l=e.showCharacterCounter,s=e.showRequiredStar,h=e.infoTooltip,g=e.infoText,y=e.formSize,O=e.showOptionalLabel,E=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoText","formSize","showOptionalLabel"]),S=Object(i.f)(),w=S.errors,C=S.touched,j=function(){};if("checkbox"===E.type){var N=o.a.omit(e,["formSize"]);return e.disabled&&(N.onChange=j),a.createElement(u,Object.assign({},N))}var x=Object.assign(Object.assign({},E),{className:c.a.getCustomFormControlClassName(w,C,E.name,y,n)});return e.disabled&&(x.onChange=j),a.createElement(r.Form.Group,null,!!t&&a.createElement(r.Form.Label,{htmlFor:E.id,className:"d-flex align-items-center"},t,s&&a.createElement("span",{className:"text-danger"},"*"),h&&a.createElement(m.a,{svgName:d.b.Info,title:h,tooltipPlacement:"top",tooltipSpanHack:!0}),O&&a.createElement("span",{className:"text-muted"}," ",a.createElement(p.b,{namespace:"shared.formField",phrase:"optional"}))),a.createElement(v,Object.assign({},x)),!!l&&!!E.maxLength&&a.createElement(f,{fieldName:E.name,limit:E.maxLength}),!!g&&a.createElement(r.Form.Text,{className:"text-muted"},g),a.createElement(i.a,{name:E.name},(function(e){return a.createElement(r.Form.Control.Feedback,{type:"invalid"},e)})))}v.defaultProps={autoComplete:"off"},h.defaultProps={autoComplete:"off"}},1923:function(e,t,n){"use strict";n.r(t);var a=n(0),i=n(75),r=n(4),o=n(11),l=n(58),c=n(8),s=n(35),u=n(61),m=n(236),d=n(235),p=n(1070),f=n(1024),b=n(233),v=n(1025),h=n(1033),g=n(1030),y=n(1056),O=n(47),E=n(1052),S=n(2),w=n(23),C=c.a.encloseNamespace("shared.editClipDetails"),j=p.object().shape({name:p.string().trim().max(255,(function(){return C("titleTooLong")})).required((function(){return C("titleRequired")})).default(""),description:p.string().trim().max(65535,(function(){return C("descriptionTooLong")})).default(""),startTime:p.number().required(),endTime:p.number().required()}).noUnknown();function N(e){var t=Object(v.b)();return a.createElement(f.c,null,a.createElement("div",{className:"row form-group"},a.createElement("div",{className:"col-5"},a.createElement(y.a,{video:Object.assign({video:e.video,typeId:w.a.Clip},t.values),type:"static",imageOptions:{size:O.b.Small},textPosition:E.a.Independent,preload:!0,analyticsOptions:{location:S.LocationContext.Popup}})),a.createElement("div",{className:"col-7"},a.createElement("h2",{className:"h6"},t.values.name))),a.createElement(h.b,{label:C("nameLabel"),type:"text",name:"name",id:"name",placeholder:C("namePlaceholder"),autoFocus:!0,value:t.values.name,formSize:"lg"}),a.createElement(h.b,{label:C("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:C("descriptionPlaceholder"),value:t.values.description,formSize:"lg"}),a.createElement("div",{className:"btn-container d-flex justify-content-end"},a.createElement("button",{type:"button",className:"btn btn-link mr-2",onClick:e.onClickCancel},a.createElement(b.b,{namespace:"shared.editClipDetails",phrase:"cancel"})),a.createElement(g.a,{isNew:e.isNew,submitText:e.isNew&&C("createClip"),variant:"dark"})))}function x(e){var t;return a.createElement(v.a,{initialValues:e.clip,validationSchema:j,onSubmit:e.saveClip,allowInitialSubmit:e.allowInitialSubmit},a.createElement(N,{video:e.video,isNew:!(null===(t=e.clip)||void 0===t?void 0:t.id),onClickCancel:e.onClickCancel}))}var P=n(243),k=n(186),F=n(6),I=n(9);n.d(t,"EditClipDetailsView",(function(){return L}));var T=c.a.encloseNamespace("shared.editClipDetails");function L(e){var t,n,c,p,f,b,v,h=Object(i.useDispatch)(),g=Object(d.a)(),y=o.a.useBasicFetch(!!e.id&&P.a.clip(e.id)),O=(null===(n=null===(t=y.data)||void 0===t?void 0:t.video)||void 0===n?void 0:n.id)||e.videoId,E=o.a.useBasicFetch(!!O&&k.a.video(O)),S=isNaN(e.startTime)?null===(c=null==y?void 0:y.data)||void 0===c?void 0:c.startTime:e.startTime,w=isNaN(e.endTime)?null===(p=null==y?void 0:y.data)||void 0===p?void 0:p.endTime:e.endTime;if(!e.id&&!e.videoId)return a.createElement(a.Fragment,null);var C=!(!E.data||e.id&&!y.data);return a.createElement(m.a,{title:T(e.id?"editPopupHeading":"createPopupHeading"),closePopup:e.closePopup,showLoadingSpinner:!C},a.createElement(x,{video:E.data,clip:{id:null===(f=null==y?void 0:y.data)||void 0===f?void 0:f.id,name:null===(b=null==y?void 0:y.data)||void 0===b?void 0:b.name,description:null===(v=null==y?void 0:y.data)||void 0===v?void 0:v.description,startTime:S,endTime:w},saveClip:function(t){var n=function(n){g.success(T("success",{name:t.name})),s.a.logUserAction(Object.assign(Object.assign({},n),{videoId:O}),{actionType:e.id?u.q.Edit:u.q.Create,entity:u.d.Clip,location:u.k.Popup,workflowPhase:u.t.Complete}),e.id||r.a.AppLinkHelper.trigger({application:F.a.DEFAULT,action:I.a.Default.PLAY_CLIP,args:[n.id,l.a.slugify(n.name)]})},a=function(){g.error(T("error"))},i=function(){e.closePopup()},c=e.id?P.a.updateClip(e.id,t,n,a,i):P.a.createClip(e.videoId,t,n,a,i);o.a.fetch(h,c)},onClickCancel:e.closePopup,allowInitialSubmit:!0}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[22],{1025:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var a=n(0),i=n(1024),r=n(46),o=n(66),l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function c(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,c=e.initialValues,s=e.onSubmit,u=l(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function e(t){var n=o.a.deepClone(t);return Object.keys(n).forEach((function(t){n.hasOwnProperty(t)&&(o.a.isObject(n[t])?n[t]=e(n[t]):null===n[t]&&delete n[t])})),n}(c)):c,d={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.d,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=n&&e.validationSchema?e.validationSchema.cast(t):t;s(o,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&r(),i(!1)}))},initialStatus:d}),r.a.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function s(){return Object(i.f)()}c.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},1030:function(e,t,n){"use strict";var a=n(0),i=n(1024),r=n(41);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=n(232);n.d(t,"a",(function(){return s}));function s(e){var t=Object(i.f)(),n=function(e){var t,n=o(a.useState(!1),2),i=n[0],r=n[1];return a.useEffect((function(){var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?r(!0):r(!1)}),[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),a.useEffect((function(){e.isSubmitting&&r(!1)}),[e.isSubmitting]),i}(t);return a.createElement(r.Button,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:""},t.isSubmitting?a.createElement(r.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(c.b,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}},1031:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1024),i={getCustomFormControlClassName:function(e,t,n,i,r){var o="form-control";return"sm"===i&&(o+=" form-control-sm"),"lg"===i&&(o+=" form-control-lg"),Object(a.e)(t,n)&&Object(a.e)(e,n)&&(o+=" is-invalid"),r&&(o+=" ".concat(r)),o}}},1033:function(e,t,n){"use strict";var a=n(0),i=n(1024),r=n(41),o=n(66),l=n(46),c=n(1031),s=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=s(e,["label","checkboxLabelClassName","checkboxLabelFontWeight"]);return a.createElement(r.Form.Group,null,a.createElement("div",{className:"custom-control custom-checkbox"},a.createElement(v,Object.assign({className:"custom-control-input"},o)),a.createElement(r.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===i?"font-weight-normal":""," \n ").concat(n),htmlFor:o.id},t)))}var m=n(73),d=n(24),p=n(232);function f(e){var t=Object(i.f)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-right text-muted"},t.length,"/",e.limit)}n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return h}));var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function v(e){var t=e.children,n=b(e,["children"]);return a.createElement(i.b,Object.assign({},o.a.omit(n,["formSize"])),l.a.isFunction(t)?function(e){return t(e)}:a.Children.count(t)?t:null)}function h(e){var t=e.label,n=e.className,l=e.showCharacterCounter,s=e.showRequiredStar,h=e.infoTooltip,g=e.infoText,y=e.formSize,O=e.showOptionalLabel,E=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoText","formSize","showOptionalLabel"]),S=Object(i.f)(),w=S.errors,C=S.touched,j=function(){};if("checkbox"===E.type){var N=o.a.omit(e,["formSize"]);return e.disabled&&(N.onChange=j),a.createElement(u,Object.assign({},N))}var x=Object.assign(Object.assign({},E),{className:c.a.getCustomFormControlClassName(w,C,E.name,y,n)});return e.disabled&&(x.onChange=j),a.createElement(r.Form.Group,null,!!t&&a.createElement(r.Form.Label,{htmlFor:E.id,className:"d-flex align-items-center"},t,s&&a.createElement("span",{className:"text-danger"},"*"),h&&a.createElement(m.a,{svgName:d.b.Info,title:h,tooltipPlacement:"top",tooltipSpanHack:!0}),O&&a.createElement("span",{className:"text-muted"}," ",a.createElement(p.b,{namespace:"shared.formField",phrase:"optional"}))),a.createElement(v,Object.assign({},x)),!!l&&!!E.maxLength&&a.createElement(f,{fieldName:E.name,limit:E.maxLength}),!!g&&a.createElement(r.Form.Text,{className:"text-muted"},g),a.createElement(i.a,{name:E.name},(function(e){return a.createElement(r.Form.Control.Feedback,{type:"invalid"},e)})))}v.defaultProps={autoComplete:"off"},h.defaultProps={autoComplete:"off"}},1916:function(e,t,n){"use strict";n.r(t);var a=n(0),i=n(75),r=n(4),o=n(11),l=n(58),c=n(8),s=n(34),u=n(61),m=n(235),d=n(234),p=n(1070),f=n(1024),b=n(232),v=n(1025),h=n(1033),g=n(1030),y=n(1056),O=n(47),E=n(1052),S=n(2),w=n(33),C=c.a.encloseNamespace("shared.editClipDetails"),j=p.object().shape({name:p.string().trim().max(255,(function(){return C("titleTooLong")})).required((function(){return C("titleRequired")})).default(""),description:p.string().trim().max(65535,(function(){return C("descriptionTooLong")})).default(""),startTime:p.number().required(),endTime:p.number().required()}).noUnknown();function N(e){var t=Object(v.b)();return a.createElement(f.c,null,a.createElement("div",{className:"row form-group"},a.createElement("div",{className:"col-5"},a.createElement(y.a,{video:Object.assign({video:e.video,typeId:w.a.Clip},t.values),type:"static",imageOptions:{size:O.b.Small},textPosition:E.a.Independent,preload:!0,analyticsOptions:{location:S.LocationContext.Popup}})),a.createElement("div",{className:"col-7"},a.createElement("h2",{className:"h6"},t.values.name))),a.createElement(h.b,{label:C("nameLabel"),type:"text",name:"name",id:"name",placeholder:C("namePlaceholder"),autoFocus:!0,value:t.values.name,formSize:"lg"}),a.createElement(h.b,{label:C("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:C("descriptionPlaceholder"),value:t.values.description,formSize:"lg"}),a.createElement("div",{className:"btn-container d-flex justify-content-end"},a.createElement("button",{type:"button",className:"btn btn-link mr-2",onClick:e.onClickCancel},a.createElement(b.b,{namespace:"shared.editClipDetails",phrase:"cancel"})),a.createElement(g.a,{isNew:e.isNew,submitText:e.isNew&&C("createClip"),variant:"dark"})))}function x(e){var t;return a.createElement(v.a,{initialValues:e.clip,validationSchema:j,onSubmit:e.saveClip,allowInitialSubmit:e.allowInitialSubmit},a.createElement(N,{video:e.video,isNew:!(null===(t=e.clip)||void 0===t?void 0:t.id),onClickCancel:e.onClickCancel}))}var P=n(359),k=n(236),F=n(6),I=n(9);n.d(t,"EditClipDetailsView",(function(){return L}));var T=c.a.encloseNamespace("shared.editClipDetails");function L(e){var t,n,c,p,f,b,v,h=Object(i.useDispatch)(),g=Object(d.a)(),y=o.a.useBasicFetch(!!e.id&&P.a.clip(e.id)),O=(null===(n=null===(t=y.data)||void 0===t?void 0:t.video)||void 0===n?void 0:n.id)||e.videoId,E=o.a.useBasicFetch(!!O&&k.a.video(O)),S=isNaN(e.startTime)?null===(c=null==y?void 0:y.data)||void 0===c?void 0:c.startTime:e.startTime,w=isNaN(e.endTime)?null===(p=null==y?void 0:y.data)||void 0===p?void 0:p.endTime:e.endTime;if(!e.id&&!e.videoId)return a.createElement(a.Fragment,null);var C=!(!E.data||e.id&&!y.data);return a.createElement(m.a,{title:T(e.id?"editPopupHeading":"createPopupHeading"),closePopup:e.closePopup,showLoadingSpinner:!C},a.createElement(x,{video:E.data,clip:{id:null===(f=null==y?void 0:y.data)||void 0===f?void 0:f.id,name:null===(b=null==y?void 0:y.data)||void 0===b?void 0:b.name,description:null===(v=null==y?void 0:y.data)||void 0===v?void 0:v.description,startTime:S,endTime:w},saveClip:function(t){var n=function(n){g.success(T("success",{name:t.name})),s.a.logUserAction(Object.assign(Object.assign({},n),{videoId:O}),{actionType:e.id?u.q.Edit:u.q.Create,entity:u.d.Clip,location:u.k.Popup,workflowPhase:u.t.Complete}),e.id||r.a.AppLinkHelper.trigger({application:F.a.DEFAULT,action:I.a.Default.PLAY_CLIP,args:[n.id,l.a.slugify(n.name)]})},a=function(){g.error(T("error"))},i=function(){e.closePopup()},c=e.id?P.a.updateClip(e.id,t,n,a,i):P.a.createClip(e.videoId,t,n,a,i);o.a.fetch(h,c)},onClickCancel:e.closePopup,allowInitialSubmit:!0}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[23],{1881:function(e,n,a){window,e.exports=function(e){var n={};function a(t){if(n[t])return n[t].exports;var s=n[t]={i:t,l:!1,exports:{}};return e[t].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=n,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,n){if(1&n&&(e=a(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var s in e)a.d(t,s,function(n){return e[n]}.bind(null,s));return t},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="",a(a.s=8)}([function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.initializeCallbacks=[],e.isFramelessWindow=!1,e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.handlers={},e.callbacks={},e.printCapabilityEnabled=!1,e}();n.GlobalVars=t},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(4),s=a(2),r=a(0);function i(e){if("id"in e.data){var n=e.data,a=r.GlobalVars.callbacks[n.id];a&&(a.apply(null,n.args),delete r.GlobalVars.callbacks[n.id])}else if("func"in e.data){n=e.data;var t=r.GlobalVars.handlers[n.func];t&&t.apply(this,n.args)}}function o(e){return e===r.GlobalVars.parentWindow?r.GlobalVars.parentMessageQueue:e===r.GlobalVars.childWindow?r.GlobalVars.childMessageQueue:[]}function l(e){return e===r.GlobalVars.parentWindow?r.GlobalVars.parentOrigin:e===r.GlobalVars.childWindow?r.GlobalVars.childOrigin:null}function u(e){for(var n=l(e),a=o(e);e&&n&&a.length>0;)e.postMessage(a.shift(),n)}function d(e,n,a){var t=function(e,n){return{id:r.GlobalVars.nextMessageId++,func:e,args:n||[]}}(n,a);if(r.GlobalVars.isFramelessWindow)r.GlobalVars.currentWindow&&r.GlobalVars.currentWindow.nativeInterface&&r.GlobalVars.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(t));else{var s=l(e);e&&s?e.postMessage(t,s):o(e).push(t)}return t.id}function c(e,n,a){var t=function(e,n){return{id:e,args:n||[]}}(n,a),s=l(e);e&&s&&e.postMessage(t,s)}r.GlobalVars.handlers.themeChange=function(e){r.GlobalVars.themeChangeHandler&&r.GlobalVars.themeChangeHandler(e),r.GlobalVars.childWindow&&d(r.GlobalVars.childWindow,"themeChange",[e])},r.GlobalVars.handlers.fullScreenChange=function(e){r.GlobalVars.fullScreenChangeHandler&&r.GlobalVars.fullScreenChangeHandler(e)},r.GlobalVars.handlers.backButtonPress=function(){r.GlobalVars.backButtonPressHandler&&r.GlobalVars.backButtonPressHandler()||t.navigateBack()},r.GlobalVars.handlers.load=function(e){r.GlobalVars.loadHandler&&r.GlobalVars.loadHandler(e),r.GlobalVars.childWindow&&d(r.GlobalVars.childWindow,"load",[e])},r.GlobalVars.handlers.beforeUnload=function(){var e=function(){d(r.GlobalVars.parentWindow,"readyToUnload",[])};r.GlobalVars.beforeUnloadHandler&&r.GlobalVars.beforeUnloadHandler(e)||e()},r.GlobalVars.handlers.changeSettings=function(){r.GlobalVars.changeSettingsHandler&&r.GlobalVars.changeSettingsHandler()},r.GlobalVars.handlers.startConversation=function(e,n,a,t){r.GlobalVars.onStartConversationHandler&&r.GlobalVars.onStartConversationHandler({subEntityId:e,conversationId:n,channelId:a,entityId:t})},r.GlobalVars.handlers.closeConversation=function(e,n,a,t){r.GlobalVars.onCloseConversationHandler&&r.GlobalVars.onCloseConversationHandler({subEntityId:e,conversationId:n,channelId:a,entityId:t})},n.ensureInitialized=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!r.GlobalVars.initializeCalled)throw new Error("The library has not yet been initialized");if(r.GlobalVars.frameContext&&e&&e.length>0){for(var a=!1,t=0;t<e.length;t++)if(e[t]===r.GlobalVars.frameContext){a=!0;break}if(!a)throw new Error("This call is not allowed in the '"+r.GlobalVars.frameContext+"' context")}},n.processMessage=function(e){if(e&&e.data&&"object"==typeof e.data){var n=e.source||e.originalEvent.source,a=e.origin||e.originalEvent.origin;n===r.GlobalVars.currentWindow||a!==r.GlobalVars.currentWindow.location.origin&&!s.validOriginRegExp.test(a.toLowerCase())||(function(e,n){r.GlobalVars.parentWindow&&e!==r.GlobalVars.parentWindow?r.GlobalVars.childWindow&&e!==r.GlobalVars.childWindow||(r.GlobalVars.childWindow=e,r.GlobalVars.childOrigin=n):(r.GlobalVars.parentWindow=e,r.GlobalVars.parentOrigin=n),r.GlobalVars.parentWindow&&r.GlobalVars.parentWindow.closed&&(r.GlobalVars.parentWindow=null,r.GlobalVars.parentOrigin=null),r.GlobalVars.childWindow&&r.GlobalVars.childWindow.closed&&(r.GlobalVars.childWindow=null,r.GlobalVars.childOrigin=null),u(r.GlobalVars.parentWindow),u(r.GlobalVars.childWindow)}(n,a),n===r.GlobalVars.parentWindow?i(e):n===r.GlobalVars.childWindow&&function(e){if("id"in e.data&&"func"in e.data){var n=e.data,a=r.GlobalVars.handlers[n.func];if(a){var t=a.apply(this,n.args);t&&c(r.GlobalVars.childWindow,n.id,Array.isArray(t)?t:[t])}else{var s=d(r.GlobalVars.parentWindow,n.func,n.args);r.GlobalVars.callbacks[s]=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];r.GlobalVars.childWindow&&c(r.GlobalVars.childWindow,n.id,e)}}}}(e))}},n.handleParentMessage=i,n.waitForMessageQueue=function(e,n){var a=r.GlobalVars.currentWindow.setInterval((function(){0===o(e).length&&(clearInterval(a),n())}),100)},n.sendMessageRequest=d},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(3);n.version="1.5.2",n.validOrigins=["https://teams.microsoft.com","https://teams.microsoft.us","https://gov.teams.microsoft.us","https://dod.teams.microsoft.us","https://int.teams.microsoft.com","https://devspaces.skype.com","https://ssauth.skype.com","https://local.teams.office.com","https://local.teams.office.com:8080","https://msft.spoppe.com","https://*.sharepoint.com","https://*.sharepoint-df.com","https://*.sharepointonline.com","https://outlook.office.com","https://outlook-sdf.office.com"],n.frameContexts={settings:"settings",content:"content",authentication:"authentication",remove:"remove",task:"task"},n.validOriginRegExp=t.generateRegExpFromUrls(n.validOrigins)},function(e,n,a){"use strict";function t(e){for(var n="^",a=e.split("."),t=0;t<a.length;t++)n+=(t>0?"[.]":"")+a[t].replace("*","[^/^.]+");return n+"$"}Object.defineProperty(n,"__esModule",{value:!0}),n.generateRegExpFromUrls=function(e){for(var n="",a=0;a<e.length;a++)n+=(0===a?"":"|")+t(e[a]);return new RegExp(n)},n.getGenericOnCompleteHandler=function(e){return function(n,a){if(!n)throw new Error(e||a)}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(5),o=a(3),l=a(6);function u(){window.print()}function d(e){t.ensureInitialized(),s.GlobalVars.themeChangeHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["themeChange"])}function c(e){t.ensureInitialized(),s.GlobalVars.fullScreenChangeHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["fullScreen"])}function b(e){t.ensureInitialized(),s.GlobalVars.backButtonPressHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["backButton"])}function f(e){t.ensureInitialized(),s.GlobalVars.loadHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["load"])}function g(e){t.ensureInitialized(),s.GlobalVars.beforeUnloadHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["beforeUnload"])}n.initialize=function(e){if(!s.GlobalVars.initializeCalled){s.GlobalVars.initializeCalled=!0;var n=function(e){return t.processMessage(e)};s.GlobalVars.currentWindow=s.GlobalVars.currentWindow||window,s.GlobalVars.parentWindow=s.GlobalVars.currentWindow.parent!==s.GlobalVars.currentWindow.self?s.GlobalVars.currentWindow.parent:s.GlobalVars.currentWindow.opener,s.GlobalVars.parentWindow?s.GlobalVars.currentWindow.addEventListener("message",n,!1):(s.GlobalVars.isFramelessWindow=!0,window.onNativeMessage=t.handleParentMessage);try{s.GlobalVars.parentOrigin="*";var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"initialize",[r.version]);s.GlobalVars.callbacks[a]=function(e,n){s.GlobalVars.frameContext=e,s.GlobalVars.hostClientType=n,s.GlobalVars.initializeCallbacks.forEach((function(e){return e()})),s.GlobalVars.initializeCallbacks=[],s.GlobalVars.initializeCompleted=!0}}finally{s.GlobalVars.parentOrigin=null}this._uninitialize=function(){s.GlobalVars.frameContext&&(d(null),c(null),b(null),g(null),f(null),l.logs.registerGetLogHandler(null)),s.GlobalVars.frameContext===r.frameContexts.settings&&i.settings.registerOnSaveHandler(null),s.GlobalVars.frameContext===r.frameContexts.remove&&i.settings.registerOnRemoveHandler(null),s.GlobalVars.isFramelessWindow||s.GlobalVars.currentWindow.removeEventListener("message",n,!1),s.GlobalVars.initializeCalled=!1,s.GlobalVars.initializeCompleted=!1,s.GlobalVars.initializeCallbacks=[],s.GlobalVars.parentWindow=null,s.GlobalVars.parentOrigin=null,s.GlobalVars.parentMessageQueue=[],s.GlobalVars.childWindow=null,s.GlobalVars.childOrigin=null,s.GlobalVars.childMessageQueue=[],s.GlobalVars.nextMessageId=0,s.GlobalVars.callbacks={},s.GlobalVars.frameContext=null,s.GlobalVars.hostClientType=null,s.GlobalVars.isFramelessWindow=!1}}e&&(s.GlobalVars.initializeCompleted?e():s.GlobalVars.initializeCallbacks.push(e))},n._initialize=function(e){s.GlobalVars.currentWindow=e},n._uninitialize=function(){},n.enablePrintCapability=function(){s.GlobalVars.printCapabilityEnabled||(s.GlobalVars.printCapabilityEnabled=!0,t.ensureInitialized(),document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(u(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())})))},n.print=u,n.getContext=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"getContext");s.GlobalVars.callbacks[n]=e},n.registerOnThemeChangeHandler=d,n.registerFullScreenHandler=c,n.registerBackButtonHandler=b,n.navigateBack=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"navigateBack",[]);s.GlobalVars.callbacks[n]=e||o.getGenericOnCompleteHandler("Back navigation is not supported in the current client or context.")},n.registerOnLoadHandler=f,n.registerBeforeUnloadHandler=g,n.registerChangeSettingsHandler=function(e){t.ensureInitialized(r.frameContexts.content),s.GlobalVars.changeSettingsHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["changeSettings"])},n.navigateCrossDomain=function(e,n){t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings,r.frameContexts.remove,r.frameContexts.task);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"navigateCrossDomain",[e]);s.GlobalVars.callbacks[a]=n||o.getGenericOnCompleteHandler("Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.")},n.getTabInstances=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getTabInstances",[n]);s.GlobalVars.callbacks[a]=e},n.getMruTabInstances=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getMruTabInstances",[n]);s.GlobalVars.callbacks[a]=e},n.shareDeepLink=function(e){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},n.executeDeepLink=function(e,n){t.ensureInitialized(r.frameContexts.content,r.frameContexts.task);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"executeDeepLink",[e]);s.GlobalVars.callbacks[a]=n||o.getGenericOnCompleteHandler()},n.navigateToTab=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"navigateToTab",[e]);s.GlobalVars.callbacks[a]=n||o.getGenericOnCompleteHandler("Invalid internalTabInstanceId and/or channelId were/was provided")}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(3);!function(e){var n,a;s.GlobalVars.handlers["settings.save"]=function(e){var a=new o(e);n?n(a):a.notifySuccess()},s.GlobalVars.handlers["settings.remove"]=function(){var e=new l;a?a(e):e.notifySuccess()},e.setValidityState=function(e){t.ensureInitialized(r.frameContexts.settings,r.frameContexts.remove),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.setValidityState",[e])},e.getSettings=function(e){t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings,r.frameContexts.remove);var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.getSettings");s.GlobalVars.callbacks[n]=e},e.setSettings=function(e,n){t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.setSettings",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},e.registerOnSaveHandler=function(e){t.ensureInitialized(r.frameContexts.settings),n=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["save"])},e.registerOnRemoveHandler=function(e){t.ensureInitialized(r.frameContexts.remove),a=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["remove"])};var o=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.save.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},e}(),l=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},e}()}(n.settings||(n.settings={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0);!function(e){s.GlobalVars.handlers["log.request"]=function(){if(s.GlobalVars.getLogHandler){var e=s.GlobalVars.getLogHandler();t.sendMessageRequest(s.GlobalVars.parentWindow,"log.receive",[e])}},e.registerGetLogHandler=function(e){t.ensureInitialized(),s.GlobalVars.getLogHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["log.request"])}}(n.logs||(n.logs={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(3),o=function(){function e(){}return e.prototype.postMessage=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"messageForChild",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},e.prototype.addEventListener=function(e,n){"message"===e&&(s.GlobalVars.handlers.messageForParent=n)},e}();n.ChildAppWindow=o;var l=function(){function e(){}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!0,configurable:!0}),e.prototype.postMessage=function(e,n){t.ensureInitialized(r.frameContexts.task);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"messageForParent",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},e.prototype.addEventListener=function(e,n){"message"===e&&(s.GlobalVars.handlers.messageForChild=n)},e}();n.ParentAppWindow=l},function(e,n,a){"use strict";function t(e){for(var a in e)n.hasOwnProperty(a)||(n[a]=e[a])}Object.defineProperty(n,"__esModule",{value:!0}),t(a(9)),t(a(14))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(10);n.bot=t.bot;var s=a(11);n.menus=s.menus;var r=a(6);n.logs=r.logs;var i=a(12);n.enterFullscreen=i.enterFullscreen,n.exitFullscreen=i.exitFullscreen,n.getChatMembers=i.getChatMembers,n.getConfigSetting=i.getConfigSetting,n.getUserJoinedTeams=i.getUserJoinedTeams,n.openFilePreview=i.openFilePreview,n.sendCustomMessage=i.sendCustomMessage,n.showNotification=i.showNotification,n.uploadCustomApp=i.uploadCustomApp;var o=a(13);n.conversations=o.conversations},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(0),s=a(1);!function(e){e.sendQuery=function(e,n,a){s.ensureInitialized();var r=s.sendMessageRequest(t.GlobalVars.parentWindow,"bot.executeQuery",[e]);t.GlobalVars.callbacks[r]=function(e,t){e?n(t):a(t)}},e.getSupportedCommands=function(e,n){s.ensureInitialized();var a=s.sendMessageRequest(t.GlobalVars.parentWindow,"bot.getSupportedCommands");t.GlobalVars.callbacks[a]=function(a,t){a?e(t):n(t)}},e.authenticate=function(e,n,a){s.ensureInitialized();var r=s.sendMessageRequest(t.GlobalVars.parentWindow,"bot.authenticate",[e]);t.GlobalVars.callbacks[r]=function(e,t){e?n(t):a(t)}},function(e){e.Results="Results",e.Auth="Auth"}(e.ResponseType||(e.ResponseType={}))}(n.bot||(n.bot={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0);!function(e){var n,a,r,i=function(){this.enabled=!0};e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),s.GlobalVars.handlers.navBarMenuItemPress=function(e){n&&n(e)||(t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"handleNavBarMenuItemPress",[e]))},s.GlobalVars.handlers.actionMenuItemPress=function(e){a&&a(e)||(t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"handleActionMenuItemPress",[e]))},s.GlobalVars.handlers.setModuleView=function(e){r&&r(e)||(t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"viewConfigItemPress",[e]))},e.setUpViews=function(e,n){t.ensureInitialized(),r=n,t.sendMessageRequest(s.GlobalVars.parentWindow,"setUpViews",[e])},e.setNavBarMenu=function(e,a){t.ensureInitialized(),n=a,t.sendMessageRequest(s.GlobalVars.parentWindow,"setNavBarMenu",[e])},e.showActionMenu=function(e,n){t.ensureInitialized(),a=n,t.sendMessageRequest(s.GlobalVars.parentWindow,"showActionMenu",[e])}}(n.menus||(n.menus={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(3);n.getUserJoinedTeams=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getUserJoinedTeams",[n]);s.GlobalVars.callbacks[a]=e},n.enterFullscreen=function(){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"enterFullscreen",[])},n.exitFullscreen=function(){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"exitFullscreen",[])},n.openFilePreview=function(e){t.ensureInitialized(r.frameContexts.content);var n=[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId];t.sendMessageRequest(s.GlobalVars.parentWindow,"openFilePreview",n)},n.showNotification=function(e){t.ensureInitialized(r.frameContexts.content);var n=[e.message,e.notificationType];t.sendMessageRequest(s.GlobalVars.parentWindow,"showNotification",n)},n.uploadCustomApp=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"uploadCustomApp",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},n.sendCustomMessage=function(e,n){return t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,e,n)},n.getChatMembers=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"getChatMembers");s.GlobalVars.callbacks[n]=e},n.getConfigSetting=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getConfigSetting",[n]);s.GlobalVars.callbacks[a]=e}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2);!function(e){e.openConversation=function(e){t.ensureInitialized(r.frameContexts.content);var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"conversations.openConversation",[{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId}]);s.GlobalVars.onCloseConversationHandler=e.onCloseConversation,s.GlobalVars.onStartConversationHandler=e.onStartConversation,s.GlobalVars.callbacks[n]=function(e,n){if(!e)throw new Error(n)}},e.closeConversation=function(){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"conversations.closeConversation"),s.GlobalVars.onCloseConversationHandler=null,s.GlobalVars.onStartConversationHandler=null}}(n.conversations||(n.conversations={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(15);n.appInitialization=t.appInitialization;var s=a(16);n.authentication=s.authentication;var r=a(4);n.enablePrintCapability=r.enablePrintCapability,n.executeDeepLink=r.executeDeepLink,n.getContext=r.getContext,n.getMruTabInstances=r.getMruTabInstances,n.getTabInstances=r.getTabInstances,n.initialize=r.initialize,n.navigateBack=r.navigateBack,n.navigateCrossDomain=r.navigateCrossDomain,n.navigateToTab=r.navigateToTab,n.print=r.print,n.registerBackButtonHandler=r.registerBackButtonHandler,n.registerBeforeUnloadHandler=r.registerBeforeUnloadHandler,n.registerChangeSettingsHandler=r.registerChangeSettingsHandler,n.registerFullScreenHandler=r.registerFullScreenHandler,n.registerOnLoadHandler=r.registerOnLoadHandler,n.registerOnThemeChangeHandler=r.registerOnThemeChangeHandler,n.shareDeepLink=r.shareDeepLink;var i=a(5);n.settings=i.settings;var o=a(17);n.tasks=o.tasks;var l=a(7);n.ChildAppWindow=l.ChildAppWindow,n.ParentAppWindow=l.ParentAppWindow},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2);!function(e){e.notifyAppLoaded=function(){t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"appInitialization.appLoaded",[r.version])},e.notifySuccess=function(){t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"appInitialization.success",[r.version])},e.notifyFailure=function(e){t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"appInitialization.failure",[e.reason,e.message])}}(n.appInitialization||(n.appInitialization={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2);!function(e){var n,a;function i(){l();try{s.GlobalVars.childWindow&&s.GlobalVars.childWindow.close()}finally{s.GlobalVars.childWindow=null,s.GlobalVars.childOrigin=null}}function o(e){n=e,i();var a=n.width||600,t=n.height||400;a=Math.min(a,s.GlobalVars.currentWindow.outerWidth-400),t=Math.min(t,s.GlobalVars.currentWindow.outerHeight-200);var r=document.createElement("a");r.href=n.url;var o=void 0!==s.GlobalVars.currentWindow.screenLeft?s.GlobalVars.currentWindow.screenLeft:s.GlobalVars.currentWindow.screenX,l=void 0!==s.GlobalVars.currentWindow.screenTop?s.GlobalVars.currentWindow.screenTop:s.GlobalVars.currentWindow.screenY;o+=s.GlobalVars.currentWindow.outerWidth/2-a/2,l+=s.GlobalVars.currentWindow.outerHeight/2-t/2,s.GlobalVars.childWindow=s.GlobalVars.currentWindow.open(r.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+l+", left="+o+", width="+a+", height="+t),s.GlobalVars.childWindow?u():d("FailedToOpenWindow")}function l(){a&&(clearInterval(a),a=0),delete s.GlobalVars.handlers.initialize,delete s.GlobalVars.handlers.navigateCrossDomain}function u(){l(),a=s.GlobalVars.currentWindow.setInterval((function(){if(!s.GlobalVars.childWindow||s.GlobalVars.childWindow.closed)d("CancelledByUser");else{var e=s.GlobalVars.childOrigin;try{s.GlobalVars.childOrigin="*",t.sendMessageRequest(s.GlobalVars.childWindow,"ping")}finally{s.GlobalVars.childOrigin=e}}}),100),s.GlobalVars.handlers.initialize=function(){return[r.frameContexts.authentication,s.GlobalVars.hostClientType]},s.GlobalVars.handlers.navigateCrossDomain=function(){return!1}}function d(e){try{n&&n.failureCallback&&n.failureCallback(e)}finally{n=null,i()}}function c(e,n,a){if(e){var t=document.createElement("a");t.href=decodeURIComponent(e),t.host&&t.host!==window.location.host&&"outlook.office.com"===t.host&&t.search.indexOf("client_type=Win32_Outlook")>-1&&(n&&"result"===n&&(a&&(t.href=b(t.href,"result",a)),s.GlobalVars.currentWindow.location.assign(b(t.href,"authSuccess",""))),n&&"reason"===n&&(a&&(t.href=b(t.href,"reason",a)),s.GlobalVars.currentWindow.location.assign(b(t.href,"authFailure",""))))}}function b(e,n,a){var t=e.indexOf("#"),s=-1===t?"#":e.substr(t);return s=s+"&"+n+(""!==a?"="+a:""),(e=-1===t?e:e.substr(0,t))+s}s.GlobalVars.handlers["authentication.authenticate.success"]=function(e){try{n&&n.successCallback&&n.successCallback(e)}finally{n=null,i()}},s.GlobalVars.handlers["authentication.authenticate.failure"]=d,e.registerAuthenticationHandlers=function(e){n=e},e.authenticate=function(e){var a=void 0!==e?e:n;if(t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings,r.frameContexts.remove,r.frameContexts.task),"desktop"===s.GlobalVars.hostClientType||"android"===s.GlobalVars.hostClientType||"ios"===s.GlobalVars.hostClientType||"rigel"===s.GlobalVars.hostClientType){var i=document.createElement("a");i.href=a.url;var l=t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.authenticate",[i.href,a.width,a.height]);s.GlobalVars.callbacks[l]=function(e,n){e?a.successCallback(n):a.failureCallback(n)}}else o(a)},e.getAuthToken=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.getAuthToken",[e.resources]);s.GlobalVars.callbacks[n]=function(n,a){n?e.successCallback(a):e.failureCallback(a)}},e.getUser=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.getUser");s.GlobalVars.callbacks[n]=function(n,a){n?e.successCallback(a):e.failureCallback(a)}},e.notifySuccess=function(e,n){c(n,"result",e),t.ensureInitialized(r.frameContexts.authentication),t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.authenticate.success",[e]),t.waitForMessageQueue(s.GlobalVars.parentWindow,(function(){return setTimeout((function(){return s.GlobalVars.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){c(n,"reason",e),t.ensureInitialized(r.frameContexts.authentication),t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.authenticate.failure",[e]),t.waitForMessageQueue(s.GlobalVars.parentWindow,(function(){return setTimeout((function(){return s.GlobalVars.currentWindow.close()}),200)}))}}(n.authentication||(n.authentication={}))},function(e,n,a){"use strict";var t=this&&this.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&(a[t[s]]=e[t[s]])}return a};Object.defineProperty(n,"__esModule",{value:!0});var s=a(1),r=a(0),i=a(2),o=a(7);!function(e){e.startTask=function(e,n){s.ensureInitialized(i.frameContexts.content);var a=s.sendMessageRequest(r.GlobalVars.parentWindow,"tasks.startTask",[e]);return r.GlobalVars.callbacks[a]=n,new o.ChildAppWindow},e.updateTask=function(e){s.ensureInitialized(i.frameContexts.content,i.frameContexts.task),e.width,e.height;var n=t(e,["width","height"]);if(Object.keys(n).length)throw new Error("updateTask requires a taskInfo argument containing only width and height");s.sendMessageRequest(r.GlobalVars.parentWindow,"tasks.updateTask",[e])},e.submitTask=function(e,n){s.ensureInitialized(i.frameContexts.content,i.frameContexts.task),s.sendMessageRequest(r.GlobalVars.parentWindow,"tasks.completeTask",[e,Array.isArray(n)?n:[n]])}}(n.tasks||(n.tasks={}))}])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[23],{1874:function(e,n,a){window,e.exports=function(e){var n={};function a(t){if(n[t])return n[t].exports;var s=n[t]={i:t,l:!1,exports:{}};return e[t].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=n,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,n){if(1&n&&(e=a(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var s in e)a.d(t,s,function(n){return e[n]}.bind(null,s));return t},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="",a(a.s=8)}([function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.initializeCallbacks=[],e.isFramelessWindow=!1,e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.handlers={},e.callbacks={},e.printCapabilityEnabled=!1,e}();n.GlobalVars=t},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(4),s=a(2),r=a(0);function i(e){if("id"in e.data){var n=e.data,a=r.GlobalVars.callbacks[n.id];a&&(a.apply(null,n.args),delete r.GlobalVars.callbacks[n.id])}else if("func"in e.data){n=e.data;var t=r.GlobalVars.handlers[n.func];t&&t.apply(this,n.args)}}function o(e){return e===r.GlobalVars.parentWindow?r.GlobalVars.parentMessageQueue:e===r.GlobalVars.childWindow?r.GlobalVars.childMessageQueue:[]}function l(e){return e===r.GlobalVars.parentWindow?r.GlobalVars.parentOrigin:e===r.GlobalVars.childWindow?r.GlobalVars.childOrigin:null}function u(e){for(var n=l(e),a=o(e);e&&n&&a.length>0;)e.postMessage(a.shift(),n)}function d(e,n,a){var t=function(e,n){return{id:r.GlobalVars.nextMessageId++,func:e,args:n||[]}}(n,a);if(r.GlobalVars.isFramelessWindow)r.GlobalVars.currentWindow&&r.GlobalVars.currentWindow.nativeInterface&&r.GlobalVars.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(t));else{var s=l(e);e&&s?e.postMessage(t,s):o(e).push(t)}return t.id}function c(e,n,a){var t=function(e,n){return{id:e,args:n||[]}}(n,a),s=l(e);e&&s&&e.postMessage(t,s)}r.GlobalVars.handlers.themeChange=function(e){r.GlobalVars.themeChangeHandler&&r.GlobalVars.themeChangeHandler(e),r.GlobalVars.childWindow&&d(r.GlobalVars.childWindow,"themeChange",[e])},r.GlobalVars.handlers.fullScreenChange=function(e){r.GlobalVars.fullScreenChangeHandler&&r.GlobalVars.fullScreenChangeHandler(e)},r.GlobalVars.handlers.backButtonPress=function(){r.GlobalVars.backButtonPressHandler&&r.GlobalVars.backButtonPressHandler()||t.navigateBack()},r.GlobalVars.handlers.load=function(e){r.GlobalVars.loadHandler&&r.GlobalVars.loadHandler(e),r.GlobalVars.childWindow&&d(r.GlobalVars.childWindow,"load",[e])},r.GlobalVars.handlers.beforeUnload=function(){var e=function(){d(r.GlobalVars.parentWindow,"readyToUnload",[])};r.GlobalVars.beforeUnloadHandler&&r.GlobalVars.beforeUnloadHandler(e)||e()},r.GlobalVars.handlers.changeSettings=function(){r.GlobalVars.changeSettingsHandler&&r.GlobalVars.changeSettingsHandler()},r.GlobalVars.handlers.startConversation=function(e,n,a,t){r.GlobalVars.onStartConversationHandler&&r.GlobalVars.onStartConversationHandler({subEntityId:e,conversationId:n,channelId:a,entityId:t})},r.GlobalVars.handlers.closeConversation=function(e,n,a,t){r.GlobalVars.onCloseConversationHandler&&r.GlobalVars.onCloseConversationHandler({subEntityId:e,conversationId:n,channelId:a,entityId:t})},n.ensureInitialized=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!r.GlobalVars.initializeCalled)throw new Error("The library has not yet been initialized");if(r.GlobalVars.frameContext&&e&&e.length>0){for(var a=!1,t=0;t<e.length;t++)if(e[t]===r.GlobalVars.frameContext){a=!0;break}if(!a)throw new Error("This call is not allowed in the '"+r.GlobalVars.frameContext+"' context")}},n.processMessage=function(e){if(e&&e.data&&"object"==typeof e.data){var n=e.source||e.originalEvent.source,a=e.origin||e.originalEvent.origin;n===r.GlobalVars.currentWindow||a!==r.GlobalVars.currentWindow.location.origin&&!s.validOriginRegExp.test(a.toLowerCase())||(function(e,n){r.GlobalVars.parentWindow&&e!==r.GlobalVars.parentWindow?r.GlobalVars.childWindow&&e!==r.GlobalVars.childWindow||(r.GlobalVars.childWindow=e,r.GlobalVars.childOrigin=n):(r.GlobalVars.parentWindow=e,r.GlobalVars.parentOrigin=n),r.GlobalVars.parentWindow&&r.GlobalVars.parentWindow.closed&&(r.GlobalVars.parentWindow=null,r.GlobalVars.parentOrigin=null),r.GlobalVars.childWindow&&r.GlobalVars.childWindow.closed&&(r.GlobalVars.childWindow=null,r.GlobalVars.childOrigin=null),u(r.GlobalVars.parentWindow),u(r.GlobalVars.childWindow)}(n,a),n===r.GlobalVars.parentWindow?i(e):n===r.GlobalVars.childWindow&&function(e){if("id"in e.data&&"func"in e.data){var n=e.data,a=r.GlobalVars.handlers[n.func];if(a){var t=a.apply(this,n.args);t&&c(r.GlobalVars.childWindow,n.id,Array.isArray(t)?t:[t])}else{var s=d(r.GlobalVars.parentWindow,n.func,n.args);r.GlobalVars.callbacks[s]=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];r.GlobalVars.childWindow&&c(r.GlobalVars.childWindow,n.id,e)}}}}(e))}},n.handleParentMessage=i,n.waitForMessageQueue=function(e,n){var a=r.GlobalVars.currentWindow.setInterval((function(){0===o(e).length&&(clearInterval(a),n())}),100)},n.sendMessageRequest=d},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(3);n.version="1.5.2",n.validOrigins=["https://teams.microsoft.com","https://teams.microsoft.us","https://gov.teams.microsoft.us","https://dod.teams.microsoft.us","https://int.teams.microsoft.com","https://devspaces.skype.com","https://ssauth.skype.com","https://local.teams.office.com","https://local.teams.office.com:8080","https://msft.spoppe.com","https://*.sharepoint.com","https://*.sharepoint-df.com","https://*.sharepointonline.com","https://outlook.office.com","https://outlook-sdf.office.com"],n.frameContexts={settings:"settings",content:"content",authentication:"authentication",remove:"remove",task:"task"},n.validOriginRegExp=t.generateRegExpFromUrls(n.validOrigins)},function(e,n,a){"use strict";function t(e){for(var n="^",a=e.split("."),t=0;t<a.length;t++)n+=(t>0?"[.]":"")+a[t].replace("*","[^/^.]+");return n+"$"}Object.defineProperty(n,"__esModule",{value:!0}),n.generateRegExpFromUrls=function(e){for(var n="",a=0;a<e.length;a++)n+=(0===a?"":"|")+t(e[a]);return new RegExp(n)},n.getGenericOnCompleteHandler=function(e){return function(n,a){if(!n)throw new Error(e||a)}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(5),o=a(3),l=a(6);function u(){window.print()}function d(e){t.ensureInitialized(),s.GlobalVars.themeChangeHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["themeChange"])}function c(e){t.ensureInitialized(),s.GlobalVars.fullScreenChangeHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["fullScreen"])}function b(e){t.ensureInitialized(),s.GlobalVars.backButtonPressHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["backButton"])}function f(e){t.ensureInitialized(),s.GlobalVars.loadHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["load"])}function g(e){t.ensureInitialized(),s.GlobalVars.beforeUnloadHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["beforeUnload"])}n.initialize=function(e){if(!s.GlobalVars.initializeCalled){s.GlobalVars.initializeCalled=!0;var n=function(e){return t.processMessage(e)};s.GlobalVars.currentWindow=s.GlobalVars.currentWindow||window,s.GlobalVars.parentWindow=s.GlobalVars.currentWindow.parent!==s.GlobalVars.currentWindow.self?s.GlobalVars.currentWindow.parent:s.GlobalVars.currentWindow.opener,s.GlobalVars.parentWindow?s.GlobalVars.currentWindow.addEventListener("message",n,!1):(s.GlobalVars.isFramelessWindow=!0,window.onNativeMessage=t.handleParentMessage);try{s.GlobalVars.parentOrigin="*";var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"initialize",[r.version]);s.GlobalVars.callbacks[a]=function(e,n){s.GlobalVars.frameContext=e,s.GlobalVars.hostClientType=n,s.GlobalVars.initializeCallbacks.forEach((function(e){return e()})),s.GlobalVars.initializeCallbacks=[],s.GlobalVars.initializeCompleted=!0}}finally{s.GlobalVars.parentOrigin=null}this._uninitialize=function(){s.GlobalVars.frameContext&&(d(null),c(null),b(null),g(null),f(null),l.logs.registerGetLogHandler(null)),s.GlobalVars.frameContext===r.frameContexts.settings&&i.settings.registerOnSaveHandler(null),s.GlobalVars.frameContext===r.frameContexts.remove&&i.settings.registerOnRemoveHandler(null),s.GlobalVars.isFramelessWindow||s.GlobalVars.currentWindow.removeEventListener("message",n,!1),s.GlobalVars.initializeCalled=!1,s.GlobalVars.initializeCompleted=!1,s.GlobalVars.initializeCallbacks=[],s.GlobalVars.parentWindow=null,s.GlobalVars.parentOrigin=null,s.GlobalVars.parentMessageQueue=[],s.GlobalVars.childWindow=null,s.GlobalVars.childOrigin=null,s.GlobalVars.childMessageQueue=[],s.GlobalVars.nextMessageId=0,s.GlobalVars.callbacks={},s.GlobalVars.frameContext=null,s.GlobalVars.hostClientType=null,s.GlobalVars.isFramelessWindow=!1}}e&&(s.GlobalVars.initializeCompleted?e():s.GlobalVars.initializeCallbacks.push(e))},n._initialize=function(e){s.GlobalVars.currentWindow=e},n._uninitialize=function(){},n.enablePrintCapability=function(){s.GlobalVars.printCapabilityEnabled||(s.GlobalVars.printCapabilityEnabled=!0,t.ensureInitialized(),document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(u(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())})))},n.print=u,n.getContext=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"getContext");s.GlobalVars.callbacks[n]=e},n.registerOnThemeChangeHandler=d,n.registerFullScreenHandler=c,n.registerBackButtonHandler=b,n.navigateBack=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"navigateBack",[]);s.GlobalVars.callbacks[n]=e||o.getGenericOnCompleteHandler("Back navigation is not supported in the current client or context.")},n.registerOnLoadHandler=f,n.registerBeforeUnloadHandler=g,n.registerChangeSettingsHandler=function(e){t.ensureInitialized(r.frameContexts.content),s.GlobalVars.changeSettingsHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["changeSettings"])},n.navigateCrossDomain=function(e,n){t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings,r.frameContexts.remove,r.frameContexts.task);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"navigateCrossDomain",[e]);s.GlobalVars.callbacks[a]=n||o.getGenericOnCompleteHandler("Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.")},n.getTabInstances=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getTabInstances",[n]);s.GlobalVars.callbacks[a]=e},n.getMruTabInstances=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getMruTabInstances",[n]);s.GlobalVars.callbacks[a]=e},n.shareDeepLink=function(e){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},n.executeDeepLink=function(e,n){t.ensureInitialized(r.frameContexts.content,r.frameContexts.task);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"executeDeepLink",[e]);s.GlobalVars.callbacks[a]=n||o.getGenericOnCompleteHandler()},n.navigateToTab=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"navigateToTab",[e]);s.GlobalVars.callbacks[a]=n||o.getGenericOnCompleteHandler("Invalid internalTabInstanceId and/or channelId were/was provided")}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(3);!function(e){var n,a;s.GlobalVars.handlers["settings.save"]=function(e){var a=new o(e);n?n(a):a.notifySuccess()},s.GlobalVars.handlers["settings.remove"]=function(){var e=new l;a?a(e):e.notifySuccess()},e.setValidityState=function(e){t.ensureInitialized(r.frameContexts.settings,r.frameContexts.remove),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.setValidityState",[e])},e.getSettings=function(e){t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings,r.frameContexts.remove);var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.getSettings");s.GlobalVars.callbacks[n]=e},e.setSettings=function(e,n){t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.setSettings",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},e.registerOnSaveHandler=function(e){t.ensureInitialized(r.frameContexts.settings),n=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["save"])},e.registerOnRemoveHandler=function(e){t.ensureInitialized(r.frameContexts.remove),a=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["remove"])};var o=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.save.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},e}(),l=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),t.sendMessageRequest(s.GlobalVars.parentWindow,"settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},e}()}(n.settings||(n.settings={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0);!function(e){s.GlobalVars.handlers["log.request"]=function(){if(s.GlobalVars.getLogHandler){var e=s.GlobalVars.getLogHandler();t.sendMessageRequest(s.GlobalVars.parentWindow,"log.receive",[e])}},e.registerGetLogHandler=function(e){t.ensureInitialized(),s.GlobalVars.getLogHandler=e,e&&t.sendMessageRequest(s.GlobalVars.parentWindow,"registerHandler",["log.request"])}}(n.logs||(n.logs={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(3),o=function(){function e(){}return e.prototype.postMessage=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"messageForChild",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},e.prototype.addEventListener=function(e,n){"message"===e&&(s.GlobalVars.handlers.messageForParent=n)},e}();n.ChildAppWindow=o;var l=function(){function e(){}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!0,configurable:!0}),e.prototype.postMessage=function(e,n){t.ensureInitialized(r.frameContexts.task);var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"messageForParent",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},e.prototype.addEventListener=function(e,n){"message"===e&&(s.GlobalVars.handlers.messageForChild=n)},e}();n.ParentAppWindow=l},function(e,n,a){"use strict";function t(e){for(var a in e)n.hasOwnProperty(a)||(n[a]=e[a])}Object.defineProperty(n,"__esModule",{value:!0}),t(a(9)),t(a(14))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(10);n.bot=t.bot;var s=a(11);n.menus=s.menus;var r=a(6);n.logs=r.logs;var i=a(12);n.enterFullscreen=i.enterFullscreen,n.exitFullscreen=i.exitFullscreen,n.getChatMembers=i.getChatMembers,n.getConfigSetting=i.getConfigSetting,n.getUserJoinedTeams=i.getUserJoinedTeams,n.openFilePreview=i.openFilePreview,n.sendCustomMessage=i.sendCustomMessage,n.showNotification=i.showNotification,n.uploadCustomApp=i.uploadCustomApp;var o=a(13);n.conversations=o.conversations},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(0),s=a(1);!function(e){e.sendQuery=function(e,n,a){s.ensureInitialized();var r=s.sendMessageRequest(t.GlobalVars.parentWindow,"bot.executeQuery",[e]);t.GlobalVars.callbacks[r]=function(e,t){e?n(t):a(t)}},e.getSupportedCommands=function(e,n){s.ensureInitialized();var a=s.sendMessageRequest(t.GlobalVars.parentWindow,"bot.getSupportedCommands");t.GlobalVars.callbacks[a]=function(a,t){a?e(t):n(t)}},e.authenticate=function(e,n,a){s.ensureInitialized();var r=s.sendMessageRequest(t.GlobalVars.parentWindow,"bot.authenticate",[e]);t.GlobalVars.callbacks[r]=function(e,t){e?n(t):a(t)}},function(e){e.Results="Results",e.Auth="Auth"}(e.ResponseType||(e.ResponseType={}))}(n.bot||(n.bot={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0);!function(e){var n,a,r,i=function(){this.enabled=!0};e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),s.GlobalVars.handlers.navBarMenuItemPress=function(e){n&&n(e)||(t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"handleNavBarMenuItemPress",[e]))},s.GlobalVars.handlers.actionMenuItemPress=function(e){a&&a(e)||(t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"handleActionMenuItemPress",[e]))},s.GlobalVars.handlers.setModuleView=function(e){r&&r(e)||(t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"viewConfigItemPress",[e]))},e.setUpViews=function(e,n){t.ensureInitialized(),r=n,t.sendMessageRequest(s.GlobalVars.parentWindow,"setUpViews",[e])},e.setNavBarMenu=function(e,a){t.ensureInitialized(),n=a,t.sendMessageRequest(s.GlobalVars.parentWindow,"setNavBarMenu",[e])},e.showActionMenu=function(e,n){t.ensureInitialized(),a=n,t.sendMessageRequest(s.GlobalVars.parentWindow,"showActionMenu",[e])}}(n.menus||(n.menus={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2),i=a(3);n.getUserJoinedTeams=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getUserJoinedTeams",[n]);s.GlobalVars.callbacks[a]=e},n.enterFullscreen=function(){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"enterFullscreen",[])},n.exitFullscreen=function(){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"exitFullscreen",[])},n.openFilePreview=function(e){t.ensureInitialized(r.frameContexts.content);var n=[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId];t.sendMessageRequest(s.GlobalVars.parentWindow,"openFilePreview",n)},n.showNotification=function(e){t.ensureInitialized(r.frameContexts.content);var n=[e.message,e.notificationType];t.sendMessageRequest(s.GlobalVars.parentWindow,"showNotification",n)},n.uploadCustomApp=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"uploadCustomApp",[e]);s.GlobalVars.callbacks[a]=n||i.getGenericOnCompleteHandler()},n.sendCustomMessage=function(e,n){return t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,e,n)},n.getChatMembers=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"getChatMembers");s.GlobalVars.callbacks[n]=e},n.getConfigSetting=function(e,n){t.ensureInitialized();var a=t.sendMessageRequest(s.GlobalVars.parentWindow,"getConfigSetting",[n]);s.GlobalVars.callbacks[a]=e}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2);!function(e){e.openConversation=function(e){t.ensureInitialized(r.frameContexts.content);var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"conversations.openConversation",[{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId}]);s.GlobalVars.onCloseConversationHandler=e.onCloseConversation,s.GlobalVars.onStartConversationHandler=e.onStartConversation,s.GlobalVars.callbacks[n]=function(e,n){if(!e)throw new Error(n)}},e.closeConversation=function(){t.ensureInitialized(r.frameContexts.content),t.sendMessageRequest(s.GlobalVars.parentWindow,"conversations.closeConversation"),s.GlobalVars.onCloseConversationHandler=null,s.GlobalVars.onStartConversationHandler=null}}(n.conversations||(n.conversations={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(15);n.appInitialization=t.appInitialization;var s=a(16);n.authentication=s.authentication;var r=a(4);n.enablePrintCapability=r.enablePrintCapability,n.executeDeepLink=r.executeDeepLink,n.getContext=r.getContext,n.getMruTabInstances=r.getMruTabInstances,n.getTabInstances=r.getTabInstances,n.initialize=r.initialize,n.navigateBack=r.navigateBack,n.navigateCrossDomain=r.navigateCrossDomain,n.navigateToTab=r.navigateToTab,n.print=r.print,n.registerBackButtonHandler=r.registerBackButtonHandler,n.registerBeforeUnloadHandler=r.registerBeforeUnloadHandler,n.registerChangeSettingsHandler=r.registerChangeSettingsHandler,n.registerFullScreenHandler=r.registerFullScreenHandler,n.registerOnLoadHandler=r.registerOnLoadHandler,n.registerOnThemeChangeHandler=r.registerOnThemeChangeHandler,n.shareDeepLink=r.shareDeepLink;var i=a(5);n.settings=i.settings;var o=a(17);n.tasks=o.tasks;var l=a(7);n.ChildAppWindow=l.ChildAppWindow,n.ParentAppWindow=l.ParentAppWindow},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2);!function(e){e.notifyAppLoaded=function(){t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"appInitialization.appLoaded",[r.version])},e.notifySuccess=function(){t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"appInitialization.success",[r.version])},e.notifyFailure=function(e){t.ensureInitialized(),t.sendMessageRequest(s.GlobalVars.parentWindow,"appInitialization.failure",[e.reason,e.message])}}(n.appInitialization||(n.appInitialization={}))},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a(1),s=a(0),r=a(2);!function(e){var n,a;function i(){l();try{s.GlobalVars.childWindow&&s.GlobalVars.childWindow.close()}finally{s.GlobalVars.childWindow=null,s.GlobalVars.childOrigin=null}}function o(e){n=e,i();var a=n.width||600,t=n.height||400;a=Math.min(a,s.GlobalVars.currentWindow.outerWidth-400),t=Math.min(t,s.GlobalVars.currentWindow.outerHeight-200);var r=document.createElement("a");r.href=n.url;var o=void 0!==s.GlobalVars.currentWindow.screenLeft?s.GlobalVars.currentWindow.screenLeft:s.GlobalVars.currentWindow.screenX,l=void 0!==s.GlobalVars.currentWindow.screenTop?s.GlobalVars.currentWindow.screenTop:s.GlobalVars.currentWindow.screenY;o+=s.GlobalVars.currentWindow.outerWidth/2-a/2,l+=s.GlobalVars.currentWindow.outerHeight/2-t/2,s.GlobalVars.childWindow=s.GlobalVars.currentWindow.open(r.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+l+", left="+o+", width="+a+", height="+t),s.GlobalVars.childWindow?u():d("FailedToOpenWindow")}function l(){a&&(clearInterval(a),a=0),delete s.GlobalVars.handlers.initialize,delete s.GlobalVars.handlers.navigateCrossDomain}function u(){l(),a=s.GlobalVars.currentWindow.setInterval((function(){if(!s.GlobalVars.childWindow||s.GlobalVars.childWindow.closed)d("CancelledByUser");else{var e=s.GlobalVars.childOrigin;try{s.GlobalVars.childOrigin="*",t.sendMessageRequest(s.GlobalVars.childWindow,"ping")}finally{s.GlobalVars.childOrigin=e}}}),100),s.GlobalVars.handlers.initialize=function(){return[r.frameContexts.authentication,s.GlobalVars.hostClientType]},s.GlobalVars.handlers.navigateCrossDomain=function(){return!1}}function d(e){try{n&&n.failureCallback&&n.failureCallback(e)}finally{n=null,i()}}function c(e,n,a){if(e){var t=document.createElement("a");t.href=decodeURIComponent(e),t.host&&t.host!==window.location.host&&"outlook.office.com"===t.host&&t.search.indexOf("client_type=Win32_Outlook")>-1&&(n&&"result"===n&&(a&&(t.href=b(t.href,"result",a)),s.GlobalVars.currentWindow.location.assign(b(t.href,"authSuccess",""))),n&&"reason"===n&&(a&&(t.href=b(t.href,"reason",a)),s.GlobalVars.currentWindow.location.assign(b(t.href,"authFailure",""))))}}function b(e,n,a){var t=e.indexOf("#"),s=-1===t?"#":e.substr(t);return s=s+"&"+n+(""!==a?"="+a:""),(e=-1===t?e:e.substr(0,t))+s}s.GlobalVars.handlers["authentication.authenticate.success"]=function(e){try{n&&n.successCallback&&n.successCallback(e)}finally{n=null,i()}},s.GlobalVars.handlers["authentication.authenticate.failure"]=d,e.registerAuthenticationHandlers=function(e){n=e},e.authenticate=function(e){var a=void 0!==e?e:n;if(t.ensureInitialized(r.frameContexts.content,r.frameContexts.settings,r.frameContexts.remove,r.frameContexts.task),"desktop"===s.GlobalVars.hostClientType||"android"===s.GlobalVars.hostClientType||"ios"===s.GlobalVars.hostClientType||"rigel"===s.GlobalVars.hostClientType){var i=document.createElement("a");i.href=a.url;var l=t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.authenticate",[i.href,a.width,a.height]);s.GlobalVars.callbacks[l]=function(e,n){e?a.successCallback(n):a.failureCallback(n)}}else o(a)},e.getAuthToken=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.getAuthToken",[e.resources]);s.GlobalVars.callbacks[n]=function(n,a){n?e.successCallback(a):e.failureCallback(a)}},e.getUser=function(e){t.ensureInitialized();var n=t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.getUser");s.GlobalVars.callbacks[n]=function(n,a){n?e.successCallback(a):e.failureCallback(a)}},e.notifySuccess=function(e,n){c(n,"result",e),t.ensureInitialized(r.frameContexts.authentication),t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.authenticate.success",[e]),t.waitForMessageQueue(s.GlobalVars.parentWindow,(function(){return setTimeout((function(){return s.GlobalVars.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){c(n,"reason",e),t.ensureInitialized(r.frameContexts.authentication),t.sendMessageRequest(s.GlobalVars.parentWindow,"authentication.authenticate.failure",[e]),t.waitForMessageQueue(s.GlobalVars.parentWindow,(function(){return setTimeout((function(){return s.GlobalVars.currentWindow.close()}),200)}))}}(n.authentication||(n.authentication={}))},function(e,n,a){"use strict";var t=this&&this.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&(a[t[s]]=e[t[s]])}return a};Object.defineProperty(n,"__esModule",{value:!0});var s=a(1),r=a(0),i=a(2),o=a(7);!function(e){e.startTask=function(e,n){s.ensureInitialized(i.frameContexts.content);var a=s.sendMessageRequest(r.GlobalVars.parentWindow,"tasks.startTask",[e]);return r.GlobalVars.callbacks[a]=n,new o.ChildAppWindow},e.updateTask=function(e){s.ensureInitialized(i.frameContexts.content,i.frameContexts.task),e.width,e.height;var n=t(e,["width","height"]);if(Object.keys(n).length)throw new Error("updateTask requires a taskInfo argument containing only width and height");s.sendMessageRequest(r.GlobalVars.parentWindow,"tasks.updateTask",[e])},e.submitTask=function(e,n){s.ensureInitialized(i.frameContexts.content,i.frameContexts.task),s.sendMessageRequest(r.GlobalVars.parentWindow,"tasks.completeTask",[e,Array.isArray(n)?n:[n]])}}(n.tasks||(n.tasks={}))}])}}]);
|
|
@@ -136,7 +136,7 @@ eval("// extracted by mini-css-extract-plugin\nmodule.exports = {\"tagList\":\"c
|
|
|
136
136
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
137
137
|
|
|
138
138
|
"use strict";
|
|
139
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TagWidgetItem\", function() { return TagWidgetItem; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var libs_shared_components_tags_TagItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"../../libs/shared/src/components/tags/TagItem.tsx\");\n/* harmony import */ var _tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"../../libs/shared/src/components/widgets/items/tag-widget-item/tag-widget-item.scss\");\n/* harmony import */ var _tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\nfunction TagWidgetItem(props) {\n var isSelected = props.selectedItems.find(function (selection) {\n return selection.id === props.data.id;\n });\n var colorClass = isSelected ? \"\".concat(_tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2___default.a.selected, \" text-info\") : 'bg-light';\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(libs_shared_components_tags_TagItem__WEBPACK_IMPORTED_MODULE_1__[\"TagItem\"], {\n tag: props.data,\n appLink: props.appLink,\n tagClass: \"no-decoration \".concat(colorClass, \" \").concat(_tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2___default.a.tagItem),\n onClick: function onClick() {\n return props.onClick(props.data);\n }\n });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
139
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TagWidgetItem\", function() { return TagWidgetItem; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var libs_shared_components_tags_TagItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"../../libs/shared/src/components/tags/TagItem.tsx\");\n/* harmony import */ var _tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"../../libs/shared/src/components/widgets/items/tag-widget-item/tag-widget-item.scss\");\n/* harmony import */ var _tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\nfunction TagWidgetItem(props) {\n var isSelected = props.selectedItems.find(function (selection) {\n return selection.id === props.data.id;\n });\n var colorClass = isSelected ? \"\".concat(_tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2___default.a.selected, \" text-info\") : 'bg-light';\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(libs_shared_components_tags_TagItem__WEBPACK_IMPORTED_MODULE_1__[\"TagItem\"], {\n tag: props.data,\n appLink: props.appLink,\n tagClass: \"no-decoration \".concat(colorClass, \" \").concat(_tag_widget_item_scss__WEBPACK_IMPORTED_MODULE_2___default.a.tagItem),\n onClick: function onClick() {\n return props.onClick(props.data);\n }\n });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9zaGFyZWQvc3JjL2NvbXBvbmVudHMvd2lkZ2V0cy9pdGVtcy90YWctd2lkZ2V0LWl0ZW0vVGFnV2lkZ2V0SXRlbS50c3guanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9saWJzL3NoYXJlZC9zcmMvY29tcG9uZW50cy93aWRnZXRzL2l0ZW1zL3RhZy13aWRnZXQtaXRlbS9UYWdXaWRnZXRJdGVtLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xyXG5cclxuaW1wb3J0IHsgQ29yZSB9IGZyb20gJ2xpYnMvY29tbW9uL2NvcmUnO1xyXG5pbXBvcnQgeyBUYWdJdGVtIH0gZnJvbSAnbGlicy9zaGFyZWQvY29tcG9uZW50cy90YWdzL1RhZ0l0ZW0nO1xyXG5pbXBvcnQgeyBUYWcsIEJhc2VPYmplY3QgfSBmcm9tICdsaWJzL3NoYXJlZC9pbnRlcmZhY2VzJztcclxuXHJcbmltcG9ydCBzdHlsZXMgZnJvbSAnLi90YWctd2lkZ2V0LWl0ZW0uc2Nzcyc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFRhZ1dpZGdldEl0ZW1Qcm9wcyB7XHJcbiAgYXBwTGluazogQ29yZS5BcHBMaW5rO1xyXG4gIHNlbGVjdGVkSXRlbXM/OiBCYXNlT2JqZWN0W107XHJcbiAgb25DbGljaz86IChkYXRhOiBUYWcpID0+IHZvaWQ7XHJcbiAgZGF0YTogVGFnO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gVGFnV2lkZ2V0SXRlbShwcm9wczogVGFnV2lkZ2V0SXRlbVByb3BzKTogSlNYLkVsZW1lbnQge1xyXG4gIGNvbnN0IGlzU2VsZWN0ZWQgPSBwcm9wcy5zZWxlY3RlZEl0ZW1zLmZpbmQoc2VsZWN0aW9uID0+IHNlbGVjdGlvbi5pZCA9PT0gcHJvcHMuZGF0YS5pZCk7XHJcblxyXG4gIGNvbnN0IGNvbG9yQ2xhc3MgPSBpc1NlbGVjdGVkID8gYCR7c3R5bGVzLnNlbGVjdGVkfSB0ZXh0LWluZm9gIDogJ2JnLWxpZ2h0JztcclxuXHJcbiAgcmV0dXJuIChcclxuICAgIDxUYWdJdGVtXHJcbiAgICAgIHRhZz17cHJvcHMuZGF0YX1cclxuICAgICAgYXBwTGluaz17cHJvcHMuYXBwTGlua31cclxuICAgICAgdGFnQ2xhc3M9e2Buby1kZWNvcmF0aW9uICR7Y29sb3JDbGFzc30gJHtzdHlsZXMudGFnSXRlbX1gfVxyXG4gICAgICBvbkNsaWNrPXsoKSA9PiBwcm9wcy5vbkNsaWNrKHByb3BzLmRhdGEpfVxyXG4gICAgLz5cclxuICApO1xyXG59Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBR0E7QUFHQTtBQVNBO0FBQ0E7QUFBQTtBQUFBO0FBRUE7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUpBO0FBT0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/shared/src/components/widgets/items/tag-widget-item/TagWidgetItem.tsx\n");
|
|
140
140
|
|
|
141
141
|
/***/ }),
|
|
142
142
|
|