@clickview/library-editor 1.36.3-rc.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/css/{1086-library-editor-94fe16a767.chunk.css → 1086-library-editor-16433e84cc.chunk.css} +1 -1
- package/dist/css/{2692-library-editor-94fe16a767.chunk.css → 2692-library-editor-16433e84cc.chunk.css} +1 -1
- package/dist/css/{5424-library-editor-45fe8aa867.chunk.css → 5424-library-editor-4b2c3956d3.chunk.css} +1 -1
- package/dist/css/{6732-library-editor-3fc91a63f1.chunk.css → 6732-library-editor-ff2e50018b.chunk.css} +1 -1
- package/dist/css/{6909-library-editor-7d43d475ea.chunk.css → 6909-library-editor-d0f7f345f1.chunk.css} +1 -1
- package/dist/css/{8906-library-editor-94fe16a767.chunk.css → 8762-library-editor-16433e84cc.chunk.css} +1 -1
- package/dist/css/{8762-library-editor-94fe16a767.chunk.css → 8906-library-editor-16433e84cc.chunk.css} +1 -1
- package/dist/css/{9219-library-editor-733ee863a9.chunk.css → 9219-library-editor-4fe948138f.chunk.css} +1 -1
- package/dist/css/{9383-library-editor-5408667f0b.chunk.css → 9383-library-editor-59825bfab3.chunk.css} +1 -1
- package/dist/scripts/{1269-59329ebe98.chunk.js → 1269-1ce9a7902d.chunk.js} +1 -1
- package/dist/scripts/5418-57159c045d.chunk.js +1 -0
- package/dist/scripts/5698-11224503e0.chunk.js +1 -0
- package/dist/scripts/{6909-20240f4be9.chunk.js → 6909-b3b2a456a7.chunk.js} +1 -1
- package/dist/scripts/8906-350dcfffce.chunk.js +1 -0
- package/dist/scripts/9383-e62f4e2bde.chunk.js +1 -0
- package/dist/scripts/{bundle-cbed16065a.min.js → bundle-f050b9f79b.min.js} +2 -2
- package/package.json +1 -1
- package/dist/scripts/5418-b2f5086c8e.chunk.js +0 -1
- package/dist/scripts/5698-79c7c12ba7.chunk.js +0 -1
- package/dist/scripts/8906-2a2b84a852.chunk.js +0 -1
- package/dist/scripts/9383-c6b4da8c47.chunk.js +0 -1
- /package/dist/scripts/{1086-fb98e2c0c9.chunk.js → 1086-de1bfc7424.chunk.js} +0 -0
- /package/dist/scripts/{2692-603712bf67.chunk.js → 2692-69a5735ead.chunk.js} +0 -0
- /package/dist/scripts/{5424-bc1d8233fd.chunk.js → 5424-c86993f63e.chunk.js} +0 -0
- /package/dist/scripts/{6732-65baa40e10.chunk.js → 6732-ecbdd44059.chunk.js} +0 -0
- /package/dist/scripts/{6909-20240f4be9.chunk.js.LICENSE.txt → 6909-b3b2a456a7.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8762-09a4342c9a.chunk.js → 8762-b6f18526e7.chunk.js} +0 -0
- /package/dist/scripts/{9219-364398ccd3.chunk.js → 9219-3fcebeb8cb.chunk.js} +0 -0
- /package/dist/scripts/{bundle-cbed16065a.min.js.LICENSE.txt → bundle-f050b9f79b.min.js.LICENSE.txt} +0 -0
package/dist/bundles.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.375rem;line-height:1.5rem;box-shadow:.1875rem .125rem 10px rgba(51,51,51,.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
2
2
|
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:.5}
|
|
3
3
|
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:#000;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.3125rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
4
|
-
.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
4
|
+
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh;cursor:pointer}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.375rem;line-height:1.5rem;box-shadow:.1875rem .125rem 10px rgba(51,51,51,.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
2
2
|
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:.5}
|
|
3
3
|
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:#000;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.3125rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
4
|
-
.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
4
|
+
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh;cursor:pointer}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.375rem;line-height:1.5rem;box-shadow:.1875rem .125rem 10px rgba(51,51,51,.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
2
2
|
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:.5}
|
|
3
3
|
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:#000;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.3125rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
4
|
-
.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
4
|
+
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh;cursor:pointer}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
5
5
|
.oKdKI{max-width:100%;max-height:50vh;overflow-y:scroll}.fTeoW{padding-right:2rem;overflow-y:hidden;cursor:pointer}.fTeoW::after{position:absolute;right:.75rem;top:50%;margin-top:-0.15em}.gZbQ4{color:#b5b5b5;cursor:default}.gZbQ4 .fTeoW::after{color:#b5b5b5}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.375rem;line-height:1.5rem;box-shadow:.1875rem .125rem 10px rgba(51,51,51,.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
2
2
|
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:.5}
|
|
3
3
|
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:#000;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.3125rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
4
|
-
.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
4
|
+
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh;cursor:pointer}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
5
5
|
.oKdKI{max-width:100%;max-height:50vh;overflow-y:scroll}.fTeoW{padding-right:2rem;overflow-y:hidden;cursor:pointer}.fTeoW::after{position:absolute;right:.75rem;top:50%;margin-top:-0.15em}.gZbQ4{color:#b5b5b5;cursor:default}.gZbQ4 .fTeoW::after{color:#b5b5b5}
|
|
6
6
|
.S7CRE{font-weight:600}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.aGxoe{vertical-align:top;position:relative}.aGxoe._cjiV{padding-left:36px;white-space:nowrap}.aGxoe._cjiV .q6vwS{left:.53125rem;top:50%;margin-top:-0.75rem;position:absolute}.aGxoe._cjiV svg{vertical-align:top}.aGxoe._cjiV .sm svg{vertical-align:middle}.aGxoe.T1CzO{padding:1rem}.aGxoe.T1CzO .q6vwS{top:50%;left:50%;transform:translate3D(-50%, -50%, 0);position:absolute}
|
|
2
2
|
.Gvwzj{border-radius:50%;background-color:#40bcc3;width:100%;height:100%;text-align:center;line-height:100%;background-size:cover;background-position:top center}.JJHBJ{position:absolute;top:-0.1rem;right:-0.1rem;width:.8rem;height:.8rem}
|
|
3
3
|
.UCAnJ:after{content:none}
|
|
4
|
-
.jEh7m:not(:empty){min-height:1.5rem}.WQ2eS{background-color:rgba(255,147,0,.1);color:#ff9300}.z4DeQ{background-color:rgba(217,88,79,.1);color:#d9584f}
|
|
4
|
+
.jEh7m:not(:empty){min-height:1.5rem}.WQ2eS{background-color:rgba(255,147,0,.1);color:#ff9300}.z4DeQ{background-color:rgba(217,88,79,.1);color:#d9584f}.D_2nt{background-color:#2ba84a}
|
|
5
5
|
.JDp5N{vertical-align:top;display:inline-block;width:3.5rem}.AzIWg{vertical-align:top;width:8rem;display:inline-block}.UhEYq{vertical-align:top;width:calc(100% - 20.3125rem);display:inline-block}.wBqoo{width:1.75rem;margin-left:4.25rem;display:inline-block}.wBqoo:focus .OAQQu{visibility:visible}.W5sR9{width:6rem;display:inline-block}.OAQQu{visibility:hidden;width:1.75rem;display:inline-block}.OAQQu:focus{visibility:visible}.tfrDf .OAQQu{visibility:visible}.sGk59{min-height:3rem}.sGk59:focus .OAQQu{visibility:visible}
|
|
6
6
|
.video-js .cv-interactive-bar-item{width:0;top:-200%;bottom:-200%;position:absolute;height:auto}.video-js .cv-interactive-bar-item .vjs-icon-placeholder{left:-0.3em;width:.6em;position:absolute;border-radius:.5em;z-index:9;top:0;bottom:0}.video-js .vjs-progress-holder:hover .cv-interactive-bar-item .vjs-icon-placeholder{left:-0.18em;width:.36em;border-radius:.3em}.video-js .vjs-progress-holder:hover .cv-interactive-bar-item:hover .vjs-icon-placeholder,.video-js .vjs-progress-holder:hover .cv-interactive-bar-item:focus .vjs-icon-placeholder{width:.6em;left:-0.3em;top:-0.24em;bottom:-0.24em;z-index:10}
|
|
7
7
|
.video-js .cv-interactive-bar-items{position:relative;height:100%}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.375rem;line-height:1.5rem;box-shadow:.1875rem .125rem 10px rgba(51,51,51,.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
2
2
|
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:.5}
|
|
3
3
|
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:#000;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.3125rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
4
|
-
.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
4
|
+
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh;cursor:pointer}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.375rem;line-height:1.5rem;box-shadow:.1875rem .125rem 10px rgba(51,51,51,.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
2
2
|
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:.5}
|
|
3
3
|
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:#000;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.3125rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
4
|
-
.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
4
|
+
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh;cursor:pointer}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.laVU4{width:1.2rem;height:1.2rem}.vEOCt{padding:.3125rem}.vEOCt .d1NHd{display:none}.vEOCt .d1NHd:hover{background-color:#fff}.vEOCt .rFH4W{display:flex;border-radius:50%}.vEOCt .rFH4W .BarYz{border-radius:50%;background-color:#fff;height:100%;font-size:.6rem}.vEOCt:hover .d1NHd{display:flex}.vEOCt:hover .d1NHd+.rFH4W{display:none}.HF0E8{border:1px dashed;border-radius:1.25rem;position:relative}.HF0E8::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;opacity:.05;background-color:currentColor;border-radius:1.25rem}.iKeXW{border:1px solid rgba(0,0,0,0);border-radius:50%;box-sizing:content-box}.pyzCM{margin-top:-0.3125rem;margin-bottom:-0.3125rem;margin-right:-0.3125rem;padding-right:0.3125rem}.pyzCM:hover{background-color:rgba(255,255,255,.5)}.mgt6Y{top:.75rem;right:.625rem}
|
|
9
9
|
.Dc3kX{height:100%;flex:1}.Dc3kX input{height:100%;border:none;outline:none;padding:0}.c5t3e{position:absolute;top:100%;left:0;right:0;z-index:100}.kFjoN{width:calc(100% - 34px)}.kFjoN:last-child{border-bottom:none !important}.kFjoN form{flex:1;margin-top:.3125rem}.mLrE3:last-child{border-bottom:none !important;max-height:20rem;overflow-y:scroll}
|
|
10
10
|
.Rkyqz{width:2rem;height:2rem}.mPAD2{background-color:#6364a7}.qmP52{width:1.5rem;height:1.5rem}.qmP52:not(:first-child){margin-left:-0.3125rem}
|
|
11
|
-
.jEh7m:not(:empty){min-height:1.5rem}.WQ2eS{background-color:rgba(255,147,0,.1);color:#ff9300}.z4DeQ{background-color:rgba(217,88,79,.1);color:#d9584f}
|
|
11
|
+
.jEh7m:not(:empty){min-height:1.5rem}.WQ2eS{background-color:rgba(255,147,0,.1);color:#ff9300}.z4DeQ{background-color:rgba(217,88,79,.1);color:#d9584f}.D_2nt{background-color:#2ba84a}
|
|
12
12
|
.Q1UGv[readonly]{background-color:unset}.J3fBx{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;cursor:pointer;outline:none}
|
|
13
13
|
.hVQto{background-color:#eef8ff}
|
|
14
14
|
.jCfI0{position:absolute;right:.625rem;top:50%;margin-top:-0.75rem}.RBJnf{padding-right:2.75rem}.RBJnf::placeholder{color:#b5b5b5;opacity:1}.d78lK:focus-within{background-color:var(--bs-body-bg);border-color:#313543;outline:0;box-shadow:0 0 0 .2rem rgba(0,0,0,.2)}.d78lK:focus-within.is-invalid{color:#d9584f;border-color:#d9584f;outline:0;box-shadow:0 0 0 .2rem rgba(217,88,79,.25)}.asbVo{background-color:var(--bs-secondary-bg)}.wzyOG{margin-left:.1rem}.CycFx{position:absolute;top:50%;right:.625rem;transform:translateY(-50%)}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.375rem;line-height:1.5rem;box-shadow:.1875rem .125rem 10px rgba(51,51,51,.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
11
11
|
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:.5}
|
|
12
12
|
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:#000;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.3125rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
13
|
-
.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
13
|
+
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0;max-height:50vh;cursor:pointer}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
14
14
|
.oKdKI{max-width:100%;max-height:50vh;overflow-y:scroll}.fTeoW{padding-right:2rem;overflow-y:hidden;cursor:pointer}.fTeoW::after{position:absolute;right:.75rem;top:50%;margin-top:-0.15em}.gZbQ4{color:#b5b5b5;cursor:default}.gZbQ4 .fTeoW::after{color:#b5b5b5}
|
|
15
15
|
.BykcP{color:red}
|
|
16
16
|
.melld{overflow-wrap:break-word}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1269],{79665:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var o=n(48088),r=n(39479),i=n(57857),l=n(31647),c=n(52076),u=n(26357),a=n(93569),s=n(58315),f=n.n(s);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:String(t)}function h(e,t,n){return t=m(t),function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var w=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,t,[e])}var n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(l=[{key:"initialize",value:function(){this.bindListeners(),a.yV.deselectAll(this.collection),a.yV.setSelected(this.options.currentLibraryId,this.collection)}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new u.H({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||i.T.getPhrase(this.lang,"placeholder"),noOptionsText:i.T.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:c.k}))}}])&&d(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),t}(l.Q.wA)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return d}});var o=n(39479),r=n(31647),i=n(55142);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:String(t)}function a(e,t,n){return t=f(t),function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,[e])}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],r&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(r.Q.$W)},26357:function(e,t,n){"use strict";n.d(t,{H:function(){return v}});var o=n(48088),r=n(39479),i=n(31647),l=n(71641),c=n(93569),u=n(46635),a=n.n(u),s={dropdownMenu:"oKdKI",selectButton:"fTeoW",disabled:"gZbQ4"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}function y(e,t,n){return t=b(t),function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=y(this,t,[e])).selectSearch="",n.sameCharIndex=1,n.optionStep=1,n}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return a()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){c.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(c.yV.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(c.yV.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=c.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=c.yV.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(c.yV.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=c.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:s,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.w({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(s.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(i.Q.wA)},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var o=n(48088),r=n(57857),i=n(31647),l=n(50299),c=n(93569),u=n(68979),a=n.n(u),s={list:"MxlSt",selector:"qHvbU",customItem:"aJzJB"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}function y(e,t,n){return t=b(t),function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(this,t,[e])}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e}({},t))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return a()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=c.PU.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var o=n(31647),r=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function u(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:String(t)}function a(e,t,n){return t=f(t),function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,arguments)}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(o=[{key:"defaults",value:function(){return l(l({},r.ZV.Disabled,!0),r.ZV.Hidden,!1)}}])&&c(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(o.Q.Hn)},58315:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},46635:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<button \n class="dropdown-toggle form-control text-start position-relative '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \n type="button" \n id="dropdownMenuButton" \n data-bs-toggle="dropdown" \n aria-haspopup="true" \n aria-expanded="false"\n '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \n name="'+c(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\n >\n '+c(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\n</button>\n<div class="dropdown-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},68979:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<div class="border rounded-3 overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1269],{79665:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var o=n(48088),r=n(39479),i=n(57857),l=n(31647),c=n(52076),u=n(26357),s=n(93569),a=n(58315),f=n.n(a);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:String(t)}function h(e,t,n){return t=m(t),function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var w=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,t,[e])}var n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(l=[{key:"initialize",value:function(){this.bindListeners(),s.yV.deselectAll(this.collection),s.yV.setSelected(this.options.currentLibraryId,this.collection)}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new u.H({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||i.T.getPhrase(this.lang,"placeholder"),noOptionsText:i.T.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:c.k}))}}])&&d(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),t}(l.Q.wA)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return d}});var o=n(39479),r=n(31647),i=n(55142);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:String(t)}function s(e,t,n){return t=f(t),function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,[e])}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],r&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(r.Q.$W)},26357:function(e,t,n){"use strict";n.d(t,{H:function(){return v}});var o=n(48088),r=n(39479),i=n(31647),l=n(71641),c=n(93569),u=n(46635),s=n.n(u),a={dropdownMenu:"oKdKI",selectButton:"fTeoW",disabled:"gZbQ4"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}function y(e,t,n){return t=b(t),function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=y(this,t,[e])).selectSearch="",n.sameCharIndex=1,n.optionStep=1,n}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return s()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){c.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(c.yV.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(c.yV.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=c.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=c.yV.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(c.yV.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=c.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.w({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(i.Q.wA)},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var o=n(48088),r=n(57857),i=n(31647),l=n(50299),c=n(93569),u=n(68979),s=n.n(u),a={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",customItem:"aJzJB"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}function y(e,t,n){return t=b(t),function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(this,t,[e])}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e}({},t))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return s()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=c.PU.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var o=n(31647),r=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function u(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:String(t)}function s(e,t,n){return t=f(t),function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,arguments)}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(o=[{key:"defaults",value:function(){return l(l({},r.ZV.Disabled,!0),r.ZV.Hidden,!1)}}])&&c(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(o.Q.Hn)},58315:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},46635:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<button \n class="dropdown-toggle form-control text-start position-relative '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \n type="button" \n id="dropdownMenuButton" \n data-bs-toggle="dropdown" \n aria-haspopup="true" \n aria-expanded="false"\n '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \n name="'+c(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\n >\n '+c(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\n</button>\n<div class="dropdown-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},68979:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return' <button\n class="'+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+c(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+c(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,o,r){return"border rounded-3"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5418],{77739:function(e,t,n){"use strict";n.d(t,{r:function(){return h}});var r=n(31647),o=n(10101),i=n(20072),l=n(93569),a=n(11653),u=n(14538),c=n.n(u);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}function d(e,t,n){return t=y(t),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[e])}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:o.fS,modelValidation:(0,a.h)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.Bp}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"onFolderSelected",value:function(e,t){e&&(l.PU.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new i.Y({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}}])&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(r.Q.wA)},11653:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(39479),o=n(57857),i=n(54008),l=n(22557),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.T.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return o.T.getPhrase(a,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?l.P.calculateDestinationFolderDepth(e,n,t)>i.p.MAX_FOLDER_DEPTH?o.T.getPhrase(a,"maxFolderDepth",{maxDepth:i.p.MAX_FOLDER_DEPTH}):"":o.T.getPhrase(a,"selectParentFolder")}}},s=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,c(o,i)):t?u:n?c(o,i):void 0}},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var r=n(48088),o=n(57857),i=n(31647),l=n(50299),a=n(93569),u=n(68979),c=n.n(u),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",customItem:"aJzJB"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}function b(e,t,n){return t=m(t),function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,t,[e])}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e}({},t))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:String(t)}function c(e,t,n){return t=f(t),function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,t,arguments)}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return l(l({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(r.Q.Hn)},14538:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n'},3:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="form-group pt-2">\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\n <div class="parent-folder-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},68979:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <button\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,r,o){return"border rounded-3"},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5698],{54096:function(e,t,n){n.d(t,{G:function(){return a}});var r=n(1024),i=n(21679);function a(e){var t,n;return t=e,n=i.u.getInstance(t),r.useEffect((function(){return function(){i.u.releaseInstance(t)}})),n}},38182:function(e,t,n){n.d(t,{q:function(){return s}});var r=n(1024),i=n.n(r),a=n(68003),o=n(88483),c=n(87013),u={avatar:"Gvwzj",dot:"JJHBJ"};function s(e){var t,n,r=e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?c.j.createUrl(a._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:o.h2.Small}):"");return i().createElement("div",{className:"position-relative h-100 w-100"},i().createElement("div",{className:"".concat(u.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(r,"')")}}," "),e.showDot&&i().createElement("div",{className:"".concat(u.dot," rounded-circle bg-danger")}))}},45458:function(e,t,n){n.d(t,{C:function(){return m},g:function(){return r}});var r,i=n(1024),a=n(57857),o=n(39396),c=n(63946),u=n(50028),s=n(27866),d=n(45428),l=n(63791),v=n(21974),p=n(7121),f=a.T.encloseNamespace("shared.badges");function m(e){var t=e.type,n=e.data;if(!function(e,t){var n,i,a;return"boolean"==typeof t?!!t:e===r.Rating?t&&!!t.value:e===r.Resources?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===r.Interactive?!!(null==t?void 0:t.length)||!!(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.length):e===r.Captions?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===r.Status?"number"==typeof t:!!t}(t,n))return i.createElement(i.Fragment,null);var a=function(e,t){var n="";if(e===r.DurationApproximate&&(n="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===r.DurationExact&&(n="duration-badge"),e===r.Interactive&&(n="interactive-badge"),e===r.Rating&&(n="rating-badge ".concat(v.u.mapRatingToClass(t.value))),e===r.ProductionYear&&(n="production-year-badge"),e===r.Resources&&(n="resources-badge"),e===r.Captions)return"p-0";if(e===r.Status)return"badge ".concat(function(e){switch(e){case u.X.Published:return"bg-success";case u.X.Archived:case u.X.Rejected:return"bg-danger";case u.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case u.X.Pending:case u.X.Processing:return"bg-warning"}}(t));if(e===r.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===r.Count&&(n="count-badge px-1 rounded"),e===r.Restriction){var i=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(i)}return e===r.Source&&(n=function(e){switch(e){case"streamable":return"px-1 text-nowrap d-flex align-items-center ".concat(p.Z.streamable);case"exchange":return"bg-orange text-white px-1 text-nowrap d-flex align-items-center";default:return""}}(t)),"".concat("badge"," ").concat(n)}(t,n);a="".concat(a," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var m=function(e,t){return e===r.Interactive?f("interactive"):e===r.DurationApproximate?s.T.ToDisplayDurationNewStyle(t):e===r.DurationExact?s.T.ToDisplayDuration(t):e===r.Rating?t.code:e===r.ProductionYear?t:e===r.Resources?f("resources"):e===r.Captions?i.createElement(o.x,{svgName:l.vn.CloseCaptionBadge}):e===r.Status?u.X[t]:e===r.Trending?i.createElement(i.Fragment,null,i.createElement(o.x,{svgName:l.vn.Trending}),i.createElement("span",{className:"ps-1"},t)):e===r.Count?t:e===r.Restriction?i.createElement(i.Fragment,null,i.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),i.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups))):e===r.Source?t:void 0}(t,n),g=function(e,t){return e===r.Rating?{title:t.name,placement:"top"}:null}(t,n),y=e.inline&&"d-inline-block";return g?i.createElement("div",{className:"badge-wrapper d-inline"},i.createElement(c.u,Object.assign({},g,{spanHack:!0,spanHackClassName:y}),i.createElement("span",{className:a},m))):i.createElement("span",{className:"".concat(a," badge-wrapper")},m)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Resources="resources",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(r||(r={}))},44550:function(e,t,n){n.d(t,{c:function(){return a}});var r=n(1024),i=n(7121);function a(e){var t="d-flex align-items-center badge-list ".concat(i.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),r.createElement("div",{className:t},e.children)}},90547:function(e,t,n){var r;n.d(t,{r:function(){return r}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(r||(r={}))},34254:function(e,t,n){var r;n.d(t,{r:function(){return r}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(r||(r={}))},86257:function(e,t,n){var r;n.d(t,{L:function(){return r}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}))},87648:function(e,t,n){var r;n.d(t,{c:function(){return r}}),function(e){e.Custom="custom",e.User="year_group"}(r||(r={}))},89603:function(e,t,n){var r,i;n.d(t,{Q:function(){return r}}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(r||(r={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(i||(i={}))},90335:function(e,t,n){var r;n.d(t,{D:function(){return r}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(r||(r={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var r=n(2248),i=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,r){return{key:"clip:".concat(e,":public:").concat(t),url:i._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:r}},sharedClip:function(e,t,n,r){return{key:"shared:clip:".concat(e),url:i._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:r}},createClip:function(e,t,n,i,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:r.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:i,always:a}},updateClip:function(e,t,n,i,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:r.k.PUT,success:n,error:i,always:a}},deleteClip:function(e,t,n,i,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:r.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:n,error:i,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var r=n(2248),i=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},sharedInteractiveMetadata:function(e,t,n,r){return{url:i._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:r}},publicInteractiveMetadata:function(e,t,n,r){return{url:i._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:r}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:r.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,i){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:r.k.POST,data:t,success:n,error:i}},updateInteractive:function(e,t,n,i){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:r.k.PUT,data:t,success:n,error:i,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,n,i){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:r.k.PUT,data:t,success:n,error:i}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:r.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:r.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:n}}}},77131:function(e,t,n){n.d(t,{R:function(){return m}});var r,i=n(2248),a=n(68003),o=n(84657),c=n(50028),u=n(74421),s=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(r||(r={}));var d=n(15970),l=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE,id:e})},f=function(e){var t=e.videoId,n=e.context,i=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:25,query:o.v.VIDEO_COLLECTION};return n&&(n===r.Widget?u["context.widgetId"]=i:(u["context.collectionType"]=n,u["context.collectionId"]=i)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},m={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e}}},publicVideo:function(e,t,n,r){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:r}},sharedVideo:function(e,t,n,r){return{url:l(e,t),key:"shared:video:".concat(e),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e},success:n,error:r}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,r=o.v.CLIP_COLLECTION,i=o.v.INTERACTIVE,d="videos[".concat(n,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),l="clips[".concat(r,"]"),v="interactives[".concat(i,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(d,"|").concat(l,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,r,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:i.k.PUT,data:t,success:n,error:r,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:i.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,r,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:i.k.DELETE,success:r,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,r=e.collectionId,i=e.moviesAndTv;return{url:f(e),key:"related:videos:".concat(t,":").concat(n,":").concat(r,":").concat(i)}},collectionVideos:function(e,t,n,r,i,u){var l=d.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,f=o.v.INTERACTIVE,m="videos[".concat(v,"]"),g="clips[".concat(p,"]"),y="interactives[".concat(f,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(m,"|").concat(g,"|").concat(y,")").concat(l?"{".concat(l,"}"):""),permissionFilterOption:s.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:r,error:i,always:u}},pointsOfInterest:function(e,t,n,r,i){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:r,always:i}},regionAlternatives:function(e,t,n,r){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}}},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(92159),i=n(21186),a=n(54096);function o(){var e=(0,a.G)(r.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:i.NK.Warning,heading:i.R6.Warning,message:t})}}}},45428:function(e,t,n){n.d(t,{l:function(){return m}});var r=n(57857),i=n(56285),a=n(7121),o=n(87648),c=n(63791);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==u(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.T.encloseNamespace("shared.shared-utils"),l=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),f=s(s({},o.c.Custom,200),o.c.User,100),m={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=m.getWeightedRestriction(e.value);return l[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=m.getWeightedRestriction(e.value);return v[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var r=m.getWeightedRestriction(e.value),i=t.find((function(e){return e.value===r.yearGroup})),a=p[r.type];if(r.type===o.c.User)return null===r.yearGroup?d("restrictionStaff"):i?d(a,{yearGroup:i.name}):"";if(r.type===o.c.Custom){var c=m.getRestrictionDuration(r);return c?d(a,{duration:c,smartCount:c}):d("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var r=f[e.type],i=f[n.type];return"highest"===t&&r>i||"lowest"===t&&r<i?e:n}))},getRestrictionByType:function(e,t){if(!m.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],r=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return m.getWeightedRestriction(r)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=i.O.convertUTCToLocal(e.expiresOn);if(t)return i.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!m.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return d}});var r=n(57857),i=n(75459),a=n(86257),o=n(63791);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==c(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",d={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case i.r.HostedLibrary:case i.r.CustomLibrary:return e.name;case i.r.Exchange:return r.T.getPhrase(s,"exchange");case i.r.Workspace:return r.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case i.r.HostedLibrary:case i.r.CustomLibrary:return"bg-info";case i.r.Exchange:return"bg-green";case i.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=u(u(u(u(u(u(u({},a.L.Pdf,o.vn.FilePDF),a.L.Image,o.vn.FileImg),a.L.PowerPoint,o.vn.FilePowerpoint),a.L.Document,o.vn.FileWord),a.L.Excel,o.vn.FileExcel),a.L.Zip,o.vn.FileZip),a.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case a.L.Pdf:return r.T.getPhrase(s,"pdf");case a.L.Image:return r.T.getPhrase(s,"image");case a.L.Document:return r.T.getPhrase(s,"document");case a.L.Excel:return r.T.getPhrase(s,"spreadsheet");case a.L.PowerPoint:return r.T.getPhrase(s,"presentation");case a.L.Zip:return r.T.getPhrase(s,"zipArchive");case a.L.File:return r.T.getPhrase(s,"file");default:return""}}}},12927:function(e,t,n){n.d(t,{M:function(){return h}});var r,i=n(11306),a=n(57857),o=n(31647),c=n(56285),u=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(r||(r={}));var s=n(50028),d=n(74421),l=n(87648),v=n(89603),p=n(332),f=n(91432),m=n(77131),g=n(45428),y=n(75459),b=a.T.encloseNamespace("shared.shared-utils"),h={isVideo:function(e){return(null==e?void 0:e.typeId)===d.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===d.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===d.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return h.isVideo(e)||h.isInteractive(e)||h.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n;return e?h.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:h.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):h.isInteractive(e)?null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail:void 0:null},getDuration:function(e){var t,n;if(e){if(h.isVideo(e))return e.duration;if(h.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return h.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return h.isVideo(e)?u.py.Video:h.isInteractive(e)?u.py.Interactive:h.isClip(e)?u.py.Clip:void 0},getCanBeConsumed:function(e){var t,n;return e&&h.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&h.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=h.getCanBeConsumed(e),i=r.canConsume,a=r.canNavigate,o=r.reason,c=function(){return h.isClip(e)?b("clipLoginRequired"):h.isInteractive(e)?b("interactiveLoginRequired"):b("videoLoginRequired")};if(!i&&!a){if(n)return c();switch(o){case"rating-not-allowed":return b("ratingNotAllowed");case"video-deleted":return h.isClip(e)?b("clipParentDeleted"):h.isInteractive(e)?b("interactiveParentDeleted"):b("videoDeleted");case"clickview-private":return b("clickViewPrivate");case"private":default:return b("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=g.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?b("awaitingApproval"):b("restrictedAccess")}}return h.isInteractive(e)&&e.status===s.X.Draft?b("draftInteractive"):""},getTitle:function(e){if(e.name)return e.name;var t=h.getCanBeConsumed(e),n=t.canConsume,r=t.reason;return b(n||"private"!==r?n||"video-deleted"!==r?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return h.isVideo(e)?e:h.isClip(e)||h.isInteractive(e)?e._parentVideo:void 0},showWhyThisVideo:function(e){var t,n;return!!h.isVideo(e)&&!!(null===(n=null===(t=e.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.tagType===v.Q.Pedagogy||e.tagType===v.Q.Skill})))},showWhatsIncluded:function(e){var t,n,r,i,a,o;if(!h.isVideo(e))return!1;var c=!!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),u=!!(null===(i=null===(r=e.resources)||void 0===r?void 0:r.data)||void 0===i?void 0:i.length),s=!!(null===(o=null===(a=e.subtitles)||void 0===a?void 0:a.data)||void 0===o?void 0:o.length);return c||u||s},getRating:function(e){var t;return h.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case d.E.Video:return m.R.sharedVideo(e,n);case d.E.Clip:return p.e.sharedClip(e,n);case d.E.Interactive:return f.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new i.H("Unsupported master type"))}switch(t){case d.E.Video:return m.R.video(e);case d.E.Clip:return p.e.clip(e);case d.E.Interactive:return f.b.interactiveMetadata(e)}o.Q.Ry.throw(new i.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===r.Era||e.systemName===r.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&h.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,n,r;return!(!e||!(null===(t=e._isClickViewContent)||void 0===t?void 0:t.value)&&(null===(r=null===(n=e.libraries)||void 0===n?void 0:n.data)||void 0===r?void 0:r.some((function(e){return e.type===y.r.CustomLibrary}))))},getTrackingCode:function(e){return h.isVideo(e)?e.trackingCode:h.isClip(e)||h.isInteractive(e)?e._parentVideo.trackingCode:void 0}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var r=n(4705),i=n(90335),a=i.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(i.D).includes(e)?e:i.D.Newest},getOrSetSortType:function(e,t,n){var i=function(e){return"video:sort:".concat(e)}(e);return!t&&r.SG.cacheExists(i)||r.SG.cacheSet(i,t||n||a),t||(t=r.SG.cacheGet(i)),t},getVideoSortParam:function(e){switch(e){case i.D.AtoZ:return"orderby:name";case i.D.ZtoA:return"orderbydesc:name";case i.D.Newest:return"orderbydesc:datecreated";case i.D.Oldest:return"orderby:datecreated";case i.D.RecentlyAdded:return"orderbydesc:timestamp";case i.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|