@clickview/library-editor 1.1.23-rc.1 → 1.1.23-rc.2
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/css/1.chunk.css.map +1 -1
- package/dist/css/10.chunk.css.map +1 -1
- package/dist/css/11.chunk.css.map +1 -1
- package/dist/css/12.chunk.css.map +1 -1
- package/dist/css/13.chunk.css.map +1 -1
- package/dist/css/14.chunk.css.map +1 -1
- package/dist/css/16.chunk.css.map +1 -1
- package/dist/css/17.chunk.css.map +1 -1
- package/dist/css/18.chunk.css.map +1 -1
- package/dist/css/2.chunk.css.map +1 -1
- package/dist/css/21.chunk.css.map +1 -1
- package/dist/css/22.chunk.css.map +1 -1
- package/dist/css/23.chunk.css.map +1 -1
- package/dist/css/25.chunk.css.map +1 -1
- package/dist/css/26.chunk.css.map +1 -1
- package/dist/css/28.chunk.css.map +1 -1
- package/dist/css/29.chunk.css.map +1 -1
- package/dist/css/3.chunk.css.map +1 -1
- package/dist/css/30.chunk.css.map +1 -1
- package/dist/css/31.chunk.css.map +1 -1
- package/dist/css/32.chunk.css.map +1 -1
- package/dist/css/33.chunk.css.map +1 -1
- package/dist/css/34.chunk.css.map +1 -1
- package/dist/css/35.chunk.css.map +1 -1
- package/dist/css/36.chunk.css.map +1 -1
- package/dist/css/37.chunk.css.map +1 -1
- package/dist/css/38.chunk.css.map +1 -1
- package/dist/css/40.chunk.css.map +1 -1
- package/dist/css/41.chunk.css.map +1 -1
- package/dist/css/42.chunk.css.map +1 -1
- package/dist/css/43.chunk.css.map +1 -1
- package/dist/css/44.chunk.css.map +1 -1
- package/dist/css/45.chunk.css.map +1 -1
- package/dist/css/46.chunk.css.map +1 -1
- package/dist/css/47.chunk.css.map +1 -1
- package/dist/css/48.chunk.css.map +1 -1
- package/dist/css/49.chunk.css.map +1 -1
- package/dist/css/50.chunk.css.map +1 -1
- package/dist/css/51.chunk.css.map +1 -1
- package/dist/css/52.chunk.css.map +1 -1
- package/dist/css/55.chunk.css.map +1 -1
- package/dist/css/56.chunk.css.map +1 -1
- package/dist/css/58.chunk.css.map +1 -1
- package/dist/css/59.chunk.css.map +1 -1
- package/dist/css/6.chunk.css.map +1 -1
- package/dist/css/60.chunk.css.map +1 -1
- package/dist/css/62.chunk.css.map +1 -1
- package/dist/css/63.chunk.css.map +1 -1
- package/dist/css/67.chunk.css.map +1 -1
- package/dist/css/68.chunk.css.map +1 -1
- package/dist/css/69.chunk.css.map +1 -1
- package/dist/css/7.chunk.css.map +1 -1
- package/dist/css/70.chunk.css.map +1 -1
- package/dist/css/71.chunk.css.map +1 -1
- package/dist/css/72.chunk.css.map +1 -1
- package/dist/css/73.chunk.css.map +1 -1
- package/dist/css/74.chunk.css.map +1 -1
- package/dist/css/75.chunk.css.map +1 -1
- package/dist/css/76.chunk.css.map +1 -1
- package/dist/css/8.chunk.css.map +1 -1
- package/dist/css/library-editor-app.css.map +1 -1
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +3 -3
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +0 -1
- package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +1 -1
- package/dist/projects/library-editor/src/apps/notifications/utils/NotificationsHelper.d.ts +1 -1
- package/dist/scripts/{0-2765595d0a.chunk.js → 0-09e1e33a5c.chunk.js} +1 -1
- package/dist/scripts/0-f604eee110.chunk.js +1 -0
- package/dist/scripts/0.chunk.js +1 -1
- package/dist/scripts/0.chunk.js.map +1 -1
- package/dist/scripts/{1-b6dedae131.chunk.js → 1-056bd8c79b.chunk.js} +1 -1
- package/dist/scripts/{1-35f87e4cdc.chunk.js → 1-a66bb44471.chunk.js} +1 -1
- package/dist/scripts/1.chunk.js.map +1 -1
- package/dist/scripts/10-028c6001e1.chunk.js +1 -0
- package/dist/scripts/{10-227e797872.chunk.js → 10-6c79d8c6f9.chunk.js} +1 -1
- package/dist/scripts/10.chunk.js.map +1 -1
- package/dist/scripts/{11-9dbae07504.chunk.js → 11-6eef9e160e.chunk.js} +1 -1
- package/dist/scripts/11-cecf8d22f0.chunk.js +11 -0
- package/dist/scripts/11.chunk.js.map +1 -1
- package/dist/scripts/12-d3f51f4e06.chunk.js +1 -0
- package/dist/scripts/{12-06cf65b136.chunk.js → 12-dbffa50a92.chunk.js} +1 -1
- package/dist/scripts/12.chunk.js.map +1 -1
- package/dist/scripts/{13-01ee41eb1e.chunk.js → 13-37e5cfab3e.chunk.js} +1 -1
- package/dist/scripts/13-4029d31569.chunk.js +1 -0
- package/dist/scripts/13.chunk.js.map +1 -1
- package/dist/scripts/14-4c94f97e4e.chunk.js +1 -0
- package/dist/scripts/{14-cf307e51d9.chunk.js → 14-b524fbd295.chunk.js} +1 -1
- package/dist/scripts/14.chunk.js.map +1 -1
- package/dist/scripts/{15-bedb9ff6d0.chunk.js → 15-1ff1252d1a.chunk.js} +1 -1
- package/dist/scripts/{15-eed00bc875.chunk.js → 15-ec9aa4878b.chunk.js} +1 -1
- package/dist/scripts/15.chunk.js.map +1 -1
- package/dist/scripts/16-5bc8299e14.chunk.js +1 -0
- package/dist/scripts/{16-339a29fa2f.chunk.js → 16-b27142fe98.chunk.js} +1 -1
- package/dist/scripts/16.chunk.js.map +1 -1
- package/dist/scripts/17-9fe035f9e2.chunk.js +1 -0
- package/dist/scripts/{17-66da06be62.chunk.js → 17-c3bbe50816.chunk.js} +1 -1
- package/dist/scripts/17.chunk.js +1 -1
- package/dist/scripts/17.chunk.js.map +1 -1
- package/dist/scripts/18.chunk.js.map +1 -1
- package/dist/scripts/19.chunk.js +1 -1
- package/dist/scripts/19.chunk.js.map +1 -1
- package/dist/scripts/{2-5079f4b088.chunk.js → 2-2cc3988222.chunk.js} +1 -1
- package/dist/scripts/2-e6d104415e.chunk.js +1 -0
- package/dist/scripts/2.chunk.js.map +1 -1
- package/dist/scripts/20-60e4eee833.chunk.js +1 -0
- package/dist/scripts/{20-6019ccb462.chunk.js → 20-6d9086f5db.chunk.js} +1 -1
- package/dist/scripts/20.chunk.js.map +1 -1
- package/dist/scripts/{21-77f6ddec3d.chunk.js → 21-2f10553302.chunk.js} +1 -1
- package/dist/scripts/21-a7fffe8852.chunk.js +1 -0
- package/dist/scripts/21.chunk.js.map +1 -1
- package/dist/scripts/{22-9ef39722d1.chunk.js → 22-59ae44b448.chunk.js} +1 -1
- package/dist/scripts/22-f670791432.chunk.js +1 -0
- package/dist/scripts/22.chunk.js.map +1 -1
- package/dist/scripts/{23-c8071cb869.chunk.js → 23-11e008ee63.chunk.js} +1 -1
- package/dist/scripts/23-4d26d6300a.chunk.js +1 -0
- package/dist/scripts/23.chunk.js +3 -3
- package/dist/scripts/23.chunk.js.map +1 -1
- package/dist/scripts/{24-b655377e1f.chunk.js → 24-7f21e384d2.chunk.js} +1 -1
- package/dist/scripts/24-813ef82099.chunk.js +1 -0
- package/dist/scripts/24.chunk.js.map +1 -1
- package/dist/scripts/25-023d08a591.chunk.js +1 -0
- package/dist/scripts/{25-acda0ed17e.chunk.js → 25-f0f7fa16a4.chunk.js} +1 -1
- package/dist/scripts/25.chunk.js.map +1 -1
- package/dist/scripts/26-a9fcf0d596.chunk.js +1 -0
- package/dist/scripts/{26-39f6c3ca17.chunk.js → 26-e65533bd94.chunk.js} +1 -1
- package/dist/scripts/26.chunk.js.map +1 -1
- package/dist/scripts/27-84f7bbade6.chunk.js +1 -0
- package/dist/scripts/{27-1313c7d392.chunk.js → 27-9dc0f5a4df.chunk.js} +1 -1
- package/dist/scripts/27.chunk.js +3 -3
- package/dist/scripts/27.chunk.js.map +1 -1
- package/dist/scripts/{28-b583483a6e.chunk.js → 28-26e5c371c7.chunk.js} +1 -1
- package/dist/scripts/28-cdf603f4cf.chunk.js +1 -0
- package/dist/scripts/28.chunk.js +6 -6
- package/dist/scripts/28.chunk.js.map +1 -1
- package/dist/scripts/{29-44119e600a.chunk.js → 29-61415c2af0.chunk.js} +1 -1
- package/dist/scripts/29-8278d23f9b.chunk.js +1 -0
- package/dist/scripts/29.chunk.js.map +1 -1
- package/dist/scripts/{3-bea2c1c371.chunk.js → 3-1fa81c9d9b.chunk.js} +1 -1
- package/dist/scripts/{3-079c0b4d3b.chunk.js → 3-5eff8c9df5.chunk.js} +1 -1
- package/dist/scripts/3.chunk.js +13 -25
- package/dist/scripts/3.chunk.js.map +1 -1
- package/dist/scripts/{30-a6a7291b5e.chunk.js → 30-6075c28972.chunk.js} +1 -1
- package/dist/scripts/30-7ab880728c.chunk.js +1 -0
- package/dist/scripts/30.chunk.js +6 -6
- package/dist/scripts/30.chunk.js.map +1 -1
- package/dist/scripts/31-aa4cd0f45e.chunk.js +1 -0
- package/dist/scripts/31-e35ae4e153.chunk.js +1 -0
- package/dist/scripts/31.chunk.js.map +1 -1
- package/dist/scripts/32-7717941f1d.chunk.js +1 -0
- package/dist/scripts/{32-0b05da2f4c.chunk.js → 32-d5a50a7592.chunk.js} +1 -1
- package/dist/scripts/32.chunk.js.map +1 -1
- package/dist/scripts/{33-04b1fbcdeb.chunk.js → 33-5ae90ed7d7.chunk.js} +1 -1
- package/dist/scripts/33-6da33143ea.chunk.js +1 -0
- package/dist/scripts/33.chunk.js.map +1 -1
- package/dist/scripts/{34-56f92b9a87.chunk.js → 34-27e40f4d4b.chunk.js} +1 -1
- package/dist/scripts/{34-4f2c861480.chunk.js → 34-50402c1835.chunk.js} +1 -1
- package/dist/scripts/34.chunk.js.map +1 -1
- package/dist/scripts/{35-cdd788a4b5.chunk.js → 35-3260300446.chunk.js} +1 -1
- package/dist/scripts/{35-08ead0d078.chunk.js → 35-ec8c190357.chunk.js} +1 -1
- package/dist/scripts/35.chunk.js.map +1 -1
- package/dist/scripts/{36-4db22bf8bb.chunk.js → 36-4d467bc42e.chunk.js} +1 -1
- package/dist/scripts/{36-7d33d11b58.chunk.js → 36-bec0c74d05.chunk.js} +1 -1
- package/dist/scripts/36.chunk.js.map +1 -1
- package/dist/scripts/{37-4de2537ff4.chunk.js → 37-37e8965783.chunk.js} +1 -1
- package/dist/scripts/37-3916177181.chunk.js +1 -0
- package/dist/scripts/37.chunk.js.map +1 -1
- package/dist/scripts/{38-57af633fa1.chunk.js → 38-3dc24b8867.chunk.js} +1 -1
- package/dist/scripts/38-89f7c22ea8.chunk.js +1 -0
- package/dist/scripts/38.chunk.js.map +1 -1
- package/dist/scripts/{39-5451786b7d.chunk.js → 39-350ff66a2b.chunk.js} +1 -1
- package/dist/scripts/39-9456631219.chunk.js +1 -0
- package/dist/scripts/39.chunk.js.map +1 -1
- package/dist/scripts/4-a7f6d378e0.chunk.js +1 -0
- package/dist/scripts/{4-0a8a5ac2f0.chunk.js → 4-b3f3c7c71c.chunk.js} +1 -1
- package/dist/scripts/4.chunk.js.map +1 -1
- package/dist/scripts/{40-31940ddf04.chunk.js → 40-3443f99cb2.chunk.js} +1 -1
- package/dist/scripts/40-f65196723f.chunk.js +1 -0
- package/dist/scripts/40.chunk.js.map +1 -1
- package/dist/scripts/{41-2c6722e410.chunk.js → 41-70b16d99d0.chunk.js} +1 -1
- package/dist/scripts/{41-0366a0332e.chunk.js → 41-b5dfd35e9e.chunk.js} +1 -1
- package/dist/scripts/41.chunk.js.map +1 -1
- package/dist/scripts/{42-9b7795d20a.chunk.js → 42-103fecb7b6.chunk.js} +1 -1
- package/dist/scripts/42-e17f214d6c.chunk.js +1 -0
- package/dist/scripts/42.chunk.js.map +1 -1
- package/dist/scripts/{43-006ce08a8f.chunk.js → 43-57b07579f7.chunk.js} +1 -1
- package/dist/scripts/{43-591954817b.chunk.js → 43-6826fbc7d4.chunk.js} +1 -1
- package/dist/scripts/43.chunk.js.map +1 -1
- package/dist/scripts/{44-b4c134efe8.chunk.js → 44-210d64dffe.chunk.js} +1 -1
- package/dist/scripts/{44-fc3a1d45c5.chunk.js → 44-593e820fa2.chunk.js} +1 -1
- package/dist/scripts/44.chunk.js.map +1 -1
- package/dist/scripts/{45-32ce8dd910.chunk.js → 45-632b07e926.chunk.js} +1 -1
- package/dist/scripts/{45-3e85e78a77.chunk.js → 45-8231a03833.chunk.js} +1 -1
- package/dist/scripts/45.chunk.js.map +1 -1
- package/dist/scripts/46-682ca88fd9.chunk.js +1 -0
- package/dist/scripts/{46-1256828b60.chunk.js → 46-82cce63cbf.chunk.js} +1 -1
- package/dist/scripts/46.chunk.js +6 -6
- package/dist/scripts/46.chunk.js.map +1 -1
- package/dist/scripts/{47-61b53964c2.chunk.js → 47-595b4aae87.chunk.js} +1 -1
- package/dist/scripts/47-aec7cf95e8.chunk.js +1 -0
- package/dist/scripts/47.chunk.js +1 -2
- package/dist/scripts/47.chunk.js.map +1 -1
- package/dist/scripts/48-7b09165697.chunk.js +1 -0
- package/dist/scripts/{48-3f804b22a4.chunk.js → 48-fcf6378889.chunk.js} +1 -1
- package/dist/scripts/48.chunk.js.map +1 -1
- package/dist/scripts/49-0e6ceb191f.chunk.js +1 -0
- package/dist/scripts/{49-79b28e90c9.chunk.js → 49-d8a4899eb1.chunk.js} +1 -1
- package/dist/scripts/49.chunk.js.map +1 -1
- package/dist/scripts/{5-093c9ee130.chunk.js → 5-06bc197b1e.chunk.js} +1 -1
- package/dist/scripts/{5-f5ad097d2b.chunk.js → 5-e2e64bc05f.chunk.js} +1 -1
- package/dist/scripts/5.chunk.js +3 -3
- package/dist/scripts/5.chunk.js.map +1 -1
- package/dist/scripts/{50-198f89794c.chunk.js → 50-11b1a49916.chunk.js} +1 -1
- package/dist/scripts/50-fa6f6fd1dc.chunk.js +1 -0
- package/dist/scripts/50.chunk.js.map +1 -1
- package/dist/scripts/51-1c9fca4604.chunk.js +1 -0
- package/dist/scripts/{51-177fe97a9b.chunk.js → 51-72a75e0265.chunk.js} +1 -1
- package/dist/scripts/51.chunk.js.map +1 -1
- package/dist/scripts/{52-d8cf26c75f.chunk.js → 52-195f73bcd6.chunk.js} +1 -1
- package/dist/scripts/52-ebce0c9f12.chunk.js +1 -0
- package/dist/scripts/52.chunk.js.map +1 -1
- package/dist/scripts/{53-595b1efa1a.chunk.js → 53-bb4f37ee25.chunk.js} +1 -1
- package/dist/scripts/53-c6807d4e0b.chunk.js +1 -0
- package/dist/scripts/53.chunk.js.map +1 -1
- package/dist/scripts/{54-646c8458e0.chunk.js → 54-7a201d8285.chunk.js} +1 -1
- package/dist/scripts/54-e6195aa62a.chunk.js +1 -0
- package/dist/scripts/54.chunk.js.map +1 -1
- package/dist/scripts/{55-5e3b70736e.chunk.js → 55-be3d7b8805.chunk.js} +1 -1
- package/dist/scripts/55-f9f9a251af.chunk.js +1 -0
- package/dist/scripts/55.chunk.js.map +1 -1
- package/dist/scripts/56-20f27f96db.chunk.js +1 -0
- package/dist/scripts/{56-3c520aec72.chunk.js → 56-6aeece1bf1.chunk.js} +1 -1
- package/dist/scripts/56.chunk.js.map +1 -1
- package/dist/scripts/{57-6f84e1bb9d.chunk.js → 57-59ee15161b.chunk.js} +1 -1
- package/dist/scripts/57-b25862dbf0.chunk.js +1 -0
- package/dist/scripts/57.chunk.js.map +1 -1
- package/dist/scripts/{58-1c37240b43.chunk.js → 58-8ff58b194a.chunk.js} +1 -1
- package/dist/scripts/58-edf06f18f9.chunk.js +1 -0
- package/dist/scripts/58.chunk.js.map +1 -1
- package/dist/scripts/59-241a666e49.chunk.js +1 -0
- package/dist/scripts/{59-05cbb57b32.chunk.js → 59-3d33954fcb.chunk.js} +1 -1
- package/dist/scripts/59.chunk.js.map +1 -1
- package/dist/scripts/{6-a5f6258253.chunk.js → 6-a469872b10.chunk.js} +1 -1
- package/dist/scripts/6-c631df7bda.chunk.js +1 -0
- package/dist/scripts/6.chunk.js.map +1 -1
- package/dist/scripts/60-ac631fa385.chunk.js +1 -0
- package/dist/scripts/{60-ac4f11764a.chunk.js → 60-f092baa91c.chunk.js} +1 -1
- package/dist/scripts/60.chunk.js.map +1 -1
- package/dist/scripts/61-360e50b6cb.chunk.js +1 -0
- package/dist/scripts/{61-62ec9b3628.chunk.js → 61-bd9ef62ccd.chunk.js} +1 -1
- package/dist/scripts/61.chunk.js +12 -12
- package/dist/scripts/61.chunk.js.map +1 -1
- package/dist/scripts/62-22ee1d2a94.chunk.js +1 -0
- package/dist/scripts/{62-4d0e82f903.chunk.js → 62-f15b3bf74c.chunk.js} +1 -1
- package/dist/scripts/62.chunk.js.map +1 -1
- package/dist/scripts/63-25413d744e.chunk.js +1 -0
- package/dist/scripts/{63-47af37825d.chunk.js → 63-92757f75e7.chunk.js} +1 -1
- package/dist/scripts/63.chunk.js.map +1 -1
- package/dist/scripts/64-1b027092be.chunk.js +1 -0
- package/dist/scripts/{64-12150ef48b.chunk.js → 64-c5a1c55521.chunk.js} +1 -1
- package/dist/scripts/64.chunk.js.map +1 -1
- package/dist/scripts/{65-7780441e5e.chunk.js → 65-6bb10ae23b.chunk.js} +1 -1
- package/dist/scripts/{65-a4fdf8777b.chunk.js → 65-c8a9aae545.chunk.js} +1 -1
- package/dist/scripts/65.chunk.js.map +1 -1
- package/dist/scripts/66-20aec598ca.chunk.js +1 -0
- package/dist/scripts/{66-029947cf5c.chunk.js → 66-f047027f7d.chunk.js} +1 -1
- package/dist/scripts/66.chunk.js.map +1 -1
- package/dist/scripts/{67-47f208342a.chunk.js → 67-2e1a011200.chunk.js} +1 -1
- package/dist/scripts/67-d8d1cb35a4.chunk.js +1 -0
- package/dist/scripts/67.chunk.js.map +1 -1
- package/dist/scripts/68-869ea333d9.chunk.js +1 -0
- package/dist/scripts/{68-5656cc45fe.chunk.js → 68-d5c0ab3fc1.chunk.js} +1 -1
- package/dist/scripts/68.chunk.js.map +1 -1
- package/dist/scripts/69-c4ff3e5568.chunk.js +1 -0
- package/dist/scripts/{69-4d32ddddbc.chunk.js → 69-fc8325afc9.chunk.js} +1 -1
- package/dist/scripts/69.chunk.js.map +1 -1
- package/dist/scripts/7-1d94e0bb0c.chunk.js +1 -0
- package/dist/scripts/{7-2696f5afc4.chunk.js → 7-58dd909fa3.chunk.js} +1 -1
- package/dist/scripts/7.chunk.js.map +1 -1
- package/dist/scripts/70-171dcf9fe1.chunk.js +1 -0
- package/dist/scripts/{70-0f070c1596.chunk.js → 70-ceda95013e.chunk.js} +1 -1
- package/dist/scripts/70.chunk.js.map +1 -1
- package/dist/scripts/71-33e7082ca2.chunk.js +1 -0
- package/dist/scripts/{71-215cac8b69.chunk.js → 71-6e8fc95beb.chunk.js} +1 -1
- package/dist/scripts/71.chunk.js.map +1 -1
- package/dist/scripts/72-2eef8b13b0.chunk.js +1 -0
- package/dist/scripts/{72-6eb3ef092e.chunk.js → 72-53fe3338bf.chunk.js} +1 -1
- package/dist/scripts/72.chunk.js.map +1 -1
- package/dist/scripts/73.chunk.js.map +1 -1
- package/dist/scripts/74.chunk.js.map +1 -1
- package/dist/scripts/75.chunk.js.map +1 -1
- package/dist/scripts/76.chunk.js.map +1 -1
- package/dist/scripts/77.chunk.js.map +1 -1
- package/dist/scripts/78.chunk.js.map +1 -1
- package/dist/scripts/79.chunk.js.map +1 -1
- package/dist/scripts/8-34ae87490f.chunk.js +1 -0
- package/dist/scripts/{8-1e0751e30b.chunk.js → 8-6974afed28.chunk.js} +1 -1
- package/dist/scripts/8.chunk.js.map +1 -1
- package/dist/scripts/80.chunk.js.map +1 -1
- package/dist/scripts/81.chunk.js.map +1 -1
- package/dist/scripts/82.chunk.js.map +1 -1
- package/dist/scripts/83.chunk.js.map +1 -1
- package/dist/scripts/84.chunk.js.map +1 -1
- package/dist/scripts/85.chunk.js.map +1 -1
- package/dist/scripts/86.chunk.js.map +1 -1
- package/dist/scripts/87.chunk.js.map +1 -1
- package/dist/scripts/88.chunk.js.map +1 -1
- package/dist/scripts/89.chunk.js.map +1 -1
- package/dist/scripts/{9-cd0bcefa7f.chunk.js → 9-0d7004dd33.chunk.js} +1 -1
- package/dist/scripts/{9-bb567e1c99.chunk.js → 9-9279038caa.chunk.js} +1 -1
- package/dist/scripts/9.chunk.js.map +1 -1
- package/dist/scripts/90.chunk.js.map +1 -1
- package/dist/scripts/91.chunk.js.map +1 -1
- package/dist/scripts/92.chunk.js.map +1 -1
- package/dist/scripts/bundle-06dc1f4908.min.js +8 -0
- package/dist/scripts/bundle-f4a423ce34.min.js +1 -0
- package/dist/scripts/bundle.js +1364 -1492
- package/dist/scripts/bundle.js.map +1 -1
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-21eaf1215c.min.js +1 -0
- package/dist/scripts/polyfills-efb4d7caa3.min.js +1 -0
- package/dist/scripts/polyfills.js +1050 -1050
- package/dist/scripts/polyfills.js.map +1 -1
- package/package.json +4 -4
- package/dist/scripts/0-f82360fd03.chunk.js +0 -1
- package/dist/scripts/10-8307f8e248.chunk.js +0 -1
- package/dist/scripts/12-43e54b0a2d.chunk.js +0 -1
- package/dist/scripts/13-3d84e237b9.chunk.js +0 -1
- package/dist/scripts/14-988bab314d.chunk.js +0 -1
- package/dist/scripts/16-3a99050a93.chunk.js +0 -1
- package/dist/scripts/17-bff211f26a.chunk.js +0 -1
- package/dist/scripts/20-d4470b4a53.chunk.js +0 -1
- package/dist/scripts/21-7bd1977005.chunk.js +0 -1
- package/dist/scripts/22-d88b8e9c20.chunk.js +0 -1
- package/dist/scripts/23-e8a0f60c53.chunk.js +0 -1
- package/dist/scripts/24-f62e7ff166.chunk.js +0 -1
- package/dist/scripts/25-f814e3921c.chunk.js +0 -1
- package/dist/scripts/26-9dd482e1e6.chunk.js +0 -1
- package/dist/scripts/27-5ecd204dab.chunk.js +0 -1
- package/dist/scripts/28-e9b8962af8.chunk.js +0 -1
- package/dist/scripts/29-e3391b4e4b.chunk.js +0 -1
- package/dist/scripts/30-aef6a19cde.chunk.js +0 -1
- package/dist/scripts/31-4f1ea6d067.chunk.js +0 -1
- package/dist/scripts/31-70fe14b490.chunk.js +0 -1
- package/dist/scripts/32-96ac2f9c32.chunk.js +0 -1
- package/dist/scripts/33-061a87935f.chunk.js +0 -1
- package/dist/scripts/37-fbd149e569.chunk.js +0 -1
- package/dist/scripts/38-7733a3d81e.chunk.js +0 -1
- package/dist/scripts/39-cc627dfe2b.chunk.js +0 -1
- package/dist/scripts/4-84fa8e49e2.chunk.js +0 -1
- package/dist/scripts/40-78639874b5.chunk.js +0 -1
- package/dist/scripts/42-c87c36d7d4.chunk.js +0 -1
- package/dist/scripts/46-e096df45ef.chunk.js +0 -1
- package/dist/scripts/47-9e514e7536.chunk.js +0 -1
- package/dist/scripts/48-9af8b50e4f.chunk.js +0 -1
- package/dist/scripts/49-883d9131af.chunk.js +0 -1
- package/dist/scripts/50-ce04770db1.chunk.js +0 -1
- package/dist/scripts/51-61bb2b80fe.chunk.js +0 -1
- package/dist/scripts/52-e7fd215888.chunk.js +0 -1
- package/dist/scripts/53-e78a58c963.chunk.js +0 -1
- package/dist/scripts/54-7976c21511.chunk.js +0 -1
- package/dist/scripts/55-dac67eae0b.chunk.js +0 -1
- package/dist/scripts/56-9a02efb9a1.chunk.js +0 -1
- package/dist/scripts/57-bf72265d49.chunk.js +0 -1
- package/dist/scripts/58-34ef45f4b6.chunk.js +0 -1
- package/dist/scripts/59-f3d473090d.chunk.js +0 -1
- package/dist/scripts/6-e49b6b4c08.chunk.js +0 -1
- package/dist/scripts/60-dd50d4179f.chunk.js +0 -1
- package/dist/scripts/61-e759f86871.chunk.js +0 -1
- package/dist/scripts/62-bfd5450b13.chunk.js +0 -1
- package/dist/scripts/63-8521e39a2e.chunk.js +0 -1
- package/dist/scripts/64-c42635a917.chunk.js +0 -1
- package/dist/scripts/66-7f2750cd97.chunk.js +0 -1
- package/dist/scripts/67-564ff2bd16.chunk.js +0 -1
- package/dist/scripts/68-df9024fadc.chunk.js +0 -1
- package/dist/scripts/69-a4b3442e68.chunk.js +0 -1
- package/dist/scripts/7-b39ab430b9.chunk.js +0 -1
- package/dist/scripts/70-2a427b3dd0.chunk.js +0 -1
- package/dist/scripts/71-c43ee23686.chunk.js +0 -1
- package/dist/scripts/72-f5a8cfc8b7.chunk.js +0 -1
- package/dist/scripts/8-f4f18356f7.chunk.js +0 -1
- package/dist/scripts/bundle-e7f4d4e659.min.js +0 -8
- package/dist/scripts/bundle-f73bcaa857.min.js +0 -8
- package/dist/scripts/polyfills-9517d7e647.min.js +0 -1
- package/dist/scripts/polyfills-e442ebbfb0.min.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[45],{1050:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(31),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(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 u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(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 f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",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&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,e}return e=s,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"\n </p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a)},1087:function(t,e,n){"use strict";n(284);var r=n(2),o=n(31),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(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 u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(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 f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",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&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,i.a.getPhrase(p,"title"))}return e=s,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(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){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(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 v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=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&&g(t,e)}(c,t);var e,n,o,a=b(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return e=c,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}}])&&h(e.prototype,n),o&&h(e,o),c}(o.a);function w(t){return(w="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 O(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 P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==w(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 R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=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&&P(t,e)}(c,t);var e,n,o,a=k(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return e=c,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}}])&&O(e.prototype,n),o&&O(e,o),c}(o.a);n(1050);n.d(e,"a",(function(){return y})),n.d(e,"c",(function(){return S})),n.d(e,"b",(function(){return E})),n.d(e,"a",(function(){return y}))},1378:function(t,e,n){t.exports={container:"_2SvL3",header:"_2KEEa",footer:"wCMJb"}},1379:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return" "+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"videosSelected",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.selected:i},data:o}))+"\r\n"},3:function(t,e,n,r,o){t.propertyIsEnumerable;return" "+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"noVideosSelected",{name:"lang",hash:{},data:o}))+"\r\n"},5:function(t,e,n,r,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="p-3 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'">\r\n <span class="d-inline-block">'+c((n.lang||e&&e.lang||l).call(u,"addVideos",{name:"lang",hash:{},data:o}))+'</span>\r\n</div>\r\n<div class="p-3 w-100">\r\n <h6 class="mt-1 mb-1">\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.selected:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:"")+' </h6>\r\n <div class="selected-video-list-region"></div>\r\n</div>\r\n<div class="py-2 px-3 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.footer:i,e))+'">\r\n <div class="row">\r\n <div class="col-4">\r\n <button class="applink-back btn btn-secondary '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'">\r\n '+c((n.lang||e&&e.lang||l).call(u,"back",{name:"lang",hash:{},data:o}))+'\r\n </button>\r\n </div>\r\n <div class="col-2 offset-6 text-right spinner-region">\r\n <button class="applink-next btn btn-primary '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" '+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.nextDisabled:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")+">\r\n "+c((n.lang||e&&e.lang||l).call(u,"addTitles",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.selected:i},data:o}))+"\r\n </button>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},1444:function(t,e,n){"use strict";n.r(e),n.d(e,"SelectedVideosView",(function(){return j}));var r=n(7),o=n(2),i=n(5),a=n(244),c=n(3),u=n(0),l=n(13),s=n(1107),f=n(297),p=n(1115),y=n(1087),d=n(47),h=n(57),g=n(1378),b=n.n(g),m=n(1379),v=n.n(m);function S(t){return(S="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 w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(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 P(t,e,n){return e&&O(t.prototype,e),n&&O(t,n),t}function k(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)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=V(t);if(e){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==S(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 V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){k(n,t);var e=R(n);function n(){return w(this,n),e.apply(this,arguments)}return P(n,[{key:"name",get:function(){return"SelectedVideoComponentCollection"}},{key:"childView",get:function(){return s.i}}]),n}(o.a.ComponentCollection),j=function(t){k(n,t);var e=R(n);function n(t){return w(this,n),e.call(this,t)}return P(n,[{key:"initialize",value:function(){this.selectedVideoService=i.a.getInstance(u.x.SelectedVideo,this),this.migrationVideoDataService=i.a.getInstance(u.g.MigrationVideo,this),this.videoDataService=i.a.getInstance(u.g.Video,this),this.listenTo(this.channelName,"add",this.onClickAdd)}},{key:"regions",value:function(){return{selectedVideoListRegion:{replaceElement:!0,el:".selected-video-list-region"},spinner:".spinner-region"}}},{key:"onClickAdd",value:function(){var t=this;this.listenTo(u.e.MIGRATION,"".concat(u.f.CUSTOMER_VIDEOS,":finalise:error"),this.onError),r.Radio.channel(this.channelName).trigger(a.b.ShowSpinner);var e={};h.a.isInitialMigration(this.customerMetaData)&&(e.initialMigration=!0),this.migrationVideoDataService.updateCustomerMigrationOption(d.c.Smart,(function(){t.migrationVideoDataService.finaliseCustomerVideos(t.groupedVideos,!1,(function(n){t.selectedVideoService.removeAllSelectedVideos(),t.migrationVideoDataService.clearVideoCache(),t.videoDataService.clearVideoCache(),o.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.PROGRESS,args:[n.id],params:e})}))}))}},{key:"onError",value:function(){o.a.ErrorHelper.throw(new y.b)}},{key:"getGroupedVideos",value:function(){var t=this.selectedVideoService.getSelectedVideos();this.groupedVideos=new o.a.Collection(p.a.getSelectedVideosCollection(t).sortBy("folderChord"))}},{key:"renderSelectedVideoList",value:function(){this.showChildView("selectedVideoListRegion",new x({collection:this.groupedVideos}))}},{key:"renderSpinner",value:function(){var t=this.selectedVideoService.getNumberSelected(),e=new a.a({buttonText:c.a.getPhrase(this.lang,"buttonText",{smartCount:t}),extraButtonClass:"btn-primary",model:new o.a.Model({disabled:0===t}),spinnerOptions:{size:l.r.Small,type:l.s.Light,extraClasses:"mx-auto"},saveEvent:"add",channelName:this.channelName});this.showChildView("spinner",e)}},{key:"viewOptions",value:function(){var t=this.selectedVideoService.getNumberSelected();return{styles:b.a,selected:t,multipleSelected:t>1,nextDisabled:0===t}}},{key:"onRender",value:function(){this.getGroupedVideos(),this.renderSelectedVideoList(),this.renderSpinner()}},{key:"name",get:function(){return"SelectedVideosView"}},{key:"title",get:function(){return c.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.selectedVideos"}},{key:"template",get:function(){return v.a}},{key:"className",get:function(){return"row mt-2 container-region ".concat(b.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-back":{application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.HOME,params:{folder:this.options.previousFolderChord}}}}},{key:"requiredResources",get:function(){return{customerMetaData:f.b.customerMetaData}}}]),n}(o.a.View)}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[45],{1038:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(29),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(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 u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(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 f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",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&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,e}return e=s,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"\n </p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a)},1075:function(t,e,n){"use strict";n(277);var r=n(2),o=n(29),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(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 u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(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 f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",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&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,i.a.getPhrase(p,"title"))}return e=s,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(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){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(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 v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=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&&g(t,e)}(c,t);var e,n,o,a=b(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return e=c,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}}])&&h(e.prototype,n),o&&h(e,o),c}(o.a);function w(t){return(w="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 O(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 P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==w(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 R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=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&&P(t,e)}(c,t);var e,n,o,a=k(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return e=c,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}}])&&O(e.prototype,n),o&&O(e,o),c}(o.a);n(1038);n.d(e,"a",(function(){return y})),n.d(e,"c",(function(){return S})),n.d(e,"b",(function(){return E})),n.d(e,"a",(function(){return y}))},1366:function(t,e,n){t.exports={container:"_2SvL3",header:"_2KEEa",footer:"wCMJb"}},1367:function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return" "+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"videosSelected",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.selected:i},data:o}))+"\r\n"},3:function(t,e,n,r,o){t.propertyIsEnumerable;return" "+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"noVideosSelected",{name:"lang",hash:{},data:o}))+"\r\n"},5:function(t,e,n,r,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="p-3 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'">\r\n <span class="d-inline-block">'+c((n.lang||e&&e.lang||l).call(u,"addVideos",{name:"lang",hash:{},data:o}))+'</span>\r\n</div>\r\n<div class="p-3 w-100">\r\n <h6 class="mt-1 mb-1">\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.selected:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:"")+' </h6>\r\n <div class="selected-video-list-region"></div>\r\n</div>\r\n<div class="py-2 px-3 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.footer:i,e))+'">\r\n <div class="row">\r\n <div class="col-4">\r\n <button class="applink-back btn btn-secondary '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'">\r\n '+c((n.lang||e&&e.lang||l).call(u,"back",{name:"lang",hash:{},data:o}))+'\r\n </button>\r\n </div>\r\n <div class="col-2 offset-6 text-right spinner-region">\r\n <button class="applink-next btn btn-primary '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" '+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.nextDisabled:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")+">\r\n "+c((n.lang||e&&e.lang||l).call(u,"addTitles",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.selected:i},data:o}))+"\r\n </button>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},1432:function(t,e,n){"use strict";n.r(e),n.d(e,"SelectedVideosView",(function(){return j}));var r=n(7),o=n(2),i=n(5),a=n(238),c=n(3),u=n(0),l=n(12),s=n(1095),f=n(290),p=n(1103),y=n(1075),d=n(45),h=n(54),g=n(1366),b=n.n(g),m=n(1367),v=n.n(m);function S(t){return(S="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 w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(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 P(t,e,n){return e&&O(t.prototype,e),n&&O(t,n),t}function k(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)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=V(t);if(e){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==S(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 V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){k(n,t);var e=R(n);function n(){return w(this,n),e.apply(this,arguments)}return P(n,[{key:"name",get:function(){return"SelectedVideoComponentCollection"}},{key:"childView",get:function(){return s.i}}]),n}(o.a.ComponentCollection),j=function(t){k(n,t);var e=R(n);function n(t){return w(this,n),e.call(this,t)}return P(n,[{key:"initialize",value:function(){this.selectedVideoService=i.a.getInstance(u.x.SelectedVideo,this),this.migrationVideoDataService=i.a.getInstance(u.g.MigrationVideo,this),this.videoDataService=i.a.getInstance(u.g.Video,this),this.listenTo(this.channelName,"add",this.onClickAdd)}},{key:"regions",value:function(){return{selectedVideoListRegion:{replaceElement:!0,el:".selected-video-list-region"},spinner:".spinner-region"}}},{key:"onClickAdd",value:function(){var t=this;this.listenTo(u.e.MIGRATION,"".concat(u.f.CUSTOMER_VIDEOS,":finalise:error"),this.onError),r.Radio.channel(this.channelName).trigger(a.b.ShowSpinner);var e={};h.a.isInitialMigration(this.customerMetaData)&&(e.initialMigration=!0),this.migrationVideoDataService.updateCustomerMigrationOption(d.c.Smart,(function(){t.migrationVideoDataService.finaliseCustomerVideos(t.groupedVideos,!1,(function(n){t.selectedVideoService.removeAllSelectedVideos(),t.migrationVideoDataService.clearVideoCache(),t.videoDataService.clearVideoCache(),o.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.PROGRESS,args:[n.id],params:e})}))}))}},{key:"onError",value:function(){o.a.ErrorHelper.throw(new y.b)}},{key:"getGroupedVideos",value:function(){var t=this.selectedVideoService.getSelectedVideos();this.groupedVideos=new o.a.Collection(p.a.getSelectedVideosCollection(t).sortBy("folderChord"))}},{key:"renderSelectedVideoList",value:function(){this.showChildView("selectedVideoListRegion",new x({collection:this.groupedVideos}))}},{key:"renderSpinner",value:function(){var t=this.selectedVideoService.getNumberSelected(),e=new a.a({buttonText:c.a.getPhrase(this.lang,"buttonText",{smartCount:t}),extraButtonClass:"btn-primary",model:new o.a.Model({disabled:0===t}),spinnerOptions:{size:l.r.Small,type:l.s.Light,extraClasses:"mx-auto"},saveEvent:"add",channelName:this.channelName});this.showChildView("spinner",e)}},{key:"viewOptions",value:function(){var t=this.selectedVideoService.getNumberSelected();return{styles:b.a,selected:t,multipleSelected:t>1,nextDisabled:0===t}}},{key:"onRender",value:function(){this.getGroupedVideos(),this.renderSelectedVideoList(),this.renderSpinner()}},{key:"name",get:function(){return"SelectedVideosView"}},{key:"title",get:function(){return c.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.selectedVideos"}},{key:"template",get:function(){return v.a}},{key:"className",get:function(){return"row mt-2 container-region ".concat(b.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-back":{application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.HOME,params:{folder:this.options.previousFolderChord}}}}},{key:"requiredResources",get:function(){return{customerMetaData:f.b.customerMetaData}}}]),n}(o.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-image/EditImage.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-image/EditImageComponent.ts","webpack://@clickview/library-editor/./src/apps/library-editor/components/edit-image/edit-image.scss?51f1","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapper.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.ts","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImages.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.ts","webpack://@clickview/library-editor/./src/apps/library-editor/views/edit-folder-images/edit-folder-images.scss?1d3f","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/image-cropper/ImageCropper.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.ts","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/models/DisabledSpinnerModel.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA,mKAAmK,wBAAwB,sBAAsB,4TAA4T,aAAa;AAC1hB;AACA,CAAC;AACD;;AAEA;AACA,mKAAmK,mBAAmB,sBAAsB,sSAAsS,aAAa;AAC/f;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,+IAA+I,YAAY,uBAAuB,aAAa;AAC/L;AACA;AACA;AACA,CAAC;AACD,oHAAoH;;AAEpH;AACA,iFAAiF,uBAAuB,aAAa;AACrH;AACA;AACA;AACA,oJAAoJ,qBAAqB,wFAAwF;AACjQ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF,uBAAuB,aAAa;AACvH;AACA;AACA;AACA,uIAAuI,qBAAqB,yEAAyE;AACrO,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5CjB;AAE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,GAAwB,KAAK,OAAL,CAAa,SAFlB;AAGhC,uBAAe,EAAE,KAAK,kBAAL,EAHe;AAIhC,wBAAgB,EAAE,KAAK,mBAAL,EAJc;AAKhC,oBAAY,EAAE;AALkB,OAAnB,CAAf;AAOD;AApEH;AAAA;AAAA,+BAsEiB;AACb,WAAK,aAAL;AACD;AAxEH;AAAA;AAAA,sCA0EwB;AACpB,WAAK,OAAL,CAAa,OAAb;AACD;AA5EH;AAAA;AAAA,wBAYiB;AACb,aAAO,uBAAP;AACD;AAdH;AAAA;AAAA,wBAgBqB;AACjB,aAAO,wDAAP;AACD;AAlBH;AAAA;AAAA,wBAoBsB;AAClB,aAAO,aAAP;AACD;AAtBH;AAAA;AAAA,wBAwBqB;AACjB,aAAO;AACL,aAAK,EAAE;AADF,OAAP;AAGD;AA5BH;;AAAA;AAAA,EAA2C,8DAAI,CAAC,SAAhD,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtBA;AACA;AAEO,IAAM,oBAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,+BACiB;AACb,iCACG,8GAA4B,CAAC,QADhC,EAC2C,IAD3C;AAGD;AALH;;AAAA;AAAA,EAA0C,8DAAI,CAAC,KAA/C,E","file":"scripts/45.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \" \"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"minimumRecommended\",{\"name\":\"lang\",\"hash\":{\"height\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.recommendedDimensions : stack1)) != null ? stack1.height : stack1),\"width\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.recommendedDimensions : stack1)) != null ? stack1.width : stack1)},\"data\":data}))\n + \"\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \" \"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"minimumActual\",{\"name\":\"lang\",\"hash\":{\"height\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dimensions : stack1)) != null ? stack1.height : stack1),\"width\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dimensions : stack1)) != null ? stack1.width : stack1)},\"data\":data}))\n + \"\\r\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"<button class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.removeImage : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"remove\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageTypeText : stack1), depth0))\n + \"</button>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"<h6 class=\\\"mb-0\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"edit\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageTypeText : stack1), depth0))\n + \"</h6>\\r\\n<div class=\\\"text-muted mb-1\\\">\\r\\n <em>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.recommendedDimensions : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" </em>\\r\\n</div>\\r\\n<div class=\\\"my-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.imageContainer : stack1), depth0))\n + \"\\\">\\r\\n <div class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.imageElement : stack1), depth0))\n + \"\\\" style=\\\"background-image: url('\"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageUrl : stack1), depth0))\n + \"')\\\"></div>\\r\\n</div>\\r\\n<button class=\\\"btn btn-light my-1\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"upload\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageTypeText : stack1), depth0))\n + \"</button>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasImage : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\n\r\nimport { ImageType } from 'shared/enums';\r\nimport { ImageSelectBehavior } from 'shared/behaviors';\r\nimport { ImageHelper } from 'shared/utils';\r\nimport { Banner } from 'shared/models/Banner';\r\nimport { Thumbnail } from 'shared/models/Thumbnail';\r\nimport { ImageMinDimensions, AppChannels, Actions, ImageWarnDimensions } from 'shared/constants';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport EditImageTemplate from './EditImage.hbs';\r\nimport styles from './edit-image.scss';\r\n\r\ninterface EditImageComponentOptions extends Core.ComponentOptions {\r\n imageType: ImageType;\r\n imageCdnUrl: string;\r\n folderName: string;\r\n originalImage: Banner | Thumbnail;\r\n folderId: string;\r\n}\r\n\r\nexport class EditImageComponent extends Core.Component {\r\n public options: EditImageComponentOptions;\r\n\r\n constructor(options: EditImageComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.viewModel = ViewModelService.get('edit:folder:images');\r\n }\r\n\r\n public get name(): string {\r\n return 'EditImageComponent';\r\n }\r\n\r\n public get template(): string {\r\n return EditImageTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'libraryEditor.editImage';\r\n }\r\n\r\n public get className(): string {\r\n return this.options.imageType === ImageType.Thumbnails ? `${styles.thumbnail} mb-2` : `${styles.banner} mt-2`;\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n [`click .${styles.removeImage}`]: 'onClickRemoveImage',\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: ImageSelectBehavior,\r\n channelName: this.options.channelName,\r\n buttonSelector: '.btn-light',\r\n imageType: this.options.imageType,\r\n saveImage: (dataUrl: string, warningShown: boolean) => {\r\n if (!warningShown) {\r\n Radio.channel(this.options.channelName)\r\n .trigger('select:image', dataUrl, this.options.imageType);\r\n return;\r\n }\r\n\r\n this.viewModel.set({\r\n dataUrl: dataUrl,\r\n type: this.options.imageType\r\n });\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.EDIT_FOLDER_IMAGES,\r\n args: [this.options.folderId]\r\n });\r\n }\r\n }];\r\n }\r\n\r\n private onClickRemoveImage(): void {\r\n Radio.channel(this.options.channelName)\r\n .trigger('show:dialog', this.options.imageType);\r\n }\r\n\r\n private getImageUrl(): string {\r\n const methodName = this.options.imageType === ImageType.Banners ? 'createBannerUrl' : 'createFolderThumbnailUrl';\r\n\r\n return ImageHelper[methodName](this.options.originalImage, {\r\n fallbackBaseUrl: this.options.imageCdnUrl,\r\n fallbackCategoryName: this.options.folderName,\r\n type: this.options.imageType\r\n });\r\n }\r\n\r\n private getImageTypeText(): string {\r\n switch (this.options.imageType) {\r\n case ImageType.Banners:\r\n return LanguageService.getPhrase(this.lang, 'banner');\r\n case ImageType.Thumbnails:\r\n return LanguageService.getPhrase(this.lang, 'thumbnail');\r\n }\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n imageUrl: this.getImageUrl(),\r\n hasImage: this.options.originalImage && this.options.originalImage.get('id'),\r\n imageTypeText: this.getImageTypeText(),\r\n dimensions: ImageMinDimensions[this.options.imageType],\r\n recommendedDimensions: ImageWarnDimensions[this.options.imageType]\r\n };\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"removeImage\":\"cv--removeImage--3OmsX\",\"imageElement\":\"cv--imageElement--3kJ8m\",\"banner\":\"cv--banner--uFWnL\",\"thumbnail\":\"cv--thumbnail--3_b6l\",\"imageContainer\":\"cv--imageContainer--1mYjS\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"thumbnail-region\\\"></div>\\r\\n<div class=\\\"dropdown-divider\\\"></div>\\r\\n<div class=\\\"banner-region\\\"></div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { ImageType } from 'shared/enums';\r\nimport { Banner } from 'shared/models/Banner';\r\nimport { Thumbnail } from 'shared/models/Thumbnail';\r\n\r\nimport { EditImageComponent } from 'apps/library-editor/components/edit-image/EditImageComponent';\r\n\r\nimport EditImagesWrapperTemplate from './EditImagesWrapper.hbs';\r\n\r\ninterface EditImagesWrapperComponentOptions extends Core.ComponentOptions {\r\n imageCdnUrl: string;\r\n folderName: string;\r\n bannerImage: Banner;\r\n thumbnailImage: Thumbnail;\r\n bannerChannel: string;\r\n thumbnailChannel: string;\r\n folderId: string;\r\n}\r\n\r\nexport class EditImagesWrapperComponent extends Core.Component {\r\n public options: EditImagesWrapperComponentOptions;\r\n\r\n public constructor(options: EditImagesWrapperComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'EditImagesWrapperComponent';\r\n }\r\n\r\n public get template(): string {\r\n return EditImagesWrapperTemplate;\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n banner: {\r\n el: '.banner-region',\r\n replaceElement: true\r\n },\r\n thumbnail: {\r\n el: '.thumbnail-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n private renderBanner(): void {\r\n this.showChildView('banner', new EditImageComponent({\r\n channelName: this.options.bannerChannel,\r\n imageCdnUrl: this.options.imageCdnUrl,\r\n imageType: ImageType.Banners,\r\n folderName: this.options.folderName,\r\n originalImage: this.options.bannerImage,\r\n folderId: this.options.folderId\r\n }));\r\n }\r\n\r\n private renderThumbnail(): void {\r\n this.showChildView('thumbnail', new EditImageComponent({\r\n channelName: this.options.thumbnailChannel,\r\n imageCdnUrl: this.options.imageCdnUrl,\r\n imageType: ImageType.Thumbnails,\r\n folderName: this.options.folderName,\r\n originalImage: this.options.thumbnailImage,\r\n folderId: this.options.folderId\r\n }));\r\n }\r\n\r\n public onRender(): void {\r\n this.renderBanner();\r\n this.renderThumbnail();\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"content-region\\\"></div>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.spinnerEl : stack1), depth0)) != null ? stack1 : \"\")\n + \"\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dataFetched : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\nimport { EntityType, UserAction, WorkflowPhase, LocationContext } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport { PopupBehavior } from 'shared/behaviors';\r\nimport { Image as ImageModel } from 'shared/models/Image';\r\nimport { Folder } from 'shared/models/Folder';\r\nimport { Thumbnail } from 'shared/models/Thumbnail';\r\nimport { Banner } from 'shared/models/Banner';\r\nimport { Config } from 'shared/models/Config';\r\nimport { DisabledSpinnerModel } from 'shared/models/DisabledSpinnerModel';\r\nimport { RadioChannelHelper, DialogHelper, SpinnerHelper, SpinnerSize } from 'shared/utils';\r\nimport { ImageMinDimensions, DataServices, DataChannels, DataPrefixes, AppChannels, Actions } from 'shared/constants';\r\nimport { ImageType } from 'shared/enums';\r\nimport { ImageCropperComponent, CropEventNames } from 'shared/components/image-cropper/ImageCropperComponent';\r\nimport { SpinnerButtonModelAttributes, SpinnerButtonEvents } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { LibraryCollection } from 'shared/collections/LibraryCollection';\r\n\r\nimport { EditImagesWrapperComponent } from 'apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent';\r\nimport { LibraryDataService } from 'apps/library-editor/services/LibraryDataService';\r\nimport { ImageUploadDataService } from 'apps/upload/services';\r\n\r\nimport styles from './edit-folder-images.scss';\r\nimport EditFolderImagesTemplate from './EditFolderImages.hbs';\r\n\r\nenum PopupContentType { Upload, Crop }\r\n\r\ninterface EditFolderImagesViewOptions extends Core.ViewOptions {\r\n folderId: string;\r\n}\r\n\r\nexport class EditFolderImagesView extends Core.View {\r\n public options: EditFolderImagesViewOptions;\r\n\r\n private libraryId: string;\r\n\r\n public model: Folder;\r\n public config: Config;\r\n private spinnerModel: DisabledSpinnerModel;\r\n private newImageEl: HTMLImageElement;\r\n private currentThumbnail: Thumbnail;\r\n private currentBanner: Banner;\r\n\r\n private libraryDataService: LibraryDataService;\r\n private imageUploadDataService: ImageUploadDataService;\r\n\r\n private selectedImageType: ImageType;\r\n private popupContentState: PopupContentType;\r\n\r\n constructor(options: EditFolderImagesViewOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.popupContentState = PopupContentType.Upload;\r\n\r\n this.viewModel = ViewModelService.get('edit:folder:images');\r\n\r\n if (this.viewModel.get('dataUrl')) {\r\n this.selectedImageType = this.viewModel.get('type');\r\n\r\n this.newImageEl = new Image();\r\n this.newImageEl.src = this.viewModel.get('dataUrl');\r\n\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.Disabled, false);\r\n\r\n this.popupContentState = PopupContentType.Crop;\r\n }\r\n\r\n this.libraryDataService = InstanceManager.getInstance(DataServices.Library, this);\r\n this.imageUploadDataService = InstanceManager.getInstance(DataServices.ImageUpload, this);\r\n\r\n this.bindListeners();\r\n }\r\n\r\n public get name(): string {\r\n return 'EditFolderImagesView';\r\n }\r\n\r\n public get title(): string {\r\n return 'Edit Folder Images';\r\n }\r\n\r\n public get template(): string {\r\n return EditFolderImagesTemplate;\r\n }\r\n\r\n public get channelName(): string {\r\n return RadioChannelHelper.generateUniqueChannelName(this);\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n content: {\r\n el: '.content-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .back-btn': 'onClickBackButton',\r\n 'shown.bs.modal': 'renderCropper',\r\n };\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n backBtn: '.back-btn'\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n title: 'Edit folder images',\r\n behaviorClass: PopupBehavior,\r\n size: 'modal-lg',\r\n buttons: [{ text: 'Back', className: `btn btn-light back-btn ${styles.hide}` }],\r\n spinnerButtonOptions: {\r\n model: this.spinnerModel = new DisabledSpinnerModel(),\r\n channelName: this.channelName,\r\n buttonText: 'Continue',\r\n onClick: this.onClickCrop\r\n }\r\n }];\r\n }\r\n\r\n public get requiredResources(): Core.RequiredResourceHash {\r\n return { config: ConfigDataServiceHelper.config };\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(DataChannels.LIBRARY, `${DataPrefixes.FOLDER}:${this.options.folderId}:sync`, this.render);\r\n\r\n const bannerChannel = `${this.channelName}:${ImageType.Banners}`;\r\n const thumbnailChannel = `${this.channelName}:${ImageType.Thumbnails}`;\r\n\r\n this.listenTo(bannerChannel, 'select:image', (dataUrl: string) => this.onSelectImage(dataUrl, ImageType.Banners));\r\n this.listenTo(thumbnailChannel, 'select:image', (dataUrl: string) => this.onSelectImage(dataUrl, ImageType.Thumbnails));\r\n\r\n this.listenTo(bannerChannel, 'show:dialog', () => this.onShowDialog(ImageType.Banners));\r\n this.listenTo(thumbnailChannel, 'show:dialog', () => this.onShowDialog(ImageType.Thumbnails));\r\n\r\n this.listenTo(bannerChannel, 'image:error', () => this.triggerMethod('hide'));\r\n this.listenTo(thumbnailChannel, 'image:error', () => this.triggerMethod('hide'));\r\n\r\n this.listenTo(this.channelName, CropEventNames.ImageCropped, this.onImageCropped);\r\n }\r\n\r\n private onClickBackButton(): void {\r\n if (this.popupContentState === PopupContentType.Upload) return;\r\n\r\n this.popupContentState = PopupContentType.Upload;\r\n this.selectedImageType = null;\r\n this.newImageEl = null;\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.Disabled, true);\r\n\r\n this.renderContent();\r\n }\r\n\r\n private onClickCrop(): void {\r\n Radio.channel(this.channelName)\r\n .trigger(CropEventNames.CropImage)\r\n .trigger(SpinnerButtonEvents.ShowSpinner);\r\n }\r\n\r\n private onSelectImage(dataUrl: string, imageType: ImageType): void {\r\n this.selectedImageType = imageType;\r\n\r\n this.newImageEl = new Image();\r\n this.newImageEl.src = dataUrl;\r\n\r\n this.popupContentState = PopupContentType.Crop;\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.Disabled, false);\r\n\r\n this.renderCropper();\r\n }\r\n\r\n private onImageCropped(dataUrl: string): void {\r\n this.imageUploadDataService.uploadBase64Image(\r\n dataUrl,\r\n this.selectedImageType,\r\n (data: ImageModel) => this.onImageUploaded(data)\r\n );\r\n }\r\n\r\n private onImageUploaded(imageModel: ImageModel): void {\r\n this.triggerMethod('hide');\r\n\r\n const data = {\r\n libraryId: this.libraryId,\r\n folderId: this.options.folderId,\r\n currentImageId: this.getCurrentImageId(),\r\n imageModel\r\n };\r\n\r\n const entity = this.selectedImageType === ImageType.Banners ? EntityType.Banner : EntityType.Thumbnail;\r\n\r\n const dataServiceMethod = this.selectedImageType === ImageType.Banners ? 'addOrUpdateBanner' : 'addOrUpdateThumbnail';\r\n this.libraryDataService[dataServiceMethod](data, (returnModel: Core.Model) => {\r\n AnalyticsHelper.logUserAction({\r\n libraryId: this.libraryId,\r\n folderId: this.options.folderId,\r\n id: returnModel.get('id')\r\n }, {\r\n actionType: UserAction.Upload, entity, workflowPhase: WorkflowPhase.Complete, location: LocationContext.Popup\r\n });\r\n this.reloadPage();\r\n });\r\n }\r\n\r\n private onShowDialog(imageType: ImageType): void {\r\n const dialog = new DialogHelper({\r\n title: 'Remove image?',\r\n text: 'Are you sure you want to remove this image?',\r\n buttons: [{\r\n text: 'Remove',\r\n className: 'btn btn-danger',\r\n success: true,\r\n }, {\r\n text: 'Cancel',\r\n className: 'btn btn-secondary',\r\n close: true,\r\n }],\r\n channelName: this.options.channelName\r\n });\r\n\r\n setTimeout(() => dialog.render().done(() => this.removeImage(imageType)), 200);\r\n\r\n this.triggerMethod('hide');\r\n }\r\n\r\n private removeImage(imageType: ImageType): void {\r\n const dataServiceMethod = imageType === ImageType.Banners ? 'deleteBanner' : 'deleteThumbnail';\r\n const imageModel = imageType === ImageType.Banners ? this.currentBanner : this.currentThumbnail;\r\n\r\n const data = {\r\n libraryId: this.libraryId,\r\n folderId: this.model.get('id'),\r\n imageId: imageModel.get('id')\r\n };\r\n\r\n const entity = imageType === ImageType.Banners ? EntityType.Banner : EntityType.Thumbnail;\r\n\r\n this.libraryDataService[dataServiceMethod](data, () => {\r\n AnalyticsHelper.logUserAction({\r\n libraryId: this.libraryId,\r\n folderId: this.model.get('id'),\r\n id: imageModel.get('id')\r\n }, {\r\n actionType: UserAction.Delete, entity, workflowPhase: WorkflowPhase.Complete, location: LocationContext.Popup\r\n });\r\n this.reloadPage();\r\n });\r\n }\r\n\r\n private reloadPage(): void {\r\n const inFolder: boolean = Core.LocationUtils.GetCurrentPath().includes('folders');\r\n\r\n setTimeout(() => Core.AppLinkHelper.trigger({\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: inFolder ? Actions.LibraryEditor.FOLDER : Actions.LibraryEditor.HOME,\r\n args: inFolder ? [this.options.folderId] : undefined\r\n }), 0);\r\n }\r\n\r\n private getCurrentImageId(): string {\r\n if (this.selectedImageType === ImageType.Banners && this.currentBanner)\r\n return this.currentBanner.get('id');\r\n\r\n if (this.selectedImageType === ImageType.Thumbnails && this.currentThumbnail)\r\n return this.currentThumbnail.get('id');\r\n }\r\n\r\n private getCropRegionWidth(): number {\r\n return this.$el.find('.modal-body').width();\r\n }\r\n\r\n private getImageModel(): ImageModel {\r\n return new ImageModel({\r\n dataUrl: this.newImageEl.src,\r\n width: this.newImageEl.width,\r\n height: this.newImageEl.height\r\n });\r\n }\r\n\r\n private renderContent(): void {\r\n if (this.popupContentState !== PopupContentType.Upload)\r\n return;\r\n\r\n this.getUI('backBtn').addClass(styles.hide);\r\n\r\n this.showChildView('content', new EditImagesWrapperComponent({\r\n imageCdnUrl: this.config.get('imageCdnUrl'),\r\n folderName: this.model.get('name'),\r\n bannerImage: this.currentBanner,\r\n thumbnailImage: this.currentThumbnail,\r\n bannerChannel: `${this.channelName}:${ImageType.Banners}`,\r\n thumbnailChannel: `${this.channelName}:${ImageType.Thumbnails}`,\r\n folderId: this.options.folderId\r\n }));\r\n }\r\n\r\n private renderCropper(): void {\r\n if (this.popupContentState !== PopupContentType.Crop)\r\n return;\r\n\r\n this.getUI('backBtn').removeClass(styles.hide);\r\n\r\n this.showChildView('content', new ImageCropperComponent({\r\n model: this.getImageModel(),\r\n channelName: this.channelName,\r\n imageType: this.selectedImageType,\r\n minWidth: ImageMinDimensions[this.selectedImageType].width,\r\n minHeight: ImageMinDimensions[this.selectedImageType].height,\r\n getCropRegionWidth: _.bind(this.getCropRegionWidth, this)\r\n }));\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n dataFetched: !!this.model && !!this.libraryId,\r\n spinnerEl: SpinnerHelper.getSpinner({ size: SpinnerSize.Large, extraClasses: 'mx-auto' })\r\n };\r\n }\r\n\r\n public onBeforeRender(): void {\r\n if (!this.model || !this.libraryId) {\r\n this.model = this.libraryDataService.getFolder(this.options.folderId);\r\n this.libraryDataService.getLibraries((data: LibraryCollection) => this.libraryId = data.first().id);\r\n }\r\n }\r\n\r\n public onRender(): void {\r\n if (!this.model || !this.libraryId) return;\r\n\r\n this.currentBanner = this.model.get('banner');\r\n this.currentThumbnail = this.model.get('thumbnail');\r\n this.renderContent();\r\n }\r\n\r\n public onBeforeDestroy(): void {\r\n this.viewModel.clear();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"hide\":\"cv--hide--5hYaK\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \"<img src=\\\"\"\n + container.escapeExpression(((helper = (helper = helpers.dataUrl || (depth0 != null ? depth0.dataUrl : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"dataUrl\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\\" class=\\\"img img-fluid\\\" />\";\n},\"useData\":true});","import { ObjectHash, Radio } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport Cropper from 'cropperjs';\r\n\r\nimport { Image } from 'shared/models/Image';\r\nimport { ImageType } from 'shared/enums';\r\n\r\nimport ImageCropperTemplate from './ImageCropper.hbs';\r\n\r\nexport enum CropEventNames {\r\n ClickCrop = 'click:crop',\r\n CropImage = 'crop:image',\r\n ImageCropped = 'image:cropped'\r\n}\r\n\r\nexport interface ImageCropperComponentOptions extends Core.ComponentOptions {\r\n channelName: string;\r\n imageType: ImageType;\r\n minHeight: number;\r\n minWidth: number;\r\n getCropRegionWidth: Function;\r\n}\r\n\r\nexport class ImageCropperComponent extends Core.Component<Image> {\r\n public options: ImageCropperComponentOptions;\r\n private cropper: Cropper;\r\n\r\n public constructor(options: ImageCropperComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.listenTo(this.options.channelName, CropEventNames.CropImage, this.crop);\r\n }\r\n\r\n public get name(): string {\r\n return 'ImageCropperComponent';\r\n }\r\n\r\n public get template(): string {\r\n return ImageCropperTemplate;\r\n }\r\n\r\n public get className(): string {\r\n return 'text-center';\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n image: '.img',\r\n };\r\n }\r\n\r\n private getMinCropBoxWidth(): number {\r\n return this.options.minWidth * this.getViewportToImageRatio();\r\n }\r\n\r\n private getMinCropBoxHeight(): number {\r\n return this.options.minHeight * this.getViewportToImageRatio();\r\n }\r\n\r\n private getViewportToImageRatio(): number {\r\n return this.options.getCropRegionWidth() / this.model.get('width');\r\n }\r\n\r\n private crop(): void {\r\n const dataUrl = this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());\r\n Radio.channel(this.options.channelName).trigger(CropEventNames.ImageCropped, dataUrl);\r\n }\r\n\r\n private getImageMimeType(): string {\r\n const dataUrl = this.model.get('dataUrl');\r\n\r\n const mime = dataUrl.match(/data:([a-zA-Z0-9]+\\/[a-zA-Z0-9-.+]+).*,.*/);\r\n\r\n if (!mime) return;\r\n\r\n return mime[1];\r\n }\r\n\r\n private renderCropper(): void {\r\n this.getMinCropBoxWidth();\r\n const image = this.getUI('image').get(0) as HTMLImageElement;\r\n\r\n this.cropper = new Cropper(image, {\r\n viewMode: 1,\r\n aspectRatio: this.options.minWidth / this.options.minHeight,\r\n minCropBoxWidth: this.getMinCropBoxWidth(),\r\n minCropBoxHeight: this.getMinCropBoxHeight(),\r\n autoCropArea: 1\r\n });\r\n }\r\n\r\n public onRender(): void {\r\n this.renderCropper();\r\n }\r\n\r\n public onBeforeDestroy(): void {\r\n this.cropper.destroy();\r\n }\r\n}","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { SpinnerButtonModelAttributes } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\n\r\nexport class DisabledSpinnerModel extends Core.Model {\r\n public defaults(): ObjectHash {\r\n return {\r\n [SpinnerButtonModelAttributes.Disabled]: true\r\n };\r\n }\r\n}"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-image/EditImage.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-image/EditImageComponent.ts","webpack://@clickview/library-editor/./src/apps/library-editor/components/edit-image/edit-image.scss?9b72","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapper.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImages.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.ts","webpack://@clickview/library-editor/./src/apps/library-editor/views/edit-folder-images/edit-folder-images.scss?ff0b","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/image-cropper/ImageCropper.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/models/DisabledSpinnerModel.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA,mKAAmK,wBAAwB,sBAAsB,4TAA4T,aAAa;AAC1hB;AACA,CAAC;AACD;;AAEA;AACA,mKAAmK,mBAAmB,sBAAsB,sSAAsS,aAAa;AAC/f;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,+IAA+I,YAAY,uBAAuB,aAAa;AAC/L;AACA;AACA;AACA,CAAC;AACD,oHAAoH;;AAEpH;AACA,iFAAiF,uBAAuB,aAAa;AACrH;AACA;AACA;AACA,oJAAoJ,qBAAqB,wFAAwF;AACjQ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF,uBAAuB,aAAa;AACvH;AACA;AACA;AACA,uIAAuI,qBAAqB,yEAAyE;AACrO,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,mBAAW,EAAE,KAAK,OAAL,CAAa,QAAb,GAAwB,KAAK,OAAL,CAAa,SAFlB;AAGhC,uBAAe,EAAE,KAAK,kBAAL,EAHe;AAIhC,wBAAgB,EAAE,KAAK,mBAAL,EAJc;AAKhC,oBAAY,EAAE;AALkB,OAAnB,CAAf;AAOD;AApEH;AAAA;AAAA,+BAsEiB;AACb,WAAK,aAAL;AACD;AAxEH;AAAA;AAAA,sCA0EwB;AACpB,WAAK,OAAL,CAAa,OAAb;AACD;AA5EH;AAAA;AAAA,wBAYiB;AACb,aAAO,uBAAP;AACD;AAdH;AAAA;AAAA,wBAgBqB;AACjB,aAAO,wDAAP;AACD;AAlBH;AAAA;AAAA,wBAoBsB;AAClB,aAAO,aAAP;AACD;AAtBH;AAAA;AAAA,wBAwBqB;AACjB,aAAO;AACL,aAAK,EAAE;AADF,OAAP;AAGD;AA5BH;;AAAA;AAAA,EAA2C,8DAAI,CAAC,SAAhD,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtBA;AACA;AAEO,IAAM,oBAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,+BACiB;AACb,iCACG,8GAA4B,CAAC,QADhC,EAC2C,IAD3C;AAGD;AALH;;AAAA;AAAA,EAA0C,8DAAI,CAAC,KAA/C,E","file":"scripts/45.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \" \"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"minimumRecommended\",{\"name\":\"lang\",\"hash\":{\"height\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.recommendedDimensions : stack1)) != null ? stack1.height : stack1),\"width\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.recommendedDimensions : stack1)) != null ? stack1.width : stack1)},\"data\":data}))\n + \"\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \" \"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"minimumActual\",{\"name\":\"lang\",\"hash\":{\"height\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dimensions : stack1)) != null ? stack1.height : stack1),\"width\":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dimensions : stack1)) != null ? stack1.width : stack1)},\"data\":data}))\n + \"\\r\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"<button class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.removeImage : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"remove\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageTypeText : stack1), depth0))\n + \"</button>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"<h6 class=\\\"mb-0\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"edit\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageTypeText : stack1), depth0))\n + \"</h6>\\r\\n<div class=\\\"text-muted mb-1\\\">\\r\\n <em>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.recommendedDimensions : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" </em>\\r\\n</div>\\r\\n<div class=\\\"my-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.imageContainer : stack1), depth0))\n + \"\\\">\\r\\n <div class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.imageElement : stack1), depth0))\n + \"\\\" style=\\\"background-image: url('\"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageUrl : stack1), depth0))\n + \"')\\\"></div>\\r\\n</div>\\r\\n<button class=\\\"btn btn-light my-1\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"upload\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.imageTypeText : stack1), depth0))\n + \"</button>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasImage : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\n\r\nimport { ImageType } from 'shared/enums';\r\nimport { ImageSelectBehavior } from 'shared/behaviors';\r\nimport { ImageHelper } from 'shared/utils';\r\nimport { Banner } from 'shared/models/Banner';\r\nimport { Thumbnail } from 'shared/models/Thumbnail';\r\nimport { ImageMinDimensions, AppChannels, Actions, ImageWarnDimensions } from 'shared/constants';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport EditImageTemplate from './EditImage.hbs';\r\nimport styles from './edit-image.scss';\r\n\r\ninterface EditImageComponentOptions extends Core.ComponentOptions {\r\n imageType: ImageType;\r\n imageCdnUrl: string;\r\n folderName: string;\r\n originalImage: Banner | Thumbnail;\r\n folderId: string;\r\n}\r\n\r\nexport class EditImageComponent extends Core.Component {\r\n public options: EditImageComponentOptions;\r\n\r\n constructor(options: EditImageComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.viewModel = ViewModelService.get('edit:folder:images');\r\n }\r\n\r\n public get name(): string {\r\n return 'EditImageComponent';\r\n }\r\n\r\n public get template(): string {\r\n return EditImageTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'libraryEditor.editImage';\r\n }\r\n\r\n public get className(): string {\r\n return this.options.imageType === ImageType.Thumbnails ? `${styles.thumbnail} mb-2` : `${styles.banner} mt-2`;\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n [`click .${styles.removeImage}`]: 'onClickRemoveImage',\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: ImageSelectBehavior,\r\n channelName: this.options.channelName,\r\n buttonSelector: '.btn-light',\r\n imageType: this.options.imageType,\r\n saveImage: (dataUrl: string, warningShown: boolean) => {\r\n if (!warningShown) {\r\n Radio.channel(this.options.channelName)\r\n .trigger('select:image', dataUrl, this.options.imageType);\r\n return;\r\n }\r\n\r\n this.viewModel.set({\r\n dataUrl: dataUrl,\r\n type: this.options.imageType\r\n });\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.EDIT_FOLDER_IMAGES,\r\n args: [this.options.folderId]\r\n });\r\n }\r\n }];\r\n }\r\n\r\n private onClickRemoveImage(): void {\r\n Radio.channel(this.options.channelName)\r\n .trigger('show:dialog', this.options.imageType);\r\n }\r\n\r\n private getImageUrl(): string {\r\n const methodName = this.options.imageType === ImageType.Banners ? 'createBannerUrl' : 'createFolderThumbnailUrl';\r\n\r\n return ImageHelper[methodName](this.options.originalImage, {\r\n fallbackBaseUrl: this.options.imageCdnUrl,\r\n fallbackCategoryName: this.options.folderName,\r\n type: this.options.imageType\r\n });\r\n }\r\n\r\n private getImageTypeText(): string {\r\n switch (this.options.imageType) {\r\n case ImageType.Banners:\r\n return LanguageService.getPhrase(this.lang, 'banner');\r\n case ImageType.Thumbnails:\r\n return LanguageService.getPhrase(this.lang, 'thumbnail');\r\n }\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n imageUrl: this.getImageUrl(),\r\n hasImage: this.options.originalImage && this.options.originalImage.get('id'),\r\n imageTypeText: this.getImageTypeText(),\r\n dimensions: ImageMinDimensions[this.options.imageType],\r\n recommendedDimensions: ImageWarnDimensions[this.options.imageType]\r\n };\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"removeImage\":\"cv--removeImage--3OmsX\",\"imageElement\":\"cv--imageElement--3kJ8m\",\"banner\":\"cv--banner--uFWnL\",\"thumbnail\":\"cv--thumbnail--3_b6l\",\"imageContainer\":\"cv--imageContainer--1mYjS\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"thumbnail-region\\\"></div>\\r\\n<div class=\\\"dropdown-divider\\\"></div>\\r\\n<div class=\\\"banner-region\\\"></div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { ImageType } from 'shared/enums';\r\nimport { Banner } from 'shared/models/Banner';\r\nimport { Thumbnail } from 'shared/models/Thumbnail';\r\n\r\nimport { EditImageComponent } from 'apps/library-editor/components/edit-image/EditImageComponent';\r\n\r\nimport EditImagesWrapperTemplate from './EditImagesWrapper.hbs';\r\n\r\ninterface EditImagesWrapperComponentOptions extends Core.ComponentOptions {\r\n imageCdnUrl: string;\r\n folderName: string;\r\n bannerImage: Banner;\r\n thumbnailImage: Thumbnail;\r\n bannerChannel: string;\r\n thumbnailChannel: string;\r\n folderId: string;\r\n}\r\n\r\nexport class EditImagesWrapperComponent extends Core.Component {\r\n public options: EditImagesWrapperComponentOptions;\r\n\r\n public constructor(options: EditImagesWrapperComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'EditImagesWrapperComponent';\r\n }\r\n\r\n public get template(): string {\r\n return EditImagesWrapperTemplate;\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n banner: {\r\n el: '.banner-region',\r\n replaceElement: true\r\n },\r\n thumbnail: {\r\n el: '.thumbnail-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n private renderBanner(): void {\r\n this.showChildView('banner', new EditImageComponent({\r\n channelName: this.options.bannerChannel,\r\n imageCdnUrl: this.options.imageCdnUrl,\r\n imageType: ImageType.Banners,\r\n folderName: this.options.folderName,\r\n originalImage: this.options.bannerImage,\r\n folderId: this.options.folderId\r\n }));\r\n }\r\n\r\n private renderThumbnail(): void {\r\n this.showChildView('thumbnail', new EditImageComponent({\r\n channelName: this.options.thumbnailChannel,\r\n imageCdnUrl: this.options.imageCdnUrl,\r\n imageType: ImageType.Thumbnails,\r\n folderName: this.options.folderName,\r\n originalImage: this.options.thumbnailImage,\r\n folderId: this.options.folderId\r\n }));\r\n }\r\n\r\n public onRender(): void {\r\n this.renderBanner();\r\n this.renderThumbnail();\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"content-region\\\"></div>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.spinnerEl : stack1), depth0)) != null ? stack1 : \"\")\n + \"\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dataFetched : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\nimport { EntityType, UserAction, WorkflowPhase, LocationContext } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport { PopupBehavior } from 'shared/behaviors';\r\nimport { Image as ImageModel } from 'shared/models/Image';\r\nimport { Folder } from 'shared/models/Folder';\r\nimport { Thumbnail } from 'shared/models/Thumbnail';\r\nimport { Banner } from 'shared/models/Banner';\r\nimport { Config } from 'shared/models/Config';\r\nimport { DisabledSpinnerModel } from 'shared/models/DisabledSpinnerModel';\r\nimport { RadioChannelHelper, DialogHelper, SpinnerHelper, SpinnerSize } from 'shared/utils';\r\nimport { ImageMinDimensions, DataServices, DataChannels, DataPrefixes, AppChannels, Actions } from 'shared/constants';\r\nimport { ImageType } from 'shared/enums';\r\nimport { ImageCropperComponent, CropEventNames } from 'shared/components/image-cropper/ImageCropperComponent';\r\nimport { SpinnerButtonModelAttributes, SpinnerButtonEvents } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { LibraryCollection } from 'shared/collections/LibraryCollection';\r\n\r\nimport { EditImagesWrapperComponent } from 'apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent';\r\nimport { LibraryDataService } from 'apps/library-editor/services/LibraryDataService';\r\nimport { ImageUploadDataService } from 'apps/upload/services';\r\n\r\nimport styles from './edit-folder-images.scss';\r\nimport EditFolderImagesTemplate from './EditFolderImages.hbs';\r\n\r\nenum PopupContentType { Upload, Crop }\r\n\r\ninterface EditFolderImagesViewOptions extends Core.ViewOptions {\r\n folderId: string;\r\n}\r\n\r\nexport class EditFolderImagesView extends Core.View {\r\n public options: EditFolderImagesViewOptions;\r\n\r\n private libraryId: string;\r\n\r\n public model: Folder;\r\n public config: Config;\r\n private spinnerModel: DisabledSpinnerModel;\r\n private newImageEl: HTMLImageElement;\r\n private currentThumbnail: Thumbnail;\r\n private currentBanner: Banner;\r\n\r\n private libraryDataService: LibraryDataService;\r\n private imageUploadDataService: ImageUploadDataService;\r\n\r\n private selectedImageType: ImageType;\r\n private popupContentState: PopupContentType;\r\n\r\n constructor(options: EditFolderImagesViewOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.popupContentState = PopupContentType.Upload;\r\n\r\n this.viewModel = ViewModelService.get('edit:folder:images');\r\n\r\n if (this.viewModel.get('dataUrl')) {\r\n this.selectedImageType = this.viewModel.get('type');\r\n\r\n this.newImageEl = new Image();\r\n this.newImageEl.src = this.viewModel.get('dataUrl');\r\n\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.Disabled, false);\r\n\r\n this.popupContentState = PopupContentType.Crop;\r\n }\r\n\r\n this.libraryDataService = InstanceManager.getInstance(DataServices.Library, this);\r\n this.imageUploadDataService = InstanceManager.getInstance(DataServices.ImageUpload, this);\r\n\r\n this.bindListeners();\r\n }\r\n\r\n public get name(): string {\r\n return 'EditFolderImagesView';\r\n }\r\n\r\n public get title(): string {\r\n return 'Edit Folder Images';\r\n }\r\n\r\n public get template(): string {\r\n return EditFolderImagesTemplate;\r\n }\r\n\r\n public get channelName(): string {\r\n return RadioChannelHelper.generateUniqueChannelName(this);\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n content: {\r\n el: '.content-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .back-btn': 'onClickBackButton',\r\n 'shown.bs.modal': 'renderCropper',\r\n };\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n backBtn: '.back-btn'\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n title: 'Edit folder images',\r\n behaviorClass: PopupBehavior,\r\n size: 'modal-lg',\r\n buttons: [{ text: 'Back', className: `btn btn-light back-btn ${styles.hide}` }],\r\n spinnerButtonOptions: {\r\n model: this.spinnerModel = new DisabledSpinnerModel(),\r\n channelName: this.channelName,\r\n buttonText: 'Continue',\r\n onClick: this.onClickCrop\r\n }\r\n }];\r\n }\r\n\r\n public get requiredResources(): Core.RequiredResourceHash {\r\n return { config: ConfigDataServiceHelper.config };\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(DataChannels.LIBRARY, `${DataPrefixes.FOLDER}:${this.options.folderId}:sync`, this.render);\r\n\r\n const bannerChannel = `${this.channelName}:${ImageType.Banners}`;\r\n const thumbnailChannel = `${this.channelName}:${ImageType.Thumbnails}`;\r\n\r\n this.listenTo(bannerChannel, 'select:image', (dataUrl: string) => this.onSelectImage(dataUrl, ImageType.Banners));\r\n this.listenTo(thumbnailChannel, 'select:image', (dataUrl: string) => this.onSelectImage(dataUrl, ImageType.Thumbnails));\r\n\r\n this.listenTo(bannerChannel, 'show:dialog', () => this.onShowDialog(ImageType.Banners));\r\n this.listenTo(thumbnailChannel, 'show:dialog', () => this.onShowDialog(ImageType.Thumbnails));\r\n\r\n this.listenTo(bannerChannel, 'image:error', () => this.triggerMethod('hide'));\r\n this.listenTo(thumbnailChannel, 'image:error', () => this.triggerMethod('hide'));\r\n\r\n this.listenTo(this.channelName, CropEventNames.ImageCropped, this.onImageCropped);\r\n }\r\n\r\n private onClickBackButton(): void {\r\n if (this.popupContentState === PopupContentType.Upload) return;\r\n\r\n this.popupContentState = PopupContentType.Upload;\r\n this.selectedImageType = null;\r\n this.newImageEl = null;\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.Disabled, true);\r\n\r\n this.renderContent();\r\n }\r\n\r\n private onClickCrop(): void {\r\n Radio.channel(this.channelName)\r\n .trigger(CropEventNames.CropImage)\r\n .trigger(SpinnerButtonEvents.ShowSpinner);\r\n }\r\n\r\n private onSelectImage(dataUrl: string, imageType: ImageType): void {\r\n this.selectedImageType = imageType;\r\n\r\n this.newImageEl = new Image();\r\n this.newImageEl.src = dataUrl;\r\n\r\n this.popupContentState = PopupContentType.Crop;\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.Disabled, false);\r\n\r\n this.renderCropper();\r\n }\r\n\r\n private onImageCropped(dataUrl: string): void {\r\n this.imageUploadDataService.uploadBase64Image(\r\n dataUrl,\r\n this.selectedImageType,\r\n (data: ImageModel) => this.onImageUploaded(data)\r\n );\r\n }\r\n\r\n private onImageUploaded(imageModel: ImageModel): void {\r\n this.triggerMethod('hide');\r\n\r\n const data = {\r\n libraryId: this.libraryId,\r\n folderId: this.options.folderId,\r\n currentImageId: this.getCurrentImageId(),\r\n imageModel\r\n };\r\n\r\n const entity = this.selectedImageType === ImageType.Banners ? EntityType.Banner : EntityType.Thumbnail;\r\n\r\n const dataServiceMethod = this.selectedImageType === ImageType.Banners ? 'addOrUpdateBanner' : 'addOrUpdateThumbnail';\r\n this.libraryDataService[dataServiceMethod](data, (returnModel: Core.Model) => {\r\n AnalyticsHelper.logUserAction({\r\n libraryId: this.libraryId,\r\n folderId: this.options.folderId,\r\n id: returnModel.get('id')\r\n }, {\r\n actionType: UserAction.Upload, entity, workflowPhase: WorkflowPhase.Complete, location: LocationContext.Popup\r\n });\r\n this.reloadPage();\r\n });\r\n }\r\n\r\n private onShowDialog(imageType: ImageType): void {\r\n const dialog = new DialogHelper({\r\n title: 'Remove image?',\r\n text: 'Are you sure you want to remove this image?',\r\n buttons: [{\r\n text: 'Remove',\r\n className: 'btn btn-danger',\r\n success: true,\r\n }, {\r\n text: 'Cancel',\r\n className: 'btn btn-secondary',\r\n close: true,\r\n }],\r\n channelName: this.options.channelName\r\n });\r\n\r\n setTimeout(() => dialog.render().done(() => this.removeImage(imageType)), 200);\r\n\r\n this.triggerMethod('hide');\r\n }\r\n\r\n private removeImage(imageType: ImageType): void {\r\n const dataServiceMethod = imageType === ImageType.Banners ? 'deleteBanner' : 'deleteThumbnail';\r\n const imageModel = imageType === ImageType.Banners ? this.currentBanner : this.currentThumbnail;\r\n\r\n const data = {\r\n libraryId: this.libraryId,\r\n folderId: this.model.get('id'),\r\n imageId: imageModel.get('id')\r\n };\r\n\r\n const entity = imageType === ImageType.Banners ? EntityType.Banner : EntityType.Thumbnail;\r\n\r\n this.libraryDataService[dataServiceMethod](data, () => {\r\n AnalyticsHelper.logUserAction({\r\n libraryId: this.libraryId,\r\n folderId: this.model.get('id'),\r\n id: imageModel.get('id')\r\n }, {\r\n actionType: UserAction.Delete, entity, workflowPhase: WorkflowPhase.Complete, location: LocationContext.Popup\r\n });\r\n this.reloadPage();\r\n });\r\n }\r\n\r\n private reloadPage(): void {\r\n const inFolder: boolean = Core.LocationUtils.GetCurrentPath().includes('folders');\r\n\r\n setTimeout(() => Core.AppLinkHelper.trigger({\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: inFolder ? Actions.LibraryEditor.FOLDER : Actions.LibraryEditor.HOME,\r\n args: inFolder ? [this.options.folderId] : undefined\r\n }), 0);\r\n }\r\n\r\n private getCurrentImageId(): string {\r\n if (this.selectedImageType === ImageType.Banners && this.currentBanner)\r\n return this.currentBanner.get('id');\r\n\r\n if (this.selectedImageType === ImageType.Thumbnails && this.currentThumbnail)\r\n return this.currentThumbnail.get('id');\r\n }\r\n\r\n private getCropRegionWidth(): number {\r\n return this.$el.find('.modal-body').width();\r\n }\r\n\r\n private getImageModel(): ImageModel {\r\n return new ImageModel({\r\n dataUrl: this.newImageEl.src,\r\n width: this.newImageEl.width,\r\n height: this.newImageEl.height\r\n });\r\n }\r\n\r\n private renderContent(): void {\r\n if (this.popupContentState !== PopupContentType.Upload)\r\n return;\r\n\r\n this.getUI('backBtn').addClass(styles.hide);\r\n\r\n this.showChildView('content', new EditImagesWrapperComponent({\r\n imageCdnUrl: this.config.get('imageCdnUrl'),\r\n folderName: this.model.get('name'),\r\n bannerImage: this.currentBanner,\r\n thumbnailImage: this.currentThumbnail,\r\n bannerChannel: `${this.channelName}:${ImageType.Banners}`,\r\n thumbnailChannel: `${this.channelName}:${ImageType.Thumbnails}`,\r\n folderId: this.options.folderId\r\n }));\r\n }\r\n\r\n private renderCropper(): void {\r\n if (this.popupContentState !== PopupContentType.Crop)\r\n return;\r\n\r\n this.getUI('backBtn').removeClass(styles.hide);\r\n\r\n this.showChildView('content', new ImageCropperComponent({\r\n model: this.getImageModel(),\r\n channelName: this.channelName,\r\n imageType: this.selectedImageType,\r\n minWidth: ImageMinDimensions[this.selectedImageType].width,\r\n minHeight: ImageMinDimensions[this.selectedImageType].height,\r\n getCropRegionWidth: _.bind(this.getCropRegionWidth, this)\r\n }));\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n dataFetched: !!this.model && !!this.libraryId,\r\n spinnerEl: SpinnerHelper.getSpinner({ size: SpinnerSize.Large, extraClasses: 'mx-auto' })\r\n };\r\n }\r\n\r\n public onBeforeRender(): void {\r\n if (!this.model || !this.libraryId) {\r\n this.model = this.libraryDataService.getFolder(this.options.folderId);\r\n this.libraryDataService.getLibraries((data: LibraryCollection) => this.libraryId = data.first().id);\r\n }\r\n }\r\n\r\n public onRender(): void {\r\n if (!this.model || !this.libraryId) return;\r\n\r\n this.currentBanner = this.model.get('banner');\r\n this.currentThumbnail = this.model.get('thumbnail');\r\n this.renderContent();\r\n }\r\n\r\n public onBeforeDestroy(): void {\r\n this.viewModel.clear();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"hide\":\"cv--hide--5hYaK\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \"<img src=\\\"\"\n + container.escapeExpression(((helper = (helper = helpers.dataUrl || (depth0 != null ? depth0.dataUrl : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"dataUrl\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\\" class=\\\"img img-fluid\\\" />\";\n},\"useData\":true});","import { ObjectHash, Radio } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport Cropper from 'cropperjs';\r\n\r\nimport { Image } from 'shared/models/Image';\r\nimport { ImageType } from 'shared/enums';\r\n\r\nimport ImageCropperTemplate from './ImageCropper.hbs';\r\n\r\nexport enum CropEventNames {\r\n ClickCrop = 'click:crop',\r\n CropImage = 'crop:image',\r\n ImageCropped = 'image:cropped'\r\n}\r\n\r\nexport interface ImageCropperComponentOptions extends Core.ComponentOptions {\r\n channelName: string;\r\n imageType: ImageType;\r\n minHeight: number;\r\n minWidth: number;\r\n getCropRegionWidth: Function;\r\n}\r\n\r\nexport class ImageCropperComponent extends Core.Component<Image> {\r\n public options: ImageCropperComponentOptions;\r\n private cropper: Cropper;\r\n\r\n public constructor(options: ImageCropperComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.listenTo(this.options.channelName, CropEventNames.CropImage, this.crop);\r\n }\r\n\r\n public get name(): string {\r\n return 'ImageCropperComponent';\r\n }\r\n\r\n public get template(): string {\r\n return ImageCropperTemplate;\r\n }\r\n\r\n public get className(): string {\r\n return 'text-center';\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n image: '.img',\r\n };\r\n }\r\n\r\n private getMinCropBoxWidth(): number {\r\n return this.options.minWidth * this.getViewportToImageRatio();\r\n }\r\n\r\n private getMinCropBoxHeight(): number {\r\n return this.options.minHeight * this.getViewportToImageRatio();\r\n }\r\n\r\n private getViewportToImageRatio(): number {\r\n return this.options.getCropRegionWidth() / this.model.get('width');\r\n }\r\n\r\n private crop(): void {\r\n const dataUrl = this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());\r\n Radio.channel(this.options.channelName).trigger(CropEventNames.ImageCropped, dataUrl);\r\n }\r\n\r\n private getImageMimeType(): string {\r\n const dataUrl = this.model.get('dataUrl');\r\n\r\n const mime = dataUrl.match(/data:([a-zA-Z0-9]+\\/[a-zA-Z0-9-.+]+).*,.*/);\r\n\r\n if (!mime) return;\r\n\r\n return mime[1];\r\n }\r\n\r\n private renderCropper(): void {\r\n this.getMinCropBoxWidth();\r\n const image = this.getUI('image').get(0) as HTMLImageElement;\r\n\r\n this.cropper = new Cropper(image, {\r\n viewMode: 1,\r\n aspectRatio: this.options.minWidth / this.options.minHeight,\r\n minCropBoxWidth: this.getMinCropBoxWidth(),\r\n minCropBoxHeight: this.getMinCropBoxHeight(),\r\n autoCropArea: 1\r\n });\r\n }\r\n\r\n public onRender(): void {\r\n this.renderCropper();\r\n }\r\n\r\n public onBeforeDestroy(): void {\r\n this.cropper.destroy();\r\n }\r\n}","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { SpinnerButtonModelAttributes } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\n\r\nexport class DisabledSpinnerModel extends Core.Model {\r\n public defaults(): ObjectHash {\r\n return {\r\n [SpinnerButtonModelAttributes.Disabled]: true\r\n };\r\n }\r\n}"],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[46],{1038:function(t,n,e){"use strict";e.d(n,"a",(function(){return g}));var r=e(2),o=e(29),i=e(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(u,t);var n,e,o,a=s(u);function u(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,n}return n=u,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"\n </p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&l(n.prototype,e),o&&l(n,o),u}(o.a)},1075:function(t,n,e){"use strict";e(277);var r=e(2),o=e(29),i=e(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(u,t);var n,e,o,a=s(u);function u(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,i.a.getPhrase(p,"title"))}return n=u,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&l(n.prototype,e),o&&l(n,o),u}(o.a);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,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function d(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=v(t);if(n){var o=v(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b(this,e)}}function b(t,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&m(t,n)}(l,t);var n,e,o,a=d(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return n=l,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}}])&&h(n.prototype,e),o&&h(n,o),l}(o.a);function S(t){return(S="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 w(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,n){return(k=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function P(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=R(t);if(n){var o=R(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)}}function _(t,n){return!n||"object"!==S(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&k(t,n)}(l,t);var n,e,o,a=P(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return n=l,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}}])&&w(n.prototype,e),o&&w(n,o),l}(o.a);e(1038);e.d(n,"a",(function(){return g})),e.d(n,"c",(function(){return O})),e.d(n,"b",(function(){return E})),e.d(n,"a",(function(){return g}))},1343:function(t,n,e){t.exports={start:"GpK3N",subtitle:"_2tQJA",options:"BxsJX",optionHeader:"_2OS3h",optionText:"_1sNAq",image:"xsCzA",infoMessage:"_3jOln",migrationBanner:"n_A_A",migrationBadge:"plIse",migrationContainer:"_33xeg"}},1344:function(t,n,e){var r=e(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,r,o){t.propertyIsEnumerable;var i,a=null!=n?n:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,s=t.lambda;return'<div class="m-4">\r\n <h4>'+c((e.lang||n&&n.lang||l).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n <div class="text-left mt-3">\r\n <p class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.subtitle:i,n))+' text-center">'+c((e.lang||n&&n.lang||l).call(a,"question",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <img src="/images/migrate.png" class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.image:i,n))+' w-50 d-block p-2">\r\n\r\n <p class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.options:i,n))+' mt-3">'+c((e.lang||n&&n.lang||l).call(a,"options",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="smart" value="1" name="options">\r\n <label for="smart" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOption",{name:"lang",hash:{},data:o}))+' <span class="badge '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBadge:i,n))+' ml-2">'+c((e.lang||n&&n.lang||l).call(a,"recommended",{name:"lang",hash:{},data:o}))+'</span></label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="all" value="3" name="options">\r\n <label for="all" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="fresh" value="2" name="options">\r\n <label for="fresh" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOptionInfo",{name:"lang",hash:{},data:o}))+"</span>\r\n </div>\r\n <div>\r\n "+(null!=(i=(e.lang||n&&n.lang||l).call(a,"support",{name:"lang",hash:{supportUrl:null!=(i=null!=n?n.options:n)?i.supportUrl:i,className:"info-link"},data:o}))?i:"")+'\r\n </div>\r\n </div>\r\n\r\n <div class="save-region"></div>\r\n <div class="smart-select-waiting-message" style="display: none;">\r\n <p class="mt-2">'+c((e.lang||n&&n.lang||l).call(a,"waiting",{name:"lang",hash:{},data:o}))+'</p>\r\n <p class="mt-2 smart-count"></p>\r\n </div>\r\n</div>\r\n<div class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBanner:i,n))+" p-3 text-white "+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoMessage:i,n))+'">\r\n '+c((e.lang||n&&n.lang||l).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</div>"},useData:!0})},1429:function(t,n,e){"use strict";e.r(n),e.d(n,"StartView",(function(){return x}));var r=e(7),o=e(3),i=e(2),a=e(5),l=e(28),c=e(89),s=e(274),u=e(238),f=e(180),p=e(0),g=e(12),y=e(45),h=e(82),m=e(1075),d=e(1038),b=e(1343),v=e.n(b),O=e(1344),S=e.n(O);function w(t){return(w="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 k(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function P(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,n){return(_=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function R(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=M(t);if(n){var o=M(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return E(this,e)}}function E(t,n){return!n||"object"!==w(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&_(t,n)}(w,t);var n,e,b,O=R(w);function w(){return k(this,w),O.apply(this,arguments)}return n=w,(e=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(p.g.MigrationVideo,this),this.selectedVideoService=a.a.getInstance(p.x.SelectedVideo,this),this.initViewModel(),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(p.e.MIGRATION,"".concat(p.f.CUSTOMER_SMART_VIDEOS,":error"),this.onSmartMigrationError)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"initViewModel",value:function(){this.viewModel=l.a.get("".concat(this.name,":viewmodel"),{option:y.c.Smart},{ctor:h.e})}},{key:"viewOptions",value:function(){return{styles:v.a,supportUrl:c.a.safeUrlConcat(this.config.get("supportSiteUrl"),p.y.MIGRATION_OPTIONS)}}},{key:"onClickContinue",value:function(){switch(this.listenTo(p.e.MIGRATION,"".concat(p.f.CUSTOMER_VIDEOS,":finalise:all:error"),this.onFinaliseError),r.Radio.channel(this.channelName).trigger(u.b.ShowSpinner),+this.viewModel.get("option")){case y.c.Smart:this.startSmartMigrationPaginated();break;case y.c.Full:this.startFullMigration();break;case y.c.Scratch:this.startScratchMigration()}}},{key:"startScratchMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(y.c.Scratch,(function(){t.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){i.a.AppLinkHelper.trigger({application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.HOME})}))}))}},{key:"startFullMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(y.c.Full,(function(){t.migrationVideoDataService.finaliseAllVideos((function(n){t.migrationVideoDataService.getCustomerMetadata((function(t){t.set("finalisationTask",n.toJSON()),i.a.AppLinkHelper.trigger({application:p.b.MIGRATION_WIZARD,action:p.a.MigrationWizard.PROGRESS,args:[n.get("id")],params:{initialMigration:!0}})}))}))}))}},{key:"startSmartMigrationPaginated",value:function(){var t=this,n=window.setTimeout((function(){var n=t.getUI("waitingMessage");n&&n.show()}),2e3);this.selectedVideoService.removeAllSelectedVideos(),this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect((function(n){var e="<strong>".concat(o.a.getPhrase(t.lang,"progress",{count:n}),"</strong>");t.getUI("smartCount").html(e)}),(function(e){window.clearTimeout(n),t.selectedVideoService.addSmartSelectedVideos(e),i.a.AppLinkHelper.trigger({application:p.b.MIGRATION_WIZARD,action:p.a.MigrationWizard.SMART})}))}},{key:"onSmartMigrationError",value:function(){i.a.ErrorHelper.throw(new d.a(this.config.get("supportSiteUrl")))}},{key:"onFinaliseError",value:function(){i.a.ErrorHelper.throw(new m.b)}},{key:"renderSaveButton",value:function(){var t=new u.a({saveEvent:"continue",channelName:this.channelName,buttonText:o.a.getPhrase(this.lang,"continue"),extraButtonClass:"btn-lg btn-primary mt-3",spinnerOptions:{size:g.r.Medium,type:g.s.Light,extraClasses:"mx-auto"}});this.showChildView("save",t)}},{key:"onRender",value:function(){this.renderSaveButton()}},{key:"name",get:function(){return"StartView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.start"}},{key:"className",get:function(){return"".concat(v.a.migrationContainer," text-center bg-white ").concat(v.a.start)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return S.a}},{key:"bindings",get:function(){return{"input[name=options]":"option"}}},{key:"behaviors",get:function(){return[{behaviorClass:s.g,bindViewModel:!0}]}},{key:"elements",get:function(){return{continue:".continue",waitingMessage:".smart-select-waiting-message",smartCount:".smart-count"}}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&P(n.prototype,e),b&&P(n,b),w}(i.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[46],{1050:function(t,n,e){"use strict";e.d(n,"a",(function(){return g}));var r=e(2),o=e(31),i=e(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(u,t);var n,e,o,a=s(u);function u(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,n}return n=u,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"\n </p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&l(n.prototype,e),o&&l(n,o),u}(o.a)},1087:function(t,n,e){"use strict";e(284);var r=e(2),o=e(31),i=e(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(u,t);var n,e,o,a=s(u);function u(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,i.a.getPhrase(p,"title"))}return n=u,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&l(n.prototype,e),o&&l(n,o),u}(o.a);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,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function d(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=v(t);if(n){var o=v(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b(this,e)}}function b(t,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&m(t,n)}(l,t);var n,e,o,a=d(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return n=l,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}}])&&h(n.prototype,e),o&&h(n,o),l}(o.a);function S(t){return(S="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 w(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,n){return(k=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function P(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=R(t);if(n){var o=R(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)}}function _(t,n){return!n||"object"!==S(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&k(t,n)}(l,t);var n,e,o,a=P(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return n=l,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}}])&&w(n.prototype,e),o&&w(n,o),l}(o.a);e(1050);e.d(n,"a",(function(){return g})),e.d(n,"c",(function(){return O})),e.d(n,"b",(function(){return E})),e.d(n,"a",(function(){return g}))},1355:function(t,n,e){t.exports={start:"GpK3N",subtitle:"_2tQJA",options:"BxsJX",optionHeader:"_2OS3h",optionText:"_1sNAq",image:"xsCzA",infoMessage:"_3jOln",migrationBanner:"n_A_A",migrationBadge:"plIse",migrationContainer:"_33xeg"}},1356:function(t,n,e){var r=e(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,r,o){t.propertyIsEnumerable;var i,a=null!=n?n:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,s=t.lambda;return'<div class="m-4">\r\n <h4>'+c((e.lang||n&&n.lang||l).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n <div class="text-left mt-3">\r\n <p class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.subtitle:i,n))+' text-center">'+c((e.lang||n&&n.lang||l).call(a,"question",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <img src="/images/migrate.png" class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.image:i,n))+' w-50 d-block p-2">\r\n\r\n <p class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.options:i,n))+' mt-3">'+c((e.lang||n&&n.lang||l).call(a,"options",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="smart" value="1" name="options">\r\n <label for="smart" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOption",{name:"lang",hash:{},data:o}))+' <span class="badge '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBadge:i,n))+' ml-2">'+c((e.lang||n&&n.lang||l).call(a,"recommended",{name:"lang",hash:{},data:o}))+'</span></label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="all" value="3" name="options">\r\n <label for="all" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="fresh" value="2" name="options">\r\n <label for="fresh" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOptionInfo",{name:"lang",hash:{},data:o}))+"</span>\r\n </div>\r\n <div>\r\n "+(null!=(i=(e.lang||n&&n.lang||l).call(a,"support",{name:"lang",hash:{supportUrl:null!=(i=null!=n?n.options:n)?i.supportUrl:i,className:"info-link"},data:o}))?i:"")+'\r\n </div>\r\n </div>\r\n\r\n <div class="save-region"></div>\r\n <div class="smart-select-waiting-message" style="display: none;">\r\n <p class="mt-2">'+c((e.lang||n&&n.lang||l).call(a,"waiting",{name:"lang",hash:{},data:o}))+'</p>\r\n <p class="mt-2 smart-count"></p>\r\n </div>\r\n</div>\r\n<div class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBanner:i,n))+" p-3 text-white "+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoMessage:i,n))+'">\r\n '+c((e.lang||n&&n.lang||l).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</div>"},useData:!0})},1441:function(t,n,e){"use strict";e.r(n),e.d(n,"StartView",(function(){return x}));var r=e(7),o=e(3),i=e(2),a=e(5),l=e(30),c=e(81),s=e(281),u=e(244),f=e(186),p=e(0),g=e(13),y=e(47),h=e(87),m=e(1087),d=e(1050),b=e(1355),v=e.n(b),O=e(1356),S=e.n(O);function w(t){return(w="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 k(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function P(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,n){return(_=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function R(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=M(t);if(n){var o=M(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return E(this,e)}}function E(t,n){return!n||"object"!==w(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&_(t,n)}(w,t);var n,e,b,O=R(w);function w(){return k(this,w),O.apply(this,arguments)}return n=w,(e=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(p.g.MigrationVideo,this),this.selectedVideoService=a.a.getInstance(p.x.SelectedVideo,this),this.initViewModel(),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(p.e.MIGRATION,"".concat(p.f.CUSTOMER_SMART_VIDEOS,":error"),this.onSmartMigrationError)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"initViewModel",value:function(){this.viewModel=l.a.get("".concat(this.name,":viewmodel"),{option:y.c.Smart},{ctor:h.e})}},{key:"viewOptions",value:function(){return{styles:v.a,supportUrl:c.a.safeUrlConcat(this.config.get("supportSiteUrl"),p.y.MIGRATION_OPTIONS)}}},{key:"onClickContinue",value:function(){switch(this.listenTo(p.e.MIGRATION,"".concat(p.f.CUSTOMER_VIDEOS,":finalise:all:error"),this.onFinaliseError),r.Radio.channel(this.channelName).trigger(u.b.ShowSpinner),+this.viewModel.get("option")){case y.c.Smart:this.startSmartMigrationPaginated();break;case y.c.Full:this.startFullMigration();break;case y.c.Scratch:this.startScratchMigration()}}},{key:"startScratchMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(y.c.Scratch,(function(){t.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){i.a.AppLinkHelper.trigger({application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.HOME})}))}))}},{key:"startFullMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(y.c.Full,(function(){t.migrationVideoDataService.finaliseAllVideos((function(n){t.migrationVideoDataService.getCustomerMetadata((function(t){t.set("finalisationTask",n.toJSON()),i.a.AppLinkHelper.trigger({application:p.b.MIGRATION_WIZARD,action:p.a.MigrationWizard.PROGRESS,args:[n.get("id")],params:{initialMigration:!0}})}))}))}))}},{key:"startSmartMigrationPaginated",value:function(){var t=this,n=window.setTimeout((function(){var n=t.getUI("waitingMessage");n&&n.show()}),2e3);this.selectedVideoService.removeAllSelectedVideos(),this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect((function(n){var e="<strong>".concat(o.a.getPhrase(t.lang,"progress",{count:n}),"</strong>");t.getUI("smartCount").html(e)}),(function(e){window.clearTimeout(n),t.selectedVideoService.addSmartSelectedVideos(e),i.a.AppLinkHelper.trigger({application:p.b.MIGRATION_WIZARD,action:p.a.MigrationWizard.SMART})}))}},{key:"onSmartMigrationError",value:function(){i.a.ErrorHelper.throw(new d.a(this.config.get("supportSiteUrl")))}},{key:"onFinaliseError",value:function(){i.a.ErrorHelper.throw(new m.b)}},{key:"renderSaveButton",value:function(){var t=new u.a({saveEvent:"continue",channelName:this.channelName,buttonText:o.a.getPhrase(this.lang,"continue"),extraButtonClass:"btn-lg btn-primary mt-3",spinnerOptions:{size:g.r.Medium,type:g.s.Light,extraClasses:"mx-auto"}});this.showChildView("save",t)}},{key:"onRender",value:function(){this.renderSaveButton()}},{key:"name",get:function(){return"StartView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.start"}},{key:"className",get:function(){return"".concat(v.a.migrationContainer," text-center bg-white ").concat(v.a.start)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return S.a}},{key:"bindings",get:function(){return{"input[name=options]":"option"}}},{key:"behaviors",get:function(){return[{behaviorClass:s.g,bindViewModel:!0}]}},{key:"elements",get:function(){return{continue:".continue",waitingMessage:".smart-select-waiting-message",smartCount:".smart-count"}}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&P(n.prototype,e),b&&P(n,b),w}(i.a.View)}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[46],{1046:function(t,n,e){"use strict";e.d(n,"a",(function(){return g}));var r=e(2),o=e(31),i=e(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(u,t);var n,e,o,a=s(u);function u(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,n}return n=u,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"\n </p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&l(n.prototype,e),o&&l(n,o),u}(o.a)},1083:function(t,n,e){"use strict";e(284);var r=e(2),o=e(31),i=e(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(u,t);var n,e,o,a=s(u);function u(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,i.a.getPhrase(p,"title"))}return n=u,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&l(n.prototype,e),o&&l(n,o),u}(o.a);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,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function d(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=v(t);if(n){var o=v(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b(this,e)}}function b(t,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&m(t,n)}(l,t);var n,e,o,a=d(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return n=l,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}}])&&h(n.prototype,e),o&&h(n,o),l}(o.a);function S(t){return(S="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 w(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,n){return(k=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function P(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=R(t);if(n){var o=R(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)}}function _(t,n){return!n||"object"!==S(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&k(t,n)}(l,t);var n,e,o,a=P(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return n=l,(e=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}}])&&w(n.prototype,e),o&&w(n,o),l}(o.a);e(1046);e.d(n,"a",(function(){return g})),e.d(n,"c",(function(){return O})),e.d(n,"b",(function(){return E})),e.d(n,"a",(function(){return g}))},1351:function(t,n,e){t.exports={start:"GpK3N",subtitle:"_2tQJA",options:"BxsJX",optionHeader:"_2OS3h",optionText:"_1sNAq",image:"xsCzA",infoMessage:"_3jOln",migrationBanner:"n_A_A",migrationBadge:"plIse",migrationContainer:"_33xeg"}},1352:function(t,n,e){var r=e(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,r,o){t.propertyIsEnumerable;var i,a=null!=n?n:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,s=t.lambda;return'<div class="m-4">\r\n <h4>'+c((e.lang||n&&n.lang||l).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n <div class="text-left mt-3">\r\n <p class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.subtitle:i,n))+' text-center">'+c((e.lang||n&&n.lang||l).call(a,"question",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <img src="/images/migrate.png" class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.image:i,n))+' w-50 d-block p-2">\r\n\r\n <p class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.options:i,n))+' mt-3">'+c((e.lang||n&&n.lang||l).call(a,"options",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="smart" value="1" name="options">\r\n <label for="smart" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOption",{name:"lang",hash:{},data:o}))+' <span class="badge '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBadge:i,n))+' ml-2">'+c((e.lang||n&&n.lang||l).call(a,"recommended",{name:"lang",hash:{},data:o}))+'</span></label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="all" value="3" name="options">\r\n <label for="all" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="fresh" value="2" name="options">\r\n <label for="fresh" class="mb-1 '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOptionInfo",{name:"lang",hash:{},data:o}))+"</span>\r\n </div>\r\n <div>\r\n "+(null!=(i=(e.lang||n&&n.lang||l).call(a,"support",{name:"lang",hash:{supportUrl:null!=(i=null!=n?n.options:n)?i.supportUrl:i,className:"info-link"},data:o}))?i:"")+'\r\n </div>\r\n </div>\r\n\r\n <div class="save-region"></div>\r\n <div class="smart-select-waiting-message" style="display: none;">\r\n <p class="mt-2">'+c((e.lang||n&&n.lang||l).call(a,"waiting",{name:"lang",hash:{},data:o}))+'</p>\r\n <p class="mt-2 smart-count"></p>\r\n </div>\r\n</div>\r\n<div class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBanner:i,n))+" p-3 text-white "+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoMessage:i,n))+'">\r\n '+c((e.lang||n&&n.lang||l).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</div>"},useData:!0})},1437:function(t,n,e){"use strict";e.r(n),e.d(n,"StartView",(function(){return x}));var r=e(7),o=e(3),i=e(2),a=e(5),l=e(30),c=e(75),s=e(281),u=e(244),f=e(186),p=e(0),g=e(13),y=e(47),h=e(87),m=e(1083),d=e(1046),b=e(1351),v=e.n(b),O=e(1352),S=e.n(O);function w(t){return(w="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 k(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function P(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,n){return(_=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function R(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=M(t);if(n){var o=M(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return E(this,e)}}function E(t,n){return!n||"object"!==w(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&_(t,n)}(w,t);var n,e,b,O=R(w);function w(){return k(this,w),O.apply(this,arguments)}return n=w,(e=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(p.g.MigrationVideo,this),this.selectedVideoService=a.a.getInstance(p.x.SelectedVideo,this),this.initViewModel(),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(p.e.MIGRATION,"".concat(p.f.CUSTOMER_SMART_VIDEOS,":error"),this.onSmartMigrationError)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"initViewModel",value:function(){this.viewModel=l.a.get("".concat(this.name,":viewmodel"),{option:y.c.Smart},{ctor:h.e})}},{key:"viewOptions",value:function(){return{styles:v.a,supportUrl:c.a.safeUrlConcat(this.config.get("supportSiteUrl"),p.y.MIGRATION_OPTIONS)}}},{key:"onClickContinue",value:function(){switch(this.listenTo(p.e.MIGRATION,"".concat(p.f.CUSTOMER_VIDEOS,":finalise:all:error"),this.onFinaliseError),r.Radio.channel(this.channelName).trigger(u.b.ShowSpinner),+this.viewModel.get("option")){case y.c.Smart:this.startSmartMigrationPaginated();break;case y.c.Full:this.startFullMigration();break;case y.c.Scratch:this.startScratchMigration()}}},{key:"startScratchMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(y.c.Scratch,(function(){t.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){i.a.AppLinkHelper.trigger({application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.HOME})}))}))}},{key:"startFullMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(y.c.Full,(function(){t.migrationVideoDataService.finaliseAllVideos((function(n){t.migrationVideoDataService.getCustomerMetadata((function(t){t.set("finalisationTask",n.toJSON()),i.a.AppLinkHelper.trigger({application:p.b.MIGRATION_WIZARD,action:p.a.MigrationWizard.PROGRESS,args:[n.get("id")],params:{initialMigration:!0}})}))}))}))}},{key:"startSmartMigrationPaginated",value:function(){var t=this,n=window.setTimeout((function(){var n=t.getUI("waitingMessage");n&&n.show()}),2e3);this.selectedVideoService.removeAllSelectedVideos(),this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect((function(n){var e="<strong>".concat(o.a.getPhrase(t.lang,"progress",{count:n}),"</strong>");t.getUI("smartCount").html(e)}),(function(e){window.clearTimeout(n),t.selectedVideoService.addSmartSelectedVideos(e),i.a.AppLinkHelper.trigger({application:p.b.MIGRATION_WIZARD,action:p.a.MigrationWizard.SMART})}))}},{key:"onSmartMigrationError",value:function(){i.a.ErrorHelper.throw(new d.a(this.config.get("supportSiteUrl")))}},{key:"onFinaliseError",value:function(){i.a.ErrorHelper.throw(new m.b)}},{key:"renderSaveButton",value:function(){var t=new u.a({saveEvent:"continue",channelName:this.channelName,buttonText:o.a.getPhrase(this.lang,"continue"),extraButtonClass:"btn-lg btn-primary mt-3",spinnerOptions:{size:g.r.Medium,type:g.s.Light,extraClasses:"mx-auto"}});this.showChildView("save",t)}},{key:"onRender",value:function(){this.renderSaveButton()}},{key:"name",get:function(){return"StartView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.start"}},{key:"className",get:function(){return"".concat(v.a.migrationContainer," text-center bg-white ").concat(v.a.start)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return S.a}},{key:"bindings",get:function(){return{"input[name=options]":"option"}}},{key:"behaviors",get:function(){return[{behaviorClass:s.g,bindViewModel:!0}]}},{key:"elements",get:function(){return{continue:".continue",waitingMessage:".smart-select-waiting-message",smartCount:".smart-count"}}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&P(n.prototype,e),b&&P(n,b),w}(i.a.View)}}]);
|
package/dist/scripts/46.chunk.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[46],{
|
|
2
2
|
|
|
3
3
|
/***/ "../../libs/shared/src/legacy/components/pagination/Pagination.hbs":
|
|
4
|
-
|
|
5
|
-
!*** C:/ClickView Projects
|
|
6
|
-
|
|
4
|
+
/*!*************************************************************************************************************!*\
|
|
5
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/pagination/Pagination.hbs ***!
|
|
6
|
+
\*************************************************************************************************************/
|
|
7
7
|
/*! no static exports found */
|
|
8
8
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9
9
|
|
|
@@ -27,9 +27,9 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co
|
|
|
27
27
|
/***/ }),
|
|
28
28
|
|
|
29
29
|
/***/ "../../libs/shared/src/legacy/components/pagination/PaginationComponent.ts":
|
|
30
|
-
|
|
31
|
-
!*** C:/ClickView Projects
|
|
32
|
-
|
|
30
|
+
/*!*********************************************************************************************************************!*\
|
|
31
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/pagination/PaginationComponent.ts ***!
|
|
32
|
+
\*********************************************************************************************************************/
|
|
33
33
|
/*! exports provided: PaginationComponent */
|
|
34
34
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35
35
|
|